]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
trans-decl.c (gfc_generate_function_code): Call cgraph_create_node instead of cgraph_...
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
abe36b81
EB
12011-04-19 Eric Botcazou <ebotcazou@adacore.com>
2
3 PR lto/48148
4 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5 the types if they have different enumeration identifiers.
6
e6416b30
JH
72011-04-19 Jan Hubicka <jh@suse.cz>
8
9 * cgraph.h (cgraph_optimize_for_size_p): Declare.
10 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
11 * predict.c (cgraph_optimize_for_size_p): Break out from ...
12 (optimize_function_for_size_p) ... here.
13
d39132ea
RG
142011-04-19 Richard Guenther <rguenther@suse.de>
15
16 PR lto/48207
17 * tree.c (free_lang_data): Do not reset the decl-assembler-name
18 langhook.
19
ff7037dc
EB
202011-04-19 Eric Botcazou <ebotcazou@adacore.com>
21
22 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
23 if DECL_NO_INLINE_WARNING_P is set on the function.
24
c1ee2892
BS
252011-04-19 Bernd Schmidt <bernds@codesourcery.com>
26
27 PR fortran/47976
28 * reload1.c (inc_for_reload): Return void. All callers changed.
29 (emit_input_reload_insns): Don't try to delete previous output
30 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
31
322011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
33
34 * gengtype.h: Updated copyright year.
35 (struct input_file_st): Add inpisplugin field.
36 (type_fileloc): New function.
37 * gengtype.c
38 (write_typed_struct_alloc_def): Add gcc_assert.
39 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
40 (write_typed_alloc_defns): Don't output for plugin files.
41 (input_file_by_name): Clear inpisplugin field.
42 (main): Set inpisplugin field for plugin files.
43
897e0a89
NP
442011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
45
46 * gengtype-state.c (string_eq): New.
47 (read_state): Use string_eq instead of strcmp when creating the
48 state_ident_tab.
49
363ee90e
WG
502011-04-19 Wei Guozhi <carrot@google.com>
51
52 PR target/47855
53 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
54 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
55 linkage.
56 * config/arm/constraints.md (Uu): New constraint.
57 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
58
18a24fed
TG
592011-04-19 Tristan Gingold <gingold@adacore.com>
60
61 * config.gcc (-*-*-*vms): Added.
62 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
63 definitions moved.
64 * config/vms/vms-ld.c: New file.
65 * config/vms/vms-ar.c: New file.
66 * config/vms/t-vmsnative: New file.
67
1c13f168
XDL
682011-04-18 Xinliang David Li <davidxl@google.com>
69
70 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
71
84825707
JJ
722011-04-18 Jakub Jelinek <jakub@redhat.com>
73
74 PR middle-end/48661
75 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
76 if TREE_TYPE (v) is non-NULL.
77
78 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
79 gimple_get_virt_mehtod_for_binfo.
80 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
81 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
82 callers.
83 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
84
7d4f8d02 852011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
86 Steve Ellcey <sje@cup.hp.com>
87
7d4f8d02
EB
88 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
89 use its mode as source mode if it isn't VOIDmode.
7254cb57 90
474e8e70
DCR
912011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
92
93 * doc/passes.texi: Fill crossref nodes.
94
cff41484
JM
952011-04-18 Jim Meyering <meyering@redhat.com>
96
7d4f8d02 97 Fix doubled-word typos in comments and strings
cff41484
JM
98 * config/alpha/vms-unwind.h: s/for for/for/
99 * config/arm/unwind-arm.h: Likewise.
100 * config/microblaze/microblaze.c: Likewise.
101 * config/sh/constraints.md: s/in in/in/
102 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
103
f60c2554
UB
1042011-04-18 Uros Bizjak <ubizjak@gmail.com>
105
106 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
107 (AVX_FLOAT_MODE_P): Ditto.
108 (AVX128_VEC_FLOAT_MODE_P): Ditto.
109 (AVX256_VEC_FLOAT_MODE_P): Ditto.
110 (AVX_VEC_FLOAT_MODE_P): Ditto.
111 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
112 (UNSPEC_MASKSTORE): Ditto.
113 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
114 Merge from <sse>_movmsk<ssemodesuffix> and
115 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
116 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
117 iterator.
118 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
119 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
120 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
121
09a2806f
JH
1222011-04-18 Jan Hubicka <jh@suse.cz>
123
8a8dccb2
JH
124 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
125
09a2806f
JH
126 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
127 (want_inline_function_called_once_p): Break out the logic from
128 ipa_inline.
129 (edge_badness): Ensure that profile is not misupdated.
130 (lookup_recursive_calls): Prioritize by call frequencies.
131 (inline_small_functions): Move program size estimates here;
132 actually process whole queue even when unit growth has been
133 met. (to properly compute inline_failed reasons and for the
f60c2554 134 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
135 (ipa_inline): Remove unit summary code; first inline hot calls
136 of functions called once, cold calls next.
137 (order, nnodes): Remove unused variables.
138 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
139 (GTFILES): Remove ipa-inline.c
140 * sel-sched.c (fill_insns): Silence uninitialized var warning.
141
3eea52ef
EB
1422011-04-18 Eric Botcazou <ebotcazou@adacore.com>
143
144 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
145
229a1c59 1462011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 147 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
148
149 * arm.c (neon_builtin_type_bits): Remove.
150 (typedef enum neon_builtin_mode): New.
151 (T_MAX): Don't define.
152 (typedef enum neon_builtin_datum): Remove bits, codes[],
153 num_vars and base_fcode. Add mode, code and fcode.
154 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
155 VAR10): Change accordingly.
156 (neon_builtin_data[]): Change accordingly
157 (arm_init_neon_builtins): Change accordingly.
158 (neon_builtin_compare): Remove.
159 (locate_neon_builtin_icode): Remove.
160 (arm_expand_neon_builtin): Change accordingly.
161
162 * arm.h (enum arm_builtins): Move to ...
163 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
164
165 * arm.c (arm_builtin_decl): Declare.
166 (TARGET_BUILTIN_DECL): Define.
167 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
168 (arm_builtin_decls[]): New.
169 (arm_init_neon_builtins): Store builtin declarations in
170 arm_builtin_decls[].
171 (arm_init_tls_builtins): Likewise.
172 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
173 (arm_builtin_decl): New.
174
75e802cc
RG
1752011-04-18 Richard Guenther <rguenther@suse.de>
176
177 * tree.c (upper_bound_in_type): Build properly canonicalized
178 INTEGER_CSTs.
179 (lower_bound_in_type): Likewise.
180
3b45a007
RG
1812011-04-18 Richard Guenther <rguenther@suse.de>
182
183 * gimple.h (gimple_call_addr_fndecl): New function.
184 (gimple_call_fndecl): Use it.
185 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
186 for direct calls.
187 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
188 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
189
d25a79ea
RG
1902011-04-18 Richard Guenther <rguenther@suse.de>
191
192 PR middle-end/48650
193 * tree.c (build_string): STRING_CST is now derived from tree_typed.
194
7d5fc814
EB
1952011-04-18 Eric Botcazou <ebotcazou@adacore.com>
196
197 PR lto/48492
198 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
199 DECL_IN_CONSTANT_POOL without RTL.
200
7e7cfcf6
UW
2012011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
202 Ira Rosen <ira.rosen@linaro.org>
203
204 PR target/48252
205 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
206 to match neon_vzip/vuzp/vtrn_internal.
207 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
208 outputs explicitly dependent on both inputs.
209 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
210
49eab32e
JJ
2112011-04-18 Jakub Jelinek <jakub@redhat.com>
212
213 PR tree-optimization/48616
214 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
215 whether the shift is by scalar or vector based on whether all SLP
216 scalar stmts have the same rhs.
217
e54170f4
CLT
2182011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
219
220 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
221 memory operands.
222
b14ee6c9
RS
2232011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
224
225 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
226 registers.
227
10158cd3
JH
2282011-04-17 Jan Hubicka <jh@suse.cz>
229
230 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
231 * cgrpahunit.c (cgraph_finalize_function): Do not set
232 finalized_by_frontend.
10158cd3
JH
233 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
234 finalized_by_frontend.
235
2e9bb6ba
JH
2362011-04-17 Jan Hubicka <jh@suse.cz>
237
238 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
239 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
240 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
241 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
242 method.
2e9bb6ba
JH
243 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
244 gimple-fold.c
245 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
246
beb628e1
EB
2472011-04-17 Eric Botcazou <ebotcazou@adacore.com>
248
249 PR lto/48538
250 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
251 is non-null before accessing it.
252 (input_cgraph): Remove trailing spaces.
253
3e2fdd24
RE
2542011-04-17 Revital Eres <revital.eres@linaro.org>
255
256 * params.def (sms-min-sc): New param flag.
257 * modulo-sched.c (sms_schedule): Use it.
258 * doc/invoke.texi (sms-min-sc): Document it.
259
4c0f7679
JH
2602011-04-17 Jan Hubicka <jh@suse.cz>
261
262 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
263 present, also set gimple_call_set_cannot_inline.
264 * ipa-inline.c: Update toplevel comment.
265 (MAX_TIME): Remove.
266 (cgraph_clone_inlined_nodes): Fix linebreaks.
267 (cgraph_check_inline_limits): Restructure to ...
268 (caller_growth_limits): ... this one; be more tolerant
269 on growth in nested inline chains; add explanatory comment;
270 fix stack accounting thinko introduced by previous patch.
271 (cgraph_default_inline_p): Remove.
272 (report_inline_failed_reason): New function.
273 (can_inline_edge_p): New function.
274 (can_early_inline_edge_p): New function.
275 (leaf_node_p): Move upwards in file.
276 (want_early_inline_function_p): New function.
277 (want_inline_small_function_p): New function.
278 (want_inline_self_recursive_call_p): New function.
279 (cgraph_edge_badness): Rename to ...
280 (edge_badness) ... this one; fix linebreaks.
281 (update_edge_key): Update call of edge_baddness; add
282 detailed dump about queue updates.
283 (update_caller_keys): Use can_inline_edge_p and
284 want_inline_small_function_p.
285 (cgraph_decide_recursive_inlining): Rename to...
286 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
287 want_inline_self_recursive_call_p; simplify and remove no longer
288 valid FIXME.
4c0f7679
JH
289 (cgraph_set_inline_failed): Remove.
290 (add_new_edges_to_heap): Use can_inline_edge_p and
291 want_inline_small_function_p.
292 (cgraph_decide_inlining_of_small_functions): Rename to ...
293 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
294 can/want predicates; cleanup debug ouput; work edges till fibheap
295 is exhausted and do not stop once unit growth is reached; remove
296 later loop processing remaining edges.
4c0f7679
JH
297 (cgraph_flatten): Rename to ...
298 (flatten_function): ... this one; use can_inline_edge_p
299 and can_early_inline_edge_p predicates.
300 (cgraph_decide_inlining): Rename to ...
301 (ipa_inline): ... this one; remove unreachable nodes before
302 inlining functions called once; simplify the pass.
303 (cgraph_perform_always_inlining): Rename to ...
304 (inline_always_inline_functions): ... this one; use
f60c2554 305 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
306 (cgraph_decide_inlining_incrementally): Rename to ...
307 (early_inline_small_functions): ... this one; simplify
308 using new predicates; cleanup; make dumps prettier.
309 (cgraph_early_inlining): Rename to ...
310 (early_inliner): newer inline regular functions into always-inlines;
311 fix updating of call stmt summaries.
312 (pass_early_inline): Update for new names.
313 (inline_transform): Fix formating.
314 (gate_cgraph_decide_inlining): Rename to ...
315 (pass_ipa_inline): ... this one.
316 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
317 * ipa-inline-analysis.c (dump_inline_summary): Update.
318 (compute_inline_parameters): Do not compute disregard_inline_limits;
319 look for mismatching arguments.
320 (estimate_growth): Fix handlig of non-trivial self recursion.
321 (inline_read_summary): Do not read info->disregard_inline_limits.
322 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
323 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
324 and move all checks into can_inline_edge_p predicate; re-enable code
325 comparing optimization levels.
4c0f7679
JH
326 (expand_call_inline): Do not test inline_forbidden_into_p.
327 * Makefile.in (ipa-inline.o): Update arguments.
328
54333b7c
RE
3292011-04-17 Revital Eres <revital.eres@linaro.org>
330
331 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
332
42c2bf92
RE
3332011-04-17 Revital Eres <revital.eres@linaro.org>
334
335 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
336
b183e9e0
MM
3372011-04-17 Michael Matz <matz@suse.de>
338
339 PR tree-optimization/48622
340 PR lto/48645
341 * ipa-inline-analysis.c (inline_read_summary): Read size/time
342 in same order as they're written.
343
b8a17fa2
JDA
3442011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
345
346 * config/pa/predicates.md: Reorganize and simplify predicates.
347 Eliminate duplicate code checks.
348 (arith_operand): Rename to arith14_operand
349 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
350 * config/pa/pa.md: Use renamed operands.
351 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
352 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
353 arith11_operand, adddi3_operand, indexed_memory_operand,
354 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
355 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
356 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
357 move_dest_operand, move_src_operand, prefetch_cc_operand,
358 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
359 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
360 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
361 div_operand, int5_operand, movb_comparison_operator,
362 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
363 arith_double_operand, ireg_operand, lhs_lshift_operand,
364 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
365 integer_store_memory_operand): Likewise.
366 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
367 (integer_store_memory_operand, read_only_operand,
368 function_label_operand, borx_reg_operand,
369 non_hard_reg_operand): Likewise.
370 (eq_neq_comparison_operator): Delete unused operator.
371 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
372 function_label_operand.
373 (emit_move_sequence): Likewise.
374
8dfb9f16
UB
3752011-04-16 Uros Bizjak <ubizjak@gmail.com>
376
377 * config/i386/sse.md (sseunpackmode): New mode attribute.
378 (ssepackmode): Ditto.
379 (vec_pack_trunc_<mode>): Macroize expander from
380 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
381 (vec_unpacks_lo_<mode>): Macroize expander from
382 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
383 (vec_unpacks_hi_<mode>): Macroize expander from
384 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
385 (vec_unpacku_lo_<mode>): Macroize expander from
386 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
387 (vec_unpacku_hi_<mode>): Macroize expander from
388 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
389 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
390 ix86_expand_sse4_unpack.
391 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
392
e7f23018
JH
3932011-04-16 Jan Hubicka <jh@suse.cz>
394
395 * cgraphbuild.c: Include ipa-inline.h.
396 (reset_inline_failed): Use initialize_inline_failed.
397 * cgraph.c: Include ipa-inline.h.
398 (cgraph_create_node_1): Do not initialize estimated_growth.
399 (initialize_inline_failed): More to ipa-inline-analysis.c
400 (dump_cgraph_node): Do not dump inline flags.
401 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
402 and disregard_inline_limits flags.
403 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
404 time, size, estimated_growth.
8dfb9f16
UB
405 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
406 Update.
e7f23018
JH
407 * cgraphunit.c (cgraph_decide_is_function_needed): Use
408 DECL_DISREGARD_INLINE_LIMITS.
409 (cgraph_analyze_function): Do not initialize
410 node->local.disregard_inline_limits.
411 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
412 inlinable, versionable and disregard_inline_limits.
413 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
414 cgraph_check_inline_limits, cgraph_default_inline_p,
415 cgraph_edge_badness, update_caller_keys, update_callee_keys,
416 add_new_edges_to_heap): Update.
417 (cgraph_decide_inlining_of_small_function): Update; set
418 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
419 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
420 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
421 * ipa-inline.h (inline_summary): Add inlinable, versionable,
422 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
423 time, size and estimated_growth parameters.
e7f23018
JH
424 (estimate_edge_growth): Update.
425 (initialize_inline_failed): Declare.
426 * ipa-split.c: Include ipa-inline.h
427 (execute_split_functions): Update.
428 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
429 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
430 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
431 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
432 estimated_growth to INT_MIN.
433 (inline_node_duplication_hook): Likewise.
434 (dump_inline_summary): Dump new fields.
435 (compute_inline_parameters): Update.
436 (estimate_edge_time, estimate_time_after_inlining,
437 estimate_size_after_inlining, estimate_growth, inline_read_summary,
438 inline_write_summary):
439 (initialize_inline_failed): Move here from cgraph.c.
440 * tree-sra.c: Include ipa-inline.h.
441 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
442 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
443 ipa-inline.h.
e7f23018 444
e81b8564
UB
4452011-04-16 Uros Bizjak <ubizjak@gmail.com>
446
447 * config/i386/sse.md (V16): New mode iterator.
448 (VI1, VI8): Ditto.
449 (AVXMODEQI, AVXMODEDI): Remove.
450 (sse2, sse3): New mode attribute.
451 (mov<mode>): Use V16 mode iterator.
452 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
453 (push<mode>1): Use V16 mode iterator.
454 (movmisalign<mode>): Ditto.
455 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
456 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
457 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
458 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
459 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
460 avx_movdqu<avxmodesuffix>.
461 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
462 *avx_movdqu<avxmodesuffix>.
463 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
464 avx_lddqu<avxmodesuffix>.
465 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
466 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
467 avx_movnt<AVXMODEDI:mode>.
468 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
469 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
470
4743d438
BS
4712011-04-16 Bernd Schmidt <bernds@codesourcery.com>
472
473 PR target/48629
474 * haifa-sched.c (prune_ready_list, schedule_block): Use
475 sched_pressure_p rather than flag_sched_pressure.
476
eb229cf4
PH
4772011-04-15 Pat Haugen <pthaugen@us.ibm.com>
478
479 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
480 cgraph_get_node instead of cgraph_get_create_node.
481
2ba172e0
JJ
4822011-04-15 Jakub Jelinek <jakub@redhat.com>
483
484 * cfgexpand.c (expand_debug_expr): Use
485 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
486
63d2a353
MM
4872011-04-15 Michael Matz <matz@suse.de>
488
489 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
490 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
491 * function.c (gimplify_parameters): Ditto.
492 * gimplify.c (gimplify_vla_decl): Ditto.
493
494 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
495 (gimple_call_set_alloca_for_var): New inline function.
496 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
497 * gimple.c (gimple_build_call_from_tree): Remember
498 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
499 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
500
501 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
502 calls if they were for VLA objects.
503
dee74c34
MJ
5042011-04-15 Martin Jambor <mjambor@suse.cz>
505
506 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
507 of ADR_EXPRs.
508
8e5837bc
MJ
5092011-04-15 Martin Jambor <mjambor@suse.cz>
510
511 PR middle-end/48601
512 * tree-emutls.c (lower_emutls_function_body): Call
513 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
514 result is non-NULL.
515
0dc33c3c
NP
5162011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
517
518 * c-decl.c (detect_field_duplicates): Call
519 objc_detect_field_duplicates instead of objc_get_interface_ivars.
520
edcdea5b
NF
5212011-04-15 Nathan Froyd <froydnj@codesourcery.com>
522
523 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
524 * gimple.c (gimple_asm_clobbers_memory_p): Define.
525 * ipa-pure-const.c (check_stmt): Call it.
526 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
527
8456558d
RG
5282011-04-15 Richard Guenther <rguenther@suse.de>
529
530 PR tree-optimization/48290
531 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
532 Properly decide inhibiting propagation based on the valueized
533 operand. Do loop-closed SSA form preserving here ...
534 (init_copy_prop): ... not here.
535
266446be
L
5362011-04-15 H.J. Lu <hongjiu.lu@intel.com>
537
538 PR target/48612
539 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
540 (*ieee_smax<mode>3): Likewise.
541
17465c6e
AK
5422011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
543
544 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
545 Replace match_operand with match_dup for the third operand in
546 these expanders.
547
bce204e5
MK
5482011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
549
550 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
551 to track processing of conditionals. Update all callers.
552 (try_combine, simplify_if_then_else): Update.
553
3162fdf4
MK
5542011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
555
556 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
557 -fsched-pressure.
558
79002a57 5592011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 560
79002a57
GJL
561 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
562 instead of match_operand for operand 3.
563
4fd3a105
RS
5642011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
565
566 * recog.h (insn_operand_data): Add an "allows_mem" field.
567 * genoutput.c (output_operand_data): Initialize it.
568 * optabs.c (maybe_legitimize_operand_same_code): New function.
569 (maybe_legitimize_operand): Use it when matching the original
570 op->value.
571
ad19c4be
EB
5722011-04-15 Eric Botcazou <ebotcazou@adacore.com>
573
574 * gimplify.c: Fix issues in comments throughout.
575 (voidify_wrapper_expr): Fix long line.
576 (build_stack_save_restore): Likewise.
577 (gimplify_loop_expr): Likewise.
578 (gimplify_compound_lval): Likewise.
579 (gimplify_init_ctor_eval): Likewise.
580 (gimplify_modify_expr_rhs): Likewise.
581 (omp_notice_threadprivate_variable): Likewise.
582
b25aa0e8 5832011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 584
b25aa0e8
EB
585 * cfgexpand.c (expand_call_stmt): Convert the function type to the
586 original one if this is not a builtin function.
e7925582 587
09db7afe
JJ
5882011-04-14 Jakub Jelinek <jakub@redhat.com>
589
590 PR target/48605
591 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
592 offset it as needed based on top 2 bits in operands[3], change
593 MEM mode to SFmode and mask those 2 bits away from operands[3].
594
c59633d9
NP
5952011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
596
597 * c-parser.c (c_parser_objc_protocol_definition): Updated for
598 change from objc_declare_protocols() to objc_declare_protocol().
599
5e60198b
UB
6002011-04-14 Uros Bizjak <ubizjak@gmail.com>
601
602 * config/i386/sse.md (sse4_1): New mode attribute.
603 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
604 avx_blend<ssemodesuffix><avxmodesuffix> and
605 sse4_1_blend<ssemodesuffix> using VF mode iterator.
606 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
607 avx_blendv<ssemodesuffix><avxmodesuffix> and
608 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
609 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
610 avx_dp<ssemodesuffix><avxmodesuffix> and
611 sse4_1_dp<ssemodesuffix> using VF mode iterator.
612 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
613 (sse4_1_packusdw): Merge with *avx_packusdw.
614 (sse4_1_pblendvb): Merge with *avx_pblendvb.
615 (sse4_1_pblendw): Merge with *avx_pblendw.
616 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
617 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
618 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
619 VF mode iterator.
620 (sse4_1_round<ssescalarmodesuffix>): Merge with
621 *avx_round<ssescalarmodesuffix>.
622 (aesenc): Merge with *avx_aesenc.
623 (aesenclast): Merge with *avx_aesenclast.
624 (aesdec): Merge with *avx_aesdec.
625 (aesdeclast): Merge with *avx_aesdeclast.
626 (pclmulqdq): Merge with *pclmulqdq.
627 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
628 New predicate.
629 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
630
6f197850
L
6312011-04-14 H.J. Lu <hongjiu.lu@intel.com>
632
633 PR middle-end/48608
634 * cfgexpand.c (get_decl_align_unit): Renamed to ...
635 (align_local_variable): This. Update DECL_ALIGN.
636 (add_stack_var): Updated.
637 (expand_one_stack_var): Likewise.
638
4a5ba3ed
RG
6392011-04-14 Richard Guenther <rguenther@suse.de>
640
641 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
642 Remove.
643 (dse_initialize_block_local_data, dse_leave_block,
644 record_voperand_set, get_stmt_uid): Likewise.
645 (dse_possible_dead_store_p): Allow any kind of killing stmt.
646 (dse_optimize_stmt): Remove voperand set handling code.
647 Simplify and improve to handle any kind of killing stmt.
648 (dse_record_phi): Remove.
649 (dse_enter_block): Simplify.
650 (tree_ssa_dse): Likewise.
651 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
652
10a5dd5d
JH
6532011-04-14 Jan Hubicka <jh@suse.cz>
654
655 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
656 * cgraph.h (struct inline_summary): Move to ipa-inline.h
657 (cgraph_local_info): Remove inline_summary.
658 * ipa-cp.c: Include ipa-inline.h.
659 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
660 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
661 accesor.
662 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
663 (input_overwrite_node): Do not set inline summary.
664 (input_node): Do not stream inline summary.
665 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
666 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
667 growth; we do not have inline parameters computed for that anyway.
668 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
669 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
670 (inline_summary_t): New type and VECtor.
671 (debug_inline_summary, dump_inline_summaries): Declare.
672 (inline_summary): Use VOCtor.
673 (estimate_edge_growth): Kill hack computing call stmt size directly.
674 * lto-section-in.c (lto_section_name): Add inline section.
675 * ipa-inline-analysis.c: Include lto-streamer.h
676 (node_removal_hook_holder, node_duplication_hook_holder): New holders
677 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
678 (inline_summary_vec): Define.
679 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
680 dump_inline_summaries): New functions.
5e60198b
UB
681 (estimate_function_body_sizes): Properly compute size/time of outgoing
682 calls.
683 (compute_inline_parameters): Alloc inline_summary; do not compute
684 size/time of incomming calls.
10a5dd5d
JH
685 (estimate_edge_time): Avoid missing time summary hack.
686 (inline_read_summary): Read inline summary info.
687 (inline_write_summary): Write inline summary info.
688 (inline_free_summary): Free all hooks and inline summary vector.
689 * lto-streamer.h: Add LTO_section_inline_summary section.
690 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
691 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
692
b602d918
RS
6932011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
694
695 * tree-vectorizer.h (vect_strided_store_supported): Add a
696 HOST_WIDE_INT argument.
697 (vect_strided_load_supported): Likewise.
698 (vect_permute_store_chain): Return void.
699 (vect_transform_strided_load): Likewise.
700 (vect_permute_load_chain): Delete.
701 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
702 count argument. Check that the count is a power of two.
703 (vect_strided_load_supported): Likewise.
704 (vect_permute_store_chain): Return void. Update after above changes.
705 Assert that the access is supported.
706 (vect_permute_load_chain): Likewise.
707 (vect_transform_strided_load): Return void.
708 * tree-vect-stmts.c (vectorizable_store): Update calls after
709 above interface changes.
710 (vectorizable_load): Likewise.
711 (vect_analyze_stmt): Don't check for strided powers of two here.
712
ab4472fa
RG
7132011-04-14 Richard Guenther <rguenther@suse.de>
714
715 PR tree-optimization/48590
716 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
717 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
718 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
719 BUILT_IN_STACK_SAVE.
720 * tree-ssa-dce.c (propagate_necessity): Handle
721 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
722
32dabdaf
NP
7232011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
724
725 * c-parser.c (c_parser_objc_class_declaration): Updated call to
726 objc_declare_class.
727
daade206
RG
7282011-04-14 Richard Guenther <rguenther@suse.de>
729
730 * tree.h (get_object_alignment_1): Declare.
731 * builtins.c (get_object_alignment_1): Split out worker from ...
732 (get_object_alignment): ... here.
733 * fold-const.c (get_pointer_modulus_and_residue): Use
734 get_object_alignment_1.
735
920e8172
RS
7362011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
737
738 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
739 type parameter.
740 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
741 parameter. Generalise code to handle arrays as well as vectors.
742 (vect_setup_realignment): Update accordingly.
743 * tree-vect-stmts.c (vectorizable_store): Likewise.
744 (vectorizable_load): Likewise.
745
5ce1ee7f
RS
7462011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
747
748 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
749 within the per-copy loop.
750
6438fe33 7512011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
752
753 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
754 in the dump file.
755
6438fe33 7562011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
757
758 * doc/options.texi (Negative): Explicitly mention that the
759 Negative chain must be circular.
760
61e46a7d
NF
7612011-04-14 Nathan Froyd <froydnj@codesourcery.com>
762
763 * function.h (block_chainon): Declare.
764 * function.c (block_chainon): Define.
765
43ea6502 7662011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b
UB
767 Eric Weddington <eric.weddington@atmel.com>
768 Georg-Johann Lay <avr@gjlay.de>
769
f60c2554 770 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
771 New Includes
772 (avr_init_builtins, avr_expand_builtin,
773 avr_expand_delay_cycles, avr_expand_unop_builtin,
774 avr_expand_binop_builtin ): New functions.
775 (avr_builtin_id): New enum
776 (struct avr_builtin_description): New struct
777 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
778 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 779
43ea6502 780 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 781 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
782 UNSPECV_DELAY_CYCLES): new enumeration values
783 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
784 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
785 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
786 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
787 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
788 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
789 "fmulsu"): New insns
5e60198b 790
43ea6502
AS
791 * config/avr/avr-c.c: fix line endings
792 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
793 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
794 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
795 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
796 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 797
43ea6502
AS
798 * doc/extend.texi (AVR Built-in Functions): New node
799 (Target Builtins): Add documentation of AVR
800 built-in functions.
801
8a9b55f3
GJL
8022011-04-14 Georg-Johann Lay <avr@gjlay.de>
803
804 PR target/44643
805 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
806 alone. Error if non-const data has attribute progmem.
807
94bd1825
NF
8082011-04-13 Nathan Froyd <froydnj@codesourcery.com>
809
810 * tree.h (struct tree_constructor): Include tree_typed instead of
811 tree_common.
812 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
813 TS_TYPED instead of TS_COMMON.
814
5e60198b 8152011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
816
817 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
818 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
819 (sse2_psadbw): Merge with *avx_psadbw.
820 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
821 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
822 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
823 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
824 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
825 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
826 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
827 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
828 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
829 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
830 (ssse3_palignrti): Merge with *avx_palignrti.
831
4b1a4694
NF
8322011-04-13 Nathan Froyd <froydnj@codesourcery.com>
833
834 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
835 * tree-ssanames.c (fini_ssanames): VEC_free it.
836 (make_ssa_name_fn): Update for VECness of free_ssanames.
837 (release_ssa_name, release_dead_ssa_names): Likewise.
838 * tree.h (struct tree_ssa_name): Include tree_typed instead of
839 tree_common.
840 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
841 TS_TYPED instead of TS_COMMON.
842
4da3b811
NF
8432011-04-13 Nathan Froyd <froydnj@codesourcery.com>
844
845 * postreload-gcse.c (gcse_after_reload_main): Add calls to
846 statistics_counter_event.
847 * tree-ssa-copyrename.c (stats): Define.
848 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
849 statistics_counter_event.
850 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
851 (bswap_stats, widen_mul_stats): Define.
852 (insert_reciprocals): Increment rdivs_inserted.
853 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
854 rfuncs_inserted. Add calls to statistics_counter_event.
855 (execute_cse_sincos_1): Increment inserted.
856 (execute_cse_sincos): Zeroize sincos_stats. Add call to
857 statistics_counter_event.
858 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
859 of bswap_stats. Add calls to statistics_counter_event.
860 (convert_mult_to_widen): Increment widen_mults_inserted.
861 (convert_plusminus_to_widen): Increment maccs_inserted.
862 (convert_mult_to_fma): Increment fmas_inserted.
863 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
864 calls to statistics_counter_event.
865
89fa552a
VM
8662011-04-13 Vladimir Makarov <vmakarov@redhat.com>
867
868 PR rtl-optimization/48455
869 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
870 `temp_costs->mem_cost'.
871
03dfc36d
JH
8722011-04-13 Jan Hubicka <jh@suse.cz>
873
874 * ipa-inline.h: New file.
875 * ipa-inline-analysis.c: New file. Broken out of ...
876 * ipa-inline.c: ... this file; update toplevel comment;
877 include ipa-inline.h
878 (inline_summary): Move to ipa-inline.h
879 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
880 ipa-inline-analysis.c.
7d4f8d02
EB
881 (cgraph_estimate_time_after_inlining): Rename to
882 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
883 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
884 to estimate_edge_growth.
885 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
886 rename to estimate_size_after_inlining.
887 (cgraph_mark_inline_edge): Update for new naming convention.
888 (cgraph_check_inline_limits): Likewise.
889 (cgraph_edge_badness): Likewise.
890 (cgraph_decide_recursive_inlining): Likewise.
891 (cgraph_decide_inlining_of_small_functions): Likewise.
892 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
893 (cgraph_estimate_growth): Rename to estimate_growth; move to
894 ipa-inline-analysis.c.
03dfc36d
JH
895 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
896 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
897 (compute_inline_parameters): Likewise.
898 (compute_inline_parameters_for_current): Likewise.
899 (pass_inline_parameters): Likewise.
900 (inline_indirect_intraprocedural_analysis): Likewise.
901 (analyze_function): Rename to inline_analyze_function; likewise.
902 (add_new_function): Move to ipa-inline-analysis.c.
903 (inline_generate_summary): Likewise.
904 (inline_read_summary): Likewise.
905 (inline_write_summary): Likewise.
906 * Makefile.in (ipa-inline-analysis.c): New file.
907
7673c962
RO
9082011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
909
910 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
911 * configure: Regenerate.
912
9698252f
NF
9132011-04-13 Nathan Froyd <froydnj@codesourcery.com>
914
915 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
916 instead of tree_common.
917 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
918 Likewise.
919 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
920 TS_TYPED rather than TS_COMMON.
921 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
922
3a7bfdd5
GJL
9232011-04-01 Georg-Johann Lay <avr@gjlay.de>
924
925 PR target/45263
86d83530
GJL
926 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
927 r20 around calls of __tablejump_elpm__
3a7bfdd5 928
20790697
JJ
9292011-04-13 Jakub Jelinek <jakub@redhat.com>
930
931 PR middle-end/48591
932 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
933 NULL.
934 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
935
094d7661
BS
9362011-04-13 Bernd Schmidt <bernds@codesourcery.com>
937
938 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
939 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
940 (cfi_vec): New typedef.
941 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
942 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
943 (cie_cfi_vec): New static variable.
944 (cie_cfi_head): Delete.
945 (add_cfi): Accept a cfi_vec * as first argument. All callers and
946 declaration changed. Use vector rather than list operations.
947 (new_cfi): Don't initialize the dw_cfi_next field.
948 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
949 rather than list operations.
950 (lookup_cfa): Use vector rather than list operations.
951 (output_cfis): New argument upto. Accept a cfi_vec rather than
952 a dw_cfi_ref list head as argument. All callers changed.
953 Iterate over the vector using upto as a maximum index.
954 (output_all_cfis): New static function.
955 (output_fde): Use vector rather than list operations. Use the
956 new upto argument for output_cfis rather than manipulating a
957 list.
958 (dwarf2out_begin_prologue): Change initializations to match
959 new struct members.
960 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
961 from the vector length rather than searching for the end of a list.
962 Use output_all_cfis.
963 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
964
673a5740
NC
9652011-04-13 Nick Clifton <nickc@redhat.com>
966
967 * config/rx/rx.md (movmemsi): Do not use this pattern when
968 volatile pointers are involved.
969
1ee8b298
UB
9702011-04-13 Uros Bizjak <ubizjak@gmail.com>
971
972 * config/i386/sse.md (pinsrbits): Remove.
973 (sse2_packsswb): Merge with *avx_packsswb.
974 (sse2_packssdw): Merge with *avx_packssdw.
975 (sse2_packuswb): Merge with *avx_packuswb.
976 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
977 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
978 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
979 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
980 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
981 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
982 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
983 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
984 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
985 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
986 (sse2_loadld): Merge with *avx_loadld.
987 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
988 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
989 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
990 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
991 (vec_concatv2di): Merge with *vec_concatv2di_avx.
992
81f653d6
NF
9932011-04-12 Nathan Froyd <froydnj@codesourcery.com>
994
995 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
996 calling TREE_CHAIN.
997 * print-tree.c (print_node): Likewise.
998 * tree-inline.c (copy_tree_r): Likewise.
999 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1000 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1001 instead of TS_COMMON.
1002 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1003 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1004 (copy_node_stat): Zero TREE_CHAIN only if necessary.
1005 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1006 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1007 ...and these...
1008 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1009 * tree.h: ...here.
1010 (TREE_CHAIN): Check for a TS_COMMON structure.
1011 (TREE_TYPE): Check for a TS_TYPED structure.
1012
ed940a4a
PH
10132011-04-12 Pat Haugen <pthaugen@us.ibm.com>
1014
1015 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1016 cgraph_get_create_node instead of cgraph_node.
1017
eb345401
NP
10182011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1019
1020 * c-parser.c (c_parser_initelt): Updated call to
1021 objc_build_message_expr.
1022 (c_parser_postfix_expression): Likewise.
1023
a6c46762
KT
10242011-04-12 Kai Tietz <ktietz@redhat.com>
1025
1026 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1027 MASK_MS_BITFIELD_LAYOUT bit.
1028
b4ccfed9
JJ
10292011-04-12 Jakub Jelinek <jakub@redhat.com>
1030
1031 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1032 assert it is always true.
1033 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1034 moves.
1035
0d8a2528
NP
10362011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1037
1038 * c-parser.c (c_lex_one_token): Rewritten conditional used when
1039 compiling Objective-C to be more efficient.
1040
06bd234a
AF
10412011-04-12 Axel Freyn <axel-freyn@gmx.de>
1042
1043 * opts-common.c (decode_cmdline_options_to_array): Remove variable
1044 argv_copied.
1045
28569ac3
RS
10462011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1047
1048 * recog.h, genoutput.c, optabs.c: Revert last patch.
1049
ae59e00d
RR
10502011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1051
81b1e7eb
UB
1052 PR target/48090
1053 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 1054
cff1b7e0
RS
10552011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1056
1057 * recog.h (insn_operand_data): Add an "allows_mem" field.
1058 * genoutput.c (output_operand_data): Initialize it.
1059 * optabs.c (maybe_legitimize_operand_same_code): New function.
1060 (maybe_legitimize_operand): Use it when matching the original
1061 op->value.
1062
77059241
RS
10632011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1064
1065 * genpreds.c (process_define_predicate): Move most processing
1066 to gensupport.c. Continue to validate the expression.
1067 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1068 (process_define_predicate): Move processing to gensupport.c.
1069 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1070 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1071 (compute_predicate_codes): Moved from genrecog.c. Add lineno
1072 argument.
1073 (valid_predicate_name_p): New function, split out from old
1074 genpreds.c:process_define_predicate.
1075 (process_define_predicate): New function, combining code from
1076 old genpreds.c and genrecog.c functions.
1077 (process_rtx): Call it for DEFINE_PREDICATE and
1078 DEFINE_SPECIAL_PREDICATE.
1079
6308e208
RS
10802011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
1081
1082 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1083 size of a '%A' memory reference.
1084 (T_DREG, T_QREG): New neon_builtin_type_bits.
1085 (arm_init_neon_builtins): Assert that the load and store operands
1086 are neon_struct_operands.
1087 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1088 (NEON_ARG_MEMORY): New builtin_arg.
1089 (neon_dereference_pointer): New function.
1090 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1091 Handle NEON_ARG_MEMORY.
1092 (arm_expand_neon_builtin): Update after above interface changes.
1093 Use NEON_ARG_MEMORY for loads and stores.
1094 * config/arm/predicates.md (neon_struct_operand): New predicate.
1095 * config/arm/iterators.md (V_two_elem): Tweak formatting.
1096 (V_three_elem): Use BLKmode for accesses that have no associated mode.
1097 (V_four_elem): Tweak formatting.
1098 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1099 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1100 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1101 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1102 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1103 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1104 (neon_vst4<mode>): Replace pointer operand with a memory operand.
1105 Use %A in the output template.
1106 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1107 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1108 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1109 the width of the memory access. Remove post-increment.
1110 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1111
e5db8f2f
NC
11122011-04-12 Nick Clifton <nickc@redhat.com>
1113
1114 * config/v850/v850.c (expand_prologue): Do not use the CALLT
1115 instruction for interrupt handlers if the target is the basic V850
1116 architecture.
1117 (expand_epilogue): Likewise.
1118
74f091d6
JJ
11192011-04-12 Jakub Jelinek <jakub@redhat.com>
1120
1121 PR rtl-optimization/48549
1122 * combine.c (propagate_for_debug): Also stop after BB_END of
1123 this_basic_block. Process LAST and just stop processing after it.
1124 (combine_instructions): If last_combined_insn has been deleted,
1125 set last_combined_insn to its PREV_INSN.
1126
f20ca725
RG
11272011-04-12 Richard Guenther <rguenther@suse.de>
1128
1129 PR tree-optimization/46076
1130 * gimple.h (struct gimple_statement_call): Add fntype field.
1131 (gimple_call_fntype): Adjust.
1132 (gimple_call_set_fntype): New function.
1133 * gimple.c (gimple_build_call_1): Set the call function type.
1134 * gimplify.c (gimplify_call_expr): Preserve the function
1135 type the frontend used for the call.
1136 (gimplify_modify_expr): Likewise.
1137 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1138 function type.
1139 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1140 function type.
1141 * tree-ssa.c (useless_type_conversion_p): Function pointer
1142 conversions are useless.
1143
a358e188
MJ
11442011-04-12 Martin Jambor <mjambor@suse.cz>
1145
1146 * cgraph.h (cgraph_node): Remove function declaration.
1147 (cgraph_create_node): Declare.
1148 (cgraph_get_create_node): Likewise.
1149 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1150 Updated all callers.
1151 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1152 the decl does not already exist. Call cgraph_get_create_node instead
1153 of cgraph_node.
1154 (cgraph_get_create_node): New function.
1155 (cgraph_same_body_alias): Update comment.
1156 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1157 assert it does not return NULL.
1158 (cgraph_update_edges_for_call_stmt): Likewise.
1159 (cgraph_clone_edge): Likewise.
1160 (cgraph_create_virtual_clone): Likewise.
1161 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1162 instead of cgraph_node.
1163 (cgraph_add_new_function): Call cgraph_create_node or
1164 cgraph_get_create_node instead of cgraph_node.
1165 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1166 instead of cgraph_node.
1167 (record_eh_tables): Likewise.
1168 (mark_address): Likewise.
1169 (mark_load): Likewise.
1170 (build_cgraph_edges): Call cgraph_get_create_node instead
1171 of cgraph_node.
1172 (rebuild_cgraph_edges): Likewise.
1173 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1174 instead of cgraph_node.
1175 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1176 cgraph_node.
1177 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1178 cgraph_create_node instead of cgraph_node.
1179 * c-decl.c (finish_function): Call cgraph_get_create_node instead
1180 of cgraph_node.
1181 * lto-cgraph.c (input_node): Likewise.
1182 * lto-streamer-in.c (input_function): Likewise.
1183 * varasm.c (mark_decl_referenced): Likewise.
1184 (assemble_alias): Likewise.
1185
fe660d7b
MJ
11862011-04-12 Martin Jambor <mjambor@suse.cz>
1187
1188 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1189 instead of cgraph_node and assert it does not return NULL.
1190 * lto-streamer-in.c (lto_read_body): Likewise.
1191 * omp-low.c (new_omp_context): Likewise.
1192 (create_task_copyfn): Likewise.
1193 * tree-emutls.c (lower_emutls_function_body): Likewise.
1194 * matrix-reorg.c (transform_allocation_sites): Likewise.
1195
bae5cddf
JJ
11962011-04-12 Jakub Jelinek <jakub@redhat.com>
1197
1198 PR c/48552
1199 * c-typeck.c (build_asm_expr): Error out on attempts to use
1200 void type outputs or inputs for constraints that allow reg or
1201 don't allow memory.
1202
06eb52ca
CLT
12032011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
1204 Richard Earnshaw <rearnsha@arm.com>
1205
1206 PR target/48250
1207 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1208 to use sign-magnitude offsets. Reject unsupported unaligned
1209 cases. Add detailed description in comments.
1210 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1211 condition from TARGET_32BIT to TARGET_ARM.
1212
648a616b
NF
12132011-04-11 Nathan Froyd <froydnj@codesourcery.com>
1214
1215 * tree.h (struct typed_tree): New.
1216 (struct tree_common): Include it instead of tree_base.
1217 (TREE_TYPE): Update for new location of type field.
1218 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1219 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1220 (union tree_node): Add typed field.
1221 * treestruct.def (TS_TYPED): New.
1222 * lto-streamer.c (check_handled_ts_structures): Handle it.
1223 * tree.c (MARK_TS_TYPED): New macro.
1224 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1225
1e6d1da0
EB
12262011-04-11 Eric Botcazou <ebotcazou@adacore.com>
1227
1228 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1229 (force_nonfallthru): Do not alter the loop nest if no basic block
1230 was created.
1231
12322011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
1233
1234 * config/i386/sse.md (VI): New mode iterator.
1235 (SSEMODEI): Remove.
1236 (AVX256MODEI): Ditto.
1237 (AVXMODEF4P): Ditto.
1238 (avxvecpsmode): Ditto.
1239 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
1240 (sse2_andnot<mode>3): New expander.
1241 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1242 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
1243 (<any_logic:code><mode>3): Use VI mode iterator.
1244 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1245 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
1246 (*andnottf3): Handle AVX three-operand constraints.
1247 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1248
b1372d5d 12492011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 1250 Robert Millan <rmh@gnu.org>
b1372d5d
JM
1251
1252 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1253 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1254 GNU_USER_DYNAMIC_LINKER64): Define.
1255 (REG_NAME): Don't undefine.
1256 (MD_UNWIND_SUPPORT): Undefine.
1257 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1258 (REG_NAME): Don't undefine.
1259 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 1260 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 1261
761c0c6e
JM
12622011-04-11 Joseph Myers <joseph@codesourcery.com>
1263
1264 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1265 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1266
26e0228f
XDL
12672011-04-11 Xinliang David Li <davidxl@google.com>
1268
1269 * value-profile.c (check_ic_target): New function.
1270 (gimple_ic_transform): Sanity check indirect call target.
1271 * gimple-low.c (gimple_check_call_args): Interface change.
1272 (gimple_check_call_matching_types): New function.
1273 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
1274
12752011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
1276
1277 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1278 tree-pretty-print.h & realmpfr.h.
1279
a58dfa49
VM
12802011-04-11 Vladimir Makarov <vmakarov@redhat.com>
1281
1282 PR middle-end/48464
1283 * ira.c (setup_pressure_classes): Fix typo in loop condition.
1284 (setup_allocno_and_important_classes): Ditto.
1285
107fd1c1
JM
12862011-04-11 Joseph Myers <joseph@codesourcery.com>
1287
1288 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1289 GNU_USER_DYNAMIC_LINKER.
1290 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1291 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1292 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1293 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1294 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1295 GNU_USER_TARGET_OS_CPP_BUILTINS.
1296 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1297 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1298 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1299 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1300 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1301 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1302 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1303 GNU_USER_TARGET_OS_CPP_BUILTINS.
1304 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1305 GNU_USER_DYNAMIC_LINKER.
1306 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1307 GNU_USER_TARGET_OS_CPP_BUILTINS.
1308 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1309 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1310 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1311 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1312 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1313 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1314 GNU_USER_DYNAMIC_LINKER64): Remove.
1315 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1316 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1317 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1318 GNU_USER_DYNAMIC_LINKER.
1319 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1320 GNU_USER_TARGET_OS_CPP_BUILTINS.
1321 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1322 GNU_USER_TARGET_OS_CPP_BUILTINS.
1323 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1324 to GNU_USER_TARGET_OS_CPP_BUILTINS.
1325 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1326 GNU_USER_TARGET_OS_CPP_BUILTINS.
1327 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
1328 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
1329 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1330 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
1331 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1332 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1333 GNU_USER_DYNAMIC_LINKER.
1334 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1335 GNU_USER_TARGET_OS_CPP_BUILTINS.
1336 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
1337 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1338 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1339 GNU_USER_DYNAMIC_LINKER.
1340 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1341 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1342 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
1343 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1344 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1345 GNU_USER_DYNAMIC_LINKER.
1346 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
1347 GNU_USER_DYNAMIC_LINKERN32.
1348 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
1349 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
1350 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
1351 GNU_USER_DYNAMIC_LINKER32.
1352 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
1353 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1354 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1355 GNU_USER_DYNAMIC_LINKER.
1356 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1357 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1358 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
1359 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 1360 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
1361 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
1362 GNU_USER_DYNAMIC_LINKER32.
1363 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1364 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
1365 GNU_USER_DYNAMIC_LINKER.
1366 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
1367 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1368 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1369 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
1370 GNU_USER_DYNAMIC_LINKER64.
1371 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
1372 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1373 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1374 GNU_USER_DYNAMIC_LINKER.
1375 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
1376 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1377 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1378 GNU_USER_DYNAMIC_LINKER.
1379 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
1380 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1381 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1382 GNU_USER_DYNAMIC_LINKER32.
1383 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1384 GNU_USER_DYNAMIC_LINKER64.
1385 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1386 GNU_USER_DYNAMIC_LINKER64.
1387 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
1388 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1389 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
1390 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 1391 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 1392
e24609cf
JM
13932011-04-11 Joseph Myers <joseph@codesourcery.com>
1394
1395 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
1396 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
1397 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
1398 GNU_USER_DYNAMIC_LINKER.
1399 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1400 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
1401 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
1402 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
1403 GNU_USER_DYNAMIC_LINKER64.
1404 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1405 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
1406 GNU_USER_LINK_EMULATION.
1407 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
1408 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
1409 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
1410 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
1411 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
1412 CPP_SPEC, CC1_SPEC): Remove.
1413 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
1414 (GNU_USER_DYNAMIC_LINKER): Define.
1415 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
1416 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
1417 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
1418 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
1419 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
1420 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
1421 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1422 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
1423 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
1424 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
1425 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
1426 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
1427 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
1428 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
1429 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
1430 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1431 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1432 GNU_USER_DYNAMIC_LINKER.
1433 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1434 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1435 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1436 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1437 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1438 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
1439 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
1440 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
1441 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 1442 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 1443
b8ce4e94
KT
14442011-04-11 Kai Tietz <ktietz@redhat.com>
1445
1446 PR target/9601
1447 PR target/11772
1448 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
1449 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
1450 comment.
1451 (ix86_is_msabi_thiscall): Removed.
1452 (ix86_is_type_thiscall): Likewise.
1453 (ix86_get_callcvt): New function.
1454 (ix86_comp_type_attributes): Simplify check.
1455 (ix86_function_regparm): Use ix86_get_callcvt for calling
1456 convention attribute checks.
1457 (ix86_return_pops_args): Likewise.
1458 (ix86_static_chain): Likewise.
1459 (x86_this_parameter): Likewise.
1460 (x86_output_mi_thunk): Likewise.
1461 (ix86_function_type_abi): Optimize check for types without attributes.
1462 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
1463 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
1464 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
1465 by flag-values.
1466 (IX86_BASE_CALLCVT): Helper macro.
1467 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1468 Use ix86_get_callcvt for calling convention attribute checks and avoid
1469 symbol-decoration for stdcall in TARGET_RTD case.
1470 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
1471 Likewise.
1472 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
1473 for declaration.
1474
798dd0ba
UB
14752011-04-11 Uros Bizjak <ubizjak@gmail.com>
1476
1477 * config/i386/sse.md (VI_128): New mode iterator.
1478 (VI12_128): Rename from SSEMODE12.
1479 (VI14_128): Rename from SSEMODE14.
1480 (VI124_128): New mode iterator.
1481 (VI24_128): Rename from SSEMODE248.
1482 (VI248_128): Rename from SSEMODE248.
1483 (SSEMODE124C8): Remove.
1484 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1485 (*sse2_<plusminus_insn><mode>3): Merge with
1486 *avx_<plusminus_insn><mode>3.
1487 (*mulv8hi3): Merge with *avx_mulv8hi3.
1488 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
1489 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
1490 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
1491 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
1492 (ashr<mode>3): Merge with *avx_ashr<mode>3.
1493 (lshr<mode>3): Merge with *avx_lshr<mode>3.
1494 (ashl<mode>3): Merge with *avx_ashl<mode>3.
1495 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
1496 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
1497 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1498 (*<smaxmin:code>v8hi3): Ditto.
1499 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
1500 (*<smaxmin:code>v16qi3): Ditto.
1501 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
1502 (*sse2_eq<mode>3): Ditto.
1503 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
1504 (*sse2_gt<mode>3): Ditto.
1505 (vcondv2di): Split out of vcond<mode>.
1506 (vconduv2di): Split out of vcondu<mode>.
1507
956011be
RG
15082011-04-11 Richard Guenther <rguenther@suse.de>
1509
1510 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
1511 before calling tree_low_cst.
1512
e6313a78
RG
15132011-04-11 Richard Guenther <rguenther@suse.de>
1514
1515 * stor-layout.c (layout_type): Compute all array index size operations
1516 in the original type.
1517 (initialize_sizetypes): Add comment.
1518 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
1519
e69d7376
JM
15202011-04-11 Joseph Myers <joseph@codesourcery.com>
1521
1522 * common.opt (Tbss=, Tdata=, Ttext=): New options.
1523
9f9ebcdf
MJ
15242011-04-11 Martin Jambor <mjambor@suse.cz>
1525
1526 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
1527 of cgraph_node, handle NULL return value.
1528 (cgraph_global_info): Likewise.
1529 (cgraph_rtl_info): Likewise.
1530 * tree-inline.c (estimate_num_insns): Likewise.
1531 * gimplify.c (unshare_body): Likewise.
1532 (unvisit_body): Likewise.
1533 (gimplify_body): Likewise.
1534 * predict.c (optimize_function_for_size_p): Likewise.
1535 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1536 (call_may_clobber_ref_p_1): Likewise.
1537 * varasm.c (function_section_1): Likewise.
1538 (assemble_start_function): Likewise.
1539
581985d7
MJ
15402011-04-11 Martin Jambor <mjambor@suse.cz>
1541
1542 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
1543 of cgraph_node.
1544 * final.c (rest_of_clean_state): Likewise.
1545 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
1546 * passes.c (pass_init_dump_file): Likewise.
1547 (execute_all_ipa_transforms): Likewise.
1548 (function_called_by_processed_nodes_p): Likewise.
1549 * predict.c (maybe_hot_frequency_p): Likewise.
1550 (probably_never_executed_bb_p): Likewise.
1551 (compute_function_frequency): Likewise.
1552 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
1553 (unnest_nesting_tree_1): Likewise.
1554 (lower_nested_functions): Likewise.
1555 * tree-optimize.c (execute_fixup_cfg): Likewise.
1556 (tree_rest_of_compilation): Likewise.
1557 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
1558 * tree-sra.c (ipa_early_sra): Likewise.
1559 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1560 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
1561 * ipa.c (record_cdtor_fn): Likewise.
1562 * ipa-inline.c (cgraph_early_inlining): Likewise.
1563 (compute_inline_parameters_for_current): Likewise.
1564 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1565 * ipa-pure-const.c (local_pure_const): Likewise.
1566 * ipa-split.c (split_function): Likewise.
1567 (execute_split_functions): Likewise.
1568 * cgraphbuild.c (build_cgraph_edges): Likewise.
1569 (rebuild_cgraph_edges): Likewise.
1570 (cgraph_rebuild_references): Likewise.
1571 (remove_cgraph_callee_edges): Likewise.
1572 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
1573 (verify_cgraph_node): Likewise.
1574 (cgraph_analyze_functions): Likewise.
1575 (cgraph_preserve_function_body_p): Likewise.
1576 (save_inline_function_body): Likewise.
1577 (save_inline_function_body): Likewise.
1578 * tree-inline.c (copy_bb): Likewise.
1579 (optimize_inline_calls): Likewise.
1580
57dbdc5a
MJ
15812011-04-11 Martin Jambor <mjambor@suse.cz>
1582
1583 PR tree-optimization/48195
1584 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
1585 ipa_check_create_edge_args.
1586 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
1587 ipa_check_create_edge_args.
1588 * ipa-inline.c (inline_generate_summary): Do not call
1589 ipa_check_create_node_params and ipa_check_create_edge_args.
1590 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
1591 ipa_check_create_edge_args.
1592
d108e679
AS
15932011-04-09 Anatoly Sokolov <aesok@post.ru>
1594
1595 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
1596 instead of loop.
1597 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1598 * function.c (record_hard_reg_sets): Likewise.
1599 * ira.c (compute_regs_asm_clobbered): Likewise.
1600 * sched-deps.c (sched_analyze_1): Likewise.
1601 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
1602
3411bc59
XDL
16032011-04-09 Xinliang David Li <davidxl@google.com>
1604
1605 PR tree-optimization/PR48484
1606 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
1607 has_valid_pred lazily
1608
b365495a
DS
16092011-04-09 Duncan Sands <baldrick@free.fr>
1610
1611 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
1612
68bc509a
EB
16132011-04-08 Eric Botcazou <ebotcazou@adacore.com>
1614
1615 * combine.c (combine_validate_cost): Adjust comments. Set registered
1616 cost of I0 to zero at the end, if any.
1617
041e059f
XDL
16182011-04-08 Xinliang David Li <davidxl@google.com>
1619
68bc509a
EB
1620 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
1621 to insane profile data.
041e059f 1622
6a801cf2
XDL
16232011-04-08 Xinliang David Li <davidxl@google.com>
1624
1625 * final.c (dump_basic_block_info): New function.
1626 (final): Dump basic block.
1627 (final_scan_insn): Remove old dump.
1628
d5f3624e
SK
16292011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
1630
68bc509a
EB
1631 PR target/47829
1632 * config.gcc (i386-*-freebsd): Disable unwind table generation for
1633 crtbegin/crtend.
d5f3624e 1634
42821aff
MM
16352011-04-08 Michael Matz <matz@suse.de>
1636
1637 PR middle-end/48389
1638 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
1639 functions.
1640 (rebuild_jump_labels): Call rebuild_jump_labels_1.
1641 * rtl.h (rebuild_jump_labels_chain): Declare.
1642 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
1643 insns inserted on edges.
1644
ad7be009
JM
16452011-04-08 Joseph Myers <joseph@codesourcery.com>
1646
1647 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
1648 * config/arm/arm-arches.def: New.
1649 * config/arm/arm-opts.h: New.
1650 * config/arm/genopt.sh: New.
1651 * config/arm/arm-tables.opt: New (generated).
1652 * config/arm/arm.c (arm_handle_option, arm_target_help,
1653 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
1654 (all_architectures): Get most table contents from arm-arches.def.
1655 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
1656 arm_selected_tune here.
1657 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
1658 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
1659 (march=, mcpu=, mtune=): Use Enum and Var.
1660 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
1661 (arm.o): Update dependencies.
ecbb6fb7 1662
42821aff 16632011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
1664
1665 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
1666 of header_file.
1667 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
1668 (write_typed_alloc_defns): Likewise.
1669 (main): Calls write_typed_alloc_defns with output_header.
1670
8d189b3f
VM
16712011-04-08 Vladimir Makarov <vmakarov@redhat.com>
1672
68bc509a 1673 PR inline-asm/48435
8d189b3f
VM
1674 * ira-color.c (setup_profitable_hard_regs): Add comments.
1675 Don't take prohibited hard regs into account.
1676 (setup_conflict_profitable_regs): Rename to
1677 get_conflict_profitable_regs.
1678 (check_hard_reg_p): Check prohibited hard regs.
1679
44f370bf
NF
16802011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1681
1682 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
1683 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
1684 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
1685
483d7ad3
JDA
16862011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1687
1688 PR target/48366
1689 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 1690 move from floating point to shift amount register.
483d7ad3
JDA
1691 (emit_move_sequence): Remove secondary reload support for floating
1692 point to shift amount amount register copies.
1693 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
1694 amount register copies.
1695 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
1696 register, return false if mode isn't a scalar integer mode.
1697 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
1698
97e03fa1
RG
16992011-04-08 Richard Guenther <rguenther@suse.de>
1700
1701 * gimple.c (gimple_call_flags): Remove kludge.
1702
9d40778b
AM
17032011-04-08 Alexander Monakov <amonakov@ispras.ru>
1704
1705 * sel-sched.c (sel_region_init): Move call to
1706 sel_setup_region_sched_flags after setup_current_loop_nest.
1707
19ac7892
AB
17082011-04-08 Andrey Belevantsev <abel@ispras.ru>
1709
1710 PR rtl-optimization/48272
19ac7892
AB
1711 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
1712 init_insn_reg_pressure_info. Adjust a caller.
1713 * sched-int.h (init_insn_reg_pressure_info): Declare.
1714 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
1715 when sched-pressure is enabled.
1716
0f8c63cc
RG
17172011-04-08 Richard Guenther <rguenther@suse.de>
1718
1719 * gimple.c (gimple_set_modified): Do not queue calls to
1720 MODIFIED_NORETURN_CALLS here ...
1721 * tree-ssa-operands.c (update_stmt_operands): ... but here.
1722
5e5a425e
RG
17232011-04-08 Richard Guenther <rguenther@suse.de>
1724
1725 PR lto/48467
1726 * toplev.c (lang_dependent_init): Do not open asm_out_file
1727 in WPA mode, nor perform debug machinery initialization.
1728 (finalize): Do not unlink asm_out_file in WPA mode.
1729
9bfc434b
RG
17302011-04-08 Richard Guenther <rguenther@suse.de>
1731
1732 * gimple.h (gimple_call_fntype): New function.
1733 (gimple_call_return_type): Use it.
1734 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
1735 * gimple-low.c (gimple_check_call_args): Likewise.
1736 * gimple.c (gimple_call_flags): Likewise.
1737 (gimple_call_arg_flags): Likewise.
1738 (gimple_call_return_flags): Likewise.
1739 * tree-cfg.c (verify_gimple_call): Likewise.
1740 (do_warn_unused_result): Likewise.
1741 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
1742 * value-prof.c (gimple_ic_transform): Fix fndecl check.
1743
7c1f0b40
DM
17442011-04-08 Dmitry Melnik <dm@ispras.ru>
1745
1746 PR rtl-optimization/48235
1747 * sel-sched.c (code_motion_process_successors): Recompute the last
1748 insn in basic block if control flow changed.
1749 (code_motion_path_driver): Ditto. Recompute the first insn as well.
1750 Update condition for ilist_remove.
1751
ea4d630f
AM
17522011-04-08 Alexander Monakov <amonakov@ispras.ru>
1753
1754 PR rtl-optimization/48302
1755 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
1756 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
1757 it to record added preheader blocks.
1758 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
1759 on to sel_add_loop_preheaders.
1760 (sel_region_init): Move call to setup_current_loop_nest after
1761 sel_init_bbs.
1762
07643d76
AM
17632011-04-08 Alexander Monakov <amonakov@ispras.ru>
1764
1765 PR target/48273
1766 * cfgloop.h (loop_has_exit_edges): New helper.
1767 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
1768 non-clonable.
1769 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
1770 that have no exit edges.
1771
1f3b2b4e
AM
17722011-04-08 Alexander Monakov <amonakov@ispras.ru>
1773
1774 PR rtl-optimization/48442
1775 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
1776 all callers. Adjust assert.
1777
554f1948
JJ
17782011-04-08 Jakub Jelinek <jakub@redhat.com>
1779
1780 PR tree-optimization/48377
1781 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
1782 is_packed to true even for types with smaller TYPE_ALIGN than
1783 TYPE_SIZE.
1784
ddf72388
RG
17852011-04-08 Richard Guenther <rguenther@suse.de>
1786
1787 PR bootstrap/48513
1788 * doc/tm.texi: Re-generate.
1789
0c27e2d8
WG
17902011-04-08 Wei Guozhi <carrot@google.com>
1791
1792 PR target/47855
1793 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
1794 * config/arm/arm.c (arm_attr_length_push_multi): New function.
1795 * config/arm/arm.md (*push_multi): Change the length computation to
1796 call a C function.
1797
07c5f94e
AS
17982011-04-08 Anatoly Sokolov <aesok@post.ru>
1799
1800 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
1801 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
1802 * doc/tm.texi: Regenerate.
1803 * system.h (ASM_OUTPUT_BSS): Poison.
1804 * varasm.c (asm_output_bss): Remove function.
1805 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 1806
07c5f94e
AS
1807 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
1808 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
1809 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
1810 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1811 Likewise.
1812 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1813 Likewise.
1814 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1815 Likewise.
1816 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1817
5f2c36e1
JM
18182011-04-07 Joseph Myers <joseph@codesourcery.com>
1819
1820 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
1821 EnumValue lines.
1822
39e7722b
JM
18232011-04-07 Joseph Myers <joseph@codesourcery.com>
1824
1825 * config/m68k/m68k.c (m68k_handle_option): Don't handle
1826 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
1827 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
1828 OPT_mcpu32.
1829 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1830 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
1831 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
1832 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
1833 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
1834 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
1835 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1836 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
1837 options. Don't map other m68k options manually. Don't handle
1838 old-style options as canonical.
1839 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 1840 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 1841
cf103ca4
EB
18422011-04-07 Eric Botcazou <ebotcazou@adacore.com>
1843
1844 * basic-block.h (force_nonfallthru): Move to...
1845 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
1846 (force_nonfallthru): ...here.
1847 * cfghooks.c (force_nonfallthru): New function.
1848 * cfgrtl.c (force_nonfallthru): Rename into...
1849 (rtl_force_nonfallthru): ...this.
1850 (commit_one_edge_insertion): Do not set AUX field.
1851 (commit_edge_insertions): Do not discover new basic blocks.
1852 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
1853 (cfg_layout_rtl_cfg_hooks): Likewise.
1854 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
1855 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
1856 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
1857
14431f58
AS
18582011-04-07 Anatoly Sokolov <aesok@post.ru>
1859
1860 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
1861 Remove macros.
1862
3729983c
UB
18632011-04-07 Uros Bizjak <ubizjak@gmail.com>
1864
1865 * config/i386/sse.md: Update copyright year.
1866 (avxcvtvecmode): Remove.
1867 (sse_movhlps): Merge with *avx_movhlps.
1868 (sse_movlhps): Merge with *avx_movlhps.
1869 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
1870 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
1871 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
1872 (sse_loadhps): Merge with *avx_loadhps.
1873 (sse_storelps): Merge with *avx_storelps.
1874 (sse_loadlps): Merge with *avx_loadlps.
1875 (sse_movss): Merge with *avx_movss.
1876 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
1877 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
1878 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
1879 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
1880 (vec_set<mode>_0): Ditto.
1881 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
1882 (sse4_1_insertps): Merge with *avx_insertps.
1883 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
1884 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
1885 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
1886 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
1887 (sse2_storehpd): Merge with *avx_storehpd.
1888 (sse2_loadhpd): Merge with *avx_loadhpd.
1889 (sse2_loadlpd): Merge with *avx_loadlpd.
1890 (sse2_movsd): Merge with *avx_movsd.
1891 (*vec_concatv2df): Merge with *vec_concatv2df.
1892
4e626909
JJ
18932011-04-07 Jakub Jelinek <jakub@redhat.com>
1894
1895 PR debug/48343
1896 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 1897 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
1898 (try_combine): Add last_combined_insn parameter, pass it instead of
1899 i3 to propagate_for_debug.
1900
3729983c 19012011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
1902
1903 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
1904 to handle MDR <-> data register transfers.
1905 (movhi_internal): Likewise.
1906
20c03367
AM
19072011-04-07 Alan Modra <amodra@gmail.com>
1908
1909 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
1910 previous stack info.
1911
bf22920b
TV
19122011-04-07 Tom de Vries <tom@codesourcery.com>
1913
1914 PR target/43920
1915 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
1916 flow_find_cross_jump. Swap variables to implement backward replacement.
1917 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
1918
823918ae
TV
19192011-04-07 Tom de Vries <tom@codesourcery.com>
1920
1921 PR target/43920
1922 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
1923 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
1924 and bb2.
1925 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
1926 src1 or src2. Redirect edges to the last basic block. Update
1927 frequency and count on multiple basic blocks in case of fallthru.
823918ae 1928
472c95f5
TV
19292011-04-07 Tom de Vries <tom@codesourcery.com>
1930
1931 PR target/43920
1932 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
1933 function.
3729983c
UB
1934 (old_insns_match_p): Change return type. Replace return false/true
1935 with return dir_none/dir_both. Use can_replace_by.
1936 (flow_find_cross_jump): Add dir_p parameter. Init replacement
1937 direction from dir_p. Register replacement direction in dir, last_dir
1938 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
1939 merge_dir. Return replacement direction in dir_p.
1940 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
1941 return type of old_insns_match_p.
1942 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
1943 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
1944 flow_find_cross_jump.
1945 * basic-block.h (enum replace_direction): New type.
1946 (flow_find_cross_jump): Add parameter to declaration.
1947
a95d4000
UB
19482011-04-06 Uros Bizjak <ubizjak@gmail.com>
1949
1950 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
1951 (AVXMODEDCVTPS2DQ): Ditto.
1952 (VEC_FLOAT_MODE): Ditto.
1953 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
1954 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1955 (<any_logic:code><mode>3): Use VF mode iterator.
1956 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
1957 Use VF mode iterator.
1958 (copysign<mode>3): Use VF mode iterator.
1959 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
1960 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1961 (*<any_logic:code><MODEF:mode>3): Merge with
1962 *avx_<any_logic:code><MODEF:mode>3.
1963 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
1964 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
1965 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
1966 (avx_cvtdq2ps<avxmodesuffix>): Remove.
1967 (sse2_cvtdq2ps): Use %v modifier.
1968 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
1969 (avx_cvtps2dq<avxmodesuffix>): Remove.
1970 (sse2_cvtps2dq): Use %v modifier.
1971 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
1972 (avx_cvttps2dq<avxmodesuffix>): Remove.
1973 (sse2_cvttps2dq): Use %v modifier.
1974 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
1975 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
1976 (sse2_cvtsd2siq): Fix insn template.
1977 (sse2_cvtsd2siq_2): Ditto.
1978 (sse2_cvttsd2siq): Ditto.
1979 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
1980 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
1981
ad01c437
JM
19822011-04-06 Joseph Myers <joseph@codesourcery.com>
1983
1984 * gcov-io.c: Use GCC Runtime Library Exception.
1985
fe846284
JJ
19862011-04-06 Jakub Jelinek <jakub@redhat.com>
1987
1988 PR debug/48466
1989 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
1990 as base_reg whatever register reg has been eliminated to, instead
1991 of hardcoding STACK_POINTER_REGNUM.
1992
acce4e77
JM
19932011-04-06 Joseph Myers <joseph@codesourcery.com>
1994
1995 * doc/tm.texi.in: Document C target hooks as separate from general
1996 target hooks.
1997 * doc/tm.texi: Regenerate.
1998 * genhooks.c (struct hook_desc): Add docname field.
1999 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
2000 docname field.
2001 (hook_array): Include c-target.def.
2002 (emit_documentation): Use docname field in output.
2003 (emit_init_macros): Take docname argument. Only emit definitions
2004 for hooks matching docname.
2005 (main): Expect additional arguments in all cases. Pass argument
2006 to emit_init_macros.
2007 * target.def: Move initial macro definitions and comments to
2008 target-hooks-macros.h.
2009 (gcc_targetcm): Move to c-family/c-target.def.
2010 * target.h (targetcm): Move declaration to c-family/c-target.h.
2011 * targhooks.c (default_handle_c_option): Move to
2012 c-family/c-opts.c.
2013 * targhooks.h (default_handle_c_option): Move declaration to
2014 c-family/c-common.h.
2015 * target-hooks-macros.h: New file.
2016 * config.gcc (target_has_targetcm): Define and use to add to
2017 c_target_objs and cxx_target_objs.
2018 * config/default-c.c: New file.
2019 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2020 of target.h and target-def.h.
2021 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2022 (darwin_objc_construct_string, darwin_cfstring_ref_p,
2023 darwin_check_cfstring_format_arg): Make static.
2024 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2025 TARGET_STRING_OBJECT_REF_TYPE_P,
2026 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2027 * config/darwin-protos.h (darwin_objc_construct_string,
2028 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2029 declare.
2030 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2031 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 2032 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
2033 * config/t-darwin (darwin-c.o): Update dependencies.
2034 * system.h (TARGET_HAS_TARGETCM): Poison.
2035 * Makefile.in (TARGET_H): Update.
2036 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2037 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2038 (default-c.o): New target.
2039 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 2040 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
2041 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
2042 c-target.def.
2043 (build/genhooks.o): Update dependencies.
2044
275b4baa 20452011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 2046
275b4baa
RG
2047 * ipa-inline.c (enum inlining_mode): Remove.
2048 (cgraph_flatten): Use some other token.
2049 (cgraph_edge_early_inlinable_p): New function, split out from ...
2050 (cgraph_perform_always_inlining): New function, split out from ...
2051 (cgraph_decide_inlining_incrementally): ... here.
2052 (cgraph_mark_inline_edge): Adjust.
2053 (cgraph_early_inlining): Re-structure.
2054 (pass_early_inline): Require SSA form.
2055
f15b8bdf 20562011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
2057 Julian Brown <julian@codesourcery.com>
2058 Mark Shinwell <shinwell@codesourcery.com>
2059
2060 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2061 LO_REGS only for Thumb-1.
2062 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2063 be used in short instructions when optimising for size on Thumb-2.
2064
516426da
EB
20652011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2066
2067 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2068 associated with user returns to be preserved.
2069
96621ebf
TG
20702011-04-06 Tristan Gingold <gingold@adacore.com>
2071
f15b8bdf
EB
2072 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2073 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
2074 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2075 if XCOFF_DEBUGGING_INFO.
2076
07c0852e
UB
20772011-04-06 Uros Bizjak <ubizjak@gmail.com>
2078
2079 * config/i386/i386.md (attribute isa): New.
2080 (attribute enabled): New.
2081 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2082 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2083 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2084 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2085 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2086 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2087 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2088 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2089
2090 * config/i386/sse.md (VF): New mode iterator.
2091 (VF1): Ditto.
2092 (VF2): Ditto.
2093 (VF_128): Ditto.
2094 (SSEMODEF4): Remove.
2095 (attribute sse): Handle V8SF and V4DF modes.
2096 (<absneg:code><mode>2): Use VF mode iterator.
2097 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
2098 mode iterator.
2099 (<plusminus_insn><mode>3): Use VF mode iterator.
2100 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2101 Use VF mode iterator.
2102 (<sse>_vm<plusminus_insn><mode>3): Merge with
2103 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
2104 (mul<mode>3): Use VF mode iterator.
2105 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
2106 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
2107 mode iterator.
2108 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2109 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2110 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
2111 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
2112 mode iterator.
2113 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2114 Use VF1 mode iterator.
2115 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2116 (sqrt<VF2:mode>2): New expander.
2117 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2118 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2119 and sqrtv2df2. Use VF mode iterator.
2120 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
2121 mode iterator.
2122 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2123 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2124 Use VF1 mode iterator.
2125 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2126 (<smaxmin:code><mode>3): Use VF mode iterator.
2127 (*<smaxmin:code><mode>3_finite): Merge with
2128 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
2129 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2130 (<sse>_vm<smaxmin:code><mode>2): Merge with
2131 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
2132 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
2133 mode iterator.
2134 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
2135 mode iterator.
2136 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2137 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2138 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2139 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2140 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
2141 VF mode iterator.
2142 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2143 Use VF_128 mode iterator.
2144 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
2145 mode iterator.
2146 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
2147 VF_128 mode iterator.
2148 (vcond<mode>): Use VF mode iterator.
2149 * config/i386/predicates.md (sse_comparison_operator): Merge with
2150 avx_comparison_float_operator. Do not declare as special_predicate.
2151 * config/i386/i386.c (struct builtin_description): Update for renamed
2152 compare patterns.
2153 (ix86_expand_args_builtin): Ditto.
2154 (ix86_expand_sse_compare_mask): Ditto.
2155
ff5d142c
RG
21562011-04-06 Richard Guenther <rguenther@suse.de>
2157
2158 * tree-inline.c (estimate_num_insns): For calls simply account
2159 for all passed arguments and a used return value.
2160
d7d1d041 21612011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 2162
d7d1d041
RG
2163 PR tree-optimization/47663
2164 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2165 call_stmt_time fields.
2166 (cgraph_edge_inlinable_p): Declare.
2167 (cgraph_edge_recursive_p): New inline function.
2168 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2169 (cgraph_clone_edge): Copy it.
2170 * ipa-inline.c (cgraph_estimate_edge_time): New function.
2171 Account for call stmt time.
2172 (cgraph_estimate_time_after_inlining): Take edge argument.
2173 (cgraph_estimate_edge_growth): Account call stmt size.
2174 (cgraph_estimate_size_after_inlining): Take edge argument.
2175 (cgraph_mark_inline_edge): Adjust.
2176 (cgraph_check_inline_limits): Likewise.
2177 (cgraph_recursive_inlining_p): Remove.
2178 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2179 (cgraph_decide_recursive_inlining): Take edge argument and
2180 adjust.
2181 (cgraph_decide_inlining_of_small_functions): Do not avoid
2182 diags for recursive inlining here.
2183 (cgraph_flatten): Adjust.
2184 (cgraph_decide_inlining_incrementally): Likewise.
2185 (estimate_function_body_sizes): Remove call cost handling.
2186 (compute_inline_parameters): Initialize caller edge call costs.
2187 (cgraph_estimate_edge_growth): New function.
2188 (cgraph_estimate_growth): Use it.
2189 (cgraph_edge_badness): Likewise.
2190 (cgraph_check_inline_limits): Take an edge argument.
2191 (cgraph_decide_inlining_of_small_functions): Adjust.
2192 (cgraph_decide_inlining): Likewise.
2193 * tree-inline.c (estimate_num_insns): Only account for call
2194 return value if it is used.
2195 (expand_call_inline): Avoid diagnostics on recursive inline
2196 functions here.
2197 * lto-cgraph.c (lto_output_edge): Output edge call costs.
2198 (input_edge): Input edge call costs.
2199
2feb95f7
RO
22002011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2201
2202 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2203
26fbd9c2
JW
22042011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
2205
2206 * doc/invoke.texi (Spec Files): Fix typo.
2207
694dc0ca
EB
22082011-04-06 Eric Botcazou <ebotcazou@adacore.com>
2209
2210 * profile.c (branch_prob): Move declaration of local variable. Remove
2211 obsolete ??? comment. Expand the location explicitly instead of using
2212 the LOCATION_FILE and LOCATION_LINE macros.
2213
4925d0d5
WG
22142011-04-06 Wei Guozhi <carrot@google.com>
2215
2216 PR target/47855
2217 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2218 (arm_cond_branch): Likewise.
2219 (arm_cond_branch_reversed): Likewise.
2220 (arm_jump): Likewise.
2221 (push_multi): Likewise.
2222 * config/arm/constraints.md (Py): New constraint.
2223
f55dfa2f
NF
22242011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2225
2226 PR bootstrap/48471
2227 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2228 Move these...
2229 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2230 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2231 #ifdef DBX_DEBUGGING_INFO.
2232
fca96842
BS
22332011-04-05 Bernd Schmidt <bernds@codesourcery.com>
2234
2235 PR bootstrap/48403
2236 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2237 if old and new states differ.
2238
30b83e38
JM
22392011-04-05 Joseph Myers <joseph@codesourcery.com>
2240
2241 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2242 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2243 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2244 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2245 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2246 mcfv4e): Use Alias.
2247 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2248 ColdFire options to -mcpu= options.
2249
277a9aa5
JL
22502011-04-05 Jeff Law <law@redhat.com>
2251
2252 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2253 check if BB is a successor of LOOP->header and return
2254 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2255
c1e2610e
SB
22562011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2257
2258 * cprop.c (struct reg_use): Remove.
2259 (reg_use_table): Make an array of RTX.
2260 (find_used_regs, constprop_register, local_cprop_pass,
2261 bypass_block): Simplify users of reg_use_table.
2262 (cprop_insn): Likewise. Iterate if copy propagation succeeded
2263 on one of the uses found by find_used_regs.
2264
e532f586
NF
22652011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2266
2267 PR bootstrap/48469
2268 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2269 declaration.
2270
3fb7c055
NF
22712011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2272
2273 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2274 as an rtx.
2275 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2276
b71b43d9
SB
22772011-04-05 Steven Bosscher <steven@gcc.gnu.org>
2278
2279 PR middle-end/48441
2280 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2281
b405b274
NF
22822011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2283
2284 * combine.c: Include obstack.h.
2285 (struct insn_link): Define.
2286 (uid_log_links): Adjust type.
2287 (FOR_EACH_LOG_LINK): New macro.
2288 (insn_link_obstack): Declare.
2289 (alloc_insn_link): Define.
2290 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
2291 type of link variables.
2292 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2293 (try_combine, record_promoted_values, distribute_notes): Likewise.
2294 (distribute_links): Likewise. Tweak prototype.
2295 (clear_log_links): Delete.
2296 (adjust_for_new_dest): Call alloc_insn_link.
2297 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2298
6409abe3
NF
22992011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2300
2301 * gcse.c (modify_mem_list): Convert to an array of VECs.
2302 (canon_modify_mem_list, compute_transp): Tweak formatting.
2303 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
2304 (load_killed_in_block_p): Likewise.
2305 (record_last_mem_set_info): Likewise.
2306 (clear_modify_mem_tables): Likewise.
2307
170d8157
TV
23082011-04-05 Tom de Vries <tom@codesourcery.com>
2309
2310 PR middle-end/48461
2311 * function.c (emit_use_return_register_into_block): Only define if
2312 HAVE_return.
2313
c5911a55
EB
23142011-04-05 Eric Botcazou <ebotcazou@adacore.com>
2315
2316 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2317
abd016e6
JM
23182011-04-05 Joseph Myers <joseph@codesourcery.com>
2319
2320 * config/rx/rx-opts.h: New.
2321 * config/rx/rx.c (rx_cpu_type): Remove.
2322 (rx_handle_option): Don't assert that global structures are in
2323 use. Access variables via opts pointer. Defer most handling of
2324 OPT_mint_register_. Use error_at.
2325 (rx_option_override): Handle deferred OPT_mint_register_ here.
2326 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
2327 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
2328 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
2329 (rx_cpu_types): New Enum and EnumValue entries.
2330 (mint-register=): Use Defer and use Var accordingly.
2331
1ed13f83
NF
23322011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2333
2334 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
2335 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
2336 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
2337 Move these...
2338 (debug_free_queue, debug_nesting, symbol_queue_index):
2339 ...and these...
2340 * dbxout.c: ...to here. Make static.
2341
6ce1edcf
NF
23422011-04-05 Nathan Froyd <froydnj@codesourcery.com>
2343
2344 * gcse.c (modify_pair): Define. Define a VEC of it.
2345 (canon_modify_mem_list): Convert to an array of VECs.
2346 (free_insn_expr_list_list): Delete.
2347 (clear_modify_mem_tables): Call VEC_free instead.
2348 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
2349 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
2350 (canon_list_insert, compute_transp): Likewise.
2351
c201ac94
TV
23522011-04-05 Tom de Vries <tom@codesourcery.com>
2353
2354 PR target/43920
2355 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
2356 for size.
2357
4c029f40
TV
23582011-04-05 Tom de Vries <tom@codesourcery.com>
2359
2360 PR target/43920
2361 * function.c (emit_use_return_register_into_block): New function.
2362 (thread_prologue_and_epilogue_insns): Use
2363 emit_use_return_register_into_block.
2364
2a562b0a
TV
23652011-04-05 Tom de Vries <tom@codesourcery.com>
2366
2367 PR target/43920
2368 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
2369 insn.
2370
0248bceb
TV
23712011-04-05 Tom de Vries <tom@codesourcery.com>
2372
2373 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
2374
ffa94123
YZ
23752011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
2376
798dd0ba
UB
2377 * config/arm/arm.md (define_constants for unspec): Replace with
2378 define_c_enum.
2379 (define_constants for unspecv): Replace with define_c_enum.
2380 * config/arm/neon.md (define_constants for unspec): Replace with
2381 define_c_enum.
ffa94123 2382
3b8f9b46
RH
23832011-04-04 Richard Henderson <rth@redhat.com>
2384
720cf80f 2385 PR bootstrap/48400
3b8f9b46
RH
2386 * dwarf2out.c (output_line_info): Always emit line info from
2387 at least one section.
2388 (dwarf2out_init): Create text_section_line_info here ...
2389 (set_cur_line_info_table): ... not here.
2390
720cf80f 23912011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
2392
2393 PR target/48380
2394 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 2395 not called.
e5b0e1ca 2396
720cf80f 2397 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 2398
196565d4
SB
23992011-04-04 Steven Bosscher <steven@gcc.gnu.org>
2400
b77f9eab
SB
2401 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
2402 (expr_equiv_p): Remove.
2403 (insert_set_in_table): Look at <dest, src> pair instead of expr.
2404 (hash_scan_set): Update call to insert_set_in_table.
2405 (dump_hash_table): Dump <dest, src> pair.
2406 (lookup_set): Simplify. Lookup <dest, src> pair.
2407 (compute_transp): Remove, fold heavily simplified code into...
2408 (compute_local_properties): ...here. Expect COMP and TRANSP
2409 unconditionally.
2410 (find_avail_set): Take set directly from struct expr.
2411 (find_bypass-set): Likewise.
2412 (bypass_block): Likewise.
2413 (cprop_insn): Likewise. Remove redundant INSN_P test.
2414
384d7a55
SB
2415 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
2416 checks on form of COND from find_implicit_sets to here.
2417 (find_implicit_sets): Cleanup control flow. Split critical edges
2418 if it exposes implicit sets. Allocate/resize implicit_sets as
2419 necessary.
2420 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
2421 changed something. Run df_analyze after find_implicit_sets if any
2422 edges were split. Do not allocate implicit_sets here.
2423
3084ce69
SB
2424 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
2425 (gcse_obstack): Renamed to cprop_obstack.
2426 (GNEW, GNEWVEC, GNEWVAR): Remove.
2427 (gmalloc): Remove.
2428 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
2429 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
2430 (gcse_alloc): Likewise, and rename to cprop_alloc.
2431 (alloc_gcse_men, free_gcse_mem): Remove.
2432 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
2433 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
2434 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
2435
196565d4
SB
2436 * cprop.c (oprs_not_set_p): Remove.
2437 (mark_set, mark_clobber): Remove.
2438 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
2439 (reg_not_set_p): New function.
2440 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
2441 (cprop_insn): Likewise.
2442 (cprop_jump): Use FOR_EACH_EDGE.
2443
9b69cf83
BS
24442011-04-04 Bernd Schmidt <bernds@codesourcery.com>
2445
2446 PR bootstrap/48403
2447 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
2448 (rank_for_schedule): Use scheduled_insns vector instead of
2449 last_scheduled_insn.
2450 (ok_for_early_queue_removal): Likewise.
2451 (queue_to_ready): Search forward in nonscheduled_insns_begin if
2452 we have a dbg_cnt.
2453 (choose_ready): Likewise.
2454 (commit_schedule): Use VEC_iterate.
2455 (schedule_block): Initialize nonscheduled_insns_begin. If we have
2456 a dbg_cnt, use it and ensure the first insn is in the ready list.
2457 (haifa_sched_init): Allocate scheduled_insns.
2458 (sched_extend_ready_list): Don't allocate it; reserve space.
2459 (haifa_sched_finish): Free it.
2460
24f48c2f
JM
24612011-04-04 Joseph Myers <joseph@codesourcery.com>
2462
2463 * optc-gen.awk: Always remove type from Variable entry before
2464 recording in var_seen.
2465
8effe856
EB
24662011-04-04 Eric Botcazou <ebotcazou@adacore.com>
2467
2468 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
2469 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
2470 call to tidy_fallthru_edges.
2471
413519ae
JM
24722011-04-04 Joseph Myers <joseph@codesourcery.com>
2473
2474 * doc/options.texi (ToLower): Document.
3729983c 2475 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
2476 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
2477 * opts.h (cl_option): Add cl_tolower field.
2478 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
2479 arguments with lowercase strings.
2480 * config/rx/rx.opt (mcpu=): Add ToLower.
2481 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
2482 argument.
2483
7d34a1b0
RS
24842011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
2485
2486 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
2487
c30e7434
RS
24882011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
2489
2490 * config/vax/vax.c: Include reload.h.
2491
112a861d
AS
24922011-04-04 Anatoly Sokolov <aesok@post.ru>
2493
2494 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
2495 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2496 (sparc_preferred_reload_class): New function.
2497
e8c6bb74
JJ
24982011-04-04 Jakub Jelinek <jakub@redhat.com>
2499
2aeaa366 2500 PR debug/48401
e8c6bb74
JJ
2501 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2502 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
2503
2c081caf
NF
25042011-04-03 Nathan Froyd <froydnj@codesourcery.com>
2505
2506 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
2507 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
2508
53802f27
AS
25092011-04-03 Anatoly Sokolov <aesok@post.ru>
2510
2511 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
2512 (ASM_OUTPUT_ALIGNED_BSS): Define.
2513
e89964e3
MM
25142011-04-03 Michael Matz <matz@suse.de>
2515
2516 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
2517 and next_slot members.
2518 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
2519 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
2520 (lto_streamer_cache_append): Declare.
2521 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
2522 unsigned index, remove offset parameter, ensure that we append
2523 or update existing entries.
2524 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
2525 parameter, update next_slot for append.
2526 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
2527 parameter.
2528 (lto_streamer_cache_insert_at): Likewise.
2529 (lto_streamer_cache_append): New function.
2530 (lto_streamer_cache_lookup): Use unsigned index.
2531 (lto_streamer_cache_get): Likewise.
2532 (lto_record_common_node): Don't test tree_node_can_be_shared.
2533 (preload_common_node): Adjust call to lto_streamer_cache_insert.
2534 (lto_streamer_cache_delete): Don't free offsets member.
2535 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
2536 (lto_output_string_with_length): Use lto_output_data_stream.
2537 (lto_output_tree_header): Remove ix parameter, don't write it.
2538 (lto_output_builtin_tree): Likewise.
2539 (lto_write_tree): Adjust callers to above, don't track and write
2540 offset, write unsigned index.
2541 (output_unreferenced_globals): Don't emit all global vars.
2542 (write_global_references): Use unsigned indices.
2543 (lto_output_decl_state_refs): Likewise.
2544 (write_symbol): Likewise.
2545 * lto-streamer-in.c (lto_input_chain): Move earlier.
2546 (input_function): Use unsigned index.
2547 (input_alias_pairs): Don't read and then ignore all global vars.
2548 (lto_materialize_tree): Remove ix_p parameter, don't read index,
2549 don't pass it back, use lto_streamer_cache_append.
2550 (lto_register_var_decl_in_symtab): Use unsigned index.
2551 (lto_register_function_decl_in_symtab): Likewise.
2552 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
2553 index.
2554 (lto_get_builtin_tree): Don't read index, use
2555 lto_streamer_cache_append.
2556 (lto_read_tree): Adjust call to lto_materialize_tree.
2557
2558 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
2559 don't use function calls in arguments to MIN.
2560
2561 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
2562 twice.
2563
2564 * gimple.c (gimple_type_leader_entry): Mark deletable.
2565
b9a5b5b2
AM
25662011-04-03 Alan Modra <amodra@gmail.com>
2567
2568 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
2569
ac6a641b
MM
25702011-04-03 Michael Matz <matz@suse.de>
2571
2572 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
2573 an integer.
2574 * tree.h (tree_decl_non_common.vindex): Adjust comment.
2575
0038d4e0
MM
25762011-04-03 Michael Matz <matz@suse.de>
2577
e9c18386 2578 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
2579 * gimple-fold.c (canonicalize_constructor_val): Accept being called
2580 without function context.
2581 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
2582 current_function_decl and cfun.
2583
91f2fae8
MM
25842011-04-03 Michael Matz <matz@suse.de>
2585
2586 * tree.c (decl_init_priority_insert): Don't create entry for
2587 default priority.
2588 (decl_fini_priority_insert): Ditto.
2589 (fields_compatible_p, find_compatible_field): Remove.
2590 * tree.h (fields_compatible_p, find_compatible_field): Remove.
2591 * gimple.c (gimple_compare_field_offset): Adjust block comment.
2592
da29e070
EB
25932011-04-03 Eric Botcazou <ebotcazou@adacore.com>
2594
2595 * combine.c (try_combine): Remove useless local variable.
2596
4979c28b 25972011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 2598 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
2599
2600 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
2601 non-variable offsets and compare the remaining bases of the two
2602 accesses instead of looking for exact same data-ref.
2603
b4ddcaee
KT
26042011-04-02 Kai Tietz <ktietz@redhat.com>
2605
f90298e1
KT
2606 PR target/48416
2607 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
2608
b4ddcaee
KT
2609 * i386.c (ix86_is_msabi_thiscall): New helper function.
2610 (ix86_is_type_thiscall): New helper function.
2611 (ix86_comp_type_attributes): Handle thiscall for method-functions
2612 special.
2613 (init_cumulative_args): Likewise.
2614 (find_drap_reg): Likewise.
2615 (ix86_static_chain): Likewise.
2616 (x86_this_parameter): Likewise.
2617 (x86_output_mi_thunk): Likewise.
2618
2a9d769a 26192011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
2620 Nicolas Setton <setton@adacore.com>
2621 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
2622
2623 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
2624 (add_gnat_descriptive_type_attribute): New function.
2625 (gen_array_type_die): Call it.
2626 (gen_enumeration_type_die): Likewise.
2627 (gen_struct_or_union_type_die): Likewise.
2628 (modified_type_die): Likewise.
2629 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
2630 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
2631 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
2632
15a03a11
JJ
26332011-04-01 Jakub Jelinek <jakub@redhat.com>
2634
2635 PR bootstrap/48148
2636 * dwarf2out.c (resolve_addr): Don't call force_decl_die
2637 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
2638
2639 Revert:
2640 2011-03-17 Richard Guenther <rguenther@suse.de>
2641
2642 PR bootstrap/48148
2643 * lto-cgraph.c (input_overwrite_node): Clear the abstract
2644 origin for decls in other ltrans units.
2645 (input_varpool_node): Likewise.
2646
19228b93
JJ
26472011-04-01 Jakub Jelinek <jakub@redhat.com>
2648
2649 PR middle-end/48335
2650 * expr.c (expand_assignment): Handle all possibilities
2651 if TO_RTX is CONCAT.
e9c18386 2652 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
2653 (store_split_bit_field): If SUBREG_REG (op0) or
2654 op0 itself has smaller mode than word, return it
2655 for offset 0 and const0_rtx for out-of-bounds stores.
2656 If word is const0_rtx, skip it.
2657
88cb339e
N
26582011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
2659
2660 * config/h8300/h8300.c (print_operand_address): Rename to...
2661 (h8300_print_operand_address): ...this. Make static. Adjust comments.
2662 Call h8300_print_operand and h8300_print_operand_address instead of
2663 print_operand and print_operand_address. Declare.
2664 (print_operand): Renake to...
2665 (h8300_print_operand): ...this. Make static. Adjust comments.
2666 Call h8300_print_operand instead of print_operand. Declare.
2667 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
2668 (h8300_register_move_cost): Likewise.
2669 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
2670 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
2671 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
2672 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
2673 * config/h8300/h8300-protos.h (print_operand): Delete.
2674 (print_operand_address): Delete.
2675
756d6ee9
RH
26762011-04-01 Richard Henderson <rth@redhat.com>
2677
2678 PR 48400
2679 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
2680 in strict mode before dwarf4. Re-order tests to early out
2681 before switching sections.
2682
ceaaaeab
NF
26832011-04-01 Nathan Froyd <froydnj@codesourcery.com>
2684
2685 * config/h8300/constraints.md: New file.
2686 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
2687 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
2688 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
2689 * config/h8300/predicates.md (bit_operand): Likewise.
2690 (incdec_operand): Use satisfies_constraint_M and
2691 satisfies_constraint_O. Don't use C code block.
2692 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
2693 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
2694 (compute_mov_length): Use satisfies_constraint_G.
2695 (fix_bit_operand): Use satisfies_constraint_U.
2696 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
2697 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
2698 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
2699 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
2700 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
2701 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
2702 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2703 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
2704 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
2705 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
2706 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
2707 (EXTRA_MEMORY_CONSTRAINT): Delete.
2708
08ae38e0
AP
27092011-04-01 Andrew Pinski <pinskia@gmail.com>
2710 Michael Meissner <meissner@linux.vnet.ibm.com>
2711
2712 PR target/48262
2713 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
2714 operands, as per the specifications.
2715
2716 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
2717 (vec_extract_evenv4sf): Ditto.
2718 (vec_extract_evenv8hi): Ditto.
2719 (vec_extract_evenv16qi): Ditto.
2720 (vec_extract_oddv4si): Ditto.
2721
bdb0b0f6
MW
27222011-03-31 Mark Wielaard <mjw@redhat.com>
2723
2724 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
2725 high_pc attribute if the CU has no associated code. Only output
2726 DW_AT_entry_pc for CU if not generating strict dwarf and
2727 dwarf_version < 4.
2728
722279e4
BS
27292011-04-01 Bernd Schmidt <bernds@codesourcery.com>
2730
2731 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
2732 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
2733 out of ...
2734 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
2735 * final.c (final_start_function): Call the new function rather
2736 than using a NULL argument for dwarf2out_frame_debug.
2737
c5dd277d
BS
2738 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
2739 that contains the prologue.
2740
ec4efea9
BS
2741 * haifa-sched.c (queue_insn): New arg REASON. All callers
2742 changed. Print it in debugging output.
2743
2a6a0d80
BS
2744 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
2745
86014d07
BS
2746 * sched-ebb.c (begin_schedule_ready): Remove second argument.
2747 Split most of the code into...
2748 (begin_move_insn): ... here. New function.
2749 (ebb_sched_info): Add a pointer to it.
2750 * haifa-sched.c (scheduled_insns): New static variable.
2751 (sched_extend_ready_list): Allocate it.
2752 (schedule_block): Use it to record the order of scheduled insns.
2753 Perform RTL changes to move insns only after all scheduling
2754 decisions have been made.
2755 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
2756 begin_move_insn field.
2757 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
2758 * sched-int.h (struct haifa_sched_info): Remove second argument
2759 from begin_schedule_ready hook. Add new member begin_move_insn.
2760 * sched-rgn.c (begin_schedule_ready): Remove second argument.
2761 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
2762
9d701248
BS
2763 * haifa-sched.c (prune_ready_list): New function, broken out of
2764 schedule_block.
2765 (schedule_block): Use it.
2766
1ca1dad5
UW
27672011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2768
2769 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
2770
49568e45
KT
27712011-04-01 Kai Tietz <ktietz@redhat.com>
2772
2773 * config.gcc (*-*-mingw*): Allow as option the
2774 posix threading model.
07c0852e 2775 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
2776 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
2777 definition.
2778 (CPP_SPEC): Add pthread/no-pthread handling.
2779 (LIB_SPEC): Likewise.
2780 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
2781 (LIB_SPEC): Likewise.
2782 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
2783 flag to pass -pthread option for shared libgcc build.
2784 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
2785 for shared libgcc build.
2786 * config/i386/t-mingw-pthread: New file.
2787 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
2788 New define to enable use of library pthread by default.
2789 * config/i386/mingw.opt (pthread): New driver option.
2790 (no-pthread): New driver option.
e9c18386 2791 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
2792 * config/i386/mingw-w64.opt: Likewise.
2793
636b4106
GF
27942011-04-01 Gary Funck <gary@intrepid.com>
2795
2796 * c-decl.c (grokdeclarator): Fix formatting.
2797
f04713ee
RS
27982011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2799
2800 * expr.c (emit_block_move_via_movmem): Use n_generator_args
2801 instead of n_operands.
2802 (set_storage_via_setmem): Likewise.
2803 * optabs.c (maybe_gen_insn): Likewise.
2804 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
2805 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
2806 (mips_expand_builtin_direct): Likewise.
2807 * config/spu/spu.c (expand_builtin_args): Likewise.
2808
b29387ee
RS
28092011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2810
2811 * recog.h (insn_data_d): Add n_generator_args.
2812 * genoutput.c (data): Likewise.
2813 (output_insn_data): Print it.
2814 (max_opno, num_dups): Delete.
2815 (scan_operands): Just fill in "d->operand[...]".
2816 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
2817
e792559a
RS
28182011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
2819
2820 * gensupport.h (pattern_stats): New structure.
2821 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
2822 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
2823 (max_operand_1, max_operand_vec): Delete.
2824 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
2825
e8110d6f
NF
28262011-03-31 Nathan Froyd <froydnj@codesourcery.com>
2827
2828 * emit-rtl.c (emit_pattern_after_setloc): New function.
2829 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
2830 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
2831 (emit_pattern_after): New function.
2832 (emit_insn_after, emit_jump_insn_after): Call it.
2833 (emit_call_insn_after, emit_debug_insn_after): Likewise.
2834 (emit_pattern_before_setloc): New function.
2835 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
2836 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
2837 Likewise.
2838 (emit_pattern_before): New function.
2839 (emit_insn_before, emit_jump_insn_before): Call it.
2840 (emit_call_insn_before, emit_debug_insn_before): Likewise.
2841
576f85f1
RH
28422011-03-31 Richard Henderson <rth@redhat.com>
2843
2844 * dwarf2out.c (dw_separate_line_info_ref): Remove.
2845 (dw_separate_line_info_entry): Remove.
2846 (enum dw_line_info_opcode): New.
2847 (dw_line_info_entry): Use it.
2848 (dw_line_info_table, dw_line_info_table_p): New.
2849 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
2850 (line_info_table, line_info_label_num): Remove.
2851 (line_info_table_in_use): Remove.
2852 (separate_line_info_table): Remove.
2853 (separate_line_info_table_allocated): Remove.
2854 (separate_line_info_table_in_use): Remove.
2855 (LINE_INFO_TABLE_INCREMENT): Remove.
2856 (line_info_label_num): New.
2857 (cur_line_info_table): New.
2858 (text_section_line_info, cold_text_section_line_info): New.
2859 (separate_line_info): New.
2860 (SEPARATE_LINE_CODE_LABEL): Remove.
2861 (print_dwarf_line_table): Remove.
2862 (debug_dwarf): Don't dump it.
2863 (output_one_line_info_table): New.
2864 (output_line_info): Use it.
2865 (new_line_info_table): New.
2866 (set_cur_line_info_table): New.
2867 (dwarf2out_switch_text_section): Use it.
2868 (dwarf2out_begin_function): Likewise.
2869 (push_dw_line_info_entry): New.
2870 (dwarf2out_source_line): Rewrite for new line info tables.
2871 (dwarf2out_init): Remove dead initailizations.
2872
300d83d9
JM
28732011-03-31 Joseph Myers <joseph@codesourcery.com>
2874
2875 * opts.h (cl_option): Add comments to fields. Add bit-fields for
2876 various flags.
2877 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
2878 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
2879 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
2880 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
2881 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
2882 * opt-functions.awk (flag_init, switch_bit_fields): New.
2883 (switch_flags): Don't handle flags moved to bit-fields. Don't
2884 generate CL_MISSING_OK or CL_SAVE.
2885 * optc-gen.awk: Update to generate bit-field output as well as
2886 flags field.
2887 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
2888 bit-field instead of CL_REJECT_DRIVER flag.
2889 * opts-common.c (generate_canonical_option,
2890 decode_cmdline_option): Use bit-fields instead of CL_* flags.
2891 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
2892 instead of CL_REJECT_NEGATIVE flag.
2893 * toplev.c (print_switch_values): Use cl_report bit-field instead
2894 of CL_REPORT flag.
2895
d4d73ce2
EB
28962011-03-31 Eric Botcazou <ebotcazou@adacore.com>
2897
2898 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
2899 a zero minimum index only if it is redundant.
2900
b8faca75
VM
29012011-03-31 Vladimir Makarov <vmakarov@redhat.com>
2902
2903 PR rtl-optimization/48381
2904 * ira-color.c (assign_hard_reg): Use hard reg set intersection
2905 instead of ira_class_hard_reg_index for calculating conflicting
2906 hard registers.
2907
7d11cebe
SB
29082011-03-31 Steven Bosscher <steven@gcc.gnu.org>
2909
2910 * cprop.c: Clean up hash table building.
2911 (reg_avail_info): Remove.
2912 (oprs_available_p): Remove.
2913 (record_last_reg_set_info): Remove.
2914 (record_last_set_info): Remove.
2915 (reg_available_p): New function.
2916 (gcse_constant_p): Do not treat unfolded conditions as constants.
2917 (make_set_regs_unavailable): New function.
2918 (hash_scan_set): Simplify with new reg_available_p.
2919 (compute_hash_table_work): Traverse insns stream only once.
2920 Do not compute reg_avail_info. Traverse insns in reverse order.
2921 Record implicit sets after recording explicit sets from the block.
2922
98faf84f
MM
29232011-03-31 Michael Matz <matz@suse.de>
2924
e9c18386 2925 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 2926
f52d97da
AS
29272011-03-31 Anatoly Sokolov <aesok@post.ru>
2928
2929 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
2930 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
2931 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2932 (h8300_mode_dependent_address_p): New function.
2933 (h8300_get_index): Make static.
2934
e16b6fd0
JL
29352011-03-31 Jeff Law <law@redhat.com>
2936
10c51983
JL
2937 * reload1.c (elimination_effects): Fix typo in recent change.
2938
e9c18386 2939 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
2940 typo potentially leading to null pointer dereference.
2941
2942 * caller-save.c (new_saved_hard_reg): Eliminate return value.
2943 (setup_save_areas): Corresponding changes to avoid useless
2944 assignments.
2945
2946 * jump.c (reversed_comparison_code_parts): Avoid successive return
2947 statements when REVERSE_CONDITION is defined.
2948
2949 * expr.c (expand_assignment): Avoid useless assignments.
2950 (expand_expr_real_1): Likewise.
2951 (expand_expr_real_2): Avoid useless statements.
2952
2953 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
2954
2955 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2956
2957 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
2958 statements.
2959
2960 * stmt.c (expand_expr_stmt): Avoid useless assignment.
2961
eb1eb914
JM
29622011-03-31 Joseph Myers <joseph@codesourcery.com>
2963
2964 PR target/47109
2965 * doc/tm.texi.in (TARGET_VERSION): Remove.
2966 * doc/tm.texi: Regenerate.
2967 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
2968 * collect2.c (main): Don't use TARGET_VERSION.
2969 * mips-tdump.c (main): Don't use TARGET_VERSION.
2970 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 2971 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
2972 * config/rs6000/vxworksae.h: Remove.
2973 * config/alpha/alpha.h (TARGET_VERSION): Remove.
2974 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
2975 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
2976 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
2977 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2978 * config/arm/arm.h (TARGET_VERSION): Remove.
2979 * config/arm/coff.h (TARGET_VERSION): Remove.
2980 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
2981 * config/arm/elf.h (TARGET_VERSION): Remove.
2982 * config/arm/freebsd.h (TARGET_VERSION): Remove.
2983 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
2984 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
2985 * config/arm/pe.h (TARGET_VERSION): Remove.
2986 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
2987 * config/arm/semi.h (TARGET_VERSION): Remove.
2988 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
2989 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
2990 * config/arm/vxworks.h (TARGET_VERSION): Remove.
2991 * config/avr/avr.h (TARGET_VERSION): Remove.
2992 * config/bfin/bfin.h (TARGET_VERSION): Remove.
2993 * config/fr30/fr30.h (TARGET_VERSION): Remove.
2994 * config/frv/frv.h (TARGET_VERSION): Remove.
2995 * config/h8300/h8300.h (TARGET_VERSION): Remove.
2996 * config/i386/cygwin.h (TARGET_VERSION): Remove.
2997 * config/i386/darwin.h (TARGET_VERSION): Remove.
2998 * config/i386/darwin64.h (TARGET_VERSION): Remove.
2999 * config/i386/djgpp.h (TARGET_VERSION): Remove.
3000 * config/i386/freebsd.h (TARGET_VERSION): Remove.
3001 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3002 * config/i386/gnu.h (TARGET_VERSION): Remove.
3003 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3004 * config/i386/i386elf.h (TARGET_VERSION): Remove.
3005 * config/i386/linux.h (TARGET_VERSION): Remove.
3006 * config/i386/linux64.h (TARGET_VERSION): Remove.
3007 * config/i386/lynx.h (TARGET_VERSION): Remove.
3008 * config/i386/mingw32.h (TARGET_VERSION): Remove.
3009 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3010 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3011 * config/i386/netware.h (TARGET_VERSION): Remove.
3012 * config/i386/nto.h (TARGET_VERSION): Remove.
3013 * config/i386/openbsd.h (TARGET_VERSION): Remove.
3014 * config/i386/vxworks.h (TARGET_VERSION): Remove.
3015 * config/ia64/elf.h (TARGET_VERSION): Remove.
3016 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3017 * config/ia64/hpux.h (TARGET_VERSION): Remove.
3018 * config/ia64/linux.h (TARGET_VERSION): Remove.
3019 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3020 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3021 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3022 * config/lm32/lm32.h (TARGET_VERSION): Remove.
3023 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3024 * config/m32c/m32c.h (TARGET_VERSION): Remove.
3025 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3026 * config/m32r/m32r.h (TARGET_VERSION): Remove.
3027 * config/m68k/linux.h (TARGET_VERSION): Remove.
3028 * config/m68k/m68k.h (TARGET_VERSION): Remove.
3029 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3030 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3031 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3032 * config/mep/mep.h (TARGET_VERSION): Remove.
3033 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3034 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3035 * config/mips/iris6.h (MACHINE_TYPE): Remove.
3036 * config/mips/linux.h (TARGET_VERSION): Remove.
3037 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3038 * config/mips/vxworks.h (TARGET_VERSION): Remove.
3039 * config/mmix/mmix.h (TARGET_VERSION): Remove.
3040 * config/mn10300/linux.h (TARGET_VERSION): Remove.
3041 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3042 * config/pa/pa.h (TARGET_VERSION): Remove.
3043 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3044 * config/picochip/picochip.h (TARGET_VERSION): Remove.
3045 * config/rs6000/aix.h (TARGET_VERSION): Remove.
3046 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3047 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3048 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3049 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3050 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3051 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3052 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3053 * config/rs6000/linux.h (TARGET_VERSION): Remove.
3054 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3055 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3056 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3057 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3058 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3059 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3060 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3061 * config/s390/linux.h (TARGET_VERSION): Remove.
3062 * config/s390/s390.h (TARGET_VERSION): Remove.
3063 * config/s390/tpf.h (TARGET_VERSION): Remove.
3064 * config/score/score.h (TARGET_VERSION): Remove.
3065 * config/sh/linux.h (TARGET_VERSION): Remove.
3066 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3067 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3068 * config/sh/sh.h (TARGET_VERSION): Remove.
3069 * config/sh/sh64.h (TARGET_VERSION): Remove.
3070 * config/sh/superh.h (TARGET_VERSION): Remove.
3071 * config/sh/vxworks.h (TARGET_VERSION): Remove.
3072 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3073 * config/sparc/linux.h (TARGET_VERSION): Remove.
3074 * config/sparc/linux64.h (TARGET_VERSION): Remove.
3075 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3076 TARGET_NAME32, TARGET_NAME): Remove.
3077 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3078 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3079 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3080 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3081 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3082 * config/spu/spu.h (TARGET_VERSION): Remove.
3083 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3084 * config/v850/v850.h (TARGET_VERSION): Remove.
3085 * config/vax/linux.h (TARGET_VERSION): Remove.
3086 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3087 * config/xtensa/elf.h (TARGET_VERSION): Remove.
3088 * config/xtensa/linux.h (TARGET_VERSION): Remove.
3089
ace31bca
EB
30902011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3091
3092 PR target/48142
3093 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3094 frame-related from frame-unrelated adjustments to the stack pointer.
3095
76f9db36
JJ
30962011-03-31 Jakub Jelinek <jakub@redhat.com>
3097
3098 * common.opt (fdebug-types-section): Move earlier.
3099 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3100
b7826465
AT
31012011-03-31 Andreas Tobler <andreast@fgznet.ch>
3102
3103 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3104 var.
3105
1290e54c
NF
31062011-03-30 Nathan Froyd <froydnj@codesourcery.com>
3107
3108 * tree.h (CASE_CHAIN): Define.
3109 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3110 (gimple_redirect_edge_and_branch): Likewise.
3111
bddc98e1
VM
31122011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3113
3114 PR middle-end/48367
3115 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3116 calculation.
3117
c865e437
JL
31182011-03-30 Jeff Law <law@redhat.com>
3119
b3750213 3120 * PR bootstrap/48371
c865e437
JL
3121 * reload1.c (reload): Fix botch in last change.
3122
3123 * reload.h (struct reload): Fix typo introduced in last change.
3124
2cdf9574
JM
31252011-03-30 Joseph Myers <joseph@codesourcery.com>
3126
3127 * config/arm/arm.opt (mhard-float, msoft-float): Mark
3128 Undocumented. Remove help text.
3129 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3130 -mhard-float.
3131
666a21a2
JM
31322011-03-30 Joseph Myers <joseph@codesourcery.com>
3133
3134 * doc/options.texi (NegativeAlias): Document.
3135 (Alias): Mention NegativeAlias.
3136 * opt-functions.awk: Handle NegativeAlias.
e9c18386 3137 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
3138 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3139 * opts.h (CL_NEGATIVE_ALIAS): Define.
3140 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3141 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3142 OPT_mspe_.
3143 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3144 Alias entries.
3145 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3146 mno-spe and mno-isel instead of mspe=no and -misel=no.
3147
0fa4e351
MW
31482011-03-29 Mark Wielaard <mjw@redhat.com>
3149
3150 * common.opt (fdebug-types-section): New flag.
3151 * doc/invoke.texi: Document new -fno-debug-types-section flag.
3152 * dwarf2out.c (use_debug_types): New define.
3153 (struct die_struct): Mark die_id with GTY desc use_debug_types.
3154 (print_die): Guard output of type unit signatures using
3155 use_debug_types.
3156 (build_abbrev_table): Replace assert of dwarf_version >= 4
3157 with assert on use_debug_types.
3158 (size_of_die): Likewise.
3159 (unmark_dies): Likewise.
3160 (value_format): Decide AT_ref_external form on use_debug_types.
3161 (output_die): Replace dwarf_version version check guard with
3162 use_debug_types where appropriate.
3163 (modified_type_die): Likewise.
3164 (gen_reference_type_die): Likewise.
3165 (dwarf2out_start_source_file): Likewise.
3166 (dwarf2out_end_source_file): Likewise.
3167 (prune_unused_types_walk_attribs): Likewise.
3168 (dwarf2out_finish): Likewise.
3169
4648deb4
VM
31702011-03-30 Vladimir Makarov <vmakarov@redhat.com>
3171
3172 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3173
4f431835
RS
31742011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3175
3176 PR rtl-optimization/48332
3177 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3178 mode of input operand N and modeN to its actual mode.
3179
f2034d06
JL
31802011-03-30 Jeff Law <law@redhat.com>
3181
3182 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3183 define accessor macro.
3184 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3185 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3186 (reg_equiv_init): Likewise.
3187 (reg_equivs_size): New variable.
3188 (reg_equiv_init_size): Remove.
3189 (allocate_initial_values): Move prototype to here from....
3190 * integrate.h (allocate_initial_values): Remove prototype.
3191 * integrate.c: Include reload.h.
3192 (allocate_initial_values): Corresponding changes.
3193 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3194 (fix_reg_equiv_init, no_equiv): Corresponding changes.
3195 (update_equiv_regs): Corresponding changes.
3196 (ira): Corresponding changes.
3197 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3198 (push_secondary_reload): Corresponding changes.
3199 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3200 (make_memloc, find_reloads_address): Corresponding changes.
3201 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3202 (find_reloads_address_1): Corresponding changes.
3203 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3204 (refers_to_regno_for_reload_p): Corresponding changes.
3205 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3206 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3207 * reload1.c: Include ggc.h.
3208 (grow_reg_equivs): New function.
3209 (replace_pseudos_in, reload): Corresponding changes.
3210 (calculate_needs_all_insns, alter_regs): Corresponding changes.
3211 (eliminate_regs_1, elimination_effects): Corresponding changes.
3212 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3213 (delete_output_reload): Likewise.
3214 * caller-save.c (mark_referenced_regs): Corresponding changes.
3215 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3216 * frv/predicates.md (frv_load_operand): Corresponding changes.
3217 * microblaze/microblaze.c (double_memory_operand): Corresponding
3218 changes.
3219 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3220 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 3221 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
3222 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3223 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3224 changes.
3225 * pa/pa.c (emit_move_sequence): Corresponding changes.
3226 * vax/vax.c (nonindexed_address_p): Corresponding changes.
3227
159b81b0
RS
32282011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3229
3230 PR target/47551
3231 * config/arm/arm.c (coproc_secondary_reload_class): Handle
3232 structure modes. Don't check neon_vector_mem_operand for
3233 vector or structure modes.
3234
a6217191
RS
32352011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
3236 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3237
3238 PR target/43590
3239 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3240 operand 1 and reshuffle the operands to match.
3241 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3242
bd837408
CS
32432011-03-30 Christian Schüler <cschueler@gmx.de>
3244
6955d771 3245 PR driver/48208
bd837408 3246 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 3247
6955d771 3248 PR driver/48260
bd837408
CS
3249 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3250 handler function.
3251 * config/darwin.opt: Added '-arch' option.
3252
e9c0470a
NC
32532011-03-30 Nick Clifton <nickc@redhat.com>
3254
3255 * config/rx/rx.md: Add peepholes and patterns to combine
3256 extending loads and simple arithmetic instructions.
3257 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
3258 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3259 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 3260 modes to use pre-decrement and post-increment addressing.
e9c18386 3261 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 3262 addresses.
e9c18386
UB
3263 (rx_print_operand): Add support for %Q. Fix handling of %Q.
3264 (rx_memory_move_cost): Adjust cost of stores.
3265 (rx_adjust_insn_length): New function.
e9c0470a 3266
8a87e7ab
JJ
32672011-03-30 Jakub Jelinek <jakub@redhat.com>
3268
3269 PR c/48305
3270 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3271 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3272 matching arg00/arg01 types.
3273
12486e03
EB
32742011-03-30 Eric Botcazou <ebotcazou@adacore.com>
3275
3276 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3277 last_location to UNKNOWN_LOCATION.
3278
0b99eef6
L
32792011-03-30 H.J. Lu <hongjiu.lu@intel.com>
3280
3281 PR target/48349
3282 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3283 FLOAT_SSE_REGS.
3284
023592aa
JM
32852011-03-30 Joseph Myers <joseph@codesourcery.com>
3286 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3287
3288 PR bootstrap/48337
3289 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3290 Init(PROCESSOR_V7).
3291 (sparc_cpu): Likewise.
3292 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3293 PROCESSOR_V7.
3294
ad3b266b
VM
32952011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3296
3297 PR target/48336
3298 PR middle-end/48342
3299 PR rtl-optimization/48345
3300 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3301 hard regs for given mode from profitable regs when doing secondary
3302 allocation.
3303
633c9126
JL
33042011-03-29 Jeff Law <law@redhat.com>
3305
3306 PR bootstrap/48327
3307 * tree-ssa-threadupdate.c (struct redirection_data): Remove
3308 do_not_duplicate field.
3309 (lookup_redirection_data): Corresponding changes.
3310 (create_duplicates): Always create a template block.
3311 (redirect_edges): Remove code which reused the original block
3312 when it was going to become unreachable code.
3313 (thread_block): Don't set do_not_duplicate field.
3314
eb50f63a
JM
33152011-03-29 Joseph Myers <joseph@codesourcery.com>
3316
3317 * lto-opts.c (register_user_option_p, lto_register_user_option):
3318 Make type argument unsigned.
3319 * lto-streamer.h (lto_register_user_option): Make type argument
3320 unsigned.
3321 * opth-gen.awk: Make CL_* macros unsigned.
3322 * opts-common.c (find_opt): Make lang_mask argument unsigned.
3323 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3324 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
3325 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
3326 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
3327 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
3328 (find_opt): Make lang_mask argument unsigned.
3329
76763a6d
VM
33302011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3331
3332 PR rtl-optimization/48331
3333 PR rtl-optimization/48334
3334 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
3335 for any used algorithm.
3336
5c82436e
VM
33372011-03-29 Vladimir Makarov <vmakarov@redhat.com>
3338
3339 * ira-conflicts.c (build_object_conflicts): Add unused attribute
3340 to parent_max.
3341
7a81008b
UB
33422011-03-29 Uros Bizjak <ubizjak@gmail.com>
3343
3344 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
3345 (alpha_option_override): Don't set alpha_sr_alias_set.
3346 (emit_frame_store_1): Use gen_frame_mem rather than calling
3347 set_mem_alias_set.
3348 (alpha_expand_epilogue): Ditto.
3349
86c8d1f6
IR
33502011-03-29 Ira Rosen <ira.rosen@linaro.org>
3351
3352 PR tree-optimization/48290
3353 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
3354 vectorization, check that relevant phis in the basic block after
3355 the inner loop are really inner loop's exit phis.
3356
0d12220f
RS
33572011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
3358
e8cf17e7 3359 PR debug/48190
0d12220f
RS
3360 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
3361 (cached_dw_loc_list_def): New structure.
3362 (cached_dw_loc_list): New typedef.
3363 (cached_dw_loc_list_table): New variable.
3364 (cached_dw_loc_list_table_hash): New function.
3365 (cached_dw_loc_list_table_eq): Likewise.
3366 (add_location_or_const_value_attribute): Take a bool cache_p.
3367 Cache the list when the parameter is true.
3368 (gen_formal_parameter_die): Update caller.
3369 (gen_variable_die): Likewise.
3370 (dwarf2out_finish): Likewise.
3371 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
3372 while generating debug info for the decl.
3373 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
3374 (dwarf2out_init): Initialize cached_dw_loc_list_table.
3375 (resolve_addr): Cache the result of resolving a chain of
3376 location lists.
3377
1756cb66
VM
33782011-03-28 Vladimir Makarov <vmakarov@redhat.com>
3379
3380 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
3381 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 3382
1756cb66
VM
3383 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
3384 after regstat_init_n_sets_and_refs.
3385
3386 * ira.c: Add more comments at the top.
3387 (setup_stack_reg_pressure_class, setup_pressure_classes):
3388 Add comments how we compute the register pressure classes.
3389 (setup_allocno_and_important_classes): Add more comments.
3390 (setup_class_translate_array, reorder_important_classes)
3391 (setup_reg_class_relations): Add comments.
3392
3393 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
3394 start of the file.
3395
3396 * ira-color.c: Add 2011 to the Copyright line.
3397 (assign_hard_reg): Add more comments.
3398 (improve_allocation): Ditto.
3399
3400 * ira-costs.c: Add 2011 to the Copyright line.
3401 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
3402 comments.
3403 (setup_regno_cost_classes_by_mode): Ditto.
3404
3405 Initial patches from ira-improv branch:
3406
3407 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
3408
f60c2554 3409 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
3410 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
3411 (ira_create_allocno): Remove initialization of
3412 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
3413 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
3414 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3415 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
3416 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
3417 Initialize ALLOCNO_ADD_DATA.
3418 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
3419 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
3420 ALLOCNO_REG.
3421 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
3422 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
3423
3424 * ira.c (ira_reallocate): Remove.
3425 (setup_pressure_classes): Call
3426 ira_init_register_move_cost_if_necessary. Use
3427 ira_register_move_cost instead of ira_get_register_move_cost.
3428 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
3429 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
3430
3431 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
3432 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3433 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
3434 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
3435 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
3436 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
3437 Fix formatting.
7a81008b 3438 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
3439 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3440 (struct allocno_color_data): New.
3441 (allocno_color_data_t): New typedef.
3442 (allocno_color_data): New definition.
3443 (ALLOCNO_COLOR_DATA): New macro.
3444 (struct object_color_data): New.
3445 (object_color_data_t): New typedef.
3446 (object_color_data): New definition.
3447 (OBJECT_COLOR_DATA): New macro.
3448 (update_copy_costs, calculate_allocno_spill_cost): Call
3449 ira_init_register_move_cost_if_necessary. Use
3450 ira_register_move_cost instead of ira_get_register_move_cost.
3451 (move_spill_restore, update_curr_costs): Ditto.
3452 (allocno_spill_priority): Make it inline.
7a81008b 3453 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
3454 (struct coalesce_data, coalesce_data_t): New.
3455 (allocno_coalesce_data): New definition.
3456 (ALLOCNO_COALESCE_DATA): New macro.
3457 (merge_allocnos, coalesced_allocno_conflict_p): Use
3458 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
3459 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
3460 (coalesce_allocnos): Ditto.
3461 (setup_coalesced_allocno_costs_and_nums): Ditto.
3462 (collect_spilled_coalesced_allocnos): Ditto.
3463 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
3464 (setup_slot_coalesced_allocno_live_ranges): Ditto.
3465 (coalesce_spill_slots): Ditto.
3466 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
3467 free allocno_coalesce_data.
3468
3469 * ira-conflicts.c: Fix formatting.
3470 (process_regs_for_copy): Call
3471 ira_init_register_move_cost_if_necessary. Use
3472 ira_register_move_cost instead of ira_get_register_move_cost.
3473 (build_object_conflicts): Optimize.
3474
3475 * ira-costs.c (record_reg_classes): Optimize. Call
3476 ira_init_register_move_cost_if_necessary. Use
3477 ira_register_move_cost, ira_may_move_in_cost, and
3478 ira_may_move_out_cost instead of ira_get_register_move_cost and
3479 ira_get_may_move_cost.
3480 (record_address_regs): Ditto.
3481 (scan_one_insn): Optimize.
3482 (find_costs_and_classes): Optimize.
3483 (process_bb_node_for_hard_reg_moves): Call
3484 ira_init_register_move_cost_if_necessary. Use
3485 ira_register_move_cost instead of ira_get_register_move_cost.
3486
3487 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
3488 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
3489 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
3490 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
3491 definitions.
3492 (ira_initiate_emit_data, ira_finish_emit_data)
3493 (create_new_allocno): New functions.
7a81008b 3494 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
3495 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
3496 Use ira_register_move_cost instead of ira_get_register_move_cost.
3497
3498 * ira-int.h: Fix some comments.
7a81008b
UB
3499 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
3500 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
3501 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
3502 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
3503 add_data.
3504 (struct ira_allocno): Make mode and aclass a bitfield. Move other
3505 bitfield after mode. Make hard_regno a short int. Make
3506 hard_regno short. Remove first_coalesced_allocno and
3507 next_coalesced_allocno. Move mem_optimized_dest_p,
3508 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
3509 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
3510 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
3511 temp, colorable_p. Add new member add_data.
3512 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
3513 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
3514 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
3515 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
3516 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
3517 (ALLOCNO_ADD_DATA): New macro.
3518 (ira_emit_data_t): New typedef.
3519 (struct ira_emit_data): New. Move mem_optimized_dest_p,
3520 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
3521 from struct ira_allocno.
3522 (ALLOCNO_EMIT_DATA): New macro.
3523 (ira_allocno_emit_data, allocno_emit_reg): New.
3524 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 3525 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
3526 (OBJECT_ADD_DATA): New macro.
3527 (ira_reallocate): Remove.
3528 (ira_initiate_emit_data, ira_finish_emit_data): New.
3529 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
3530 (ira_init_register_move_cost_if_necessary): New.
3531 (ira_object_conflict_iter_next): Merge into
3532 ira_object_conflict_iter_cond.
7a81008b 3533 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 3534
f60c2554 3535 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
3536 ira_init_register_move_cost_if_necessary. Use
3537 ira_register_move_cost instead of ira_get_register_move_cost.
3538
3539 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
3540
3541 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
3542
3543 * ira-costs.c: Fix formatting.
3544 (cost_classes, cost_classes_num): Remove.
3545 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
3546 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
3547 (cost_classes_del, cost_classes_htab): New.
3548 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
3549 (initiate_regno_cost_classes, setup_cost_classes): New.
3550 (setup_regno_cost_classes_by_aclass): New.
7a81008b 3551 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
3552 (record_reg_classes): Use regno_cost_classes instead of
3553 cost_classes. Move checking opposite operand up.
3554 (record_address_regs): Use regno_cost_classes
3555 instead of cost_classes.
3556 (scan_one_insn): Ditto. Use always general register.
3557 (print_allocno_costs): Use regno_cost_classes instead of
3558 cost_classes.
3559 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
3560 (find_costs_and_classes): Set up cost classes for each registers.
3561 Use also their mode for this. Use regno_cost_classes instead of
3562 cost_classes.
3563 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
3564 cost_classes.
3565 (free_ira_costs, ira_init_costs): Don't use cost_classes.
3566 (ira_costs, ira_set_pseudo_classes): Call
3567 initiate_regno_cost_classes and finish_regno_cost_classes.
3568
3569 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
3570
3571 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
3572
3573 * target.def (ira_cover_classes): Remove.
3574
7a81008b 3575 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
3576
3577 * doc/tm.texi.in: Ditto.
3578
3579 * ira-conflicts.c: Remove mentioning cover classes from the file.
3580 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 3581 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
3582
3583 * targhooks.c (default_ira_cover_classes): Remove.
3584
3585 * targhooks.h (default_ira_cover_classes): Ditto.
3586
3587 * haifa-sched.c: Remove mentioning cover classes from the file.
3588 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
3589 ira_pressure_classes and ira_pressure_classes_num instead of
3590 ira_reg_class_cover_size and ira_reg_class_cover. Use
3591 sched_regno_pressure_class instead of sched_regno_cover_class.
3592 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
3593 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3594
3595 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
3596 classes from the file.
3597 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
3598 (struct object_hard_regs, struct object_hard_regs_node): New.
3599 (struct ira_object): New members profitable_hard_regs,
3600 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
3601 (struct ira_allocno): Rename cover_class to aclass. Rename
3602 cover_class_cost and updated_cover_class_cost to class_cost and
3603 updated_class_cost. Remove splay_removed_p and
3604 left_conflict_size. Add new members colorable_p.
3605 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
3606 (ALLOCNO_COLORABLE_P): New macro.
3607 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
3608 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
3609 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
3610 (OBJECT_...): Rename parameter C to O.
3611 (OBJECT_PROFITABLE_HARD_REGS): New macro.
3612 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
3613 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
3614 (struct target_ira_int): New members x_ira_max_memory_move_cost,
3615 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
3616 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
3617 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
3618 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
3619 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
3620 x_ira_reg_class_subunion.
3621 (ira_max_memory_move_cost, ira_max_register_move_cost)
3622 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
3623 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
3624 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 3625 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
3626 (ira_reg_class_union): Rename to ira_reg_class_subunion.
3627 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3628 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3629 (ira_tune_allocno_costs_and_cover_classes): Rename to
3630 ira_tune_allocno_costs.
3631 (ira_debug_hard_regs_forest): New.
3632 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
3633 (ira_object_conflict_iter_next): Fix comments.
7a81008b 3634 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
3635 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
3636 cover_class to aclass.
3637 (ira_allocate_and_accumulate_costs): Ditto.
3638 (ira_allocate_and_set_or_copy_costs): Ditto.
3639
3640 * opts.c (decode_options): Remove ira_cover_class check.
3641
3642 * ira-color.c: Remove mentioning cover classes from the file. Use
3643 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
3644 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
3645 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
3646 (splay-tree.h): Remove include.
3647 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
3648 before copy_freq_compare_func.
3649 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
3650 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
3651 New definitions.
3652 (hard_regs_roots, hard_regs_node_vec): Ditto.
3653 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
3654 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
3655 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
3656 (create_new_object_hard_regs_node): Ditto.
3657 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 3658 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
3659 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
3660 Ditto.
3661 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
3662 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
3663 (remove_unused_object_hard_regs_nodes): Ditto.
3664 (enumerate_object_hard_regs_nodes): Ditto.
3665 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
3666 (object_hard_regs_subnode_t): Ditto.
3667 (struct object_hard_regs_subnode): Ditto.
3668 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
3669 (setup_object_hard_regs_subnode_index): Ditto.
3670 (get_object_hard_regs_subnodes_num): Ditto.
3671 (form_object_hard_regs_nodes_forest): Ditto.
3672 (finish_object_hard_regs_nodes_tree): Ditto.
3673 (finish_object_hard_regs_nodes_forest): Ditto.
3674 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 3675 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
3676 (pseudos_have_intersected_live_ranges_p): Rename to
3677 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
3678 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
3679 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
3680 (update_copy_costs): Remove assert. Skip cost update if the hard
3681 reg does not belong the class.
3682 (assign_hard_reg): Process only profitable hard regs.
3683 (uncolorable_allocnos_num): Make it scalar.
3684 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3685 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
3686 and ira_reg_class_max_nregs.
3687 (bucket_allocno_compare_func): Check frequency first.
3688 (sort_bucket): Add compare function as a parameter.
3689 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
3690 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
3691 (push_allocno_to_stack): Rewrite for checking new allocno
3692 colorability.
7a81008b 3693 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
3694 (push_only_colorable): Pass new parameter to sort_bucket.
3695 (push_allocno_to_spill): Remove.
3696 (allocno_spill_priority_compare): Make it inline and rewrite.
3697 (splay_tree_allocate, splay_tree_free): Remove.
3698 (allocno_spill_sort_compare): New function.
3699 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
3700 build and use splay tree. Choose first allocno in uncolorable
3701 allocno bucket to spill. Remove setting spill cost.
3702 (all_conflicting_hard_regs): Remove.
3703 (setup_allocno_available_regs_num): Check only profitable hard
3704 regs. Print info about hard regs nodes.
3705 (setup_allocno_left_conflicts_size): Remove.
3706 (put_allocno_into_bucket): Don't call
7a81008b 3707 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
3708 (improve_allocation): New.
3709 (color_allocnos): Call setup_profitable_hard_regs,
3710 form_object_hard_regs_nodes_forest, improve_allocation,
3711 finish_object_hard_regs_nodes_forest. Setup spill cost.
3712 (print_loop_title): Use pressure classes.
3713 (color_allocnso): Ditto.
3714 (do_coloring): Remove allocation and freeing splay_tree_node_pool
3715 and allocnos_for_spilling.
3716 (ira_sort_regnos_for_alter_reg): Don't setup members
3717 {first,next}_coalesced_allocno.
3718 (color): Remove allocating and freeing removed_splay_allocno_vec.
3719 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
3720 prohibited_class_mode_regs.
3721
3722 * ira-lives.c: Remove mentioning cover classes from the file. Fix
3723 formatting.
3724 (update_allocno_pressure_excess_length): Use pressure classes.
3725 (inc_register_pressure, dec_register_pressure): Check for pressure
3726 class.
3727 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
3728 pressure class. Use ira_reg_class_nregs instead of
3729 ira_reg_class_max_nregs.
3730 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
3731 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
3732 (single_reg_class): Use ira_reg_class_nregs instead of
3733 ira_reg_class_max_nregs.
3734 (process_bb_node_lives): Use pressure classes.
3735
3736 * ira-emit.c: Remove mentioning cover classes from the file. Use
3737 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
3738 (change_loop): Use pressure classes.
3739 (modify_move_list): Call ira_set_allocno_class instead of
3740 ira_set_allocno_cover_class.
3741
3742 * ira-build.c: Remove mentioning cover classes from the file. Use
3743 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
3744 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
3745 ALLOCNO_UPDATED_CLASS_COST instead of
3746 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
3747 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
3748 (ira_create_allocno): Remove initialization of
3749 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
3750 ALLOCNO_COLORABLE_P.
3751 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3752 Update conflict regs for the objects.
3753 (create_cap_allocno): Remove assert. Don't propagate
3754 ALLOCNO_AVAILABLE_REGS_NUM.
3755 (ira_free_allocno_costs): New function.
3756 (finish_allocno): Change a part of code into call of
3757 ira_free_allocno_costs.
3758 (low_pressure_loop_node_p): Use pressure classes.
3759 (object_range_compare_func): Don't compare classes.
3760 (setup_min_max_conflict_allocno_ids): Ditto.
3761
3762 * loop-invariant.c: Remove mentioning cover classes from the file.
3763 Use ira_pressure_classes and ira_pressure_classes_num instead of
3764 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
3765 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
3766 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3767 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
3768 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
3769 STACK_REG_COVER_CLASS.
3770 (get_regno_cover_class): Rename to get_regno_pressure_class.
3771 (move_loop_invariants): Initialize and finalize regstat.
3772
3773 * ira.c: Remove mentioning cover classes from the file. Add
3774 comments about coloring without cover classes. Use ALLOCNO_CLASS
3775 instead of ALLOCNO_COVER_CLASS. Fix formatting.
3776 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
3777 setup_class_subset_and_memory_move_costs.
3778 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
3779 (setup_cover_and_important_classes): Rename to
3780 setup_allocno_and_important_classes.
3781 (setup_class_translate_array): New.
3782 (setup_class_translate): Call it for allocno and pressure classes.
3783 (cover_class_order): Rename to allocno_class_order.
3784 (comp_reg_classes_func): Use ira_allocno_class_translate instead
3785 of ira_class_translate.
3786 (reorder_important_classes): Set up ira_important_class_nums.
3787 (setup_reg_class_relations): Set up ira_reg_class_superunion.
3788 (print_class_cover): Rename to print_classes. Add parameter.
3789 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3790 Print pressure classes too.
3791 (find_reg_class_closure): Rename to find_reg_classes. Don't call
3792 setup_reg_subclasses.
7a81008b 3793 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
3794 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3795 (setup_prohibited_class_mode_regs): Use
7a81008b 3796 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
3797 (clarify_prohibited_class_mode_regs): New function.
3798 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
3799 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
3800 (ira_init_once): Initialize them.
3801 (free_register_move_costs): Process them.
3802 (ira_init): Move calls of find_reg_classes and
3803 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
3804 Call clarify_prohibited_class_mode_regs.
3805 (ira_no_alloc_reg): Remove.
3806 (too_high_register_pressure_p): Use pressure classes.
3807
3808 * sched-deps.c: Remove mentioning cover classes from the file.
3809 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
3810 ira_pressure_classes and ira_pressure_classes_num instead of
3811 ira_reg_class_cover_size and ira_reg_class_cover.
3812 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
3813 sched_regno_pressure_class instead of sched_regno_cover_class.
3814 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
3815 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3816
3817 * ira.h: Add 2010 to Copyright.
3818 (ira_no_alloc_reg): Remove external.
3819 (struct target_ira): Rename x_ira_hard_regno_cover_class,
3820 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
3821 x_ira_class_translate to x_ira_hard_regno_allocno_class,
3822 x_ira_allocno_classes_num, x_ira_allocno_classes, and
3823 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
3824 x_ira_pressure_classes, x_ira_pressure_class_translate, and
3825 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
3826 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
3827 x_ira_no_alloc_regs.
7a81008b 3828 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
3829 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
3830 ira_allocno_classes_num and ira_allocno_classes.
3831 (ira_class_translate): Rename to ira_allocno_class_translate.
3832 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
3833 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
3834 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3835 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
3836 (ira_no_alloc_regs): New.
3837
3838 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
3839 classes from the file. Use ALLOCNO_CLASS instead of
3840 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
3841 ALLOCNO_COVER_CLASS_COST.
3842 (regno_cover_class): Rename to regno_aclass.
3843 (record_reg_classes): Use ira_reg_class_subunion instead of
3844 ira_reg_class_union.
3845 (record_address_regs): Check overflow.
3846 (scan_one_insn): Ditto.
7a81008b 3847 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
3848 (print_pseudo_costs): Use REG_N_REFS.
3849 (find_costs_and_classes): Use classes intersected with them on the
3850 1st pass. Check overflow. Use ira_reg_class_subunion instead of
3851 ira_reg_class_union. Use ira_allocno_class_translate and
3852 regno_aclass instead of ira_class_translate and regno_cover_class.
3853 Modify code for finding regno_aclass. Setup preferred classes for
3854 the next pass.
3855 (setup_allocno_cover_class_and_costs): Rename to
3856 setup_allocno_class_and_costs. Use regno_aclass instead of
3857 regno_cover_class. Use ira_set_allocno_class instead of
3858 ira_set_allocno_cover_class.
3859 (init_costs, finish_costs): Use regno_aclass instead of
3860 regno_cover_class.
3861 (ira_costs): Use setup_allocno_class_and_costs instead of
3862 setup_allocno_cover_class_and_costs.
3863 (ira_tune_allocno_costs_and_cover_classes): Rename to
3864 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
3865 by processing objects. Use ira_reg_class_max_nregs instead of
3866 ira_reg_class_nregs.
3867
3868 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
3869
3870 * sched-int.h: Remove mentioning cover classes from the file.
3871 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
3872
3873 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
3874 classes from the file.
3875 (struct reg_pref): Rename coverclass into allocnoclass.
3876 (reg_cover_class): Rename to reg_allocno_class.
3877
7a81008b 3878 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
3879
3880 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
3881
3882 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3883
3884 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
3885
3886 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
3887
3888 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
3889
3890 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
3891
3892 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
3893
3894 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
3895
3896 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
3897
3898 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
3899 (i386_ira_cover_classes): Ditto.
3900
3901 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3902
3903 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
3904
3905 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
3906
3907 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
3908
3909 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
3910
3911 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
3912
3913 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
3914 (mips_ira_cover_classes): Ditto.
3915
3916 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
3917
3918 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
3919
3920 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
3921
3922 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
3923
3924 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
3925
3926 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
3927 (IRA_COVER_CLASSES_VSX): Ditto.
3928
3929 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
3930 (rs6000_ira_cover_classes): Ditto.
3931
3932 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
3933
3934 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
3935
3936 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
3937
3938 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
3939
3940 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
3941
3942 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
3943
3944 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
3945
3946 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
3947
3948 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
3949
3950 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
3951
2b80199f
JJ
39522011-03-29 Jakub Jelinek <jakub@redhat.com>
3953
71dae1fe
JJ
3954 PR debug/48253
3955 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
3956 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
3957 dw_fde_unlikely_section_end_label, cold_in_std_section,
3958 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
3959 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
3960 fields.
3961 (output_fde): Use dw_fde_second_{begin,end} if second is
3962 true, otherwise dw_fde_{begin,end}.
3963 (output_call_frame_info): Test dw_fde_second_begin != NULL
3964 instead of dw_fde_switched_sections.
3965 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
3966 fields, initialize new fields. Initialize in_std_section
3967 unconditionally from the first partition.
3968 (dwarf2out_end_epilogue): Don't override dw_fde_end when
3969 dw_fde_second_begin is non-NULL.
3970 (dwarf2out_switch_text_section): Stop initializing removed
3971 dw_fde_struct fields, initialize new fields, initialize
3972 also dw_fde_end here. Set dw_fde_switch_cfi even when
3973 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
3974 (struct var_loc_list_def): Add last_before_switch field.
3975 (arange_table, arange_table_allocated, arange_table_in_use,
3976 ARANGE_TABLE_INCREMENT, add_arange): Removed.
3977 (size_of_aranges): Count !in_std_section and !second_in_std_section
3978 hunks in fdes, instead of looking at arange_table_in_use.
3979 (output_aranges): Add aranges_length argument, don't call
3980 size_of_aranges here. Instead of using aranges_table*
3981 emit ranges for fdes when !in_std_section resp.
3982 !second_in_std_section.
3983 (dw_loc_list): Break ranges crossing section switch.
3984 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 3985 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
3986 (gen_subprogram_die): Don't call add_arange. Use
3987 dw_fde_{begin,end} for first partition and if switched
3988 section dw_fde_second_{begin,end} for the second.
3989 (var_location_switch_text_section_1,
3990 var_location_switch_text_section): New functions.
3991 (dwarf2out_begin_function): Initialize cold_text_section even
3992 when function_section () isn't text_section.
3993 (prune_unused_types): Don't walk arange_table.
3994 (dwarf2out_finish): Don't needlessly test
3995 flag_reorder_blocks_and_partition when testing cold_text_section_used.
3996 If info_section_emitted, call size_of_aranges and if it indicates
3997 non-empty .debug_aranges, call output_aranges with the computed
3998 size. Stop using removed dw_fde_struct fields, use
3999 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4000 for second.
4001
2b80199f
JJ
4002 PR debug/48203
4003 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4004 create ENTRY_VALUE if incoming or address of incoming's MEM
4005 is a hard REG.
4006 * dwarf2out.c (mem_loc_descriptor): Don't emit
4007 DW_OP_GNU_entry_value of DW_OP_fbreg.
4008 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4009 on ENTRY_VALUE is able to find the canonical parameter VALUE.
4010 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4011 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4012 ENTRY_VALUE_EXPs.
4013 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4014 is a REG_P or MEM_P with REG_P address, compute hash directly
4015 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4016 (preserve_only_constants): Don't clear VALUES forwaring
4017 ENTRY_VALUE to some other VALUE.
4018
8a445129
RS
40192011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
4020
4021 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4022 instead of GEN_INT.
4023
c82fee88
EB
40242011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4025
4026 * cfgexpand.c (expand_gimple_cond): Always set the source location and
4027 block before expanding the statement.
4028 (expand_gimple_stmt_1): Likewise. Set them here...
4029 (expand_gimple_stmt): ...and not here. Tidy.
4030 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4031 unknown.
4032
e45425ec
SB
40332011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4034
4035 * Makefile.in: New rule for cprop.o.
4036 * gcse.c: Move constant/copy propagation to cprop.c.
4037 (compute_local_properties): Only handle expression tables.
4038 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4039 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4040 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4041 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 4042 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
4043 compute_cprop_data, find_used_regs, try_replace_reg,
4044 find_avail_set, cprop_jump, constprop_register, cprop_insn,
4045 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4046 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4047 find_bypass_set, reg_killed_on_edge, bypass_block,
4048 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4049 execute_rtl_cprop, pass_rtl_cprop): Move to...
4050 * cprop.c: ...here. New file, constant/copy propagation for RTL
4051 moved from gcse.c to here with minor cleanups in duplicated code.
4052
c09d5426
L
40532011-03-28 H.J. Lu <hongjiu.lu@intel.com>
4054
4055 * config/i386/i386.c (flag_opts): Fix a typo in
4056 -mavx256-split-unaligned-store.
4057
9eaa7740
AS
40582011-03-28 Anatoly Sokolov <aesok@post.ru>
4059
4060 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4061 LIBCALL_VALUE): Remove macros.
4062 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4063 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4064 (h8300_function_value, h8300_libcall_value,
4065 h8300_function_value_regno_p): New functions.
4066
dcec2be2
AS
40672011-03-28 Anatoly Sokolov <aesok@post.ru>
4068
4069 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4070
520af9ec
JL
40712011-03-28 Jeff Law <law@redhat.com>
4072
4073 * tree-ssa-threadupdate.c (redirect_edges): Call
4074 create_edge_and_update_destination_phis as needed.
4075 (create_edge_and_update_destination_phis): Accept new BB argument.
4076 All callers updated.
4077 (thread_block): Do not update the profile when threading around
4078 intermediate blocks.
4079 (thread_single_edge): Likewise.
4080 (determine_bb_domination_status): If BB is not a successor of the
4081 loop header, return NONDOMINATING.
4082 (register_jump_thread): Note when we register a jump thread around
4083 an intermediate block.
4084 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4085 (thread_across_edge): Use it.
4086
7450b54f
TG
40872011-03-28 Tristan Gingold <gingold@adacore.com>
4088
4089 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4090 when for_return is 2.
4091
649beb33
JL
40922011-03-28 Jeff Law <law@redhat.com>
4093
4094 * var-tracking.c (canonicalize_values_mark): Delete unused
4095 lhs assignment.
4096 (canonicalize_values_star, set_variable_part): Likewise.
4097 (clobber_variable_part, delete_variable_part): Likewise.
4098
d5b8da97
SB
40992011-03-28 Steven Bosscher <steven@gcc.gnu.org>
4100
4101 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4102
322dd859
MJ
41032011-03-28 Martin Jambor <mjambor@suse.cz>
4104
4105 * tree-inline.c (expand_call_inline): Do not check that destination
4106 node is analyzed.
4107 (optimize_inline_calls): Assert that destination node is analyzed.
4108 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4109 not call tree_lowering_passes.
4110 * cgraph.h (cgraph_analyze_function): Declare.
4111 * cgraphunit.c (cgraph_analyze_function): Make public.
4112
aa53e58b
JM
41132011-03-28 Joseph Myers <joseph@codesourcery.com>
4114
4115 * config/sparc/sparc-opts.h: New.
4116 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4117 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4118 (sparc_option_override): Store processor_type enumeration rather
4119 than string in cpu_default. Remove name and enumeration from
4120 cpu_table. Directly default -mcpu then default -mtune from -mcpu
4121 without using sparc_select. Use target_flags_explicit instead of
4122 fpu_option_set.
4123 * config/sparc/sparc.h (enum processor_type): Move to
4124 sparc-opts.h.
4125 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4126 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4127 HeaderInclude entry.
4128 (mcpu=, mtune=): Use Var and Enum.
4129 (sparc_processor_type): New Enum and EnumValue entries.
4130
dd350eba
RO
41312011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4132 Iain Sandoe <iains@gcc.gnu.org>
4133
4134 PR target/48245
4135 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4136
1b29f05e
EB
41372011-03-28 Eric Botcazou <ebotcazou@adacore.com>
4138
4139 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4140 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4141 Insert new statements at it in lieu of STMT.
4142 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4143 * tree-vect-stmts.c (vectorizable_store): Likewise.
4144 (vectorizable_load): Likewise.
4145
506e6808
UB
41462011-03-28 Uros Bizjak <ubizjak@gmail.com>
4147
4148 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4149 (divtf3): Ditto.
4150 (multf3): Ditto.
4151 (subtf3): Ditto.
4152
2e939ee9
L
41532011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4154
4155 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4156 unaligned 256bit load/store.
4157 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4158 (*avx_movdqu<avxmodesuffix>): Likewise.
4159
5e85ab88
JDA
41602011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4161
4162 PR target/48288
4163 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4164 * config/pa/pa.md (iordi3): Use new predicate in expander.
4165 (iorsi3): Likewise.
4166
47be3d6d
AS
41672011-03-27 Anatoly Sokolov <aesok@post.ru>
4168
506e6808 4169 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 4170 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
4171 * config/mips/mips-protos.h (mips_function_value): Remove.
4172 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
4173 (mips_function_value_1): ... this. Make static. Handle receiving
4174 the function type in 'fn_decl_or_type' argument.
4175 (mips_function_value, mips_libcall_value,
4176 mips_function_value_regno_p): New function.
4177 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4178 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4179
d253656a
L
41802011-03-27 H.J. Lu <hongjiu.lu@intel.com>
4181
4182 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4183 and -mavx256-split-unaligned-store.
4184 (ix86_option_override_internal): Split 32-byte AVX unaligned
4185 load/store by default.
4186 (ix86_avx256_split_vector_move_misalign): New.
4187 (ix86_expand_vector_move_misalign): Use it.
4188
4189 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4190 -mavx256-split-unaligned-store.
4191
4192 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4193 256bit load/store. Generate unaligned store on misaligned memory
4194 operand.
4195 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4196 256bit load/store.
4197 (*avx_movdqu<avxmodesuffix>): Likewise.
4198
4199 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4200 -mavx256-split-unaligned-store.
4201
1ea9206a
RS
42022011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4203
4204 PR target/38598
4205 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4206 Update commentary.
4207
b99ce2a8
RS
42082011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
4209
4210 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4211 opno arguments with an expand_operand. Use create_input_operand.
4212 (mips_prepare_builtin_target): Delete.
4213 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4214 functions.
4215 (mips_expand_builtin_direct): Use create_output_operand and
4216 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
4217 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
4218 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4219
69d52339
IR
42202011-03-27 Ira Rosen <ira.rosen@linaro.org>
4221
4222 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4223 function.
4224 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4225
ba5e9aca
EB
42262011-03-26 Eric Botcazou <ebotcazou@adacore.com>
4227
4228 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4229 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
4230 basic blocks and call commit_edge_insertions directly.
4231 (fixup_abnormal_edges): Move from here to...
4232 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
4233 on the edges and return whether some have actually been inserted.
4234 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4235 compensation code.
4236
5d369d58
AB
42372011-03-26 Andrey Belevantsev <abel@ispras.ru>
4238
4239 PR rtl-optimization/48144
4240 * sel-sched-ir.c (merge_history_vect): Factor out from ...
4241 (merge_expr_data): ... here.
4242 (av_set_intersect): Rename to av_set_code_motion_filter.
4243 Update all callers. Call merge_history_vect when an expression
4244 is found in both sets.
4245 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4246
f082c000
AM
42472011-03-26 Alan Modra <amodra@gmail.com>
4248
4249 * config/rs6000/predicates.md (word_offset_memref_op): Handle
4250 cmodel medium addresses.
4251 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4252 64-bit gpr loads and stores.
4253 (rs6000_secondary_reload_ppc64): New function.
4254 * config/rs6000/rs6000-protos.h: Declare it.
4255 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4256
8ac5e12e
AM
42572011-03-26 Alan Modra <amodra@gmail.com>
4258
4259 PR target/47487
4260 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4261 GNU Go in traceback table.
4262
c2654ded
RH
42632011-03-25 Richard Henderson <rth@redhat.com>
4264
4265 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4266 if there are exactly 6 operands.
4267 (set_storage_via_setmem): Similarly.
4268
ba78087b
KT
42692011-03-25 Kai Tietz <ktietz@redhat.com>
4270
4271 * collect2.c (write_c_file_stat): Handle backslash
4272 as right-hand directory separator.
4273 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4274 checking just for slash.
4275 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4276 instead of checking for trailing slash.
4277 * gcc.c (record_temp_file): Use filename_cmp instead
4278 of strcmp.
4279 (do_spec_1): Likewise.
4280 (replace_outfile_spec_function): Likewise.
4281 (is_directory): Use filename_ncmp instead of strncmp.
4282 (print_multilib_info): Likewise.
4283 * gcov.c (find_source): Use filename_cmp instead
4284 instead of strcmp.
4285 (make_gcov_file_name): Fix order of slash/backslash
4286 checks.
4287 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4288 (add_standard_paths): Likewise.
4289 * mips-tfile.c (saber_stop): Handle backslash.
4290 * prefix.c (update_path): Use filename_ncmp instead of
4291 strncmp.
4292 * profile.c (output_location): Use filename_cmp instead
4293 of strcmp.
4294 * read-md.c (handle_toplevel_file): Handle backslash.
4295 * tlink.c (frob_extension): Likewise.
4296 * tree-cfg.c (same_line_p): Use filename_cmp instead of
4297 strcmp.
4298 * tree-dump.c (dequeue_and_dump): Handle backslash.
4299 * tree.c (get_file_function_name): Likewise.
4300 * gengtype.c (read_input_list): Likewise.
4301 (get_file_realbasename): Likewise.
4302 (get_output_file_with_visibility): Use filename_cmp
4303 instead of strcmp.
4304
75f6ec9a
RS
43052011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
4306
4307 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4308 case to VFPv1.
4309
6c4e2997
NF
43102011-03-25 Nathan Froyd <froydnj@codesourcery.com>
4311
4312 * fold-const.c (expr_location_or): New function.
4313 (fold_truth_not_expr): Call it.
4314
0edf1bb2
JL
43152011-03-25 Jeff Law <law@redhat.com>
4316
4317 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4318 va_end.
4319 * c-family/c-common.c (def_fn_type): Likewise.
4320 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
4321 * emit-rtl.c (gen_rtvec): Likewise.
4322 * lto/lto-lang.c (def_fn_type): Likewise.
4323
fdc2de95
RG
43242011-03-25 Richard Guenther <rguenther@suse.de>
4325
4326 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
4327 also generate copies.
4328 (fini_copy_prop): Handle constant values properly.
4329
21385db0
JJ
43302011-03-25 Jakub Jelinek <jakub@redhat.com>
4331
4332 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
4333 mode size instead of bitsize with DWARF2_ADDR_SIZE.
4334 (hash_loc_operands, compare_loc_operands): Handle
4335 DW_OP_GNU_entry_value.
4336
6510e8bb
KT
43372011-03-25 Kai Tietz <ktietz@redhat.com>
4338
4339 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
4340 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
4341 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
4342 comment and use macro TARGET_64BIT_MS_ABI instead.
4343 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
4344 and change default behavior for 32-bit MS_ABI.
4345 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
4346 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
4347 32-bit, too.
4348 (ix86_cfun_abi): Likewise.
4349 (ix86_maybe_switch_abi): Adjust comment.
4350 (init_cumulative_args): Check for bit-ness in MS_ABI case.
4351 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
4352 instead of checking for SYSV_ABI.
4353 (ix86_nsaved_sseregs): Likewise.
4354 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
4355 to 16 bytes.
4356 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
4357 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
4358 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
4359 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
4360 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
4361
34019e28
RG
43622011-03-25 Richard Guenther <rguenther@suse.de>
4363
4364 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
4365 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4366 (verify_gimple): Remove.
4367 * tree-cfg.c (verify_gimple_call): Merge verification
4368 from verify_stmts.
4369 (verify_gimple_phi): Merge verification from verify_stmts.
4370 (verify_gimple_label): New function.
4371 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
4372 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4373 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
4374 (verify_stmts): Rename to verify_gimple_in_cfg.
4375 (verify_gimple_in_cfg): New function.
4376 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
4377 * tree-ssa.c (verify_ssa): Likewise.
4378 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
4379
605896f5
RG
43802011-03-25 Richard Guenther <rguenther@suse.de>
4381
4382 * passes.c (init_optimization_passes): Add FRE pass after
4383 early SRA.
4384
7baa7c13
BS
43852011-03-25 Bernd Schmidt <bernds@codesourcery.com>
4386 Andrew Stubbs <ams@codesourcery.com>
4387
4388 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
4389 for Cortex-A8.
4390 (arm_movdi_vfp_cortexa8): New pattern.
4391 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
4392 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
4393 instructions when tuning for Cortex-A8. Set attribute "arch".
4394 * config/arm/arm.md: Move include arm-tune.md up a bit.
4395 (define_attr "arch"): Add "onlya8" and "nota8" values.
4396 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
4397
45dbce1b
NF
43982011-03-25 Nathan Froyd <froydnj@codesourcery.com>
4399
4ff08abf 4400 PR bootstrap/48282
45dbce1b
NF
4401 Revert:
4402 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4403
4404 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4405 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
4406 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4407 * passes.c (init_optimization_passes): Move
4408 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4409
ac9a30ae
KT
44102011-03-25 Kai Tietz <ktietz@redhat.com>
4411
4412 * c-typeck.c (comptypes_internal): Replace target
4413 hook call of comp_type_attributes by version in tree.c file.
4414 * gimple.c (gimple_types_compatible_p_1): Likewise.
4415 * tree-ssa.c (useless_type_conversion_p): Likewise.
4416 * tree.c (build_type_attribute_qual_variant): Likewise.
4417 (attribute_value_equal): New static helper function.
4418 (comp_type_attributes): New function.
4419 (merge_attributes): Use attribute_value_equal for comparison.
4420 (attribute_list_contained): Likewise.
4421 * tree.h (comp_type_attributes): New prototype.
4422
afdac116
RG
44232011-03-25 Richard Guenther <rguenther@suse.de>
4424
4425 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
4426 of complex types at -O0.
4427 (verify_gimple_assign_binary): Likewise.
4428 (verify_gimple_assign_ternary): Likewise.
4429
ec6165f8
MW
44302011-03-24 Mark Wielaard <mjw@redhat.com>
4431
4432 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
4433 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4434
2a5ac39a
MW
44352011-03-24 Mark Wielaard <mjw@redhat.com>
4436
4437 PR debug/48041
4438 * dwarf2out.c (output_abbrev_section): Only write table when
4439 abbrev_die_table_in_use > 1.
4440
e533b2a4
RH
44412011-02-24 Richard Henderson <rth@redhat.com>
4442
4443 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
4444 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
4445 (alpha_expand_unaligned_load_words): Use extql.
4446 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
4447 (emit_insxl): Handle all modes for consistency.
4448
0b2a7367
RH
44492011-02-24 Richard Henderson <rth@redhat.com>
4450
4451 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
4452 (alpha_expand_unaligned_load): Likewise.
4453 (alpha_expand_unaligned_store): Likewise.
4454 (alpha_expand_unaligned_load_words): Likewise.
4455 (alpha_expand_unaligned_store_words): Likewise.
4456 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
4457 (alpha_split_lock_test_and_set_12): Likewise.
4458 (print_operand, alpha_fold_builtin_extxx): Likewise.
4459 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
4460 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
4461 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
4462 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
4463 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
4464 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
4465 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
4466 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
4467 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
4468 (extwl, extll, extql): Similarly.
4469 (inswh, inslh, insqh): Similarly.
4470 (mskbl, mskwl, mskll, mskql): Similarly.
4471 (mskwh, msklh, mskqh): Similarly.
4472
315b2bef
RH
44732011-02-24 Richard Henderson <rth@redhat.com>
4474
4475 * config/alpha/alpha.md (attribute isa): Add er, ner.
4476 (attribute enabled): Handle them.
4477 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
4478
67102517
RH
44792011-02-24 Richard Henderson <rth@redhat.com>
4480
4481 * config/alpha/alpha.md (attribute isa): Add vms.
4482 (attribute enabled): Handle it.
4483 (*movsf): Merge *movsf_{nofix,fix,nofp}.
4484 (*movdf): Merge *movdf_{nofix,fix,nofp}.
4485 (*movtf): Rename from *movtf_internal for consistency.
4486 (*movsi): Merge with *movsi_nt_vms.
4487 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
4488 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
4489 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
4490 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
4491
6aba5cb4
RH
44922011-02-24 Richard Henderson <rth@redhat.com>
4493
4494 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
4495 (extendqisi2, extendhisi2): Likewise.
4496 (extendqidi2): Simplify BWX/non-BWX expansions.
4497 (extendhidi2): Similarly.
4498
bdfb351b
RH
44992011-02-24 Richard Henderson <rth@redhat.com>
4500
4501 * config/alpha/alpha.md (attribute isa): New.
4502 (attribute enabled): New.
4503 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
4504 (zero_extendqisi2, zero_extendqidi2): Similarly.
4505 (zero_extendhisi2, zero_extendhidi2): Similarly.
4506 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
4507
6abe71eb
RH
45082011-02-24 Richard Henderson <rth@redhat.com>
4509
4510 * config/alpha/predicates.md (input_operand): Revert last change;
4511 update comment to mention 32-bit VMS rather than Windows.
4512
7114321e
NF
45132011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4514
4515 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4516 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
4517 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4518 * passes.c (init_optimization_passes): Move
4519 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4520
c8679567
EB
45212011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4522
4523 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
4524
27173058
UB
45252011-03-24 Uros Bizjak <ubizjak@gmail.com>
4526
4527 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
4528 correctly.
4529
6f0c9f06
JJ
45302011-03-24 Jakub Jelinek <jakub@redhat.com>
4531
4532 PR debug/48204
4533 * simplify-rtx.c (simplify_const_unary_operation): Call
4534 real_convert when changing mode class with FLOAT_EXTEND.
4535
662666e5
NC
45362011-03-24 Nick Clifton <nickc@redhat.com>
4537
4538 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
4539 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4540 * config/rx/rx.c (rx_option_override): Set align_jumps,
4541 align_loops and align_labels if not set by the user.
4542 (rx_align_for_label): New function.
4543 (rx_max_skip_for_label): New function.
4544 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
4545 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
4546 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
4547 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
4548 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
4549
2b99b2b8
RS
45502011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4551
4552 PR rtl-optimization/48263
4553 * optabs.c (expand_binop_directly): Reinstate convert_modes code
4554 and original commutative_p handling. Use maybe_gen_insn.
4555
ccecd6ea
AK
45562011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4557
4558 * reload.c (find_reloads_subreg_address): Add address_reloaded
4559 parameter and return true there if the full address has been
4560 reloaded.
4561 (find_reloads_toplev): Pass address_reloaded flag.
4562 (find_reloads_address_1): Don't use address_reloaded parameter.
4563
67295642
JL
45642011-03-24 Jeff Law <law@redhat.com>
4565
4566 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
4567 unused variable "ann".
4568 (remove_unused_locals): Likewise.
4569
4570 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
4571 statement.
4572
4573 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
4574 after it is freed.
4575
212aa74f
AK
45762011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4577
4578 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
4579 for invalid symbolic addresses.
4580 (s390_secondary_reload): Don't use s390_check_symref_alignment for
4581 larl operands.
4582
fe784e0d
EB
45832011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4584
4585 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
4586 the argument in calls to fold_truth_not_expr.
4587
63ee8641
NF
45882011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4589
4590 * tree.c (record_node_allocation_statistics): New function.
4591 (make_node_stat, copy_node_stat, build_string): Call it.
4592 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
4593 (build1_stat, build_omp_clause): Likewise.
4594
61be2a1c
RS
45952011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4596
4597 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
4598 last commit.
4599
a881aaa7
RG
46002011-03-24 Richard Guenther <rguenther@suse.de>
4601
4602 PR tree-optimization/48271
4603 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
4604 blocks that still exist.
4605
dbaa912c
RG
46062011-03-24 Richard Guenther <rguenther@suse.de>
4607
4608 PR tree-optimization/48270
4609 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
4610 not free datarefs before ddrs.
4611
1d60cc55
EB
46122011-03-24 Eric Botcazou <ebotcazou@adacore.com>
4613
4614 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
4615 from the address built for a reference with variable offset.
4616
c78dd519
UB
46172011-03-24 Uros Bizjak <ubizjak@gmail.com>
4618
4619 PR target/48237
4620 * config/i386/i386.md (*movdf_internal_rex64): Do not split
4621 alternatives that can be handled with movq or movabsq insn.
4622 (*movdf_internal): Disable for !TARGET_64BIT.
4623 (*movdf_internal_nointeger): Ditto.
4624 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
4625
b25b9e8f
NF
46262011-03-24 Nathan Froyd <froydnj@codesourcery.com>
4627
4628 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4629 (FUNCTION_ARG_ADVANCE): Likewise.
4630 * tm.texi.in: Change references to them to hook references.
4631 * tm.texi: Regenerate.
c78dd519 4632 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
4633 (default_function_incoming_arg): Likewise.
4634 (default_function_arg_advance): Likewise.
c78dd519 4635 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
4636 (function_arg_advance): Likewise.
4637 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4638
190b2187
RG
46392011-03-24 Richard Guenther <rguenther@suse.de>
4640
4641 PR middle-end/48269
4642 * tree-object-size.c (addr_object_size): Do not double-account
4643 for MEM_REF offsets.
4644
a183b5c7
DN
46452011-03-24 Diego Novillo <dnovillo@google.com>
4646
4647 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 4648 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
4649 (lto_input_data_block): Move from lto-opts.c. Make extern.
4650 Update all users.
4651 (lto_input_string): Rename from input_string. Make extern.
4652 Update all users.
4653 * lto-streamer-out.c (lto_output_string_with_length): Rename from
4654 output_string_with_length.
4655 Output 0 to indicate a non-NULL string. Update all callers to
4656 not emit 0.
4657 (lto_output_string): Rename from output_string. Make extern.
4658 Update all users.
4659 (lto_output_decl_state_streams): Make extern.
4660 (lto_output_decl_state_refs): Make extern.
4661 * lto-streamer.h (lto_input_string): Declare.
4662 (lto_input_data_block): Declare.
4663 (lto_output_string): Declare.
4664 (lto_output_string_with_length): Declare.
4665 (lto_output_decl_state_streams): Declare.
4666 (lto_output_decl_state_refs): Declare.
4667
cfef45c8
RG
46682011-03-24 Richard Guenther <rguenther@suse.de>
4669
4670 PR tree-optimization/46562
4671 * tree.c (build_invariant_address): New function.
4672 * tree.h (build_invariant_address): Declare.
4673 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
4674 a renamed function moved ...
4675 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
4676 Take valueization callback parameter.
4677 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
4678 * gimple-fold.h: New file.
4679 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
4680 (ccp_fold, fold_const_aggregate_ref,
4681 fold_ctor_reference, fold_nonarray_ctor_reference,
4682 fold_array_ctor_reference, fold_string_cst_ctor_reference,
4683 get_base_constructor): Move ...
4684 * gimple-fold.c: ... here.
4685 (gimple_fold_stmt_to_constant_1): New function
4686 split out from ccp_fold. Take a valueization callback parameter.
4687 Valueize all operands.
4688 (gimple_fold_stmt_to_constant): New wrapper function.
4689 (fold_const_aggregate_ref_1): New function split out from
4690 fold_const_aggregate_ref. Take a valueization callback parameter.
4691 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
4692 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
4693 invariant POINTER_PLUS_EXPRs to invariant form.
4694 (vn_valueize): New function.
4695 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
4696 * tree-vrp.c (vrp_valueize): New function.
4697 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
4698 to fold statements to constants.
4699 * tree-ssa-pre.c (eliminate): Properly guard propagation of
4700 function declarations.
4701 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
4702 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
4703
5e0a7e40
RS
47042011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
4705
4706 * config/h8300/predicates.md (jump_address_operand): Fix register
4707 mode check.
4708
bfe068c3
IR
47092011-03-24 Ira Rosen <ira.rosen@linaro.org>
4710
4711 * doc/invoke.texi (max-stores-to-sink): Document.
4712 * params.h (MAX_STORES_TO_SINK): Define.
4713 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
4714 if either vectorization or if-conversion is disabled.
4715 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
4716 tree-vect-data-refs.c vect_equal_offsets.
4717 (dr_equal_offsets_p): New function.
4718 (find_data_references_in_bb): Remove static.
4719 * tree-data-ref.h (find_data_references_in_bb): Declare.
4720 (dr_equal_offsets_p): Likewise.
4721 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
4722 (vect_drs_dependent_in_basic_block): Update calls to
4723 vect_equal_offsets.
4724 (vect_check_interleaving): Likewise.
4725 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
4726 (cond_if_else_store_replacement): Rename to...
4727 (cond_if_else_store_replacement_1): ... this. Change arguments and
4728 documentation.
4729 (cond_if_else_store_replacement): New function.
4730 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
4731 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
4732
4908b0bf
CLT
47332011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
4734
4735 PR target/46934
4736 * config/arm/arm.md (casesi): Use the gen_int_mode() function
4737 to subtract lower bound instead of GEN_INT().
4738
2be478a2
JW
47392011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
4740
4741 PR other/48179
4742 PR other/48221
4743 PR other/48234
4744 * doc/extend.texi (Alignment): Move section to match order in TOC.
4745 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
4746 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
4747
0c617be4
JL
47482011-03-23 Jeff Law <law@redhat.com>
4749
4750 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
4751 before removing the edge.
4752
4753 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
4754 it may have been freed by redirect_branch_edge or
4755 redirect_edge_succ_nodup.
4756
58da96fe
RG
47572011-03-23 Richard Guenther <rguenther@suse.de>
4758
c78dd519 4759 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
4760 (check_va_list_escapes): Likewise.
4761 (check_all_va_list_escapes): Likewise.
4762
b8beb4d1
RG
47632011-03-23 Richard Guenther <rguenther@suse.de>
4764
4765 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
4766 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
4767 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
4768 (alias.o): Likewise.
4769 (ipa-type-escape.o): Remove.
4770 (ipa-struct-reorg.o): Likewise.
4771 (GTFILES): Remove ipa-struct-reorg.c.
4772 * alias.c: Do not include ipa-type-escape.h.
4773 * tree-ssa-alias.c: Likewise.
4774 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
4775 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
4776 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
4777 and ipa-type-escape passes.
4778 * tree-pass.h (pass_ipa_type_escape): Remove.
4779 (pass_ipa_struct_reorg): Likewise.
4780 * ipa-struct-reorg.h: Remove.
4781 * ipa-struct-reorg.c: Likewise.
4782 * ipa-type-escape.h: Likewise.
4783 * ipa-type-escape.c: Likewise.
4784 * doc/invoke.texi (-fipa-struct-reorg): Remove.
4785 (--param struct-reorg-cold-struct-ratio): Likewise.
4786 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4787 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4788 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
4789
f137aa63
AK
47902011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4791
4792 * config/s390/2084.md: Enable all insn reservations also for z9_ec
4793 cpu attribute value.
4794 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
4795 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
4796 * config/s390/s390.c (processor_flags_table): New constant array.
4797 (s390_handle_arch_option): Remove.
4798 (s390_handle_option): Remove s390_handle_arch_option invocations
4799 and OPT_mwarn_framesize_ handling.
4800 (s390_option_override): Remove s390_handle_arch_option invocation.
4801 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
4802 warnings.
4803 * config/s390/s390.md (cpu attribute): Add z9_ec value.
4804 * config/s390/s390.opt (s390_tune, s390_arch)
4805 (march=): Replace s390_arch_option enum and values with
4806 processor_type. Set variable name to s390_arch. Set
4807 initialization value.
4808 (mtune=): Replace s390_arch_option with processor_type. Set
4809 variable name to s390_tune. Set initialization value.
4810
bf90208f
JB
48112011-03-23 Julian Brown <julian@codesourcery.com>
4812
4813 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
4814 accesses which are not naturally aligned.
4815
3460fdf3
RS
48162011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
4817
4818 PR target/47553
4819 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
4820
a5c7d693
RS
48212011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
4822
4823 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
4824 parameter from "int" to "enum insn_code".
4825 (expand_operand_type): New enum.
4826 (expand_operand): New structure.
4827 (create_expand_operand): New function.
4828 (create_fixed_operand, create_output_operand): Likewise
4829 (create_input_operand, create_convert_operand_to): Likewise.
4830 (create_convert_operand_from, create_address_operand): Likewise.
4831 (create_integer_operand): Likewise.
4832 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
4833 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4834 (expand_insn, expand_jump_insn): Likewise.
4835 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
4836 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
4837 (expand_movstr, expand_builtin___clear_cache): Likewise.
4838 (expand_builtin_lock_release): Likewise.
4839 * explow.c (allocate_dynamic_stack_space): Likewise.
4840 (probe_stack_range): Likewise. Allow check_stack to FAIL,
4841 and use the default handling in that case.
4842 * expmed.c (check_predicate_volatile_ok): Delete.
4843 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
4844 (emit_cstore): Likewise.
4845 * expr.c (emit_block_move_via_movmem): Likewise.
4846 (set_storage_via_setmem, expand_assignment): Likewise.
4847 (emit_storent_insn, try_casesi): Likewise.
4848 (emit_single_push_insn): Likewise. Allow the expansion to fail.
4849 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
4850 (expand_vec_shift_expr, expand_binop_directly): Likewise.
4851 (expand_twoval_unop, expand_twoval_binop): Likewise.
4852 (expand_unop_direct, emit_indirect_jump): Likewise.
4853 (emit_conditional_move, vector_compare_rtx): Likewise.
4854 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
4855 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
4856 (expand_sync_lock_test_and_set): Likewise.
4857 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
4858 (emit_unop_insn): Likewise.
4859 (expand_copysign_absneg): Change icode to an insn_code.
4860 (create_convert_operand_from_type): New function.
4861 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
4862 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4863 (expand_insn, expand_jump_insn): Likewise.
4864 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
4865 than const_int_operand for operand 2.
4866
78fadbab
AK
48672011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4868
4869 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
4870 if possible.
4871
5f02387d
NF
48722011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4873
4874 * emit-rtl.c (emit_pattern_before_noloc): New function.
4875 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
4876 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
4877 (emit_pattern_after_noloc): New function.
4878 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
4879 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
4880
fdf3e18a
NF
48812011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4882
4883 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
4884 (__ffsDI2): Likewise.
4885
42d085c1
RH
48862011-03-22 Richard Henderson <rth@redhat.com>
4887
4888 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
4889 of !TARGET_ABI_OPEN_VMS.
4890 (alpha_trampoline_init, alpha_start_function): Likewise.
4891 (alpha_expand_epilogue, alpha_file_start): Likewise.
4892 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
4893 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
4894 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
4895 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
4896 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
4897
cabbe12a
JM
48982011-03-22 Joseph Myers <joseph@codesourcery.com>
4899
4900 * config/s390/s390-opts.h: New.
4901 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
4902 s390_arch_flags, s390_warn_framesize, s390_stack_size,
4903 s390_stack_guard): Remove.
4904 (s390_handle_arch_option): Return void. Take enum
4905 s390_arch_option value instead of string and searching array.
4906 (s390_handle_option): Don't assert that global structures are in
4907 use. Access variables via opts pointer. Use error_at. Don't use
4908 sscanf for -mstack-guard= or -mstack-size=. Update call to
4909 s390_handle_arch_option.
4910 (s390_option_override): Update call to s390_handle_arch_option.
4911 (s390_emit_prologue): Use %d format for s390_stack_size in
4912 diagnostic. Use %wd for HOST_WIDE_INT.
4913 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
4914 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
4915 * config/s390/s390.opt (config/s390/s390-opts.h): New
4916 HeaderInclude entry.
4917 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
4918 s390_arch_flags, s390_warn_framesize): New Variable entries.
4919 (s390_arch_option): New Enum and EnumValue entries.
4920 (march=): Use Enum instead of Var.
4921 (mstack-guard=, mstack-size=): Use UInteger and Var.
4922 (mtune=): Use Enum.
4923
05b12036
JM
49242011-03-22 Joseph Myers <joseph@codesourcery.com>
4925
4926 * config/score/score.c (score_handle_option): Don't assert that
4927 global structures are in use. Access target_flags via opts
4928 pointer. Use value of -march= option to determine target_flags
4929 settings.
4930 * config/score/score.opt (march=): Use Enum.
4931 (score_arch): New Enum and EnumValue entries.
4932
dd51e35a
JM
49332011-03-22 Joseph Myers <joseph@codesourcery.com>
4934
4935 * config/mep/mep.c (option_mtiny_specified): Remove.
4936 (mep_option_override): Move register handling for -mivc2 from
4937 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
4938 instead of option_mtiny_specified.
4939 (mep_handle_option): Access target_flags via opts pointer. Don't
4940 assert that global structures are in use. Defer part of -mivc2
4941 handling and move it to mep_option_override.
4942 * config/mep/mep.opt (IVC2): New Mask entry.
4943 (mivc2): Use Var and Defer instead of Mask.
4944
4a8d3d91
JM
49452011-03-22 Joseph Myers <joseph@codesourcery.com>
4946
4947 * config/v850/v850-opts.h: New.
4948 * config/v850/v850.c (small_memory): Replace with
4949 small_memory_physical_max array. Make that array static const.
4950 (v850_handle_memory_option): Take integer value of argument. Take
4951 gcc_options pointer, option text and location. Return void.
4952 Update for changes to small memory structures.
4953 (v850_handle_option): Access target_flags via opts pointer. Don't
4954 assert that global structures are in use. Update calls to
4955 v850_handle_memory_option.
c78dd519
UB
4956 (v850_encode_data_area): Update references to small memory settings.
4957 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
4958 (enum small_memory_type): Move to v850-opts.h.
4959 * config/v850/v850.opt (config/v850/v850-opts.h): New
4960 HeaderInclude entry.
4961 (small_memory_max): New Variable entry.
4962 (msda): Replace by pair of options msda= and msda-. Use UInteger.
4963 (mtda, mzda): Likewise.
4964
117fdbfa
JM
49652011-03-22 Joseph Myers <joseph@codesourcery.com>
4966
4967 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
4968 pointer. Don't assert that global structures are in use.
4969
d715091c
JM
49702011-03-22 Joseph Myers <joseph@codesourcery.com>
4971
4972 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
4973 via opts pointer. Don't assert that global structures are in use.
4974
1bb721dc
JM
49752011-03-22 Joseph Myers <joseph@codesourcery.com>
4976
4977 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
4978 (munix=93): Use Var.
4979 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
4980 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
4981 * config/pa/pa-opts.h: New.
4982 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
4983 (pa_handle_option): Don't assert that global structures are in
4984 use. Access target_flags via opts pointer. Don't handle
4985 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
4986 OPT_munix_98 here.
4987 (pa_option_override): Handle deferred OPT_mfixed_range_.
4988
cd8d8754
JM
49892011-03-22 Joseph Myers <joseph@codesourcery.com>
4990
4991 * config/mn10300/mn10300-opts.h: New.
4992 * config/mn10300/mn10300.c (mn10300_processor,
4993 mn10300_tune_string): Remove.
4994 (mn10300_handle_option): Don't assert that global structures are
4995 in use. Access mn10300_processor via opts pointer. Don't handle
4996 OPT_mtune_ here.
4997 * config/mn10300/mn10300.h (enum processor_type): Move to
4998 mn10300-opts.h.
4999 (mn10300_processor): Remove.
5000 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5001 HeaderInclude entry.
5002 (mn10300_processor): New Variable entry.
5003 (mtune=): Use Var.
5004
24e6e6b1
JM
50052011-03-22 Joseph Myers <joseph@codesourcery.com>
5006
5007 * config/microblaze/microblaze.c: Don't include opts.h.
5008 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5009 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5010 (mno-clearbss): Use Var and Warn.
5011
8a784afb
JM
50122011-03-22 Joseph Myers <joseph@codesourcery.com>
5013
5014 * config/m32r/m32r-opts.h: New.
5015 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5016 (m32r_handle_option): Don't assert that global structures are in
5017 use. Access target_flags and m32r_cache_flush_func via opts
5018 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
5019 OPT_mno_flush_trap here.
5020 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5021 include of m32r-opts.h.
5022 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5023 HeaderInclude entry.
5024 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5025 (mmodel=): Use Enum and Var.
5026 (m32r_model): New Enum and EnumValue entries.
5027 (mno-flush-trap): Use Var.
5028 (msdata=): Use Enum and Var.
5029 (m32r_sdata): New Enum and EnumValue entries.
5030
bbfc9a8c
JM
50312011-03-22 Joseph Myers <joseph@codesourcery.com>
5032
5033 * config/m32c/m32c.c: Don't include opts.h.
5034 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5035 m32c_handle_option): Remove.
5036 (m32c_option_override): Check global_options_set.x_target_memregs
5037 instead of target_memregs_set.
5038 * config/m32c/m32c.h (target_memregs): Remove.
5039 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5040 variable.
5041
e24b8335
JM
50422011-03-22 Joseph Myers <joseph@codesourcery.com>
5043
5044 * config/iq2000/iq2000-opts.h: New.
5045 * config/iq2000/iq2000.c: Don't include opts.h.
5046 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 5047 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
5048 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5049 HeaderInclude entry.
5050 (iq2000_tune): New Variable entry.
5051 (march=): Add comment. Use Enum.
5052 (iq2000_arch): New Enum and EnumValue entries.
5053 (mcpu=): Use Enum and Var.
5054 (iq2000_tune): New Enum and EnumValue entries.
5055
e6cc0c98
JM
50562011-03-22 Joseph Myers <joseph@codesourcery.com>
5057
5058 * config/ia64/ia64-opts.h: New.
5059 * config/ia64/ia64.c (ia64_tune): Remove.
5060 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5061 here. Use error_at.
5062 (ia64_option_override): Handle deferred OPT_mfixed_range_.
5063 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5064 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5065 HeaderInclude entry.
5066 (ia64_tune): New Variable entry.
5067 (mfixed-range=): Use Defer and Var.
5068 (mtune=): Use Enum and Var.
5069 (ia64_tune): New Enum and EnumValue entries.
5070
db25893c
JM
50712011-03-22 Joseph Myers <joseph@codesourcery.com>
5072
5073 * config/frv/frv-opts.h: New.
5074 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5075 frv-opts.h.
5076 (frv_cpu_type): Remove.
5077 * config/frv/frv.c: Don't include opts.h.
5078 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 5079 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
5080 (frv_cpu_type): New Variable entry.
5081 (frv_cpu): New Enum and EnumValue entries.
5082
6c223f5d
JM
50832011-03-22 Joseph Myers <joseph@codesourcery.com>
5084
5085 * config/cris/cris.c (cris_handle_option): Access target_flags via
5086 opts pointer. Don't assert that global structures are in use.
5087 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5088 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5089
bbd399cf
JM
50902011-03-22 Joseph Myers <joseph@codesourcery.com>
5091
5092 * config/bfin/bfin-opts.h: New.
5093 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5094 bfin_si_revision, bfin_workarounds): Remove.
5095 (bfin_cpus): Make static const.
5096 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5097 not bfin_lib_id_given.
5098 (bfin_handle_option): Don't set bfin_lib_id_given. Access
5099 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 5100 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
5101 * config/bfin/bfin.h: Include bfin-opts.h.
5102 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5103 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5104 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5105 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5106 entries.
5107
5e1b4d5a
JM
51082011-03-22 Joseph Myers <joseph@codesourcery.com>
5109
5110 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5111 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5112 or -msoft-float here.
5113 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5114 -msoft-float and -mhard-float.
c78dd519 5115 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
5116 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5117 msoft-float.
5118 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5119 -msoft-float.
5120 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5121 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5122 not mhard-float.
5123 (LIBGCC_SPEC): Don't handle -msoft-float.
5124 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5125 -mhard-float.
5126 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5127 msoft-float.
5128 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5129 -mfloat-abi=*, not -msoft-float and -mhard-float.
5130 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5131 -msoft-float.
5132 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5133 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5134 mhard-float and msoft-float.
5135 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5136 mfloat-abi=soft in comments, not mhard-float and msoft-float.
5137 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5138 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5139 mhard-float.
5140 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5141 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5142 msoft-float.
5143 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5144 not mhard-float.
5145 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5146 not msoft-float.
5147
800d1de1
RH
51482011-03-22 Richard Henderson <rth@redhat.com>
5149
5150 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5151 TARGET_ABI_WINDOWS_NT.
5152 (alpha_output_function_end_prologue): Likewise.
5153 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5154 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5155 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5156 (trap, *movsi_nt_vms): Likewise.
5157 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5158 (*tablejump_osf_nt_internal): Remove.
5159 * config/alpha/predicates.md (input_operand): Only test Pmode.
5160
c59ddd2b
JM
51612011-03-22 Joseph Myers <joseph@codesourcery.com>
5162
5163 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5164 via opts pointer. Use error_at. Don't assert that global
5165 structures are in use.
5166
1333f97f
JM
51672011-03-22 Joseph Myers <joseph@codesourcery.com>
5168
5169 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5170 (ix86_handle_option): Access ix86_isa_flags and
5171 ix86_isa_flags_explicit via opts pointer. Don't assert that
5172 global structures are in use.
5173 (ix86_function_specific_save, ix86_function_specific_restore):
5174 Update ix86_isa_flags_explicit field name.
c78dd519 5175 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
5176 (ix86_isa_flags_explicit): Rename TargetSave entry to
5177 x_ix86_isa_flags_explicit.
5178
75db85d8
RH
51792011-03-22 Richard Henderson <rth@redhat.com>
5180
5181 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5182 (alpha_option_override, direct_return): Likewise.
5183 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5184 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5185 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5186 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5187 (alpha_expand_epilogue, alpha_end_function): Likewise.
5188 (alpha_init_libfuncs): Likewise.
5189 (struct machine_function): Remove unicosmk members.
5190 (print_operand) ['t']: Remove.
5191 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5192 unicosmk_output_module_name, unicosmk_output_common,
5193 current_section_align, unicosmk_output_text_section_asm_op,
5194 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5195 unicosmk_section_type_flags, unicosmk_unique_section,
5196 unicosmk_asm_named_section, unicosmk_insert_attributes,
5197 unicosmk_output_align, unicosmk_defer_case_vector,
5198 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5199 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5200 unicosmk_output_ssib, unicosmk_add_call_info_word,
5201 unicosmk_extern_head, unicosmk_output_default_externs,
5202 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5203 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5204 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5205 * config/alpha/alpha-protos.h: Update.
5206 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5207 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5208 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5209 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5210 (*mulsi_se, mulvsi3): Likewise.
5211 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5212 (*divmodsi_internal, call, call_value, realign): Likewise.
5213 (moddi3, umoddi3): Likewise; remove duplicate expander.
5214 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5215 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5216 (*movdi_nofix): Remove r/U alternative.
5217 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5218 * config/alpha/constraints.md ("U"): Remove.
5219 * config/alpha/predicates.md (call_operand"): Don't test
5220 TARGET_ABI_UNICOSMK.
5221
96e45421
JM
52222011-03-22 Joseph Myers <joseph@codesourcery.com>
5223
5224 * target.def (handle_option): Take gcc_options and
5225 cl_decoded_option pointers and location_t.
5226 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5227 * doc/tm.texi: Regenerate.
5228 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5229 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5230 * lto-opts.c (lto_reissue_options): Generate option structure for
5231 targetm.handle_option call.
5232 * opts.c (target_handle_option): Update call to
5233 targetm.handle_option. Remove assertions about values now passed
5234 down to hook.
5235 * targhooks.c (default_target_handle_option): New.
5236 * targhooks.h (default_target_handle_option): Declare.
5237 * config/alpha/alpha.c: Include opts.h.
5238 (alpha_handle_option): Update to new hook interface.
5239 * config/arm/arm.c: Include opts.h.
5240 (arm_handle_option): Update to new hook interface.
5241 * config/arm/t-arm (arm.o): Update dependencies.
5242 * config/bfin/bfin.c: Include opts.h.
5243 (bfin_handle_option): Update to new hook interface.
5244 * config/cris/cris.c: Include opts.h.
5245 (cris_handle_option): Update to new hook interface.
5246 * config/frv/frv.c: Include opts.h.
5247 (frv_handle_option): Update to new hook interface.
5248 * config/i386/i386.c: Include opts.h.
5249 (ix86_handle_option): Update to new hook interface.
5250 (ix86_valid_target_attribute_inner_p): Generate option structure
5251 for call to ix86_handle_option.
5252 * config/i386/t-i386 (i386.o): Update dependencies.
5253 * config/ia64/ia64.c: Include opts.h.
5254 (ia64_handle_option): Update to new hook interface.
5255 * config/ia64/t-ia64 (ia64.o): Update dependencies.
5256 * config/iq2000/iq2000.c: Include opts.h.
5257 (iq2000_handle_option): Update to new hook interface.
5258 * config/m32c/m32c.c: Include opts.h.
5259 (m32c_handle_option): Update to new hook interface.
5260 * config/m32r/m32r.c: Include opts.h.
5261 (m32r_handle_option): Update to new hook interface.
5262 * config/m68k/m68k.c: Include opts.h.
5263 (m68k_handle_option): Update to new hook interface.
5264 * config/mep/mep.c: Include opts.h.
5265 (mep_handle_option): Update to new hook interface.
5266 * config/microblaze/microblaze.c: Include opts.h.
5267 (microblaze_handle_option): Update to new hook interface.
5268 * config/mips/mips.c: Include opts.h.
5269 (mips_handle_option): Update to new hook interface.
5270 * config/mn10300/mn10300.c: Include opts.h.
5271 (mn10300_handle_option): Update to new hook interface.
5272 * config/pa/pa.c: Include opts.h.
5273 (pa_handle_option): Update to new hook interface.
5274 * config/pdp11/pdp11.c: Include opts.h.
5275 (pdp11_handle_option): Update to new hook interface.
5276 * config/rs6000/rs6000.c: Include opts.h.
5277 (rs6000_handle_option): Update to new hook interface.
5278 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5279 * config/rx/rx.c: Include opts.h.
5280 (rx_handle_option): Update to new hook interface.
5281 * config/s390/s390.c: Include opts.h.
5282 (s390_handle_option): Update to new hook interface.
5283 * config/score/score.c: Include opts.h.
5284 (score_handle_option): Update to new hook interface.
5285 * config/sh/sh.c: Include opts.h.
5286 (sh_handle_option): Update to new hook interface.
5287 * config/sparc/sparc.c: Include opts.h.
5288 (sparc_handle_option): Update to new hook interface.
5289 * config/v850/v850.c: Include opts.h.
5290 (v850_handle_option): Update to new hook interface.
5291
66017846
JM
52922011-03-22 Joseph Myers <joseph@codesourcery.com>
5293
5294 * gcc.c (driver_unknown_option_callback): Only permit and save
5295 unknown -Wno- options.
5296 (driver_wrong_lang_callback): Save options directly instead of via
5297 driver_unknown_option_callback.
5298
e8b97ccd
EB
52992011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5300
5301 * combine.c (simplify_set): Try harder to find the best CC mode when
5302 simplifying a nested COMPARE on the RHS.
5303
ebb9f8b0
JM
53042011-03-22 Joseph Myers <joseph@codesourcery.com>
5305
5306 * config/alpha/gnu.h: Remove.
5307 * config/arc: Remove directory.
5308 * config/arm/netbsd.h: Remove.
5309 * config/arm/t-pe: Remove.
5310 * config/crx: Remove directory.
5311 * config/i386/netbsd.h: Remove.
5312 * config/m68hc11: Remove directory.
5313 * config/m68k/uclinux-oldabi.h: Remove.
5314 * config/mcore/mcore-pe.h: Remove.
5315 * config/mcore/t-mcore-pe: Remove.
5316 * config/netbsd-aout.h: Remove.
5317 * config/rs6000/gnu.h: Remove.
5318 * config/sh/sh-symbian.h: Remove.
5319 * config/sh/symbian-base.c: Remove.
5320 * config/sh/symbian-c.c: Remove.
5321 * config/sh/symbian-cxx.c: Remove.
5322 * config/sh/symbian-post.h: Remove.
5323 * config/sh/symbian-pre.h: Remove.
5324 * config/sh/t-symbian: Remove.
5325 * config/svr3.h: Remove.
5326 * config/vax/netbsd.h: Remove.
5327 * config.build: Don't handle i[34567]86-*-pe.
5328 * config.gcc: Remove handling of deprecations for most deprecated
5329 targets.
5330 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
5331 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
5332 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
5333 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
5334 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
5335 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
5336 Remove cases.
5337 * config.host: Don't handle i[34567]86-*-pe.
5338 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
5339 (ASM_SPEC32): Don't handle -mcall-gnu.
5340 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
5341 -mcall-gnu.
5342 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
5343 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
5344 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5345 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
5346 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
5347 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
5348 conditional on SYMBIAN.
5349 * configure.ac: Don't handle powerpc*-*-gnu*.
5350 * configure: Regenerate.
5351 * doc/extend.texi (interrupt attribute): Don't mention CRX.
5352 * doc/install-old.texi (m6811, m6812): Don't mention.
5353 * doc/install.texi (arc-*-elf*): Don't document multilib option.
5354 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
5355 (m68k-uclinuxoldabi): Don't mention.
5356 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
5357 Remove.
5358 (-mcall-gnu): Remove.
5359 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
5360 families): Remove constraint documentation.
5361
999a7d80
MS
53622011-03-22 Marius Strobl <marius@FreeBSD.org>
5363
5364 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
5365 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
5366 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5367
980a0ff4
GJL
53682011-03-21 Georg-Johann Lay <avr@gjlay.de>
5369
5370 * config/avr/avr-protos.h (expand_epilogue): Change prototype
5371 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
5372 * config/avr/avr.c (init_cumulative_args)
5373 (avr_function_arg_advance): Use it.
5374 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
5375 sibcall epilogues.
5376 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
5377 (avr_function_ok_for_sibcall): ...this new function.
5378 (avr_lookup_function_attribute1): New static Function.
5379 (avr_naked_function_p, interrupt_function_p)
5380 (signal_function_p, avr_OS_task_function_p)
5381 (avr_OS_main_function_p): Use it.
5382 * config/avr/avr.md ("sibcall", "sibcall_value")
5383 ("sibcall_epilogue"): New expander.
5384 ("*call_insn", "*call_value_insn"): New insn.
5385 ("call_insn", "call_value_insn"): Remove
5386 ("call", "call_value", "epilogue"): Change expander to handle
5387 sibling calls.
5388
49168734
NC
53892011-03-21 Nick Clifton <nickc@redhat.com>
5390
5391 * doc/invoke.texi (Overall Options): Move closing brace to end of
5392 options list.
5393 (Optimization Options): Add missing @gol.
5394 (Directory Options): Likewise.
5395 (i386 and x86-64 Options): Likewise.
5396 (RS6000 and PowerPC Options): Likewise.
5397 (i386 and x86-64 Windows Options): Likewise.
5398 (V850 Options): Add text missing from descriptions.
5399
bdfe906f
RH
54002011-03-22 Richard Henderson <rth@redhat.com>
5401
5402 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
5403 (avr_incoming_return_addr_rtx): New.
5404 (emit_push_byte): New.
5405 (expand_prologue): Use it. Remove incorrect dwarf annotation for
5406 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
5407 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
5408 (emit_pop_byte): New.
5409 (expand_epilogue): Use it. Pop frame pointer by bytes.
5410 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
5411 (INCOMING_RETURN_ADDR_RTX): New.
5412 (INCOMING_FRAME_SP_OFFSET): New.
5413 (ARG_POINTER_CFA_OFFSET): New.
5414 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
5415 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
5416 (pophi): Remove.
5417
d090a5aa
RH
5418 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
5419
fdf3e18a
NF
54202011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5421
5422 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5423 (FUNCTION_ARG_ADVANCE): Likewise.
5424 * tm.texi.in: Change references to them to hook references.
5425 * tm.texi: Regenerate.
5426 * targhooks.c (default_function_arg): Eliminate check for target
5427 macro.
5428 (default_function_incoming_arg): Likewise.
5429 (default_function_arg_advance): Likewise.
c78dd519 5430 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
5431 (function_arg_advance): Likewise.
5432 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5433
009d3fcf
NF
54342011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5435
5436 * tree.c (build_call_1): New function.
5437 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
5438
7bec30e1
RG
54392011-03-22 Richard Guenther <rguenther@suse.de>
5440
5441 PR tree-optimization/48228
5442 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
5443 for single-arg PHIs.
5444
0b7e851b
AB
54452011-03-22 Andrey Belevantsev <abel@ispras.ru>
5446
5447 PR rtl-optimization/48143
5448 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
5449 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
5450 sse2_cvtps2pd): Likewise.
5451
d89afca5
AK
54522011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5453
5454 * recog.c (canonicalize_change_group): Use validate_unshare_change.
5455
f471fe72
RG
54562011-03-22 Richard Guenther <rguenther@suse.de>
5457
5458 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
5459 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
5460 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
5461 and REALIGN_LOAD_EXPR.
5462 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
5463 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
5464 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
5465 DOT_PROD_EXPR case ...
5466 (expand_expr_real_2): ... here.
5467 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
5468 and REALIGN_LOAD_EXPR.
5469 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
5470 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
5471 (vect_create_epilog_for_reduction): Likewise.
5472 (vectorizable_reduction): Likewise.
5473 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
5474 * tree-vect-stmts.c (vectorizable_load): Likewise.
5475
f2f81d57
EB
54762011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5477
5478 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
5479
ab081dd6
AK
54802011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5481
5482 * config/s390/s390.c (s390_delegitimize_address): Fix offset
5483 handling for PLTOFF/GOTOFF.
5484
6fd5332b
NC
54852011-03-22 Nick Clifton <nickc@redhat.com>
5486
5487 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
5488 trailing backslash from the end of the macro definition.
5489
01841ac0
AK
54902011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5491
5492 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
5493 and PLT unspecs.
5494
2ef6ce06
RS
54952011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
5496
5497 * expr.h (prepare_operand): Move to...
5498 * optabs.h (prepare_operand): ...here and change the insn code
5499 parameter from "int" to "enum insn_code".
5500 (insn_operand_matches): Declare.
5501 * expr.c (init_expr_target): Use insn_operand_matches.
5502 (compress_float_constant): Likewise.
5503 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
5504 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
5505 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
5506 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
5507 Likewise.
2ef6ce06
RS
5508 (gen_cond_trap): Likewise.
5509 (prepare_operand): Likewise. Change icode to an insn_code.
5510 (insn_operand_matches): New function.
5511 * reload.c (find_reloads_address_1): Use insn_operand_matches.
5512 * reload1.c (gen_reload): Likewise.
5513 * targhooks.c (default_secondary_reload): Likewise.
5514
9e43ad68
UB
55152011-03-21 Uros Bizjak <ubizjak@gmail.com>
5516
9a96da32
UB
5517 * config/alpha/alpha.md (unspec): New define_c_enum.
5518 (unspecv): Ditto.
5519
55202011-03-21 Uros Bizjak <ubizjak@gmail.com>
5521
5522 PR debug/48214
9e43ad68
UB
5523 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
5524 between a call and its CALL_ARG_LOCATION note.
5525
31408f60
EB
55262011-03-21 Eric Botcazou <ebotcazou@adacore.com>
5527
5528 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
5529
55302011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
5531
5532 PR c/42544
5533 PR c/48197
5534 * c-common.c (shorten_compare): If primopN is first sign-extended
5535 to opN and then zero-extended to result type, set primopN to opN.
5536
9dfd55f5
DJ
55372011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
5538
5539 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
5540 for barrier handlers.
5541
f3c33d9d
MM
55422011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5543
5544 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
5545 UNSPEC constants to be in the unspec enumeration, and redefine
5546 all UNSPECV constants to be in the unspecv enumeration, so that
5547 dumps print which unspec/unspec_volatile this is.
5548 * config/rs6000/vector.md (UNSPEC_*): Ditto.
5549 * config/rs6000/paired.md (UNSPEC_*): Ditto.
5550 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
5551 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
5552 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
5553
5554 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
5555 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
5556 UNSPECV_LWSYNC, since these are used as unspec_volatile.
5557 * config/rs6000/sync.md (isync, lwsync): Ditto.
5558
ac43f774
RG
55592011-03-21 Richard Guenther <rguenther@suse.de>
5560
5561 * params.def (lto-min-partition): Fix typo.
5562
411cdbd8
RG
55632011-03-21 Richard Guenther <rguenther@suse.de>
5564
5565 PR c/47939
5566 * c-decl.c (grokdeclarator): Drop to the main variant only
5567 for array types. Drop flag_gen_aux_info check.
5568
1cd9e416
RG
55692011-03-21 Richard Guenther <rguenther@suse.de>
5570
5571 PR translation/47911
5572 * params.def (lto-partitions): Fix typo.
5573 (lto-min-partition): Fix wording.
5574
ada5ad67
AT
55752011-03-21 Andreas Tobler <andreast@fgznet.ch>
5576
5577 * config/rs6000/t-freebsd: Remove duplication from file.
5578
f9613c9a
RG
55792011-03-21 Richard Guenther <rguenther@suse.de>
5580
5581 PR middle-end/47661
5582 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
5583
9bfbc1eb
RG
55842011-03-21 Richard Guenther <rguenther@suse.de>
5585
5586 PR lto/48210
5587 * params.def (lto-partitions): Require at least 1 partition.
5588
a2268084
RO
55892011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5590
5591 * gthr-solaris.h: Remove.
5592 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
5593 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
5594 (LIB_SPEC): Likewise.
5595 * config/sol2.opt (threads): Remove.
9e43ad68 5596 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
5597 (sparc*-*-solaris2*): Likewise.
5598 * configure.ac (enable_threads): Enable solaris support.
5599 * configure: Regenerate.
9e43ad68 5600 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
5601 * doc/install.texi (Configuration, --enable-threads=lib): Remove
5602 solaris.
5603
c43d9a1b
RO
56042011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5605
5606 * config.gcc: Obsolete *-*-solaris2.8*.
5607 * doc/install.texi (Specific, *-*-solaris2*): Document it.
5608
084239f4
RO
56092011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5610
5611 PR bootstrap/48135
5612 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
5613 reference. Solaris 8 perl works.
5614
64cadbe7
RO
56152011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5616
5617 PR bootstrap/48135
5618 * doc/install.texi (Prerequisites): Move jar etc. up.
5619 Explain support library version requirements.
5620
eb975109
RO
56212011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5622
5623 PR bootstrap/48135
5624 * doc/install.texi (Prerequisites): Move Perl to build
5625 requirements. Always necessary on Solaris 2 with Sun ld.
5626
8a509ffd
RO
56272011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5628
5629 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
5630 binutils 2.21.
5631 (Specific, i?86-*-solaris2.[89]): Likewise.
5632 (Specific, i?86-*-solaris2.10): Likewise.
5633 (Specific, mips-sgi-irix6): Likewise.
5634 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
5635 Update for binutils 2.21.
5636
8fbc58a1
RO
56372011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5638
5639 * configure.ac (gcc_cv_lto_plugin): Fix typo.
5640 Allow -fuse-linker-plugin for non-default plugin linker.
5641 * configure: Regenerate.
5642
7e84ad0b
NP
56432011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
5644
5645 PR bootstrap/48167
5646 * gengtype.c (files_rules): Added rule for cp/parser.h.
5647
2f36e14b
JJ
56482011-03-21 Jakub Jelinek <jakub@redhat.com>
5649
5650 PR target/48213
5651 * config/s390/s390.c (s390_delegitimize_address): Don't call
5652 lowpart_subreg if orig_x has BLKmode.
5653
62d784f7
KT
56542011-03-21 Kai Tietz <ktietz@redhat.com>
5655
5656 PR target/12171
9e43ad68
UB
5657 * doc/plugins.texi: Adjust documentation for plugin register_callback.
5658 * tree.h (attribute_spec): Add new member affects_type_identity.
5659 * attribs.c (empty_attribute_table): Adjust attribute_spec
5660 initializers.
62d784f7
KT
5661 * config/alpha/alpha.c: Likewise.
5662 * config/arc/arc.c: Likewise.
5663 * config/arm/arm.c: Likewise.
5664 * config/avr/avr.c: Likewise.
5665 * config/bfin/bfin.c: Likewise.
5666 * config/crx/crx.c: Likewise.
5667 * config/darwin.h: Likewise.
5668 * config/h8300/h8300.c: Likewise.
5669 * config/i386/cygming.h: Likewise.
5670 * config/i386/i386.c: Likewise.
5671 * config/ia64/ia64.c: Likewise.
5672 * config/m32c/m32c.c: Likewise.
5673 * config/m32r/m32r.c: Likewise.
5674 * config/m68hc11/m68hc11.c: Likewise.
5675 * config/m68k/m68k.c: Likewise.
5676 * config/mcore/mcore.c: Likewise.
5677 * config/mep/mep.c: Likewise.
5678 * config/microblaze/microblaze.c: Likewise.
5679 * config/mips/mips.c: Likewise.
5680 * config/rs6000/rs6000.c: Likewise.
5681 * config/rx/rx.c: Likewise.
5682 * config/sh/sh.c: Likewise.
5683 * config/sol2.h: Likewise.
5684 * config/sparc/sparc.c: Likewise.
5685 * config/spu/spu.c: Likewise.
5686 * config/stormy16/stormy16.c: Likewise.
5687 * config/v850/v850.c: Likewise.
5688
54833ec0
CLT
56892011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
5690
5691 * simplify-rtx.c (simplify_binary_operation_1): Handle
5692 (xor (and A B) C) case when B and C are both constants.
5693
14a41392
MX
56942011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
5695
5696 * tree-dfa.c (add_referenced_var): Fix typo in comment.
5697
806c3492
EB
56982011-03-20 Eric Botcazou <ebotcazou@adacore.com>
5699
5700 PR bootstrap/48168
5701 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
5702
65e0a0f3
JJ
57032011-03-20 Jakub Jelinek <jakub@redhat.com>
5704
5705 PR rtl-optimization/48156
5706 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
5707 assume df and df_lr are not NULL.
5708
b6a75dda
RR
57092011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5710
5711 PR debug/48023
5712 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
5713 between a call and its CALL_ARG_LOCATION note.
5714
5969b52d
KK
57152011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
5716
5717 PR debug/48178
5718 * config/sh/sh.c (find_barrier): Don't emit a constant pool
5719 between a call and its corresponding CALL_ARG_LOCATION note.
5720
f773c2bd
AS
57212011-03-19 Anatoly Sokolov <aesok@post.ru>
5722
5723 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
5724 instead of loop. Use HARD_REGISTER_NUM_P predicate.
5725 * haifa-sched.c (setup_ref_regs): Ditto.
5726 * caller-save.c (add_used_regs_1): Ditto.
5727 * dse.c (look_for_hardregs): Ditto.
5728 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
5729 * sched-rgn.c (check_live_1): Ditto.
5730
8bf872f9
JM
57312011-03-18 Joseph Myers <joseph@codesourcery.com>
5732
5733 * c-decl.c (diagnose_mismatched_decls): Give an error for
5734 redefining a typedef with variably modified type.
5735
ff8e2159
JM
57362011-03-18 Joseph Myers <joseph@codesourcery.com>
5737
5738 * c-decl.c (grokfield): Don't allow typedefs for structures or
5739 unions with no tag by default.
5740 * doc/extend.texi (Unnamed Fields): Update.
5741
16cc4440
UB
57422011-03-18 Uros Bizjak <ubizjak@gmail.com>
5743
5744 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
5745 Rewrite using indirect functions.
5746 (lwp_slwpcb): Ditto.
5747 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
5748 (avx_vinsertf128<mode>): Ditto.
5749
e101e12e
AK
57502011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5751
5752 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
5753 unspecs.
5754
4627c7fb
AK
57552011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5756
5757 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 5758 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 5759
2d36b47f
MK
57602011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
5761
5762 PR rtl-optimization/48170
5763 * gcse.c (hoist_code): Remove bogus asserts.
5764
2a3d7659
JL
57652011-03-18 Georg-Johann Lay <avr@gjlay.de>
5766
5767 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
5768 computation for prologue/epilogue.
5769
34c3ef05
RO
57702011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5771
5772 * Makefile.in (check-consistency): Remove.
5773
81f2b976
JJ
57742011-03-18 Jakub Jelinek <jakub@redhat.com>
5775
5776 PR debug/48176
5777 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
5778 arange_table_in_use is 0, but either text_section_used or
5779 cold_text_section_used is true. Don't call it if
5780 !info_section_emitted.
5781
68fd7765
AS
57822011-03-18 Anatoly Sokolov <aesok@post.ru>
5783
5784 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
5785 FUNCTION_VALUE_REGNO_P): Remove.
5786 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
5787 Remove.
5788 * config/avr/avr.c (avr_ret_register): Make static inline.
5789 (avr_function_value_regno_p): New function.
5790 (avr_libcall_value): Make static. Add 'func' argument.
5791 (avr_function_value): Make static. Rename 'func' argument to
5792 'fn_decl_or_type', forward it to avr_libcall_value. Call
5793 avr_ret_register function instead of RET_REGISTER macro.
5794 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5795
b4ef8aac
JM
57962011-03-18 Jason Merrill <jason@redhat.com>
5797
5798 PR c++/23372
5799 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
5800
09a52fc3
RG
58012011-03-18 Richard Guenther <rguenther@suse.de>
5802
5803 * doc/install.texi (--enable-gold): Remove.
5804 (--with-plugin-ld): Document.
5805 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
5806
2a3d7659 58072011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
5808
5809 PR middle-end/47790
5810 * expr.c (optimize_bitfield_assignment_op): Revamp to work
5811 again after expansion changes.
5812
2abbb0fe
CLT
58132011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
5814
5815 * combine.c (try_combine): Do simplification only call of
5816 subst() on i2 even when i1 is present. Update comments.
5817
2efd0aa6
KK
58182011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
5819
5820 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
5821 and UNSPEC_PCREL_SYMOFF.
5822
30a49b23
AK
58232011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5824
5825 * config/s390/s390.md: Use define_c_enum for the unspec constant
5826 definitions.
5827
419e1853
JJ
58282011-03-18 Richard Henderson <rth@redhat.com>
5829 Jakub Jelinek <jakub@redhat.com>
5830
5831 PR bootstrap/48161
5832 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
5833 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
5834
37875856
L
58352011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5836
5837 PR middle-end/47725
5838 * combine.c (cant_combine_insn_p): Don't check zero/sign
5839 extended hard registers.
5840
76069764
L
58412011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5842
5843 PR middle-end/47725
5844 * combine.c (cant_combine_insn_p): Check zero/sign extended
5845 hard registers.
5846
24da2019
AS
58472011-03-17 Anatoly Sokolov <aesok@post.ru>
5848
5849 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5850 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
5851 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
5852 Change return type to bool.
5853 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5854
a82ff31f
JJ
58552011-03-17 Jakub Jelinek <jakub@redhat.com>
5856
8b29c87a
JJ
5857 PR debug/48163
5858 * var-tracking.c (prepare_call_arguments): If CALL target
5859 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
5860 pc instead of looking it up using cselib_lookup and use
5861 Pmode for it if x has VOIDmode.
5862 * dwarf2out.c (gen_subprogram_die): If also both first and
5863 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
5864
a82ff31f
JJ
5865 PR debug/48163
5866 * function.c (assign_parms): For data.passed_pointer parms
5867 use MEM of data.entry_parm instead of data.entry_parm itself
5868 as DECL_INCOMING_RTL.
5869 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
5870 also when passed and declared mode is the same, DECL_RTL
5871 is a MEM with pseudo as address and DECL_INCOMING_RTL is
5872 a MEM too.
5873
82ce305c
JL
58742011-03-16 Jeff Law <law@redhat.com>
5875
5876 PR rtl-optimization/37273
5877 * ira-costs.c (scan_one_insn): Detect constants living in memory and
5878 handle them like argument loads from stack slots. Do not double
5879 count memory for memory constants and argument loads from stack slots.
5880
fe58e02b
L
58812011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5882
5883 PR debug/48160
5884 * var-tracking.c (prepare_call_arguments): Check SUBREG.
5885
6fc4dbc7
L
58862011-03-17 H.J. Lu <hongjiu.lu@intel.com>
5887
5888 PR target/48171
5889 * config/i386/i386.opt: Add Save to -mavx and -mfma.
5890
db3ed0b3
JJ
58912011-03-17 Jakub Jelinek <jakub@redhat.com>
5892
8054a389
JJ
5893 PR bootstrap/48153
5894 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
5895 if dwarf_strict.
5896 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
5897 Clear call_arg_locations and call_arg_loc_last always.
5898
db3ed0b3
JJ
5899 PR middle-end/48152
5900 * var-tracking.c (prepare_call_arguments): If argument needs to be
5901 passed by reference, adjust argtype and mode.
5902
1bce4ff3
RG
59032011-03-17 Richard Guenther <rguenther@suse.de>
5904
5905 PR middle-end/48134
5906 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
5907 a value make sure to fold the statement.
5908
7c71147d
CLT
59092011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
5910
5911 PR target/43872
5912 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
5913 return condition with !cfun->calls_alloca.
5914
0e1ee172
RG
59152011-03-17 Richard Guenther <rguenther@suse.de>
5916
5917 PR bootstrap/48148
5918 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5919 origin for decls in other ltrans units.
5920 (input_varpool_node): Likewise.
5921
f8bce518
RG
59222011-03-17 Richard Guenther <rguenther@suse.de>
5923
5924 PR middle-end/48165
5925 * tree-object-size.c (compute_object_offset): Properly return
5926 the offset operand of MEM_REFs as sizetype.
5927
1b6fa860
JJ
59282011-03-17 Jakub Jelinek <jakub@redhat.com>
5929
dabd47e7
JJ
5930 PR rtl-optimization/48141
5931 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
5932 * dse.c: Include params.h.
5933 (active_local_stores_len): New variable.
5934 (add_wild_read, dse_step1): Clear it when setting active_local_stores
5935 to NULL.
5936 (record_store, check_mem_read_rtx): Decrease it when removing
5937 from the chain.
5938 (scan_insn): Likewise. Increase it when adding to chain, if it
5939 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
5940 set active_local_stores to NULL before the addition.
5941 * Makefile.in (dse.o): Depend on $(PARAMS_H).
5942
1b6fa860
JJ
5943 PR rtl-optimization/48141
5944 * dse.c (record_store): If no positions are needed in an insn
5945 that cannot be deleted, at least unchain it from active_local_stores.
5946
7b5cb7d6
DS
59472011-03-16 Dodji Seketeli <dodji@redhat.com>
5948
5949 PR debug/47510
5950 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
5951 (lookup_type_die_strip_naming_typedef): ... here.
5952 (get_context_die): Use it.
5953 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
5954 the anonymous struct named by the naming typedef.
5955
585e9d9d
L
59562011-03-16 H.J. Lu <hongjiu.lu@intel.com>
5957
5958 PR target/48154
5959 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
5960 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
5961
6261ab0e
JL
59622011-03-16 Jeff Law <law@redhat.com>
5963
5964 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 5965 check for operands of conditional. Allow type to be a pointer.
6261ab0e 5966
0b0081ec
RG
59672011-03-16 Richard Guenther <rguenther@suse.de>
5968
5969 PR tree-optimization/48149
5970 * fold-const.c (fold_binary_loc): Fold
5971 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
5972
64a3d647
RG
59732011-03-16 Richard Guenther <rguenther@suse.de>
5974
5975 PR tree-optimization/26134
5976 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
5977 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
5978 (non_rewritable_mem_ref_base): Handle complex type component
5979 accesses, constrain offsets for vector and complex extracts
5980 more properly.
5981
ef13324e
RG
59822011-03-16 Richard Guenther <rguenther@suse.de>
5983
5984 PR tree-optimization/48146
5985 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
5986 operands avoiding the need for renaming.
5987
f0eddb90
RG
59882011-03-16 Richard Guenther <rguenther@suse.de>
5989
5990 * gimple-fold.c (maybe_fold_reference): Open-code relevant
5991 constant folding. Move MEM_REF canonicalization first.
5992 Rely on fold_const_aggregate_ref for initializer folding.
5993 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
5994
e42348b8
JJ
59952011-03-16 Jakub Jelinek <jakub@redhat.com>
5996
29f10e71
JJ
5997 PR middle-end/48136
5998 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5999 arg0/arg1 or their arguments are always fold converted to matching
6000 types.
6001
e42348b8
JJ
6002 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6003 to nargs.
6004
55b46574
RO
60052011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6006
6007 PR lto/46944
6008 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6009 Handle in-tree gold.
6010 (ld_vers): Extract binutils version for gold.
6011 (gcc_cv_ld_hidden): Handle gold here.
6012 (gcc_cv_lto_plugin): Determine level of linker plugin support.
6013 * configure: Regenerate.
6014 * config.in: Regenerate.
6015 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6016 -fuse-linker-plugin otherwise.
6017 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
6018 (LINK_COMMAND_SPEC): Use it.
6019 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6020
2b1c5433
JJ
60212011-03-16 Jakub Jelinek <jakub@redhat.com>
6022
c2969d8e
JJ
6023 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6024 * calls.c: Remove debug.h include.
6025 (emit_call_1): Don't call virtual_call_token debug hook.
6026 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6027 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6028 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6029 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6030 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6031 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6032 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6033 dwarf2out_virtual_call): Remove.
6034 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6035 copy_call_info and virtual_call hooks.
6036 (dwarf2out_init): Don't initialize vcall_insn_table,
6037 debug_dcall_section and debug_vcall_section.
6038 (prune_unused_types): Don't mark nodes from dcall_table.
6039 (dwarf2out_finish): Don't output dcall or vcall tables.
6040 * final.c (final_scan_insn): Don't call direct_call or
6041 virtual_call debug hooks.
6042 * debug.h (struct gcc_debug_hooks): Remove direct_call,
6043 virtual_call_token, copy_call_info and virtual_call hooks.
6044 (debug_nothing_uid): Remove prototype.
6045 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6046 copy_call_info and virtual_call hooks.
6047 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6048 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6049 * debug.c (do_nothing_debug_hooks): Likewise.
6050 (debug_nothing_uid): Remove.
6051 * doc/invoke.texi (-fenable-icf-debug): Remove.
6052 * common.opt (-fenable-icf-debug): Likewise.
6053
325f5379
JJ
6054 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6055 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6056 call's MEM. Handle functions returning aggregate through a hidden
6057 first pointer. For virtual calls add clobbered pc to call arguments
6058 chain.
6059 * dwarf2out.c (gen_subprogram_die): Emit
6060 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6061 can't be emitted.
6062
a58a8e4b
JJ
6063 PR debug/45882
6064 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6065 * rtl.h (ENTRY_VALUE_EXP): Define.
6066 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6067 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6068 * print-rtl.c (print_rtx): Likewise.
6069 * gengtype.c (adjust_field_rtx_def): Likewise.
6070 * var-tracking.c (vt_add_function_parameter): Adjust
6071 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6072 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6073 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6074 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6075 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6076
2b1c5433
JJ
6077 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6078 Call var_location debug hook even on CALL_INSNs.
6079 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6080 * rtl.def (ENTRY_VALUE): New.
6081 * dwarf2out.c: Include cfglayout.h.
6082 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6083 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6084 (struct call_arg_loc_node): New type.
6085 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6086 tail_call_site_count): New variables.
6087 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6088 DW_TAG_GNU_call_site_parameter.
6089 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6090 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6091 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6092 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6093 and DW_AT_GNU_all_source_call_sites.
6094 (mem_loc_descriptor): Handle ENTRY_VALUE.
6095 (add_src_coords_attributes): Don't add enything if
6096 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6097 (dwarf2out_abstract_function): Save and clear call_arg_location,
6098 call_site_count and tail_call_site_count around dwarf2out_decl call.
6099 (gen_call_site_die): New function.
6100 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6101 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6102 (dwarf2out_function_decl): Clear call_arg_locations,
6103 call_arg_loc_last, set call_site_count and tail_call_site_count
6104 to -1 and free block_map.
6105 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6106 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
6107 followed by any real instructions.
6108 (dwarf2out_begin_function): Set call_site_count and
6109 tail_call_site_count to 0.
6110 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6111 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6112 attempt to force a DIE for it and worst case remove the attribute.
6113 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6114 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6115 the decl itself.
6116 * var-tracking.c: Include tm_p.h.
6117 (vt_stack_adjustments): For calls call note_register_arguments.
6118 (argument_reg_set): New variable.
6119 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6120 ensure the VALUE is resolved.
6121 (call_arguments): New variable.
6122 (prepare_call_arguments): New function.
6123 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6124 (struct expand_loc_callback_data): Add ignore_cur_loc field.
6125 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6126 always use the best expression.
6127 (vt_expand_loc): Add ignore_cur_loc argument.
6128 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6129 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6130 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6131 note for all calls.
6132 (vt_add_function_parameter): Use cselib_lookup_from_insn.
6133 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6134 argument. Don't call cselib_preserve_only_values and
6135 cselib_reset_table.
6136 (note_register_arguments): New function.
6137 (vt_initialize): Compute argument_reg_set. Call
6138 vt_add_function_parameters before processing basic blocks instead of
6139 afterwards. For calls call prepare_call_arguments before calling
6140 cselib_process_insn.
6141 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6142 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6143 (var-tracking.o): Depend on $(TM_P_H).
6144 * cfglayout.h (insn_scope): New prototype.
6145 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6146 * cfglayout.c (insn_scope): No longer static.
6147 * insn-notes.def (CALL_ARG_LOCATION): New.
6148 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6149 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6150 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6151 nothing for DECL_EXTERNAL BLOCK_VARS.
6152
9ef13bd0
AM
61532011-03-16 Alan Modra <amodra@gmail.com>
6154
6155 PR target/45844
6156 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6157 create invalid offset address for vsx splat insn.
6158 * config/rs6000/predicates.md (splat_input_operand): New.
6159 * config/rs6000/vsx.md (vsx_splat_*): Use it.
6160
56b67510
XDL
61612011-03-15 Xinliang David Li <davidxl@google.com>
6162
6163 PR c/47837
6164 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6165 (normalize_preds): New function.
6166 (is_use_properly_guarded): Normalize def predicates.
6167
80fffdef
RR
61682011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6169
732f37c6 6170 PR target/46788
80fffdef
RR
6171 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6172 in the output template.
6173
930672ad
RG
61742011-03-15 Richard Guenther <rguenther@suse.de>
6175
6176 PR middle-end/47650
6177 * tree-pretty-print.c (dump_function_declaration): Properly
6178 dump unprototyped and varargs function types.
6179
c7ee7b45
RG
61802011-03-15 Richard Guenther <rguenther@suse.de>
6181
6182 PR tree-optimization/13954
6183 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6184 and friends.
6185
b2ad5e37
RG
61862011-03-15 Richard Guenther <rguenther@suse.de>
6187
6188 PR tree-optimization/48037
6189 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6190 selects into BIT_FIELD_REFs.
6191 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6192 vector select.
6193
7ee93d4e
JJ
61942011-03-15 Jakub Jelinek <jakub@redhat.com>
6195
6196 PR tree-optimization/48129
6197 * builtins.c (fold_builtin_snprintf): Convert to type of
6198 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6199 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6200
e106efc7
RG
62012011-03-15 Richard Guenther <rguenther@suse.de>
6202
6203 PR tree-optimization/41490
6204 * tree-ssa-dce.c (propagate_necessity): Handle returns without
6205 value but with VUSE.
6206 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6207 return statements.
6208 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6209 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6210 * tree-tailcall.c (find_tail_calls): Ignore returns.
6211
17dea42f
RG
62122011-03-15 Richard Guenther <rguenther@suse.de>
6213
6214 PR middle-end/48031
6215 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6216 or variable-indexed array accesses when in gimple form.
6217
01c77a60
RG
62182011-03-15 Richard Guenther <rguenther@suse.de>
6219
16cc4440 6220 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 6221
77b0791e
AM
62222011-03-15 Alan Modra <amodra@gmail.com>
6223
6224 PR target/48032
6225 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6226 presume symbol_refs without a symbol_ref_decl are suitably
6227 aligned, nor other trees we may see here. Handle anchor symbols.
6228 (legitimate_constant_pool_address_p): Comment. Add mode param.
6229 Check cmodel=medium addresses. Adjust all calls.
6230 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6231 creating cmodel=medium optimized access to locals.
6232 * config/rs6000/constraints.md (R): Pass QImode to
6233 legitimate_constant_pool_address_p.
6234 * config/rs6000/predicates.md (input_operand): Pass mode to
6235 legitimate_constant_pool_address_p.
6236 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6237 Update prototype.
6238
35f61ba4
MM
62392011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6240
6241 PR target/48053
6242 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6243 64-bit constants being loaded into registers other than GPRs such
6244 as loading 0 into a VSX register.
6245
07332e6d
RO
62462011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6247
16cc4440 6248 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 6249
de888d90
JJ
62502011-03-14 Jakub Jelinek <jakub@redhat.com>
6251
ba3ceb2d
JJ
6252 PR middle-end/47917
6253 * builtins.c (fold_builtin_snprintf): New function.
6254 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6255 (fold_builtin_4): Likewise.
6256
2e64f8b8
JJ
6257 PR middle-end/38878
6258 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6259 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
6260 and C - X == X also strip nops from +/-/p+ operand.
6261 When optimizing -X == C, fold C to arg0's type.
6262
de888d90
JJ
6263 PR debug/47946
6264 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6265 emit it as add_AT_int instead of add_AT_unsigned.
6266
62672011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
6268
6269 * unwind-dw2.c: Include sys/sdt.h if it exists.
6270 (_Unwind_DebugHook): Use STAP_PROBE2.
6271 * config.in, configure: Rebuild.
6272 * configure.ac: Check for sys/sdt.h.
6273
d34abfd2
UB
62742011-03-14 Uros Bizjak <ubizjak@gmail.com>
6275
6276 * config/i386/i386.md (ROUND_FLOOR): New constant.
6277 (ROUND_CEIL): Ditto.
6278 (ROUND_TRUNC): Ditto.
6279 (ROUND_MXCSR): Ditto.
6280 (ROUND_NO_EXC): Ditto.
6281 (rint<mode>2): Use new defines instead of numerical constants.
6282 (floor<mode>2): Ditto.
6283 (ceil<mode>2): Ditto.
6284 (btrunc<mode>2): Ditto.
6285 * config/i386/i386-builtin-types.def: Define ROUND function type
6286 aliases.
6287 * config/i386/i386.c (enum ix86_builtins): Add
6288 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6289 (struct builtin_description): Add
6290 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6291 (ix86_expand_sse_round): New static function.
6292 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6293 function types.
6294 (ix86_builtin_vectorized_function): Handle
6295 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6296
87f9e23d
TT
62972011-03-14 Tom Tromey <tromey@redhat.com>
6298
6299 * c-parser.c (c_parser_asm_string_literal): Clear
6300 warn_overlength_strings.
6301
b3ab9ea2
TT
63022011-03-14 Tom Tromey <tromey@redhat.com>
6303
6304 * c-parser.c (disable_extension_diagnostics): Save
6305 warn_overlength_strings.
6306 (restore_extension_diagnostics): Restore warn_overlength_strings.
6307
6bd73dd8
JJ
63082011-03-14 Jakub Jelinek <jakub@redhat.com>
6309
6310 * BASE-VER: Change to 4.7.0.
6311
7f4d6e1b
RG
63122011-03-14 Richard Guenther <rguenther@suse.de>
6313
6314 PR middle-end/48098
6315 * tree.c (build_vector_from_val): Adjust assert to requirements
6316 and reality.
6317
c6104ef1
JJ
63182011-03-14 Jakub Jelinek <jakub@redhat.com>
6319
6320 PR bootstrap/48102
d34abfd2 6321 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 6322
dfa95e19
AT
63232011-03-14 Andreas Tobler <andreast@fgznet.ch>
6324
f60c2554 6325 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
6326 terms of target_flags_explicit. Adjust copyright year.
6327
6328 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
6329 * config/rs6000/t-freebsd: New file. Add override for
6330 LIB2FUNCS_EXTRA.
6331
bb322018
CD
63322011-03-13 Chris Demetriou <cgd@google.com>
6333
6334 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
6335 (-fno-diagnostics-show-option): this, to reflect current default.
6336 (-Werror=): Update text about -fno-diagnostics-show-option.
6337
12b1c80b
PB
63382011-03-12 Peter Bergner <bergner@vnet.ibm.com>
6339
6340 PR target/48053
6341 * config/rs6000/predicates.md (easy_vector_constant_add_self,
6342 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
6343 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
6344 mode is not V2DImode or V2DFmode.
6345 (vspltis_constant): Do not handle V2DImode and V2DFmode.
6346 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
6347 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
6348 registers to 0.
6349 (movdi_internal64): Likewise.
6350
57d598f7
SP
63512011-03-12 Sebastian Pop <sebastian.pop@amd.com>
6352
6353 PR tree-optimization/47127
6354 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
6355 parameter.
6356 (set_cloog_options): Same.
6357 (scop_to_clast): Same.
6358 (print_clast_stmt): Do not call cloog_state_malloc and
6359 cloog_state_free.
6360 (print_generated_program): Same.
6361 (gloog): Same.
6362 * graphite-clast-to-gimple.h (cloog_state): Declared.
6363 (scop_to_clast): Adjust declaration.
6364 * graphite.c (cloog_state): Defined here.
6365 (graphite_initialize): Call cloog_state_malloc.
6366 (graphite_finalize): Call cloog_state_free.
6367
f231b5ff
JM
63682011-03-11 Jason Merrill <jason@redhat.com>
6369
6370 * attribs.c (lookup_attribute_spec): Take const_tree.
6371 * tree.h: Adjust.
6372
6a4e2bd5
JM
63732011-03-11 Joseph Myers <joseph@codesourcery.com>
6374
6375 * config/sparc/sparc.c (sparc_option_override): Use
6376 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
6377
a758fd67
RG
63782011-03-11 Richard Guenther <rguenther@suse.de>
6379
6380 PR tree-optimization/48067
6381 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
6382 multiplication result will be only used once on the target
6383 stmt.
6384
03dfda54
RG
63852011-03-11 Richard Guenther <rguenther@suse.de>
6386
6387 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
6388
5f11a50a
RG
63892011-03-11 Richard Guenther <rguenther@suse.de>
6390
6391 PR lto/48073
6392 * tree.c (find_decls_types_r): Do not walk types only reachable
6393 from IDENTIFIER_NODEs.
6394
4074f163
JJ
63952011-03-11 Jakub Jelinek <jakub@redhat.com>
6396
6397 PR middle-end/48044
6398 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
6399 all vnode->force_output nodes as needed.
6400
30f7cdcd
JM
64012011-03-11 Jason Merrill <jason@redhat.com>
6402
6403 PR c++/48069
6404 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
6405 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
6406
62ecfeb8
MJ
64072011-03-11 Martin Jambor <mjambor@suse.cz>
6408
6409 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
6410 cgraph_node.
6411
e89e03ab
JJ
64122011-03-11 Jakub Jelinek <jakub@redhat.com>
6413
6414 PR tree-optimization/48063
6415 * ipa-inline.c (cgraph_decide_inlining): Don't try to
6416 inline functions called once if !tree_can_inline_p (node->callers).
6417
efbe978b 64182011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 6419
efbe978b
EB
6420 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
6421 extra_objs.
9d6193a7
CL
6422 * config/score/score3.c: Delete.
6423 * config/score/score3.h: Delete.
6424 * config/score/mul-div.S: Delete.
6425 * config/score/sfp-machine.h: Add new file.
6426 * config/score/constraints.md: Add new file.
6427 * config/score/t-score-softfp: Add new file.
efbe978b 6428 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
6429 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
6430 (score7_extra_constraint): Delete.
efbe978b 6431 (score7_option_override): Remove unused code.
9d6193a7
CL
6432 * config/score/score.c: Remove score3 and score5 define and code.
6433 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 6434 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
6435 * config/score/score.opt: Remove score3 and score5 options.
6436
5de27cca
JDA
64372011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6438
6439 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
6440 when _HPUX_SOURCE is defined.
6441 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
6442
18d92053
JM
64432011-03-10 Jason Merrill <jason@redhat.com>
6444
6445 PR c++/48029
6446 * stor-layout.c (layout_type): Don't set structural equality
6447 on arrays of incomplete type.
6448 * tree.c (type_hash_eq): Handle comparing them properly.
6449
67a2f76d
JJ
64502011-03-10 Jakub Jelinek <jakub@redhat.com>
6451
6452 PR debug/48043
18d92053 6453 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
6454 result mode matches original rtl mode.
6455
d845b2f9
NC
64562011-03-10 Nick Clifton <nickc@redhat.com>
6457
6458 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 6459 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 6460
db7ec035
JJ
64612011-03-09 Jakub Jelinek <jakub@redhat.com>
6462
6463 PR rtl-optimization/47866
6464 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
6465 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
6466 if target wasn't scalar.
6467 * function.c (assign_stack_temp_for_type): Assert that neither
6468 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
6469 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
6470 macro.
6471 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
6472
5d304e47
AK
64732011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6474
6475 * config/s390/s390-protos.h (s390_label_align): New prototype.
6476 * config/s390/s390.c (s390_label_align): New function.
6477 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
6478
93b826f0
MM
64792011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
6480
6481 PR target/47755
6482 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
6483 V2DI/V2DF constants. Only all 0's or all 1's are easy.
6484 (output_vec_const_move): Ditto.
6485
ef78aed6
AS
64862011-03-08 Anatoly Sokolov <aesok@post.ru>
6487
6488 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
6489 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
6490 * config/mips/mips.c (mips_preferred_reload_class): Make static.
6491 Change 'rclass' argument and result type to reg_class_t.
6492 (TARGET_PREFERRED_RELOAD_CLASS): Define.
6493
5f892aa0
GJL
64942011-03-08 Georg-Johann Lay <avr@gjlay.de>
6495
9e43ad68
UB
6496 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6497 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
6498 (TARGET_MEMORY_MOVE_COST): Define.
6499 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 6500
32bd2409
JJ
65012011-03-08 Jakub Jelinek <jakub@redhat.com>
6502
530a4800
JJ
6503 PR debug/47881
6504 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
6505 removed anything.
6506
32bd2409
JJ
6507 PR tree-optimization/48022
6508 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
6509 for EQ/NE_EXPR.
6510
c7148991
JJ
65112011-03-07 Jakub Jelinek <jakub@redhat.com>
6512
6513 PR debug/47991
6514 * var-tracking.c (find_use_val): Return NULL for
6515 cui->sets && cui->store_p BLKmode MEMs.
6516
43070a6e
AS
65172011-03-07 Anatoly Sokolov <aesok@post.ru>
6518
6519 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6520 Remove.
6521 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
6522 xstormy16_print_operand_address): Remove.
6523 * config/stormy16/stormy16.c (xstormy16_print_operand,
6524 xstormy16_print_operand_address): Make static.
6525 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6526
efbe978b 65272011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
6528
6529 PR target/47862
6530 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6531 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
6532 before definition.
6533
cec8ac0b
ZD
65342011-03-07 Zdenek Dvorak <ook@ucw.cz>
6535
6536 PR bootstrap/48000
6537 * cfgloopmanip.c (fix_bb_placements): Return immediately
6538 if FROM is BASE_LOOP's header.
6539
59527282
PW
65402011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
6541
6542 * gimplify.c (gimplify_function_tree): Fix building calls
6543 to __builtin_return_address.
6544
617718f7
AM
65452011-03-07 Alan Modra <amodra@gmail.com>
6546
6547 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
6548 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
6549 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
6550 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
6551 return_mode args.
6552 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
6553 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
6554 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
6555 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
6556 * config/rs6000/rs6000.c
6557 (rs6000_elf_end_indicate_exec_stack): Rename to..
6558 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
6559 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
6560 (rs6000_file_start): ..here.
6561 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
6562 file scope variables.
6563 (call_ABI_of_interest): New function.
6564 (init_cumulative_args): Set above vars when function return value
6565 is a float, vector, or small struct.
6566 (rs6000_function_arg_advance_1): Likewise for function args.
6567 (rs6000_va_start): Set rs6000_passes_float if variable arg function
6568 references float args.
6569
38528d50
MX
65702011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
6571
6572 * doc/cfg.texi: Remove "See" before @ref.
6573 * doc/invoke.texi: Likewise.
6574
f42cf4f4
JM
65752011-03-05 Jason Merrill <jason@redhat.com>
6576
6577 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
6578
804a304d
AG
65792011-03-05 Anthony Green <green@moxielogic.com>
6580
6581 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
6582
634ee309
ZD
65832011-03-05 Zdenek Dvorak <ook@ucw.cz>
6584
6585 PR rtl-optimization/47899
6586 * cfgloopmanip.c (fix_bb_placements): Fix first argument
6587 to flow_loop_nested_p when moving the loop upward.
6588
6fe471c8
RE
65892011-03-05 Richard Earnshaw <rearnsha@arm.com>
6590
6591 PR target/47719
6592 * arm.md (movhi_insn_arch4): Accept any immediate constant.
6593
cc58ceee
JJ
65942011-03-05 Jakub Jelinek <jakub@redhat.com>
6595
6596 PR tree-optimization/47967
6597 * ipa-cp.c (build_const_val): Return NULL instead of creating
6598 VIEW_CONVERT_EXPR for mismatching sizes.
6599 (ipcp_create_replace_map): Return NULL if build_const_val failed.
6600 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
6601 give up on versioning.
6602
ea868305
AM
66032011-03-05 Alan Modra <amodra@gmail.com>
6604
6605 PR target/47986
6606 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6607 full cmodel medium/large lo_sum + high addresses.
6608
bc6ce334
AK
66092011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6610
6611 * config/s390/s390.c (s390_decompose_address): Reject non-literal
6612 pool references in UNSPEC_LTREL_OFFSET.
6613
87e7b310
JH
66142011-03-04 Jan Hubicka <jh@suse.cz>
6615
6616 PR lto/47497
6617 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
6618 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
6619 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
6620 Add node pointers.
87e7b310
JH
6621 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
6622 cgraph_add_thunk): Add node pointers.
6623 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
6624 associated to right node.
6625 (input_node): Update use of cgraph_same_body_alias
6626 and cgraph_add_thunk.
6627
d9c64246
CF
66282011-03-04 Changpeng Fang <changpeng.fang@amd.com>
6629
6630 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
6631 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
6632 modes when the flag -mprefer-avx128 is on.
d9c64246 6633
08707076
RS
66342011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
6635
6636 * dwarf2out.c (compare_loc_operands): Fix address handling.
6637
52517c81
AM
66382011-03-04 Alan Modra <amodra@gmail.com>
6639
6640 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
6641
b147c5b9
RG
66422011-03-04 Richard Guenther <rguenther@suse.de>
6643
6644 PR middle-end/47968
6645 * expmed.c (extract_bit_field_1): Prefer vector modes that
6646 vec_extract patterns can handle.
6647
8750672f
RG
66482011-03-04 Richard Guenther <rguenther@suse.de>
6649
6650 PR middle-end/47975
6651 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
6652
9eac0f2a
RH
66532011-03-04 Richard Henderson <rth@redhat.com>
6654
6655 * explow.c (emit_stack_save): Remove 'after' parameter.
6656 (emit_stack_restore): Likewise.
6657 * expr.h: Update to match.
6658 * builtins.c, calls.c, stmt.c: Likewise.
6659 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
6660 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
6661 * function.c (expand_function_end): Insert the emit_stack_save
6662 sequence before parm_birth_insn instead of after.
6663
dfee1406
UB
66642011-03-03 Uros Bizjak <ubizjak@gmail.com>
6665
6666 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
6667 (ssse3_pmaddubsw128): Ditto.
6668 (ssse3_pmaddubsw): Ditto.
6669
f1d4c3de
SE
66702011-03-03 Steve Ellcey <sje@cup.hp.com>
6671
6672 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
6673
71f3a3f5
JJ
66742011-03-03 Jakub Jelinek <jakub@redhat.com>
6675
423ed416
JJ
6676 PR c/47963
6677 * gimplify.c (omp_add_variable): Only call omp_notice_variable
6678 on TYPE_SIZE_UNIT if it is a DECL.
6679
71f3a3f5
JJ
6680 PR debug/47283
6681 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
6682 first operand is not is_gimple_mem_ref_addr, try to fold it.
6683 If the operand still isn't is_gimple_mem_ref_addr, clear
6684 MEM_EXPR on op0.
6685
4b1a5c0d
RG
66862011-03-03 Richard Guenther <rguenther@suse.de>
6687
6688 PR middle-end/47283
6689 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
6690 match comment.
6691 (refs_may_alias_p_1): For release branches return true if
6692 we are confused by our input.
6693
b46616fd
AK
66942011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6695
6696 * config/s390/s390.c (s390_function_value): Rename to ...
6697 (s390_function_and_libcall_value): ... this.
6698 (s390_function_value): New function.
6699 (s390_libcall_value): New function.
dfee1406 6700 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
6701 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
6702 target macro definitions.
6703 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
6704
46d8fabb
JM
67052011-03-02 Joseph Myers <joseph@codesourcery.com>
6706
6707 * config/i386/freebsd64.h (CC1_SPEC): Define.
6708 * config/i386/linux64.h (CC1_SPEC): Define.
6709 * config/i386/x86-64.h (CC1_SPEC): Don't define.
6710
6b1ce545
AS
67112011-03-02 Anatoly Sokolov <aesok@post.ru>
6712
6713 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6714 Remove.
6715 * config/stormy16/stormy16.c: Include reload.h.
6716 (xstormy16_memory_move_cost): New function.
6717 (TARGET_MEMORY_MOVE_COST): Define.
6718
34161e98
RS
67192011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
6720
6721 PR rtl-optimization/47925
6722 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
6723 with side effects. Remove the more-specific check for volatile asms.
6724
f60a97cf
AM
67252011-03-02 Alan Modra <amodra@gmail.com>
6726
6727 PR target/47935
6728 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
6729 toc relative addresses for valid offsets.
6730
f2ca11ca
RG
67312011-03-01 Richard Guenther <rguenther@suse.de>
6732
6733 PR tree-optimization/47890
6734 * tree-vect-loop.c (get_initial_def_for_induction): Set
6735 related stmt properly.
6736
7a00d9ea
RG
67372011-03-01 Richard Guenther <rguenther@suse.de>
6738
6739 PR lto/47924
6740 * lto-streamer.c (lto_record_common_node): Also register
6741 the canonical type.
6742
06c7edcc
RG
67432011-03-01 Richard Guenther <rguenther@suse.de>
6744
6745 PR lto/46911
6746 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6747 Do not stream DECL_ABSTRACT_ORIGIN.
6748 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6749 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6750 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6751 Do not stream DECL_ABSTRACT_ORIGIN.
6752 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6753 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6754
998871e9
AS
67552011-02-28 Anatoly Sokolov <aesok@post.ru>
6756
6757 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
6758 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 6759 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
6760 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
6761 Add 'outgoing' argument.
6762 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
6763 function.
6764 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6765 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6766
94369251
KT
67672011-02-28 Kai Tietz <kai.tietz@onevision.com>
6768
6769 PR debug/28047
6770 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
6771 (lookup_filename): Likewise.
b2e2ea67 6772 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 6773
80a832cd
JJ
67742011-02-28 Bernd Schmidt <bernds@codesourcery.com>
6775 Jakub Jelinek <jakub@redhat.com>
6776
6777 PR middle-end/47893
6778 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
6779 (assign_stack_local_1): Change last argument type to int.
6780 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
6781 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 6782 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
6783 (assign_stack_local): Adjust caller.
6784 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
6785 of assign_stack_local, pass 0 as last argument.
6786 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
6787 callers.
6788
1b500976
JJ
67892011-02-28 Jakub Jelinek <jakub@redhat.com>
6790
f61c6f34
JJ
6791 PR debug/47283
6792 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
6793 Use target address_mode and pointer_mode hooks instead of hardcoded
6794 Pmode and ptr_mode. Handle some simple cases of extending if
6795 POINTERS_EXTEND_UNSIGNED < 0.
6796 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
6797 Call convert_debug_memory_address.
6798 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
6799 convert_debug_memory_address.
6800
1b500976
JJ
6801 PR middle-end/46790
6802 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
6803 * configure: Regenerated.
6804 * config.in: Regenerated.
6805 * varasm.c (default_function_section): Return NULL
b2e2ea67 6806 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 6807
2f2935b6
MJ
68082011-02-28 Martin Jambor <mjambor@suse.cz>
6809
6810 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
6811 the description to match the printed values.
6812
474086eb
RG
68132011-02-28 Richard Guenther <rguenther@suse.de>
6814
6815 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
6816 of the copied scope tree.
6817
15bf6f3a
RW
68182011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6819
6820 * doc/extend.texi (Function Attributes): Avoid deeply (and
6821 wrongly) nested tables.
6822
f6b439c9
JJ
68232011-02-27 Jakub Jelinek <jakub@redhat.com>
6824
6825 PR middle-end/47903
6826 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
6827 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
6828 r isn't op0 nor op1.
6829
1d8ca2c7
GJL
68302011-02-23 Georg-Johann Lay <avr@gjlay.de>
6831
6832 * config/avr/avr.md: Remove magic comment for emacs.
6833
593fca4b
GJL
68342011-02-23 Georg-Johann Lay <avr@gjlay.de>
6835
6836 PR target/45261
6837 * config/avr/avr.c (avr_option_override): Use error on bad options.
6838 (avr_help): New function.
6839 (TARGET_HELP): Define.
6840
6609216e
GJL
68412011-02-22 Georg-Johann Lay <avr@gjlay.de>
6842
6843 PR target/42240
6844 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
6845 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
6846
03d458af
GP
68472011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
6848
6849 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
6850 (ARM Options): Ditto.
6851 (i386 and x86-64 Options): Ditto.
6852 (RX Options): Ditto.
6853 (SPARC Options): Ditto.
6854
1c379b78
TC
68552011-02-26 Tijl Coosemans <tijl@coosemans.org>
6856
6857 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
6858 FreeBSD 6 and later. Generally use cpu generic.
6859
d5ed058c 68602011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 6861
d5ed058c
GP
6862 * doc/cpp.texi: Update copyright years.
6863
509d65dd 68642011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 6865
509d65dd 6866 PR target/46898
308d39cd
SB
6867 * config/lm32/lm32.md (ashrsi3): Added needed variable.
6868
509d65dd 68692011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 6870
509d65dd 6871 PR target/46898
308d39cd
SB
6872 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
6873 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
6874 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
6875 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 6876 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
6877 (gen_int_relational): Move declarations to start of function.
6878
822ba6d7
EB
68792011-02-25 Eric Botcazou <ebotcazou@adacore.com>
6880
6881 PR tree-optimization/45470
6882 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
6883 can throw internally only.
6884 * tree-vect-stmts.c (vectorizable_call): Likewise.
6885
ef795fc2
AS
68862011-02-24 Anatoly Sokolov <aesok@post.ru>
6887
6888 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
6889 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6890 * config/stormy16/stormy16-protos.h
6891 (xstormy16_preferred_reload_class): Remove.
6892 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
6893 static. Change 'rclass' argument and return type to reg_class_t.
6894 (TARGET_PREFERRED_RELOAD_CLASS,
6895 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6896
1c3277ee
RG
68972011-02-24 Richard Guenther <rguenther@suse.de>
6898
6899 * lto-streamer-in.c (input_bb): Do not find referenced vars
6900 in debug statements.
6901
67e18edb
JM
69022011-02-23 Jason Merrill <jason@redhat.com>
6903
6904 * common.opt (fabi-version): Document v5 and v6.
6905
b14fad9d
RG
69062011-02-23 Richard Guenther <rguenther@suse.de>
6907
6908 PR tree-optimization/47849
6909 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
6910
7fcf46f5
JZ
69112011-02-23 Jie Zhang <jie@codesourcery.com>
6912
6913 * opts-common.c (decode_cmdline_option): Print empty string
6914 argument as "" in decoded->orig_option_with_args_text.
6915 * gcc.c (execute): Print empty string argument as ""
6916 in the verbose output.
6917 (do_spec_1): Keep empty string argument.
6918
f85b70fd
NF
69192011-02-23 Nathan Froyd <froydnj@codesourcery.com>
6920
6921 * config.gcc: Declare score-* and crx-* obsolete.
6922
b152a615
JZ
69232011-02-23 Jie Zhang <jie@codesourcery.com>
6924
6925 PR rtl-optimization/47763
6926 * web.c (web_main): Ignore naked clobber when replacing register.
6927
bb6e77bc
AS
69282011-02-22 Anatoly Sokolov <aesok@post.ru>
6929
6930 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6931 Remove.
6932
68bf6491
SP
69332011-02-22 Sebastian Pop <sebastian.pop@amd.com>
6934
6935 PR doc/47848
6936 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
6937
88ee1fc7
MS
69382011-02-22 Mike Stump <mikestump@comcast.net>
6939
6940 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
6941 assembler.
6942 * configure: Regenerate.
6943
6042d1dd
CLT
69442011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
6945
6946 PR rtl-optimization/46002
6947 * ira-color.c (update_copy_costs): Change class intersection
6948 test to reg_class_contents[] test of 'hard_regno'.
6949
7de97f9e
JM
69502011-02-21 Joseph Myers <joseph@codesourcery.com>
6951
6952 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
6953 than Driver option.
6954 * config/hpux11.opt (mt): Likewise.
6955 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
6956 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
6957 * config/vax/elf.opt (mno-asm-pic): Likewise.
6958 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
6959
d1d46f9f
MS
69602011-02-21 Mike Stump <mikestump@comcast.net>
6961
6962 PR target/47822
6963 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
6964 tree so we can get save the type.
6965 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
6966 for CFString instead of trying to use past the end of the builtins.
6967 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
6968 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
6969 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
6970 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
6971 Rename to darwin_builtin_cfstring.
6972 (darwin_init_cfstring_builtins): Return the built type.
6973
23e0d930
UB
69742011-02-21 Uros Bizjak <ubizjak@gmail.com>
6975
6976 PR target/47840
6977 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
6978 (_mm256_insert_epi64): Use _mm_insert_epi64.
6979
192997cf
AS
69802011-02-21 Anatoly Sokolov <aesok@post.ru>
6981
6982 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6983 * config/stormy16/stormy16-protos.h
6984 (xstormy16_mode_dependent_address_p): Remove.
6985 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
6986 Make static. Change return type to bool. Change argument type to
6987 const_rtx. Remove dead code.
6988 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6989
e292d003
RG
69902011-02-21 Richard Guenther <rguenther@suse.de>
6991
6992 PR lto/47820
6993 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6994 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6995 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
6996 TUs context.
23e0d930 6997 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
6998 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6999
77f846e9
RG
70002011-02-20 Richard Guenther <rguenther@suse.de>
7001
7002 PR lto/47822
7003 * tree.c (free_lang_data_in_decl): Clean builtins from
7004 the TU decl BLOCK_VARS.
23e0d930 7005
b2cddfc8
AO
70062011-02-19 Alexandre Oliva <aoliva@redhat.com>
7007
7008 PR debug/47620
7009 PR debug/47630
7010 * haifa-sched.c (fix_tick_ready): Skip tick computation
7011 for debug insns.
7012
becf4c11
RG
70132011-02-19 Richard Guenther <rguenther@suse.de>
7014
7015 PR lto/47647
7016 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7017 Remove lazy BLOCK_VARS streaming.
7018 (lto_input_ts_block_tree_pointers): Likewise.
7019 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7020
27f98305
JM
70212011-02-19 Joseph Myers <joseph@codesourcery.com>
7022
7023 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7024
064bf3f4
JM
70252011-02-19 Joseph Myers <joseph@codesourcery.com>
7026
7027 * config/i386/biarch32.h, config/i386/mach.h,
7028 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7029
9215ddc3
JJ
70302011-02-19 Jakub Jelinek <jakub@redhat.com>
7031
7032 PR target/47800
7033 * config/i386/i386.md (peephole2 for shift and plus): Use
7034 operands[1] original mode in the first insn.
7035
8b021004
MS
70362011-02-18 Mike Stump <mikestump@comcast.net>
7037
65ded153 7038 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 7039
f84ae14c
JH
70402011-02-18 Jan Hubicka <jh@suse.cz>
7041
7042 PR middle-end/47788
65ded153
EB
7043 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7044 to zero when the function is not inlinable at all.
f84ae14c 7045
eddabc80
JDA
70462011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7047
7048 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7049 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7050 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7051 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7052 * config/pa/t-pa64: Likewise.
7053 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7054
ca3da783
JJ
70552011-02-18 Jakub Jelinek <jakub@redhat.com>
7056
7057 PR driver/47787
7058 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7059
430aa868
JDA
70602011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7061
7062 PR target/47792
7063 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7064
4bf7ff7e
AS
70652011-02-18 Anatoly Sokolov <aesok@post.ru>
7066
7067 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7068 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7069 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7070 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7071 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7072 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7073 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7074 m32r_load_postinc_p, m32r_store_preinc_predec_p,
7075 m32r_legitimate_address_p): New functions.
7076 * config/m32r/constraints.md (constraint "S"): Don't use
7077 STORE_PREINC_PREDEC_P.
7078 (constraint "U"): Don't use LOAD_POSTINC_P.
7079
7efcf910
CLT
70802011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
7081
7082 PR rtl-optimization/46178
7083 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7084 compute ira_hard_regno_cover_class[].
7085
237d6259
RG
70862011-02-18 Richard Guenther <rguenther@suse.de>
7087
7088 PR lto/47798
7089 * lto-streamer.h (lto_global_var_decls): Declare.
7090 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7091 statics for global var processing.
7092
12d80acc
RG
70932011-02-18 Richard Guenther <rguenther@suse.de>
7094
7095 PR tree-optimization/47737
7096 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7097 edge dominance check.
7098
abfea58d
JJ
70992011-02-18 Jakub Jelinek <jakub@redhat.com>
7100
7101 PR debug/47780
7102 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7103 avoid invalid rtx sharing.
7104
f73c8882
GP
71052011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
7106
7107 * doc/cpp.texi (Obsolete Features): Add background on the
7108 origin of assertions.
7109
d764a8e6
IS
71102011-02-17 Iain Sandoe <iains@gcc.gnu.org>
7111
7112 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 7113 objc_abi == 2.
d764a8e6
IS
7114 * config/darwin.c (output_objc_section_asm_op): Added support for
7115 ABI v1 and v2.
7116 (is_objc_metadata): New.
7117 (darwin_objc2_section): New.
7118 (darwin_objc1_section): New.
7119 (machopic_select_section): Added support for ABI v1 and v2.
7120 (darwin_emit_objc_zeroed): New.
7121 (darwin_output_aligned_bss): Detect objc metadata and treat it
7122 appropriately.
7123 (darwin_asm_output_aligned_decl_common): Same.
7124 (darwin_asm_output_aligned_decl_local): Same.
7125 * config/darwin-sections.def: Updated for ABI v1 and v2.
7126 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7127 compiling Objective-C code for the NeXT runtime, default to using
7128 ABI version 0 for 32-bit, and version 2 for 64-bit.
7129
0a8134ca
JM
71302011-02-17 Joseph Myers <joseph@codesourcery.com>
7131
7132 * common.opt (optimize_fast): New Variable.
7133 * opts.c (default_options_optimization): Use opts->x_optimize_fast
7134 instead of local variable ofast.
7135
0a256240
NP
71362011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
7137
7138 * doc/invoke.texi (fobjc-abi-version): Documented.
7139 (fobjc-nilcheck): Documented.
7140 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7141 version.
7142
fa381cb2
JM
71432011-02-17 Joseph Myers <joseph@codesourcery.com>
7144
7145 PR driver/47390
7146 * common.opt (export-dynamic): New Driver option.
7147 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7148
5437eaa6
JM
71492011-02-17 Joseph Myers <joseph@codesourcery.com>
7150
7151 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7152
bb7e6d55
AO
71532011-02-17 Alexandre Oliva <aoliva@redhat.com>
7154 Jan Hubicka <jh@suse.cz>
7155
7156 PR debug/47106
7157 PR debug/47402
7158 * cfgexpand.c (account_used_vars_for_block): Remove.
7159 (estimated_stack_frame_size): Use referenced vars.
7160 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7161 that were referenced in the original function. Test src_fn
7162 rather than cfun. Drop redundant get_var_ann.
7163 (setup_one_parameter): Drop redundant get_var_ann.
7164 (declare_return_variable): Likewise.
7165 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7166 (copy_arguments_for_versioning): Drop redundant get_var_ann.
7167 * ipa-inline.c (compute_inline_parameters): Do not compute
7168 disregard_inline_limits here.
bb7e6d55
AO
7169 (compute_inlinable_for_current, pass_inlinable): New.
7170 (pass_inline_parameters): Require PROP_referenced_vars.
7171 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 7172 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
7173 (cgraph_analyze_function): Set .disregard_inline_limits.
7174 * tree-sra.c (convert_callers): Compute inliner parameters
7175 only for functions already in SSA form.
7176
f181a8a7
JM
71772011-02-17 Joseph Myers <joseph@codesourcery.com>
7178
7179 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7180 -mlittle-endian-data.
7181
c6869789
JM
71822011-02-17 Joseph Myers <joseph@codesourcery.com>
7183
7184 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7185 -mno-fpu, not -fpu and -no-fpu.
7186 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7187 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7188
fbf4bfd3
UB
71892011-02-17 Uros Bizjak <ubizjak@gmail.com>
7190
7191 PR target/43653
7192 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7193 input reload with PLUS RTX.
7194
70be5dc7
JM
71952011-02-16 Joseph Myers <joseph@codesourcery.com>
7196
7197 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7198 of InverseVar(MDMX).
7199
30b1646e
JM
72002011-02-16 Joseph Myers <joseph@codesourcery.com>
7201
7202 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7203 --m4-340.
7204
ab7b71e9
JM
72052011-02-16 Joseph Myers <joseph@codesourcery.com>
7206
7207 * config/mn10300/mn10300.opt (mno-crt0): New.
7208
466f3f08
JM
72092011-02-16 Joseph Myers <joseph@codesourcery.com>
7210
7211 * config/m68k/uclinux.opt (static-libc): New Driver option.
7212
8226cd7b
JM
72132011-02-16 Joseph Myers <joseph@codesourcery.com>
7214
7215 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7216
45cab1d7
JM
72172011-02-16 Joseph Myers <joseph@codesourcery.com>
7218
7219 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7220 %{muser-extend-enabled}.
7221
65aab64f
RG
72222011-02-16 Richard Guenther <rguenther@suse.de>
7223
7224 PR tree-optimization/47738
7225 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7226 the TODO from tree_predictive_commoning.
7227
fc2fa4fb
JL
72282011-02-15 Jeff Law <law@redhat.com>
7229
7230 Revert
7231 2011-01-25 Jeff Law <law@redhat.com>
7232
7233 PR rtl-optimization/37273
7234 * ira-costs.c (scan_one_insn): Detect constants living in memory and
7235 handle them like argument loads from stack slots. Do not double
7236 count memory for memory constants and argument loads from stack slots.
7237
4e380b8e
L
72382011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7239
7240 PR middle-end/47725
7241 * combine.c (cant_combine_insn_p): Revert the last change.
7242
e3a69bb4
MM
72432011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
7244
7245 PR target/47755
7246 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7247 mode for vector constants. Remove code that checks for TImode.
7248
de650422
AO
72492011-02-15 Alexandre Oliva <aoliva@redhat.com>
7250
7251 PR debug/47106
7252 PR debug/47402
7253 * cgraph.h (compute_inline_parameters): Return void.
7254 * ipa-inline.c (compute_inline_parameters): Adjust.
7255
30925d94
AO
72562011-02-15 Alexandre Oliva <aoliva@redhat.com>
7257
7258 PR debug/47106
7259 PR debug/47402
7260 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7261 rather than decl.
7262 * cfgexpand.c (estimated_stack_frame_size): Likewise.
7263 * ipa-inline.c (compute_inline_parameters): Adjust.
7264
1b9a784a
AO
72652011-02-15 Alexandre Oliva <aoliva@redhat.com>
7266
7267 PR debug/47106
7268 PR debug/47402
7269 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7270 Adjust all users. Pass FN to...
7271 * tree-flow-inline.h (first_referenced_var): ... this. Add
7272 fn argument.
7273 * ipa-struct-reorg.c: Adjust.
7274 * tree-dfa.c: Adjust.
7275 * tree-into-ssa.c: Adjust.
7276 * tree-sra.c: Adjust.
7277 * tree-ssa-alias.c: Adjust.
7278 * tree-ssa-live.c: Adjust.
7279 * tree-ssa.c: Adjust.
7280 * tree-ssanames.c: Adjust.
7281 * tree-tailcall.c: Adjust.
7282
27c6b086
AO
72832011-02-15 Alexandre Oliva <aoliva@redhat.com>
7284
7285 PR debug/47106
7286 PR debug/47402
7287 * tree-flow.h (referenced_var_lookup): Add fn parameter.
7288 Adjust all callers.
7289 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7290 * tree-flow-inline.h: Adjust.
7291 * gimple-pretty-print.c: Adjust.
7292 * tree-into-ssa.c: Adjust.
7293 * tree-ssa.c: Adjust.
7294 * cfgexpand.c: Adjust.
7295
679e8183
NF
72962011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7297
fbf4bfd3
UB
7298 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7299 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7300 (EXTRA_CONSTRAINT): Delete.
7301 * config/iq2000/constraints.md: New file.
7302 * config/iq2000/iq2000.md: Include it.
679e8183
NF
7303 (define_insn ""): Delete.
7304 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7305 unsupported constraint letters from patterns.
7306 (call_value, call_value_internal1): Likewise.
7307 (call_value_multiple_internal1): Likewise.
7308
a45d420a
NC
73092011-02-15 Nick Clifton <nickc@redhat.com>
7310
7311 * config/mn10300/mn10300.c: Include tm-constrs.h.
7312 (struct liw_data): New data structure describing an LIW candidate
7313 instruction.
7314 (extract_bundle): Use struct liw_data. Allow small integer
7315 operands for some instructions.
7316 (check_liw_constraints): Use struct liw_data. Remove swapped
7317 parameter. Add comments describing the checks. Fix bug when
7318 assigning the source of liw1 to the source of liw2.
7319 (liw_candidate): Delete. Code moved into extract_bundle.
7320 (mn10300_bundle_liw): Use struct liw_data. Check constraints
7321 before swapping.
7322 * config/mn10300/predicates.md (liw_operand): New predicate.
7323 Allows registers and small integer constants.
7324 * config/mn10300/constraints.md (O): New constraint. Accetps
7325 integers in the range -8 to +7 inclusive.
7326 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
7327 for moving a small integer into a register. Give this alternative
7328 LIW attributes.
7329 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
7330 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
7331 using the J,K,L and M constraints,
7332 (liw): Remove SI mode on second operands to allow for HI and QI
7333 mode values.
7334 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
7335 instruction.
7336
8a73faf1
L
73372011-02-15 H.J. Lu <hongjiu.lu@intel.com>
7338
7339 PR middle-end/47725
7340 * combine.c (cant_combine_insn_p): Check zero/sign extended
7341 hard registers.
7342
48feba28
RG
73432011-02-15 Richard Guenther <rguenther@suse.de>
7344
7345 PR tree-optimization/47743
7346 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
7347 for a non-type-compatible VN lookup bail out.
7348
ad1c1eeb
NF
73492011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7350
7351 * config/fr30/constraints.md: New file.
7352 * config/fr30/fr30.md: Include it.
7353 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
7354 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7355 (EXTRA_CONSTRAINT): Delete.
7356
49ac143d
NF
73572011-02-15 Nathan Froyd <froydnj@codesourcery.com>
7358
7359 * config/frv/constraints.md: New file.
7360 * config/frv/predicates.md: Include it.
7361 * config/frv/frv.c (reg_class_from_letter): Delete.
7362 (frv_option_override): Don't initialize it.
7363 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
7364 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
7365 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
7366 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7367 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
7368 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7369 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
7370 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
7371 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
7372 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
7373 (REG_CLASS_FROM_CONSTRAINT): Delete.
7374
c95f9494
JJ
73752011-02-15 Jakub Jelinek <jakub@redhat.com>
7376
7377 PR middle-end/47581
7378 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
7379 if frame size is 0 in a leaf function.
7380
13aed611
RO
73812011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7382
7383 PR pch/14940
7384 * config/alpha/host-osf.c: New file.
7385 * config/alpha/x-osf: New file.
7386 * config.host (alpha*-dec-osf*): Use it.
7387
b09c3081
AS
73882011-02-14 Anatoly Sokolov <aesok@post.ru>
7389
7390 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7391 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
7392 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
7393 (rx_mode_dependent_address_p): ...this. Make static. Change argument
7394 type to const_rtx.
7395 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7396
d634083b
NF
73972011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7398
7399 * config/stormy16/constraints.md: New file.
7400 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
7401 Use satisfies_constraint_Q and satisfies_constraint_R.
7402 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
7403 Delete.
7404 (xstormy16_legitiamte_address_p): Declare.
7405 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
7406 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7407 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 7408 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
7409 Un-staticize.
7410 (xstormy16_extra_constraint_p): Delete.
7411
c7dd803e
EB
74122011-02-14 Eric Botcazou <ebotcazou@adacore.com>
7413
7414 PR tree-optimization/46494
7415 * loop-unroll.c (split_edge_and_insert): Adjust comment.
7416 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
7417 (pass_rtl_loop_done): Add TODO_verify_flow.
7418 * fwprop.c (pass_rtl_fwprop): Likewise.
7419 * modulo-sched.c (pass_sms): Likewise.
7420 * tree-ssa-dom.c (pass_dominator): Likewise.
7421 * tree-ssa-loop-ch.c (pass_ch): Likewise.
7422 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
7423 (pass_tree_loop_done): Likewise.
7424 * tree-ssa-pre.c (execute_pre): Likewise.
7425 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
7426 * tree-ssa-sink.c (pass_sink_code): Likewise.
7427 * tree-vrp.c (pass_vrp): Likewise.
7428
c6150df6
NF
74292011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7430
c7dd803e
EB
7431 * config/v850/constraints.md: New file.
7432 * config/v850/v850.md: Include it.
7433 * config/v850/predicates.md (reg_or_0_operand): Use
7434 satisfies_constraint_G.
7435 (special_symbolref_operand): Use satisfies_constraint_K.
7436 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
7437 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
7438 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
7439 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7440 (EXTRA_CONSTRAINT): Delete.
7441 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
7442 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
7443 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 7444
30dd1ea3
AS
74452011-02-14 Anatoly Sokolov <aesok@post.ru>
7446
7447 PR target/47696
7448 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
7449 description.
7450
944f4bb3
NF
74512011-02-14 Nathan Froyd <froydnj@codesourcery.com>
7452
7453 * config/mcore/constraints.md: New file.
7454 * config/mcore/mcore.md: Include it.
7455 * config/mcore/mcore.c (reg_class_from_letter): Delete.
7456 * config/mcore/mcore.h (reg_class_from_letter): Delete.
7457 (REG_CLASS_FROM_LETTER): Delete.
7458 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
7459 insn_const_int_ok_for_constraint.
7460 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
7461 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
7462 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7463 (EXTRA_CONSTRAINT): Delete.
7464
ad56a54c
RO
74652011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7466
7467 PR ada/41929
7468 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
7469 (IS_SIGHANDLER): Define.
7470 (sparc64_is_sighandler): New function, split off from
7471 sparc64_fallback_frame_state.
7472 (sparc_is_sighandler): New function, split off from
7473 sparc_fallback_frame_state.
7474 (sparc64_fallback_frame_state): Merge with ...
7475 (sparc_fallback_frame_state): ... this into ...
7476 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
7477 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
7478 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
7479 stack instead of hardcoded offsets.
ad56a54c 7480
fbf4bfd3 74812011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
7482
7483 PR target/45808
7484 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
7485
029c8f3e
RW
74862011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7487
7488 * configure: Regenerate.
7489
a016dc83
JM
74902011-02-12 Joseph Myers <joseph@codesourcery.com>
7491
7492 PR driver/45731
7493 * gcc.c (asm_options): Correct spec matching --target-help.
7494
8957a0ec
MJ
74952011-02-12 Martin Jambor <mjambor@suse.cz>
7496
7497 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
7498 to gimple call error.
7499
6ef828bc
MS
75002011-02-12 Mike Stump <mikestump@comcast.net>
7501
7502 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
7503 comments in backslash regions.
7504
a4015be5
MS
75052011-02-12 Mike Stump <mikestump@comcast.net>
7506 Jakub Jelinek <jakub@redhat.com>
7507 Iain Sandoe <iains@gcc.gnu.org>
7508
7509 PR target/47324
7510 * dwarf2out.c (output_cfa_loc): When required, apply the
7511 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
7512 (output_loc_sequence): Likewise.
7513 (output_loc_operands_raw): Likewise.
7514 (output_loc_sequence_raw): Likewise.
7515 (output_cfa_loc): Likewise.
7516 (output_loc_list): Suppress register number adjustment when
7517 calling output_loc_sequence()
7518 (output_die): Likewise.
7519
5378dda2
AS
75202011-02-12 Anatoly Sokolov <aesok@post.ru>
7521
7522 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7523 Remove macros.
7524 * config/xtensa/xtensa.c (xtensa_register_move_cost,
7525 xtensa_memory_move_cost): New functions.
7526 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
7527
f3d533d3
AO
75282011-02-12 Alexandre Oliva <aoliva@redhat.com>
7529
7530 PR lto/47225
7531 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
7532 in the current directory.
7533 * configure: Rebuilt.
7534
9d53403c
IS
75352011-02-12 Iain Sandoe <iains@gcc.gnu.org>
7536
7537 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 7538 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
7539 correct indents of the preceding block.
7540
a350a6c8
IS
75412011-02-12 Iain Sandoe <iains@gcc.gnu.org>
7542
7543 * gcc.c (driver_handle_option): Concatenate the argument to -F with
7544 the switch.
7545
bab79a40
JM
75462011-02-11 Joseph Myers <joseph@codesourcery.com>
7547
7548 * common.opt (nostartfiles): New Driver option.
7549
1bbc6693
XDL
75502011-02-11 Xinliang David Li <davidxl@google.com>
7551
7552 PR tree-optimization/47707
7553 * tree-chrec.c (convert_affine_scev): Keep type precision.
7554
1da7d8c0
EB
75552011-02-11 Eric Botcazou <ebotcazou@adacore.com>
7556
7557 PR tree-optimization/47420
7558 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
7559
75602011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
7561
7562 PR rtl-optimization/47614
7563 * rtl.h (check_for_inc_dec): Declare.
7564 * dse.c (check_for_inc_dec): Externalize...
7565 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
7566 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
7567
4df47bca
JM
75682011-02-11 Joseph Myers <joseph@codesourcery.com>
7569
7570 PR driver/47678
7571 * gcc.c (main): Do not compile inputs if there were errors in
7572 option handling.
7573 * opts-common.c (read_cmdline_option): Check for wrong language
7574 after other error checks.
7575
61502ca8
NF
75762011-02-11 Nathan Froyd <froydnj@codesourcery.com>
7577
7578 * cgraph.c: Fix comment typos.
7579 * cgraph.h: Likewise.
7580 * cgraphunit.c: Likewise.
7581 * ipa-cp.c: Likewise.
7582 * ipa-inline.c: Likewise.
7583 * ipa-prop.c: Likewise.
7584 * ipa-pure-const.c: Likewise.
7585 * ipa-ref.c: Likewise.
7586 * ipa-reference.c: Likewise.
7587
b63f974e
JJ
75882011-02-11 Jakub Jelinek <jakub@redhat.com>
7589
d50c5e0c
JJ
7590 PR debug/47684
7591 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 7592
6dd2a13c
RO
75932011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7594
7595 PR testsuite/47400
7596 * doc/sourcebuild.texi (Require Support): Document
7597 dg-require-ascii-locale.
7598
4a087ccf
MX
75992011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
7600
7601 * doc/lto.texi (Write summary): Fix missing parentheses.
7602
a4403164
DD
76032011-02-10 DJ Delorie <dj@redhat.com>
7604
7605 * config/m32c/m32c.c (m32c_option_override): Disable
7606 -fcombine-stack-adjustments until flag value tracking and compare
7607 optimization can be rewritten.
7608
4fac45bd
PB
76092011-02-10 Peter Bergner <bergner@vnet.ibm.com>
7610
7611 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
7612 PROCESSOR_POWER7.
7613 (PROCESSOR_DEFAULT64): Likewise.
7614
72602cd1
RH
76152011-02-10 Richard Henderson <rth@redhat.com>
7616
7617 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
7618 change from 2011-02-03.
7619 * config/rx/rx.c (flags_from_code): Likewise.
7620 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
7621 is valid, n/pz otherwise.
7622 (rx_select_cc_mode): Return CCmode if Y is not zero.
7623
ea57f573
RG
76242011-02-10 Richard Guenther <rguenther@suse.de>
7625
ea4c3e65 7626 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 7627
92b1d23b
RG
76282011-02-10 Richard Guenther <rguenther@suse.de>
7629
7630 PR tree-optimization/47677
7631 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
7632
525a2d06
JJ
76332011-02-10 Jakub Jelinek <jakub@redhat.com>
7634
7635 PR target/47665
7636 * combine.c (make_compound_operation): Only change shifts into
7637 multiplication for SCALAR_INT_MODE_P.
7638
06c969bd
JZ
76392011-02-10 Jie Zhang <jie@codesourcery.com>
7640
7641 PR testsuite/47622
7642 Revert
7643 2011-02-05 Jie Zhang <jie@codesourcery.com>
7644 PR debug/42631
7645 * web.c (entry_register): Don't clobber the number of the
7646 first uninitialized reference in used[].
7647
282ec48e
RG
76482011-02-09 Richard Guenther <rguenther@suse.de>
7649
7650 PR tree-optimization/47664
7651 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
7652 all edges again.
7653
df98c3e8
DE
76542011-02-09 David Edelsohn <dje.gcc@gmail.com>
7655
d0f21cd6
DE
7656 PR target/46481
7657 PR target/47032
df98c3e8
DE
7658 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
7659 PROCESSOR_POWER7.
7660 (PROCESSOR_DEFAULT64): Same.
7661 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
7662
67b6839f
RO
76632011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7664
7665 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
7666
4fd73214
MJ
76672011-02-09 Martin Jambor <mjambor@suse.cz>
7668
7669 PR middle-end/45505
7670 * tree-sra.c (struct access): New flags grp_scalar_read and
7671 grp_scalar_write. Changed description of assignment read and write
7672 flags.
7673 (dump_access): Dump new flags, reorder all of them.
7674 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
7675 to detect multiple scalar reads.
7676 (analyze_access_subtree): Use the new scalar read write flags instead
7677 of the old flags. Adjusted comments.
7678
91140cd3
DD
76792011-02-08 DJ Delorie <dj@redhat.com>
7680
7681 PR target/47548
7682 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
7683 patterns.
7684
4254bbfe
JM
76852011-02-08 Joseph Myers <joseph@codesourcery.com>
7686
7687 * config/m68k/uclinux.opt: New.
7688 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
7689
f1fda84e
JM
76902011-02-08 Joseph Myers <joseph@codesourcery.com>
7691
7692 * config/cris/elf.opt (sim): New Driver option.
7693
4933ae74
JM
76942011-02-08 Joseph Myers <joseph@codesourcery.com>
7695
7696 * config/xtensa/elf.opt: New.
7697 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
7698
4ad70280
JM
76992011-02-08 Joseph Myers <joseph@codesourcery.com>
7700
7701 * config/vax/elf.opt: New.
7702 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
7703
20893707
JM
77042011-02-08 Joseph Myers <joseph@codesourcery.com>
7705
7706 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
7707
b8e7038e
JM
77082011-02-08 Joseph Myers <joseph@codesourcery.com>
7709
7710 * config/gnu-user.opt: New.
7711 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
7712 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
7713 *-*-uclinux*): Use gnu-user.opt.
7714
e1c5225a
TS
77152011-02-08 Thomas Schwinge <thomas@schwinge.name>
7716
7717 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
7718 * config/i386/gnu.h (CPP_SPEC): Likewise.
7719
5e46b0c6
ILT
77202011-02-08 Ian Lance Taylor <iant@google.com>
7721
7722 * common.opt (fcx-limited-range): Add SetByCombined flag.
7723 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
7724 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
7725 (fassociative-math, freciprocal-math): Likewise.
7726 (funsafe-math-optimizations): Likewise.
7727 * opth-gen.awk: Handle SetByCombined.
7728 * optc-gen.awk: Likewise.
ea4c3e65 7729 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
7730 (set_unsafe_math_optimizations_flags): Likewise.
7731 * doc/options.texi (Option properties): Document SetByCombined.
7732
32243d46
JM
77332011-02-08 Joseph Myers <joseph@codesourcery.com>
7734
7735 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
7736 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
7737 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
7738 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
7739 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
7740
479c1fb3
SP
77412011-02-08 Sebastian Pop <sebastian.pop@amd.com>
7742
7743 PR tree-optimization/46834
7744 PR tree-optimization/46994
7745 PR tree-optimization/46995
7746 * graphite-sese-to-poly.c (used_outside_reduction): New.
7747 (detect_commutative_reduction): Call used_outside_reduction.
7748 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
7749 translate_scalar_reduction_to_array only when at least one
7750 loop-phi/close-phi tuple has been detected.
7751
3865a06f
RG
77522011-02-08 Richard Guenther <rguenther@suse.de>
7753
7754 PR middle-end/47639
7755 * tree-vect-generic.c (expand_vector_operations_1): Update
7756 stmts here ...
7757 (expand_vector_operations): ... not here. Cleanup EH info
7758 and the CFG if required.
7759
62902f3f
RG
77602011-02-08 Richard Guenther <rguenther@suse.de>
7761
7762 PR tree-optimization/47641
7763 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
7764 require type compatibility.
7765
0efb9d64
AK
77662011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7767
7768 * gimple-low.c (lower_function_body): Don't remove the location of
7769 the return statement here.
7770 (lower_gimple_return): Do it here instead but only if the return
7771 statement is actually used twice.
7772
034b8ae4
RG
77732011-02-08 Richard Guenther <rguenther@suse.de>
7774
7775 PR tree-optimization/47632
7776 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
7777 unused up_to_stmt parameter, return whether cfg-cleanup is
7778 necessary, remove EH info properly.
7779 (forward_propagate_into_gimple_cond): Adjust caller.
7780 (forward_propagate_into_cond): Likewise.
7781 (forward_propagate_comparison): Likewise.
7782 (tree_ssa_forward_propagate_single_use_vars): Make
7783 forward_propagate_comparison case similar to the two others.
7784
298362c8
NC
77852011-02-08 Nick Clifton <nickc@redhat.com>
7786
7787 * config/mn10300/mn10300.opt (mliw): New command line option.
7788 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
7789 (liw_bundling): New automaton.
7790 (liw): New attribute.
7791 (liw_op): New attribute.
7792 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
7793 (movsi_internal): Add LIW attributes.
7794 (andsi3): Likewise.
7795 (iorsi3): Likewise.
7796 (xorsi3): Likewise.
7797 (addsi3): Separate register and immediate alternatives.
7798 Add LIW attributes.
7799 (subsi3): Likewise.
7800 (cmpsi): Likewise.
7801 (aslsi3): Likewise.
7802 (lshrsi3): Likewise.
7803 (ashrsi3): Likewise.
7804 (liw): New pattern.
7805 * config/mn10300/mn10300.c (liw_op_names): New
7806 (mn10300_print_operand): Handle 'W' operand descriptor.
7807 (extract_bundle): New function.
7808 (check_liw_constraints): New function.
7809 (liw_candidate): New function.
7810 (mn10300_bundle_liw): New function.
7811 (mn10300_reorg): New function.
7812 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7813 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
7814 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
7815 __LIW__ or __NO_LIW__.
7816 * doc/invoke.texi: Describe the -mliw command line option.
7817
90488014
JDA
78182011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7819
7820 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
7821 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7822 pthread_mutex_unlock): Remove.
7823 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
7824 * config/pa/t-pa64: Likewise.
7825 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
7826 shared libc if not linking against libpthread.
7827 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7828
689ff841
IS
78292011-02-07 Iain Sandoe <iains@gcc.gnu.org>
7830
7831 PR target/47558
7832 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
7833 on 10.6 and later to ensure that we always use the unwinder from
7834 the system. Only add -no_compact_unwind when tarteting darwin
7835 10.6 or later.
7836
821014aa
SE
78372011-02-07 Steve Ellcey <sje@cup.hp.com>
7838
7839 PR target/46997
7840 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
7841 (vec_interleave_lowv2sf): Ditto.
7842 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
7843 (vec_extract_oddv2sf): Ditto.
7844
41cf94fb
MS
78452011-02-07 Mike Stump <mikestump@comcast.net>
7846
62dea57d 7847 PR target/42333
41cf94fb
MS
7848 Add __ieee_divdc3 entry point.
7849 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
7850 entry point.
7851 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
7852 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
7853 * config/darwin.c (darwin_rename_builtins): Add.
7854 * config/darwin-protos.h (darwin_rename_builtins): Add.
7855
ee09a3dd
MM
78562011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
7857
7858 PR target/47636
7859 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
7860 for the condition.
7861
83296cd0
MS
78622011-02-07 Mike Stump <mikestump@comcast.net>
7863
ea4c3e65 7864 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 7865
0f4e946f
DC
78662011-02-07 Denis Chertykov <chertykov@gmail.com>
7867
7868 PR target/47534
7869 * config/avr/libgcc.S (exit): Move .endfunc
7870
1ec87690
RG
78712011-02-07 Richard Guenther <rguenther@suse.de>
7872
7873 PR tree-optimization/47615
7874 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
7875 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
7876 (run_scc_vn): Initialize it.
7877 (visit_reference_op_load): Use it.
7878 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
7879
b46ae6da
UW
78802011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7881
7882 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
7883 DImode trapping arithmetic libfuncs.
7884
c0aae19c
RG
78852011-02-07 Richard Guenther <rguenther@suse.de>
7886
7887 PR tree-optimization/47621
7888 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
7889 two duplicates ...
7890 (execute_update_addresses_taken): ... here. Make it more
7891 conservative in what we accept.
7892
295d926b
JM
78932011-02-06 Joseph Myers <joseph@codesourcery.com>
7894
7895 * config/sparc/freebsd.h (ASM_SPEC): Define.
7896 * config/sparc/vxworks.h (ASM_SPEC): Define.
7897
bdeb2471
JM
78982011-02-06 Joseph Myers <joseph@codesourcery.com>
7899
7900 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7901
d5d3781a
SB
79022011-02-06 Steven Bosscher <steven@gcc.gnu.org>
7903
7904 * doc/invoke.texi: Remove reference to compiler internals from
7905 user documentation.
7906
7907 * reg-notes.def: Remove REG_VALUE_PROFILE.
7908 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
7909
c42c09fc
JJ
79102011-02-05 Jakub Jelinek <jakub@redhat.com>
7911
7912 PR middle-end/47610
7913 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 7914 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 7915
beea2755
JZ
79162011-02-05 Jie Zhang <jie@codesourcery.com>
7917
7918 PR debug/42631
7919 * web.c (entry_register): Don't clobber the number of the
7920 first uninitialized reference in used[].
7921
a130584a
SP
79222011-02-04 Sebastian Pop <sebastian.pop@amd.com>
7923
7924 PR tree-optimization/46194
7925 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
7926 (build_classic_dist_vector_1): Do not represent classic distance
7927 vectors when the access functions are variating in different loops.
7928
962101ac
JM
79292011-02-04 Joseph Myers <joseph@codesourcery.com>
7930
7931 * config/mips/iris6.opt: New.
7932 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
7933
55eaaa5b
RH
79342011-02-04 Richard Henderson <rth@redhat.com>
7935 Steve Ellcey <sje@cup.hp.com>
7936
7937 PR target/46997
7938 * config/ia64/predicates.md (mux1_brcst_element): New.
7939 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
7940 * config/ia64/ia64.c (ia64_unpack_assemble): New.
7941 (ia64_unpack_sign): New.
7942 (ia64_expand_unpack): Rewrite using new routines.
7943 (ia64_expand_widen_sum): Ditto.
7944 (ia64_expand_dot_prod_v8qi): Ditto.
7945 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
7946 routines, add endian check.
7947 (pmpy2_even): Rename from pmpy2_r, add endian check.
7948 (pmpy2_odd): Rename from pmpy2_l, add endian check.
7949 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
7950 (vec_widen_smult_hi_v4hi): Ditto.
7951 (vec_widen_umult_lo_v4hi): Ditto.
7952 (vec_widen_umult_hi_v4hi): Ditto.
7953 (mulv2si3): Change endian checks.
7954 (sdot_prodv4hi): Rewrite with new calls.
7955 (udot_prodv4hi): New.
7956 (vec_pack_ssat_v4hi): Add endian check.
7957 (vec_pack_usat_v4hi): Ditto.
7958 (vec_pack_ssat_v2si): Ditto.
7959 (max1_even): Rename from max1_r, add endian check.
7960 (max1_odd): Rename from max1_l, add endian check.
7961 (*mux1_rev): Format change.
7962 (*mux1_mix): Ditto.
7963 (*mux1_shuf): Ditto.
7964 (*mux1_alt): Ditto.
7965 (*mux1_brcst_v8qi): Use new predicate.
7966 (vec_extract_evenv8qi): Remove endian check.
7967 (vec_extract_oddv8qi): Ditto.
7968 (vec_interleave_lowv4hi): Format change.
7969 (vec_interleave_highv4hi): Ditto.
7970 (mix2_even): Rename from mix2_r, add endian check.
7971 (mix2_odd): Rename from mux2_l, add endian check.
7972 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
7973 (vec_extract_evenodd_helper): Format change.
7974 (vec_extract_evenv4hi): Remove endian check.
7975 (vec_extract_oddv4hi): Remove endian check.
7976 (vec_interleave_lowv2si): Format change.
7977 (vec_interleave_highv2si): Format change.
7978 (vec_initv2si): Remove endian check.
7979 (vecinit_v2si): Add endian check.
7980 (reduc_splus_v2sf): Add endian check.
7981 (reduc_smax_v2sf): Ditto.
7982 (reduc_smin_v2sf): Ditto.
7983 (vec_initv2sf): Remove endian check.
7984 (fpack): Add endian check.
7985 (fswap): Add endian check.
7986 (vec_interleave_highv2sf): Add endian check.
7987 (vec_interleave_lowv2sf): Add endian check.
7988 (fmix_lr): Add endian check.
7989 (vec_setv2sf): Format change.
7990 (*vec_extractv2sf_0_be): Use shift to extract operand.
7991 (*vec_extractv2sf_1_be): New.
7992 (vec_pack_trunc_v4hi): Add endian check.
7993 (vec_pack_trunc_v2si): Format change.
7994
dcde5957
JJ
79952011-02-04 Jakub Jelinek <jakub@redhat.com>
7996
7997 PR inline-asm/23200
7998 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 7999 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
8000 (stmt_is_replaceable_p): New function.
8001 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8002 callers.
8003 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8004 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8005 SSA_NAME_DEF_STMT.
8006 * tree-flow.h (stmt_is_replaceable_p): New prototype.
8007
a64a8e5a
JM
80082011-02-04 Joseph Myers <joseph@codesourcery.com>
8009
8010 * config/rs6000/xilinx.opt: New.
8011 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8012
4da2ed2f
JM
80132011-02-04 Joseph Myers <joseph@codesourcery.com>
8014
8015 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8016
a6e508f9
AS
80172011-02-03 Anatoly Sokolov <aesok@post.ru>
8018
8019 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8020 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8021 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8022 secondary_reload_info, xtensa_secondary_reload): Remove.
8023 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8024 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8025 (xtensa_preferred_reload_class): Make static. Change return and
8026 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8027 Use CONST_DOUBLE_P predicate.
8028 (xtensa_preferred_output_reload_class): New function.
8029 (xtensa_secondary_reload): Make static.
8030
82dc0de3
JM
80312011-02-03 Joseph Myers <joseph@codesourcery.com>
8032
8033 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8034 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8035 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8036
7fece979
JJ
80372011-02-03 Jakub Jelinek <jakub@redhat.com>
8038
8039 PR middle-end/31490
8040 * output.h (SECTION_RELRO): Define.
8041 (SECTION_MACH_DEP): Adjust.
8042 (get_variable_section): New prototype.
8043 * varpool.c (varpool_finalize_named_section_flags): New function.
8044 (varpool_assemble_pending_decls): Call it.
8045 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8046 * cgraphunit.c (cgraph_output_in_order): Call
8047 varpool_finalize_named_section_flags.
8048 * varasm.c (get_section): Allow section flags conflicts between
8049 relro and read-only sections if the section hasn't been declared yet.
8050 Set SECTION_OVERRIDE after diagnosing section type conflict.
8051 (get_variable_section): No longer static.
8052 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8053 readonly sections that need relocations.
8054 (decl_readonly_section_1): New function.
8055 (decl_readonly_section): Use it.
8056
8057 Revert:
509d65dd 8058 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
8059 Steve Ellcey <sje@cup.hp.com>
8060
8061 PR middle-end/31490
8062 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8063 if section attribute used.
8064
d18d5478
JJ
80652011-02-03 Jakub Jelinek <jakub@redhat.com>
8066
8067 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8068 * config/darwin.c (SECTION_NO_ANCHOR): Define.
8069 (darwin_init_sections): Remove assertion.
8070
6479ed4b
NC
80712011-02-03 Nick Clifton <nickc@redhat.com>
8072
8073 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8074 lt and ge.
38be4072 8075 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
8076 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8077 instead of "n" and "pz".
8078 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8079 CC_FLAG_S.
8080
89843f5d
JJ
80812011-02-03 Jakub Jelinek <jakub@redhat.com>
8082
65450d64
JJ
8083 PR target/47312
8084 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8085 fma, expand FMA_EXPR as fma{,f,l} call.
8086
7d58701c
JJ
8087 PR lto/47274
8088 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8089 copy them into a unsigned char variable and pass address of it to
8090 lto_output_data_stream.
8091
89843f5d
JJ
8092 PR target/47564
8093 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8094 around backend_init_target and lang_dependent_init_target calls.
8095 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8096 (verify_cgraph_node): Don't call set_cfun here. Use
8097 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8098 Set error_found for incorrectly represented calls to thunks.
8099
4deef538
AO
81002011-02-03 Alexandre Oliva <aoliva@redhat.com>
8101
8102 PR debug/43092
8103 PR rtl-optimization/43494
8104 * rtl.h (for_each_inc_dec_fn): New type.
8105 (for_each_inc_dec): Declare.
8106 * rtlanal.c (struct for_each_inc_dec_ops): New type.
8107 (for_each_inc_dec_find_inc_dec): New fn.
8108 (for_each_inc_dec_find_mem): New fn.
8109 (for_each_inc_dec): New fn.
8110 * dse.c (struct insn_size): Remove.
8111 (replace_inc_dec, replace_inc_dec_mem): Remove.
8112 (emit_inc_dec_insn_before): New fn.
8113 (check_for_inc_dec): Use it, along with for_each_inc_dec.
8114 (canon_address): Pass mem modes to cselib_lookup.
8115 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
8116 (cselib_lookup_from_insn): Likewise.
8117 (cselib_subst_to_values): Likewise.
8118 * cselib.c (find_slot_memmode): New var.
8119 (cselib_find_slot): New fn. Use it instead of
8120 htab_find_slot_with_hash everywhere.
8121 (entry_and_rtx_equal_p): Use find_slot_memmode.
8122 (autoinc_split): New fn.
8123 (rtx_equal_for_cselib_p): Rename and implement in terms of...
8124 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
8125 Deal with autoinc. Special-case recursion into MEMs.
8126 (cselib_hash_rtx): Likewise.
8127 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
8128 address and MEM modes.
8129 (cselib_subst_to_values): Add memmode, pass it on.
8130 Deal with autoinc.
8131 (cselib_lookup): Add memmode argument, pass it on.
8132 (cselib_lookup_from_insn): Add memmode.
8133 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8134 (struct cselib_record_autoinc_data): New.
8135 (cselib_record_autoinc_cb): New fn.
8136 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
8137 mode to cselib_lookup. Reset autoinced REGs here instead of...
8138 (cselib_process_insn): ... here.
8139 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8140 to cselib_lookup.
8141 (add_uses): Likewise, also to cselib_subst_to_values.
8142 (add_stores): Likewise.
8143 * sched-deps.c (add_insn_mem_dependence): Pass mode to
8144 cselib_subst_to_values.
8145 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
8146 * gcse.c (do_local_cprop): Adjusted.
8147 * postreload.c (reload_cse_simplify_set): Adjusted.
8148 (reload_cse_simplify_operands): Adjusted.
8149 * sel-sched-dump (debug_mem_addr_value): Pass mode.
8150
1551d44a
AO
81512011-02-03 Alexandre Oliva <aoliva@redhat.com>
8152
8153 PR tree-optimization/45122
8154 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8155 unsafe assumptions when there's more than one loop exit.
8156
c9485473
MM
81572011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8158
8159 PR target/47272
8160 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8161 Document using vector double with the load/store builtins, and
8162 that the load/store builtins always use Altivec instructions.
8163
8164 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8165 to use altivec memory instructions, even on VSX.
8166 (vector_altivec_store_<mode>): Ditto.
8167
8168 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8169 function.
8170
8171 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8172 V2DF, V2DI support to load/store overloaded builtins.
8173
8174 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8175 altivec load/store builtins for V2DF/V2DI types.
8176
8177 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8178 set avoid indexed addresses on power6 if -maltivec.
8179 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8180 vector_altivec_load/vector_altivec_store builtins.
8181 (altivec_expand_st_builtin): Ditto.
8182 (altivec_expand_builtin): Add VSX memory builtins.
8183 (rs6000_init_builtins): Add V2DI types to internal types.
8184 (altivec_init_builtins): Add support for V2DF/V2DI altivec
8185 load/store builtins.
8186 (rs6000_address_for_altivec): Insure memory address is appropriate
8187 for Altivec.
8188
8189 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8190 vec_vsx_ld and vec_vsx_st.
8191 (vsx_store_<mode>): Ditto.
8192
8193 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8194 variables to hold long long types for VSX vector memory builtins.
8195 (RS6000_BTI_unsigned_long_long): Ditto.
8196 (long_long_integer_type_internal_node): Ditti.
8197 (long_long_unsigned_type_internal_node): Ditti.
8198
8199 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8200 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8201 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8202
8203 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8204 short cuts.
8205 (vec_vsx_st): Ditto.
8206
b24d1acf
JM
82072011-02-02 Joseph Myers <joseph@codesourcery.com>
8208
8209 * config/pa/pa-hpux10.opt: New.
8210 * config/hpux11.opt (pthread): New Driver option.
8211 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8212 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8213
aa18dd0f
JM
82142011-02-02 Joseph Myers <joseph@codesourcery.com>
8215
8216 * config/ia64/vms.opt: New.
8217 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8218
28fc3eee
MM
82192011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
8220
8221 PR target/47580
8222 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8223 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8224 generator functions.
8225 (vsx_floatuns<VSi><mode>2): Ditto.
8226 (vsx_fix_trunc<mode><VSi>2): Ditto.
8227 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8228
b5838b1f
JM
82292011-02-02 Joseph Myers <joseph@codesourcery.com>
8230
8231 * config/i386/djgpp.opt (posix): New Driver option.
8232
0db8fa89
GP
82332011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
8234
8235 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8236 Move to the unsupported targets list.
8237
9cd4f22a
PB
82382011-02-02 Peter Bergner <bergner@vnet.ibm.com>
8239
8240 PR rtl-optimization/47525
8241 * df-scan.c: Update copyright years.
8242 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8243 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8244
9ed8059c
RO
82452011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8246
8247 * config/i386/sysv4.h (TARGET_VERSION): Remove.
8248 (SUBTARGET_RETURN_IN_MEMORY): Remove.
8249 (ASM_OUTPUT_ASCII): Remove.
8250 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8251
2a737389
JL
82522011-02-02 Jeff Law <law@redhat.com>
8253
8254 PR middle-end/47543
8255 * reload.c (find_reloads_address): Handle reg+d address where both
8256 components are invalid by reloading the entire address.
8257
9dac82c4
SP
82582011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8259 Richard Guenther <rguenther@suse.de>
8260
8261 PR tree-optimization/40979
8262 PR bootstrap/47044
8263 * passes.c (init_optimization_passes): After LIM call copy_prop
8264 and DCE to clean up.
8265 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8266
14dd9aab
SP
82672011-02-02 Sebastian Pop <sebastian.pop@amd.com>
8268
8269 PR tree-optimization/47576
8270 PR tree-optimization/47555
8271 * doc/invoke.texi (scev-max-expr-complexity): Documented.
8272 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8273 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8274 * tree-scalar-evolution.c (follow_ssa_edge): Use
8275 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8276
5cbf5c20
RG
82772011-02-02 Richard Guenther <rguenther@suse.de>
8278
8279 PR tree-optimization/47566
8280 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8281
83d70792
AO
82822011-02-02 Alexandre Oliva <aoliva@redhat.com>
8283
e829c321
AO
8284 PR debug/47106
8285 PR debug/47402
8286 * tree-inline.c (declare_return_variable): Remove unused caller
8287 variable.
8288
83d70792
AO
8289 PR debug/47106
8290 PR debug/47402
8291 * tree-flow-inline.h (clear_is_used, is_used_p): New.
8292 * cfgexpand.c (account_used_vars_for_block): Use them.
8293 * tree-nrv.c (tree_nrv): Likewise.
8294 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8295 (dump_scope_block): Likewise.
8296 (remove_unused_locals): Likewise.
8297
aaa2ac93
AO
8298 PR debug/47106
8299 PR debug/47402
8300 * tree-inline.c (declare_return_variable): Add result decl to
8301 local decls only once.
8302 * gimple-low.c (record_vars_into): Mark newly-created variables
8303 as referenced.
8304
a59d15cf
AO
83052011-02-02 Alexandre Oliva <aoliva@redhat.com>
8306
8307 PR debug/47498
8308 PR debug/47501
8309 PR debug/45136
8310 PR debug/45130
8311 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8312 debug insns.
8313 (no_real_insns_p, schedule_block, set_priorities): Drop special
8314 treatment of boundary debug insns.
38be4072 8315 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
8316 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8317 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8318 (BOUNDARY_DEBUG_INSN_P): Likewise.
8319 (SCHEDULE_DEBUG_INSN_P): Likewise.
8320 * sched-rgn.c (init_ready_list): Drop special treatment of
8321 boundary debug insns.
8322 * final.c (rest_of_clean_state): Clear notes' BB.
8323
6fc2f091
JM
83242011-02-01 Joseph Myers <joseph@codesourcery.com>
8325
8326 * config/openbsd.opt (assert=): New Driver option.
8327
fc523387
JM
83282011-02-01 Joseph Myers <joseph@codesourcery.com>
8329
8330 * config/i386/nto.opt: New.
8331 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
8332
6d9821e5
JM
83332011-02-01 Joseph Myers <joseph@codesourcery.com>
8334
8335 * config/i386/netware.opt: New.
8336 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
8337
cef932d4
JM
83382011-02-01 Joseph Myers <joseph@codesourcery.com>
8339
8340 * config/interix.opt (posix): New Driver option.
8341
22843acd
DD
83422011-02-01 DJ Delorie <dj@redhat.com>
8343
56490b74
DD
8344 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
8345
22843acd
DD
8346 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
8347 class for A0/A1.
8348
199c8f2f
SP
83492011-02-01 Sebastian Pop <sebastian.pop@amd.com>
8350
8351 PR tree-optimization/47561
8352 * toplev.c (process_options): Print the Graphite flags. Add
8353 flag_loop_flatten to the list of options requiring Graphite.
8354
926bcf22
JM
83552011-02-01 Joseph Myers <joseph@codesourcery.com>
8356
8357 * config/i386/cygming.opt (posix): New Driver option.
8358
59793c51
JM
83592011-02-01 Joseph Myers <joseph@codesourcery.com>
8360
8361 * config/arm/vxworks.opt: New.
8362 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
8363
183c38a4
JM
83642011-02-01 Joseph Myers <joseph@codesourcery.com>
8365
8366 * config/alpha/elf.opt: New.
8367 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
8368 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
8369
9939e416
RG
83702011-02-01 Richard Guenther <rguenther@suse.de>
8371
8372 PR tree-optimization/47559
8373 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
8374 store-motion on references that can throw.
8375
4a3c9687
BS
83762011-02-01 Bernd Schmidt <bernds@codesourcery.com>
8377
8378 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
8379 * tree-pass.h (TDF_CSELIB): New macro.
8380 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
8381 cselib_lookup): Check for it rather than for TDF_DETAILS.
8382
dd3b31fb
L
83832011-02-01 H.J. Lu <hongjiu.lu@intel.com>
8384
8385 PR driver/47547
8386 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
8387 is HOST_BIT_BUCKET.
8388
8389 * opts.c (finish_options): Don't add x_aux_base_name if it is
8390 HOST_BIT_BUCKET.
8391
34c1de79
RG
83922011-02-01 Richard Guenther <rguenther@suse.de>
8393
8394 PR tree-optimization/47555
8395 Revert
8396 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
8397
8398 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8399
dd2804d2
SB
84002011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
8401
8402 PR gcc/46692
8403 * config/lm32/t-lm32: Add multilib for all CPU options.
8404
3fd3b156
RG
84052011-02-01 Richard Guenther <rguenther@suse.de>
8406
8407 PR tree-optimization/47541
8408 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8409 sure to have a field at offset zero.
8410
f16072b6
JM
84112011-01-31 Joseph Myers <joseph@codesourcery.com>
8412
8413 * config/arc/arc.opt (EB, EL): New Driver options.
8414
6456cf2e
JM
84152011-01-31 Joseph Myers <joseph@codesourcery.com>
8416
8417 * config/alpha/osf5.opt: New.
8418 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
8419
cdde6ab4
JM
84202011-01-31 Joseph Myers <joseph@codesourcery.com>
8421
8422 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
8423
7633415c
SP
84242011-01-31 Sebastian Pop <sebastian.pop@amd.com>
8425
8426 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
8427 -floop-interchange.
8428 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
8429 is an alias of -floop-interchange and that it requires the
8430 Graphite infrastructure.
8431 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
8432 flag_loop_interchange based on the value of flag_tree_loop_linear.
8433
0425d6f5
JJ
84342011-01-31 Jakub Jelinek <jakub@redhat.com>
8435 Richard Guenther <rguenther@suse.de>
8436
8437 PR tree-optimization/47538
8438 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
8439 type instead of r1type, except for comparisons. For right
8440 shifts and comparisons punt if there are mismatches in
8441 sizetype vs. non-sizetype types.
8442
500b16c3
RO
84432011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8444
8445 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8446 avx_runtime.
8447
e279edb0
RO
84482011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8449
8450 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
8451 version number.
8452 * configure: Regenerate.
8453
c6092243
RO
84542011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8455
8456 * configure.ac (gcc_cv_ld_static_option): Define.
8457 (gcc_cv_ld_dynamic_option): Define.
8458 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
8459 instead.
8460 (HAVE_LD_STATIC_DYNAMIC): Update message.
8461 (LD_STATIC_OPTION): Define.
8462 (LD_DYNAMIC_OPTION): Define.
8463 * configure: Regenerate.
8464 * config.in: Regenerate.
8465 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
8466 HAVE_LD_STATIC_DYNAMIC]: Use them.
8467
d7862be3
NC
84682011-01-31 Nick Clifton <nickc@redhat.com>
8469
8470 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
8471 registers inside interrupt handlers if the handler is not a leaf
8472 function.
8473
ba4ec0e0
NC
84742011-01-31 Nick Clifton <nickc@redhat.com>
8475
8476 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
8477 reg_renumber returning an INVALID_REGNUM.
8478
29a63921
AO
84792011-01-31 Alexandre Oliva <aoliva@redhat.com>
8480
8481 PR libgcj/44341
8482 * doc/install.texi: Document host options discarded when cross
8483 configuring target libraries.
8484
ef591d3f
AO
84852011-01-31 Alexandre Oliva <aoliva@redhat.com>
8486
8487 Reverted:
8488 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
8489 PR debug/45136
8490 PR debug/45130
8491 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8492 debug insns.
8493 (no_real_insns_p, schedule_block, set_priorities): Drop special
8494 treatment of boundary debug insns.
38be4072 8495 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
8496 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8497 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8498 (BOUNDARY_DEBUG_INSN_P): Likewise.
8499 (SCHEDULE_DEBUG_INSN_P): Likewise.
8500 * sched-rgn.c (init_ready_list): Drop special treatment of
8501 boundary debug insns.
8502 * final.c (rest_of_clean-state): Clear notes' BB.
8503
61052244
AM
85042011-01-31 Alan Modra <amodra@gmail.com>
8505
8506 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
8507 toc relative expressions as we do in print_operand_address.
8508
c4c8962b
KH
85092011-01-30 Kazu Hirata <kazu@codesourcery.com>
8510
8511 * doc/extend.texi: Follow spelling conventions.
8512 * doc/invoke.texi: Fix a typo.
8513
e543b94c
JM
85142011-01-30 Joseph Myers <joseph@codesourcery.com>
8515
8516 * config/hpux11.opt: New.
8517 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
8518 ia64*-*-hpux*): Use hpux11.opt.
8519
509d65dd 85202011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
8521
8522 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
8523 to tmake_file.
8524
7be03a0e
GP
85252011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8526
8527 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
8528 support sites.
8529
419d1d37
GP
85302011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8531
b596ed64
GP
8532 * doc/install.texi (Binaries): Remove outdated reference for
8533 Motorola 68HC11/68HC12 downloads.
8534
85352011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 8536
419d1d37
GP
8537 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
8538 Drepper's paper.
8539
4406d0e9
JW
85402011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
8541
8542 PR bootstrap/47147
8543 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
8544 used by NetBSD.
8545
38be4072 85462011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
8547
8548 * value-prof.c (check_counter): Corrected error message.
8549
0cd98787
JZ
85502011-01-29 Jie Zhang <jie@codesourcery.com>
8551
8552 * config/arm/arm.c (arm_legitimize_reload_address): New.
8553 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8554 arm_legitimize_reload_address.
38be4072 8555 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 8556
9b798ac5
ILT
85572011-01-28 Ian Lance Taylor <iant@google.com>
8558
8559 * godump.c (go_define): Ignore macros whose definitions include
8560 two adjacent operands.
8561
591e29d9
JJ
85622011-01-28 Jakub Jelinek <jakub@redhat.com>
8563
8564 PR target/42894
8565 * varasm.c (force_const_mem): Store copy of x in desc->constant
8566 instead of x itself.
8567 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
8568 itself into REG_EQUAL note.
8569
62dcc44a
JM
85702011-01-28 Joseph Myers <joseph@codesourcery.com>
8571
8572 * config/freebsd.opt (posix, rdynamic): New Driver options.
8573
c9f58b9a
RO
85742011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8575
8576 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
8577 -Bstatic/-Bdynamic.
8578 * configure: Regenerate.
8579
5f02b9db
JM
85802011-01-27 Joseph Myers <joseph@codesourcery.com>
8581
8582 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
8583 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
8584
5df97412
AS
85852011-01-27 Anatoly Sokolov <aesok@post.ru>
8586
8587 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
8588 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
8589 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8590 (s390_preferred_reload_class): Make static. Change return and
8591 'rclass' argument type to reg_class_t.
8592
779d4b91
JH
85932011-01-27 Jan Hubicka <jh@suse.cz>
8594
8595 PR middle-end/46949
8596 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
8597 (process_function_and_variable_attributes): Check defined weakrefs.
8598
e80b21ed
MJ
85992011-01-27 Martin Jambor <mjambor@suse.cz>
8600
8601 PR tree-optimization/47228
8602 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
8603 build_ref_for_offset.
8604
6dcc4f31
UW
86052011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8606
8607 * config/spu/spu-elf.h (ASM_SPEC): Remove.
8608
509d65dd 86092011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
8610
8611 PR rtl-optimization/46856
8612 * postreload.c (reload_combine_recognize_const_pattern): Do not
8613 separate cc0 setter and user on cc0 targets.
8614
04af8788
NP
86152011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
8616
8617 PR c/43082
8618 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
8619 passed a VOID_TYPE expression, immediately emit an error and
8620 return error_mark_node.
8621
f7a60085
JL
86222011-01-26 Jeff Law <law@redhat.com>
8623
8624 PR rtl-optimization/47464
8625 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
8626 rather than may_trap_p as needed.
8627
5c2917ec
DD
86282011-01-26 DJ Delorie <dj@redhat.com>
8629
8630 PR rtl-optimization/46878
8631 * combine.c (insn_a_feeds_b): Check for the implicit cc0
8632 setter/user dependency as well.
8633
bef16e87
EB
86342011-01-26 Eric Botcazou <ebotcazou@adacore.com>
8635
8636 PR rtl-optimization/44469
8637 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
8638 after removing trivially dead basic blocks.
8639
c75d884b
JM
86402011-01-26 Joseph Myers <joseph@codesourcery.com>
8641
8642 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
8643 * config/frv/frv.h (LINK_SPEC): Likewise.
8644 * config/i386/netware.h (LINK_SPEC): Likewise.
8645 * config/m68k/linux.h (ASM_SPEC): Likewise.
8646 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
8647 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8648 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8649 * config/sparc/linux.h (ASM_SPEC): Likewise.
8650 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8651 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8652
d3153553
JM
86532011-01-26 Joseph Myers <joseph@codesourcery.com>
8654
8655 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
8656 * config/frv/frv.h (ASM_SPEC): Likewise.
8657 * config/m68k/linux.h (ASM_SPEC): Likewise.
8658 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8659 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
8660 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8661 * config/sparc/linux.h (ASM_SPEC): Likewise.
8662 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8663 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8664
b89b1e9d
JM
86652011-01-26 Joseph Myers <joseph@codesourcery.com>
8666
8667 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
8668 * config/frv/frv.h (LINK_SPEC): Likewise.
8669 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8670
12eb1a9c
JM
86712011-01-26 Joseph Myers <joseph@codesourcery.com>
8672
8673 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
8674 * config/frv/frv.h (ASM_SPEC): Likewise.
8675 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
8676 * config/m68k/linux.h (ASM_SPEC): Likewise.
8677 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8678 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
8679 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8680 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
8681 * config/sparc/linux.h (ASM_SPEC): Likewise.
8682 * config/sparc/linux64.h (ASM_SPEC): Likewise.
8683 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8684 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
8685
e435f098
SE
86862011-01-26 Steve Ellcey <sje@cup.hp.com>
8687
8688 PR target/46997
8689 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
8690 (*mux2): Ditto.
8691 (vec_extract_evenodd_help): Ditto.
8692 (vec_extract_evenv4hi): Ditto.
8693 (vec_extract_oddv4hi): Ditto.
8694 (vec_interleave_lowv2si): Ditto.
8695 (vec_interleave_highv2si): Ditto.
8696 (vec_extract_evenv2si): Ditto.
8697 (vec_extract_oddv2si: Ditto.
8698 (vec_pack_trunc_v2si): Ditto.
8699
34f0eee0
JH
87002011-01-22 Jan Hubicka <jh@suse.cz>
8701
8702 PR target/47237
8703 * cgraph.h (cgraph_local_info): New field can_change_signature.
8704 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
8705 signature can change.
8706 (ipcp_estimate_growth): Call sequence simplify only if calle signature
8707 can change.
8708 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
8709 (cgraph_function_versioning): We can not change signature of functions
8710 that don't allow that.
8711 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
8712 (lto_input_node): Likewise.
38be4072
UB
8713 * ipa-inline.c (compute_inline_parameters): Compute
8714 local.can_change_signature.
34f0eee0 8715 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
8716 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
8717 functions that can not change signature.
34f0eee0 8718 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
8719 init_cumulative_args): Do not use local calling conventions
8720 for functions that can not change signature.
34f0eee0 8721
980ca891
JH
87222011-01-22 Jan Hubicka <jh@suse.cz>
8723
8724 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
8725
768e3c60
RG
87262011-01-26 Richard Guenther <rguenther@suse.de>
8727
8728 PR tree-optimization/47190
61052244
AM
8729 * cgraphunit.c (process_common_attributes): New function.
8730 (process_function_and_variable_attributes): Use it.
768e3c60 8731
21d6a1c7
RG
87322011-01-26 Richard Guenther <rguenther@suse.de>
8733
8734 PR lto/47423
8735 * cgraphbuild.c (record_eh_tables): Record reference to personality
8736 function.
8737
48bb58b1
AO
87382011-01-26 Alexandre Oliva <aoliva@redhat.com>
8739
8740 PR debug/45454
8741 * sel-sched.c (moveup_expr): Don't let debug insns prevent
8742 non-debug insns from moving up.
8743
58c741a6
DK
87442011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8745
8746 PR target/40125
8747 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
8748 t-dlldir{,-x} fragment for build and add it to tmake_file.
8749 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
8750 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
8751 * config/i386/t-dlldir: New file.
8752 (SHLIB_DLLDIR): Define.
8753 * config/i386/t-dlldir-x: New file.
8754 (SHLIB_DLLDIR): Define.
8755 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
8756 (SHLIB_INSTALL): Use it.
8757
bff99262
CLT
87582011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
8759
8760 PR target/47246
8761 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
8762 lower bound of the allowed Thumb-2 coprocessor load/store
8763 index range to -256. Add explaining comment.
8764
82c03907
ILT
87652011-01-25 Ian Lance Taylor <iant@google.com>
8766
8767 * godump.c (go_define): Improve lexing of macro expansion to only
8768 accept expressions which match Go spec.
8769
47ea1edf
DK
87702011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8771
d4dba752 8772 PR c++/43601
47ea1edf
DK
8773 * tree.c (handle_dll_attribute): Handle it.
8774 * doc/extend.texi (@item dllexport): Mention it.
8775 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
8776
744f0946
ILT
87772011-01-25 Ian Lance Taylor <iant@google.com>
8778
8779 PR tree-optimization/26854
8780 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
8781 (decl_jump_unsafe): Move higher in file, with no other change.
8782 (bind): Set has_jump_unsafe_decl if appropriate.
8783 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
8784 (check_earlier_gotos): Likewise.
8785 (c_check_switch_jump_warnings): Likewise.
8786
5734f2b3
JW
87872011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
8788
8789 * doc/invoke.texi (Warning Options): Add missing hyphen.
8790 (-fprofile-dir): Minor grammatical fixes.
8791 (-fbranch-probabilities): Likewise.
8792
9bdbdcef
AO
87932011-01-25 Alexandre Oliva <aoliva@redhat.com>
8794
8795 PR debug/45136
8796 PR debug/45130
8797 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8798 debug insns.
8799 (no_real_insns_p, schedule_block, set_priorities): Drop special
8800 treatment of boundary debug insns.
38be4072 8801 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
8802 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8803 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8804 (BOUNDARY_DEBUG_INSN_P): Likewise.
8805 (SCHEDULE_DEBUG_INSN_P): Likewise.
8806 * sched-rgn.c (init_ready_list): Drop special treatment of
8807 boundary debug insns.
8808 * final.c (rest_of_clean-state): Clear notes' BB.
8809
b305e3da
SP
88102011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8811
8812 * Makefile.in (LAMBDA_H): Removed.
8813 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
8814 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
8815 lambda-trans.o, and tree-loop-linear.o.
8816 (lto-symtab.o): Remove dependence on LAMBDA_H.
8817 (tree-loop-linear.o): Remove rule.
8818 (lambda-mat.o): Same.
8819 (lambda-trans.o): Same.
8820 (lambda-code.o): Same.
8821 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
8822 (tree-vect-slp.o): Same.
8823 * hwint.h (gcd): Moved here.
8824 (least_common_multiple): Same.
8825 * lambda-code.c: Removed.
8826 * lambda-mat.c: Removed.
8827 * lambda-trans.c: Removed.
8828 * lambda.h: Removed.
8829 * tree-loop-linear.c: Removed.
8830 * lto-symtab.c: Do not include lambda.h.
8831 * omega.c (gcd): Removed.
8832 * passes.c (init_optimization_passes): Remove pass_linear_transform.
8833 * tree-data-ref.c (print_lambda_vector): Moved here.
8834 (lambda_vector_copy): Same.
8835 (lambda_matrix_copy): Same.
8836 (lambda_matrix_id): Same.
8837 (lambda_vector_first_nz): Same.
8838 (lambda_matrix_row_add): Same.
8839 (lambda_matrix_row_exchange): Same.
8840 (lambda_vector_mult_const): Same.
8841 (lambda_vector_negate): Same.
8842 (lambda_matrix_row_negate): Same.
8843 (lambda_vector_equal): Same.
8844 (lambda_matrix_right_hermite): Same.
8845 * tree-data-ref.h: Do not include lambda.h.
8846 (lambda_vector): Moved here.
8847 (lambda_matrix): Same.
8848 (dependence_level): Same.
8849 (lambda_transform_legal_p): Removed declaration.
8850 (lambda_collect_parameters): Same.
8851 (lambda_compute_access_matrices): Same.
8852 (lambda_vector_gcd): Same.
8853 (lambda_vector_new): Same.
8854 (lambda_vector_clear): Same.
8855 (lambda_vector_lexico_pos): Same.
8856 (lambda_vector_zerop): Same.
8857 (lambda_matrix_new): Same.
8858 * tree-flow.h (least_common_multiple): Removed declaration.
8859 * tree-parloops.c (lambda_trans_matrix): Moved here.
8860 (LTM_MATRIX): Same.
8861 (LTM_ROWSIZE): Same.
8862 (LTM_COLSIZE): Same.
8863 (LTM_DENOMINATOR): Same.
8864 (lambda_trans_matrix_new): Same.
8865 (lambda_matrix_vector_mult): Same.
8866 (lambda_transform_legal_p): Same.
8867 * tree-pass.h (pass_linear_transform): Removed declaration.
8868 * tree-ssa-loop.c (tree_linear_transform): Removed.
8869 (gate_tree_linear_transform): Removed.
8870 (pass_linear_transform): Removed.
8871 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
8872 flag_loop_interchange.
8873
6bdfdb96
JJ
88742011-01-25 Jakub Jelinek <jakub@redhat.com>
8875
8876 PR tree-optimization/47265
8877 PR tree-optimization/47443
8878 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
8879 if name still has some uses.
8880
e4cba915
MJ
88812011-01-25 Martin Jambor <mjambor@suse.cz>
8882
8883 PR tree-optimization/47382
8884 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
8885 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
8886
509d65dd 88872011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
8888
8889 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
8890 sjlj_except_unwind_info.
8891
194313e2
RG
88922011-01-25 Richard Guenther <rguenther@suse.de>
8893
8894 PR tree-optimization/47426
8895 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
8896 visible functions results escape.
8897
147a0bcf
JJ
88982011-01-25 Jakub Jelinek <jakub@redhat.com>
8899
8900 PR target/45701
8901 * config/arm/arm.c (any_sibcall_uses_r3): New function.
8902 (arm_get_frame_offsets): Use it.
8903
db963b52
SP
89042011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8905 Jakub Jelinek <jakub@redhat.com>
8906
8907 PR tree-optimization/47271
8908 * tree-if-conv.c (bb_postdominates_preds): New.
8909 (if_convertible_bb_p): Call bb_postdominates_preds.
8910 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
8911 (predicate_scalar_phi): Call bb_postdominates_preds.
8912
bcddd3b9
NC
89132011-01-25 Nick Clifton <nickc@redhat.com>
8914
8915 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
8916 * config/rx/rx.c (rx_function_value): Likewise.
8917 (rx_promote_function_mode): Likewise.
8918 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
8919 in order to make it legitimate.
38be4072
UB
8920 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
8921 make sure that the first operand is the same as the result register.
bcddd3b9
NC
8922 (addsi3_unspec): Delete.
8923 (subdi3): Do not accept immediate operands.
8924 (subdi3_internal): Likewise.
8925
7e6cb022
JL
89262011-01-25 Jeff Law <law@redhat.com>
8927
8928 PR rtl-optimization/37273
8929 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8930 handle them like argument loads from stack slots. Do not double
8931 count memory for memory constants and argument loads from stack slots.
8932
9ffa621e
JJ
89332011-01-25 Jakub Jelinek <jakub@redhat.com>
8934
8935 PR tree-optimization/47427
8936 PR tree-optimization/47428
8937 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8938 coalesce if the new root var would be TREE_READONLY.
8939
5bd6e652
RG
89402011-01-25 Richard Guenther <rguenther@suse.de>
8941
8942 PR middle-end/47414
8943 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
8944 correct type for TBAA.
8945
7c48ea69
SP
89462011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8947
8948 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
8949 (close_phi_written_to_memory): Call for_each_index with
8950 dr_indices_valid_in_loop.
8951
38013f25
SP
89522011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8953
8954 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
8955 when it is initialized.
8956
5c640e29
SP
89572011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8958
8959 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
8960 call to graphite_find_data_references_in_stmt.
8961 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
8962 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
8963 call to graphite_find_data_references_in_stmt.
8964 (analyze_drs_in_stmts): Same.
8965 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
8966 in which the scalar analysis of indices is performed.
8967 (create_data_ref): Same. Update call to dr_analyze_indices.
8968 (find_data_references_in_stmt): Update call to create_data_ref.
8969 (graphite_find_data_references_in_stmt): Same.
8970 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
8971 declaration.
8972 (create_data_ref): Same.
8973 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
8974 call to create_data_ref.
8975
ac53c069
SP
89762011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8977
8978 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 8979 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 8980
3d17df15
SP
89812011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8982
8983 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
8984 VAR_DECL, PARM_DECL, and RESULT_DECL.
8985
c513da01
SP
89862011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8987
8988 * graphite-dependences.c (reduction_dr_1): Allow several reductions
8989 in a reduction PBB.
8990 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
8991 that have already been marked as PBB_IS_REDUCTION.
8992
3a292d59
SP
89932011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8994
8995 * graphite-scop-detection.c (same_close_phi_node): New.
8996 (remove_duplicate_close_phi): New.
8997 (make_close_phi_nodes_unique): New.
8998 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
8999
ba858447
SP
90002011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9001
9002 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9003 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9004 of both data references to be the same.
9005
8d865c56
SP
90062011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9007
38be4072
UB
9008 * graphite-dependences.c (build_lexicographical_constraint): Remove
9009 the gdim parameter.
9010 (build_lexicographical_constraint): Adjust call to
9011 ppl_powerset_is_empty.
8d865c56
SP
9012 (dependence_polyhedron): Same.
9013 (graphite_legal_transform_dr): Same.
9014 (graphite_carried_dependence_level_k): Same.
38be4072
UB
9015 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9016 parameter.
8d865c56
SP
9017 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9018
50034a36
SP
90192011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9020
9021 * graphite-sese-to-poly.c
9022 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9023 (close_phi_written_to_memory): New.
9024 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9025 and unshare_expr.
9026
0deada9e
SP
90272011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9028
9029 * doc/install.texi: Update the expected version number of PPL to 0.11.
9030 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9031 #if PPL_VERSION_MINOR < 11.
9032
d7d3d6af
SP
90332011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9034
9035 * graphite-dependences.c: Include graphite-cloog-util.h.
9036 (new_poly_ddr): Inlined into dependence_polyhedron.
9037 (free_poly_ddr): Moved close by new_poly_ddr.
9038 (dependence_polyhedron_1): Renamed dependence_polyhedron.
9039 Early return NULL when ppl_powerset_is_empty returns true.
9040 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
9041 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
9042 (graphite_legal_transform_dr): Call new_poly_ddr.
9043 (graphite_carried_dependence_level_k): Same.
9044 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
9045 (dot_transformed_deps_stmt_1): Removed.
9046 (dot_deps_stmt_1): Call dot_deps_stmt_2.
9047 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
9048 (dot_deps_1): Call dot_deps_2.
9049 * Makefile.in (graphite-dependences.o): Add missing dependence on
9050 graphite-cloog-util.h.
9051
28c5db57
SP
90522011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9053
9054 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9055 (build_lexicographical_constraint): Same.
9056 (dependence_polyhedron_1): Same.
9057 (graphite_legal_transform_dr): Same.
9058 (graphite_carried_dependence_level_k): Same.
9059 * graphite-ppl.c (ppl_powerset_is_empty): New.
9060 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9061 * tree-data-ref.c (dump_data_reference): Print the basic block index.
9062
5168d98f
SP
90632011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9064
9065 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9066 the "a followed by b" relation and document it.
9067
4a40293a
SP
90682011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9069
9070 * graphite-dependences.c (build_lexicographical_constraint): Stop the
9071 iteration when the bag of constraints is empty.
9072
271fb6fa
SP
90732011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9074
9075 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9076
92d23680
SP
90772011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9078
9079 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9080 nest and two loop depths as parameters.
9081 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9082 lst_perfect_nestify.
9083
2f51deff
SP
90842011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9085
9086 * graphite-dependences.c (print_pddr): Call
9087 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9088
07f3593c
SP
90892011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9090
9091 * graphite-ppl.c (debug_gmp_value): New.
9092 * graphite-ppl.h (debug_gmp_value): Declared.
9093
3fae6099
TG
90942011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
9095
9096 * doc/install.texi: Document availability of cloog-0.16.
9097
1c3ba85b
SP
90982011-01-25 Vladimir Kargov <kargov@gmail.com>
9099
9100 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9101 invalid postdominance info.
9102
e8ba94fc
JH
91032011-01-24 Jan Hubicka <jh@suse.cz>
9104
9105 PR c/21659
9106 * doc/extend.texi (weak pragma): Drop claim that it must
9107 appear before definition.
9108 * varasm.c (merge_weak, declare_weak): Only sanity check
9109 that DECL is not output at a time it is declared weak.
9110
2b6e2d13
KZ
91112011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
9112
9113 * machmode.def: Fixed comments.
1c3ba85b 9114
9841210f
KT
91152011-01-24 Kai Tietz <kai.tietz@onevision.com>
9116
9117 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9118
91192011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
9120
9121 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 9122 WORDS_BIG_ENDIAN.
e046112d 9123
a6c5070a
L
91242011-01-24 H.J. Lu <hongjiu.lu@intel.com>
9125
9126 PR target/46519
9127 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9128 (block_info): Add scanned and prev.
9129 (move_or_delete_vzeroupper_2): Return if the basic block
9130 has been scanned and the upper 128bit state is unchanged
9131 from the last scan.
9132 (move_or_delete_vzeroupper_1): Return true if the exit
9133 state is changed.
9134 (move_or_delete_vzeroupper): Visit basic blocks using the
9135 work-list based algorithm based on vt_find_locations in
9136 var-tracking.c.
9137
9138 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9139
a40d79d7
NC
91402011-01-24 Nick Clifton <nickc@redhat.com>
9141
9142 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9143 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9144 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
9145 then define __v850e1__.
9146 * doc/invoke.texi: Document -mv850es.
9147
440eb8de
RH
91482011-01-24 Richard Henderson <rth@redhat.com>
9149
9150 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9151 compound unordered comparisons.
9152 * config/rx/rx.c (rx_split_fp_compare): Remove.
9153 * config/rx/rx-protos.h: Update.
9154 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9155 (cbranchsf4): Don't call rx_split_fp_compare.
9156 (*cbranchsf4): Use rx_split_cbranch.
9157 (*cmpsf): Don't accept "i" constraint.
9158 (*conditional_branch): Only valid after reload.
9159 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
9160
3ff79f99
MM
91612011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9162
9163 PR target/47385
9164 * config/rs6000/altivec.md (vector constant splitters): Add
9165 support for creating vector single precision constants if -mvsx is
9166 used and we would create the constant using Altivec primitives.
9167
ff3d9d08
BS
91682011-01-23 Bernd Schmidt <bernds@codesourcery.com>
9169 Richard Sandiford <rdsandiford@googlemail.com>
9170
9171 PR rtl-optimization/47166
9172 * reload1.c (emit_reload_insns): Disable the spill_reg_store
9173 mechanism for PRE_MODIFY and POST_MODIFY.
9174 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9175 reloadreg.
9176
7fcaf152
AS
91772011-01-23 Andreas Schwab <schwab@linux-m68k.org>
9178
8788adb6 9179 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 9180
d09b58c4
JH
91812011-01-22 Jan Hubicka <jh@suse.cz>
9182
9183 PR lto/47333
9184 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9185
e8ff8c5a
JH
91862011-01-22 Jan Hubicka <jh@suse.cz>
9187
9188 PR tree-optimization/43884
9189 PR lto/44334
8788adb6 9190 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
9191 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9192
ccaed3ba
AS
91932011-01-22 Anatoly Sokolov <aesok@post.ru>
9194
9195 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9196 * config/s390/s390.c (s390_register_move_cost,
9197 s390_memory_move_cost): New.
9198 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9199
0cecee06
UW
92002011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9201
9202 PR middle-end/47401
9203 * except.c (sjlj_assign_call_site_values): Move setting the
9204 crtl->uses_eh_lsda flag to ...
9205 (sjlj_mark_call_sites): ... here.
9206 (sjlj_emit_function_enter): Support NULL dispatch label.
9207 (sjlj_build_landing_pads): In a function with no landing pads
9208 that still has must-not-throw regions, generate code to register
9209 a personality function with empty LSDA.
9210
e692f276
RH
92112011-01-21 Richard Henderson <rth@redhat.com>
9212
1b7ae0b7
RH
9213 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9214
3843787f
RH
9215 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9216
e692f276
RH
9217 * compare-elim.c: New file.
9218 * Makefile.in (OBJS-common): Add it.
9219 (compare-elim.o): New.
9220 * common.opt (fcompare-elim): New.
9221 * opts.c (default_options_table): Add OPT_fcompare_elim.
9222 * tree-pass.h (pass_compare_elim_after_reload): New.
9223 * passes.c (init_optimization_passes): Add it.
9224 * recog.h: Protect against re-inclusion.
9225 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9226 * doc/invoke.texi (-fcompare-elim): Document it.
9227 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9228 * doc/tm.texi: Rebuild.
9229
9a7c2050
NC
92302011-01-22 Nick Clifton <nickc@redhat.com>
9231
9232 * config/rx/rx.md (cstoresf4): Pass comparison operator to
9233 rx_split_fp_compare.
9234
15ba5696
NC
92352011-01-22 Nick Clifton <nickc@redhat.com>
9236
9237 * config/rx/rx.md (UNSPEC_CONST): New.
9238 (deallocate_and_return): Wrap the amount popped off the stack in
9239 an UNSPEC_CONST in order to stop it being rejected by
9240 -mmax-constant-size.
9241 (pop_and_return): Add a "(return)" rtx.
9242 (call): Drop the immediate operand.
9243 (call_internal): Likewise.
9244 (call_value): Likewise.
9245 (call_value_internal): Likewise.
9246 (sibcall_internal): Likewise.
9247 (sibcall_value_internal): Likewise.
9248 (sibcall): Likewise. Generate an explicit call using
9249 sibcall_internal.
9250 (sibcall_value): Likewise.
9251 (mov<>): FAIL if a constant operand is not legitimate.
9252 (addsi3_unpsec): New pattern.
9a7c2050 9253
38be4072 9254 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
9255 (ok_for_max_constant): New function.
9256 (gen_safe_add): New function.
9257 (rx_expand_prologue): Use gen_safe_add.
9258 (rx_expand_epilogue): Likewise.
9259 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
9260 UNSPEC CONSTs.
9261
caaf13d3
JL
92622011-01-21 Jeff Law <law@redhat.com>
9263
9264 PR tree-optimization/47053
9265 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9266 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9267 statements are deleted.
9268 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
9269 is nonempty, then purge dead edges and cleanup the CFG.
9270
12c30f2f
AO
92712011-01-21 Alexandre Oliva <aoliva@redhat.com>
9272
9273 PR debug/47402
9274 Temporarily revert:
9275 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
9276 PR debug/47106
9277 * tree-dfa.c (create_var_ann): Mark variable as used.
9278
7360d2ac
JJ
92792011-01-21 Jakub Jelinek <jakub@redhat.com>
9280
aaa52a96
JJ
9281 PR middle-end/45566
9282 * except.c (convert_to_eh_region_ranges): Emit queued no-region
9283 notes from other section in hot/cold partitioning even if
9284 last_action is -3. Increment call_site_base.
9285
7360d2ac
JJ
9286 PR rtl-optimization/47366
9287 * fwprop.c (forward_propagate_into): Return bool. If
9288 any changes are made, -fnon-call-exceptions is used and
9289 REG_EH_REGION note is present, call purge_dead_edges
9290 and return true if it purged anything.
9291 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9292 any EH edges were purged.
9293
e90b336f
JL
92942011-01-21 Jeff Law <law@redhat.com>
9295
9296 PR rtl-optimization/41619
9297 * caller-save.c (setup_save_areas): Break out code to determine
9298 which hard regs are live across calls by examining the reload chains
9299 so that it is always used.
9300 Eliminate code which checked REG_N_CALLS_CROSSED.
9301
3ffe07e1
JJ
93022011-01-21 Jakub Jelinek <jakub@redhat.com>
9303
9304 PR tree-optimization/47355
9305 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9306 NOP has non-debug uses beyond PHIs in new_bb.
9307
1c7d0b34
AO
93082011-01-21 Alexandre Oliva <aoliva@redhat.com>
9309
9310 PR debug/47106
9311 * cfgexpand.c (account_used_vars_for_block): Only account vars
9312 that are annotated as used.
9313 (estimated_stack_frame_size): Don't set TREE_USED.
9314 * tree-dfa.c (create_var_ann): Mark variable as used.
9315
f99cc488
RG
93162011-01-21 Richard Guenther <rguenther@suse.de>
9317
9318 PR middle-end/47395
9319 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
9320
3bc27de7
RG
93212011-01-21 Richard Guenther <rguenther@suse.de>
9322
9323 PR tree-optimization/47365
9324 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
9325 (vn_reference_lookup_pieces): Adjust.
9326 (vn_reference_lookup): Likewise.
9327 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
9328 (vn_reference_lookup_3): Only look through kills if in
9329 VN_WALKREWRITE mode.
9330 (vn_reference_lookup_pieces): Adjust.
9331 (vn_reference_lookup): Likewise.
9332 (visit_reference_op_load): Likewise.
9333 (visit_reference_op_store): Likewise.
9334 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
9335 (compute_avail): Likewise.
9336 (eliminate): Likewise.
9337
d8debb1d
JJ
93382011-01-21 Jakub Jelinek <jakub@redhat.com>
9339
9340 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
9341 DECL_IGNORED_P non-reg vars if they are used.
9342
3a2df831
JJ
9343 PR tree-optimization/47391
9344 * varpool.c (const_value_known_p): Return false if
9345 decl is volatile.
9346
1dd584a2
KT
93472011-01-21 Kai Tietz <kai.tietz@onevision.com>
9348
9349 PR bootstrap/47215
9350 * config/i386/i386.c (ix86_local_alignment): Handle
9351 case for va_list_type_node is nil.
9352 (ix86_canonical_va_list_type): Likewise.
9353
7f9f095e
AM
93542011-01-21 Alan Modra <amodra@gmail.com>
9355
9356 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
9357 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
9358
837b01f6
RR
93592011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9360
9361 * config/arm/arm.md (define_attr type): Rename f_load
9362 and f_store to f_fpa_load and f_fpa_store. Update.
9363 (write_conflict): Deal with rename fallout.
9364 (*push_fp_multi): Likewise.
9365 * config/arm/fpa.md (f_load): Use f_fpa_load.
9366 (f_store): Use f_fpa_store.
9367 (*movsf_fpa): Likewise.
9368 (*movdf_fpa): Likewise.
9369 (*movxf_fpa): Likewise.
9370 (*thumb2_movsf_fpa): Likewise.
9371 (*thumb2_movdf_fpa): Likewise.
9372 (*thumb2_movxf_fpa): Likewise.
9373 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
9374 f_loadd and f_stored.
9375 (*thumb2_movdi_vfp): Likewise.
9376 (*thumb2_movsf_vfp): Fix attribute to f_loads.
9377 (*thumb2_movsi_vfp): Likewise.
9378 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
9379 Use f_loads instead of f_load.
9380 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
9381
a1a79768
AS
93822011-01-20 Anatoly Sokolov <aesok@post.ru>
9383
9384 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9385 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
9386 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9387 (xtensa_mode_dependent_address_p): New function.
9388 (constantpool_address_p): Make static. Change return type to bool.
9389 Change argument type to const_rtx. Use CONST_INT_P predicate.
9390
427f6cec
AO
93912011-01-20 Alexandre Oliva <aoliva@redhat.com>
9392
9393 PR debug/46583
9394 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
9395
583ac69c
JJ
93962011-01-20 Jakub Jelinek <jakub@redhat.com>
9397
9398 PR debug/47283
9399 * cfgexpand.c (expand_debug_expr): Instead of generating
9400 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
9401 etc. handling.
9402
93e452ed
RG
94032011-01-20 Richard Guenther <rguenther@suse.de>
9404
9405 PR middle-end/47370
9406 * tree-inline.c (remap_gimple_op_r): Recurse manually for
9407 the pointer operand of MEM_REFs.
9408
28fc44f3
JJ
94092011-01-20 Jakub Jelinek <jakub@redhat.com>
9410
9411 PR tree-optimization/46130
9412 * ipa-split.c (consider_split): If return_bb contains non-virtual
9413 PHIs other than for retval or if split_function would not adjust it,
9414 refuse to split.
9415
ddd268f2
RG
94162011-01-20 Richard Guenther <rguenther@suse.de>
9417
9418 PR tree-optimization/47167
9419 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9420 Revert previous change, only avoid enumeral type changes.
9421
882020aa
MS
94222011-01-19 Mike Stump <mikestump@comcast.net>
9423
9424 * doc/tm.texi.in (BRANCH_COST): Englishify.
9425 * doc/tm.texi (BRANCH_COST): Likewise.
9426
7edb6247
DS
94272011-01-19 Dodji Seketeli <dodji@redhat.com>
9428
9429 PR c++/47291
9430 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
9431 (gen_scheduled_generic_parms_dies): New functions.
9432 (gen_struct_or_union_type_die): Schedule template parameters DIEs
9433 generation for the end of CU compilation.
9434 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 9435
23d5ed5d
AO
94362011-01-19 Alexandre Oliva <aoliva@redhat.com>
9437
9438 PR debug/46240
9439 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
9440 debug bind stmt on merge edges.
9441
37d6a488
AO
94422011-01-19 Alexandre Oliva <aoliva@redhat.com>
9443
9444 PR debug/47079
9445 PR debug/46724
9446 * function.c (instantiate_expr): Instantiate incoming rtl of
9447 implicit arguments, and recurse on VALUE_EXPRs.
9448 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
9449 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
9450
689f2c82
AO
94512011-01-19 Alexandre Oliva <aoliva@redhat.com>
9452
9453 * c-parser.c (c_parser_for_statement): Initialize
9454 collection_expression.
9455
03029de4
JM
94562011-01-19 Joseph Myers <joseph@codesourcery.com>
9457
9458 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
9459
3e03217e
JM
94602011-01-19 Joseph Myers <joseph@codesourcery.com>
9461
9462 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
9463 (LINK_SHLIB_SPEC): Don't use %(link_path).
9464 (SUBTARGET_EXTRA_SPECS): Remove link_path.
9465
5bbe9b3f
JM
94662011-01-19 Joseph Myers <joseph@codesourcery.com>
9467
9468 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
9469 (NO_SHARED_LIB_SUPPORT): Remove.
9470 (LINK_SHLIB_SPEC): Remove one conditional definition.
9471
368e0b39
JM
94722011-01-19 Joseph Myers <joseph@codesourcery.com>
9473
9474 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
9475 %{call_shared}.
9476 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
9477 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
9478 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
9479 %{call_shared} and conditionals on these options not being passed.
9480 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
9481 %{call_shared}.
9482
ed7656f6
JJ
94832011-01-19 Jakub Jelinek <jakub@redhat.com>
9484
68457901
JJ
9485 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
9486 simplify.
9487
ed7656f6
JJ
9488 * ipa-split.c: Spelling fixes.
9489
e0d1958f
RH
94902011-01-19 Richard Henderson <rth@redhat.com>
9491
9492 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
9493 (*mulsi3): Likewise.
9494
27098b6b
RH
9495 * longlong.h [__mn10300__] (count_leading_zeros): New.
9496 [__mn10300__] (umul_ppmm, smul_ppmm): New.
9497 [__mn10300__] (add_ssaaaa, subddmmss): New.
9498 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
9499 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
9500
d6be7c36
UW
95012011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9502
9503 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
9504
b1efde2a
RH
95052011-01-19 Richard Henderson <rth@redhat.com>
9506
44217823
RH
9507 * config/mn10300/mn10300.md (addsi3_flags): New.
9508 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
9509 (subsi3_flags, subc_internal, subdi3): New.
9510 (subdi3_internal, *subdi3_degenerate): New.
9511 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
9512
37a185d7
RH
9513 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
9514 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
9515 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
9516 * config/mn10300/mn10300-protos.h: Update.
9517 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
9518 (return_ret): Likewise. Rename from return_internal_regs.
9519 (return_internal): Remove.
9520
040c5757
RH
9521 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
9522 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
9523 (mn10300_legitimate_constant_p): Likewise.
9524 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
9525 (mn10300_frame_size): New.
9526 (mn10300_expand_prologue): Use it.
9527 (mn10300_expand_epilogue): Likewise.
9528 (mn10300_initial_offset): Likewise.
9529 * config/mn10300/mn10300-protos.h: Update.
9530 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
9531 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
9532 (prologue, epilogue, return_internal): Tidy output code.
9533 (mn10300_store_multiple_operation, return): Likewise.
9534 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
9535 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
9536 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
9537 (load_pic, am33_load_pic): New.
9538 (mn10300_load_pic0, mn10300_load_pic1): New.
9539
bad41521
RH
9540 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
9541 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
9542 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
9543 (cc_flags_for_mode, cc_flags_for_code): New.
9544 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
9545 overflow flag is not valid. Validate that the flags we need
9546 for the comparison are valid.
9547 (mn10300_output_cmp): Remove.
9548 (mn10300_output_add): New.
9549 (mn10300_select_cc_mode): Use cc_flags_for_code.
9550 (mn10300_split_cbranch): New.
9551 (mn10300_match_ccmode): New.
9552 (mn10300_split_and_operand_count): New.
9553 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
9554 to the function.
9555 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
9556 (addsi3): ... here. Use mn10300_output_add.
9557 (*addsi3_flags): New.
9558 (*am33_subsi3, *mn10300_subsi3): Merge...
9559 (subsi3): ... here. Use attribute isa.
9560 (*subsi3_flags): New.
9561 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
9562 when possible.
9563 (*am33_andsi3, *mn10300_andsi3): Merge...
9564 (andsi3): ... here.
9565 (*andsi3_flags): New.
9566 (andsi3 splitters): New.
9567 (*am33_iorsi3, *mn10300_iorsi3): Merge...
9568 (iorsi3): ... here.
9569 (*iorsi3_flags): New.
9570 (*am33_xorsi3, *mn10300_xorsi3): Merge...
9571 (xorsi3): ... here.
9572 (*xorsi3_flags): New.
9573 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
9574 (one_cmplsi2): ... here.
9575 (*one_cmplsi2_flags): New.
9576 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
9577 instead of "dax" in constraints. Use mn10300_split_cbranch.
9578 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
9579 use matching constraints to eliminate a self-comparison.
9580 (*integer_conditional_branch): Rename from integer_conditional_branch.
9581 Use int_mode_flags to match CC_REG.
9582 (*cbranchsi4_btst, *btstsi): New.
9583 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
9584 mn10300_split_cbranch.
9585 (*am33_cmpsf): Rename from am33_cmpsf.
9586 (*float_conditional_branch): Rename from float_conditional_branch.
9587 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
9588 (zero_extendqisi2): ... here.
9589 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
9590 (zero_extendhisi2): ... here.
9591 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
9592 (extendqisi2): ... here.
9593 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
9594 (extendhisi2): ... here.
9595 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
9596 (ashlsi3): ... here.
9597 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
9598 (lshrsi3): ... here.
9599 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
9600 (ashrsi3): ... here.
9601 (consecutive add peephole): Remove.
9602 * config/mn10300/predicates.md (label_ref_operand): New.
9603 (int_mode_flags): New.
9604 (CCZN_comparison_operator): New.
9605
9efb4993
RH
9606 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
9607 (throughput_42_latency_43): New reservation.
9608 (mulsidi3, umulsidi3): New expanders.
9609 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
9610 the MDR register to allocation; separately allocate the low and
9611 high parts of the DImode result.
9612 (umulsidi3_internal): Similarly.
9613 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
9614 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
9615 (udivsi3, umodsi3): Remove.
9616 (udivmodsi4, divmodsi4): New expanders.
9617 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
9618 (*divmodsi4): Simiarly.
9619 (ext_internal): New.
9620
c25a21f5
RH
9621 * config/mn10300/constraints.md ("z"): New constraint.
9622 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
9623 (FIXED_REGISTERS): Don't fix MDR.
9624 (CALL_USED_REGSITERS): Reformat nicely.
9625 (REG_ALLOC_ORDER): Add MDR.
9626 (enum regclass): Add MDR_REGS.
9627 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
9628 (IRA_COVER_CLASSES): Add MDR_REGS.
9629 (REGNO_REG_CLASS): Handle MDR_REG.
9630 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
9631 (mn10300_register_move_cost): Likewise.
9632 * config/mn10300/mn10300.md (MDR_REG): New.
9633 (*movsi_internal): Handle moves to/from MDR_REGS.
9634
36846b26
RH
9635 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
9636 POST_MODIFY.
9637 (mn10300_secondary_reload): Tidy combination reload classes.
9638 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
9639 addresses for AM33. Allow symbolic offsets for reg+imm.
9640 (mn10300_regno_in_class_p): New.
9641 (mn10300_legitimize_reload_address): New.
9642 * config/mn10300/mn10300.h (enum reg_class): Remove
9643 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
9644 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
9645 SP_OR_GENERAL_REGS.
9646 (REG_CLASS_NAMES): Update to match.
9647 (REG_CLASS_CONTENTS): Likewise.
9648 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
9649 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
9650 (REGNO_IN_RANGE_P): Remove.
9651 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
9652 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
9653 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
9654 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
9655 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
9656 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
9657 (REGNO_GENERAL_P): New.
9658 (HAVE_POST_MODIFY_DISP): New.
9659 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
9660 (LEGITIMIZE_RELOAD_ADDRESS): New.
9661 * config/mn10300/mn10300-protos.h: Update.
9662
8b119bb6
RH
9663 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
9664 DATA_REGS for AM33 stack-pointer destination.
9665 (mn10300_preferred_output_reload_class): Likewise.
9666 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
9667 into a form appropriate for ...
9668 (TARGET_SECONDARY_RELOAD): New.
9669 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
9670 * config/mn10300/mn10300-protos.h: Update.
9671 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
9672 reload_insi; use the "A" constraint for the scratch; handle AM33
9673 moves of sp to non-address registers.
9674
b1efde2a
RH
9675 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
9676 (*movqi_internal): ... here.
9677 (*am33_movhi, *mn10300_movhi): Merge into...
9678 (*movhi_internal): ... here.
9679 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
9680 as the source/destination of moves from/to SP.
9681 (movsf): Only allow for AM33-2.
1c3ba85b 9682 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
9683 any integer constant constraint. Only allow for AM33-2. Tidy
9684 all of the alternative outputs.
9685 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
9686 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
9687 for MN103.
9688 (udivsi3, umodsi3): New patterns for MN103 only.
9689
b899fd78
JR
96902011-01-19 Joern Rennecke <amylaar@spamcop.net>
9691
9692 * doc/tm.texi.in: Spell out that a lack of register class unions
9693 can lead to ICEs.
9694 * doc/tm.texi: Regenerate.
9695
afaaa67d
JJ
96962011-01-19 Jakub Jelinek <jakub@redhat.com>
9697
2e0642cd
JJ
9698 PR rtl-optimization/47337
9699 * dce.c (check_argument_store): New function.
9700 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
9701
afaaa67d
JJ
9702 PR tree-optimization/47290
9703 * tree-eh.c (infinite_empty_loop_p): New function.
9704 (cleanup_empty_eh): Use it.
9705
d2cd871f
SE
97062011-01-18 Steve Ellcey <sje@cup.hp.com>
9707
9708 PR target/46997
9709 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
9710 (a64_expand_widen_sum): Ditto.
9711 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
9712 (vec_extract_evenodd_help): Ditto.
9713 (vec_extract_evenv4hi): Ditto.
9714 (vec_extract_oddv4hi): Ditto.
9715 (vec_extract_evenv2si): Ditto.
9716 (vec_extract_oddv2si): Ditto.
9717 (vec_extract_evenv2sf): Ditto.
9718 (vec_extract_oddv2sf): Ditto.
9719 (vec_pack_trunc_v4hi: Ditto.
9720 (vec_pack_trunc_v2si): Ditto.
9721 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
9722 (vec_interleave_highv8qi): Ditto.
9723 (mix1_r): Ditto.
9724 (vec_extract_oddv8qi): Ditto.
9725 (vec_interleave_lowv4hi): Ditto.
9726 (vec_interleave_highv4hi): Ditto.
9727 (vec_interleave_lowv2si): Ditto.
9728 (vec_interleave_highv2si): Ditto.
9729
41a1208a
JDA
97302011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9731
9732 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
9733 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
9734 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
9735 (pa_c_mode_for_suffix): New.
9736 (TARGET_EXPAND_BUILTIN): Define.
9737 (TARGET_C_MODE_FOR_SUFFIX): Define.
9738 (pa_builtins): Define.
9739 (pa_init_builtins): Register __float128 type and init new support
9740 builtins.
9741 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
9742 * config/pa/quadlib.c (_U_Qfcopysign): New.
9743
1ecad98e
EB
97442011-01-18 Eric Botcazou <ebotcazou@adacore.com>
9745
9746 PR middle-end/46894
9747 * explow.c (allocate_dynamic_stack_space): Do not assume more than
9748 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
9749 are defined.
9750
d4f2460a
UW
97512011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9752
9753 PR tree-optimization/47179
9754 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
9755 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
9756
4994da65
RG
97572011-01-18 Richard Guenther <rguenther@suse.de>
9758
9759 PR rtl-optimization/47216
9760 * emit-rtl.c: Include tree-flow.h.
9761 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
9762 of replicating it with different semantics.
9763 * Makefile.in (emit-rtl.o): Adjust.
9764
1eb458d1
RR
97652011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9766
38be4072 9767 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 9768 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 9769
e7ef91dc
JJ
97702011-01-18 Jakub Jelinek <jakub@redhat.com>
9771
9772 PR rtl-optimization/47299
9773 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 9774 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
9775 * expmed.c (expand_widening_mult): Don't try to optimize constant
9776 multiplication if op0 has VOIDmode. Convert op1 constant to mode
9777 before using it.
9778
535b7874
RW
97792011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9780
9781 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
9782 spacing after 'e.g.', typos, comma, hyphenation.
9783
27bf36f3
RH
97842011-01-17 Richard Henderson <rth@redhat.com>
9785
8a5b5449
RH
9786 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
9787 (rx_restricted_mem_operand): New.
9788 (rx_shift_operand): Use register_operand.
9789 (rx_source_operand, rx_compare_operand): Likewise.
9790 * config/rx/rx.md (addsi3_flags): New expander.
9791 (adddi3): Rewrite as expander.
9792 (adc_internal, *adc_flags, adddi3_internal): New patterns.
9793 (subsi3_flags): New expander.
9794 (subdi3): Rewrite as expander.
9795 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
9796
784f69be
RH
9797 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
9798 (rx_init_builtins): Remove sat builtin.
9799 (rx_expand_builtin): Likewise.
9800 * config/rx/rx.md (ssaddsi3): New.
9801 (*sat): Rename from sat. Represent the CC_REG input.
9802
f033541c
RH
9803 * config/rx/predicates.md (rshift_operator): New.
9804 * config/rx/rx.c (rx_expand_insv): Remove.
9805 * config/rx/rx-protos.h: Update.
9806 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
9807 operand to the canonical position.
9808 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
9809 (*bitclr, *bitclr_in_memory): Similarly.
9810 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
9811 (insv): Retain the zero_extract in the expansion.
9812
34fee389
RH
9813 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
9814 (bswaphi2, bitinvert, revw): Likewise.
9815
265c835f
RH
9816 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
9817 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
9818 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
9819 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
9820 (bitset, bitset_in_memory): Likewise.
9821 (bitinvert, bitinvert_in_memory): Likewise.
9822 (bitclr, bitclr_in_memory): Likewise.
9823 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
9824 (rx_strend, rx_cmpstrn): Likewise.
9825 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
9826 (bitop peep2 patterns): Remove.
9827
b4d83be3
RH
9828 * config/rx/rx.c (rx_match_ccmode): New.
9829 * config/rx/rx-protos.h: Update.
9830 * config/rx/rx.md (abssi2): Clobber, don't set flags.
9831 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
9832 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
9833 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
9834 (fix_truncsfsi2, floatsisf2): Likewise.
9835 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
9836 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
9837 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
9838 (*subsi3_flags, *xorsi3_flags): New.
9839
d0acb939
RH
9840 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
9841
c06fc3d9
RH
9842 * config/rx/rx.c (rx_print_operand): Remove workaround for
9843 unsplit comparison operations.
9844
2882702b
RH
9845 * config/rx/rx.md (movsicc): Split after reload.
9846 (*movsicc): Merge *movsieq and *movsine via match_operator.
9847 (*stcc): New pattern.
9848
6f7310f2
RH
9849 * config/rx/rx.c (rx_float_compare_mode): Remove.
9850 * config/rx/rx.h (rx_float_compare_mode): Remove.
9851 * config/rx/rx.md (cstoresi4): Split after reload.
9852 (*sccc): New pattern.
9853
e963cb1a
RH
9854 * config/rx/predicates.md (label_ref_operand): New.
9855 (rx_z_comparison_operator): New.
9856 (rx_zs_comparison_operator): New.
9857 (rx_fp_comparison_operator): New.
9858 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
9859 Validate that the flags are set properly for the comparison.
9860 (rx_gen_cond_branch_template): Remove.
9861 (rx_cc_modes_compatible): Remove.
9862 (mode_from_flags): New.
9863 (flags_from_code): Rename from flags_needed_for_conditional.
9864 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
9865 (rx_select_cc_mode): Likewise.
9866 (rx_split_fp_compare): New.
9867 (rx_split_cbranch): New.
9868 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
9869 (*cbranchsi4): Use match_operator and rx_split_cbranch.
9870 (*cbranchsf4): Similarly.
9871 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
9872 match_operator and rx_split_cbranch.
9873 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
9874 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
9875 (*cmpsi): Rename from cmpsi.
9876 (*tstsi): Rename from tstsi.
9877 (*cmpsf): Rename from cmpsf; use CC_Fmode.
9878 (*conditional_branch): Rename from conditional_branch.
9879 (*reveresed_conditional_branch): Remove.
9880 (b<code>): Remove expander.
9881 * config/rx/rx-protos.h: Update.
9882
af530bb4
RH
9883 * config/rx/rx.c (rx_compare_redundant): Remove.
9884 * config/rx/rx.md (cmpsi): Don't use it.
9885 * config/rx/rx-protos.h: Update.
9886
27bf36f3
RH
9887 * config/rx/rx-modes.def (CC_F): New mode.
9888 * config/rx/rx.c (rx_select_cc_mode): New.
9889 * config/rx/rx.h (SELECT_CC_MODE): Use it.
9890 * config/rx/rx-protos.h: Update.
9891
d7fde127
RH
98922011-01-17 Richard Henderson <rth@redhat.com>
9893
9894 * except.c (dump_eh_tree): Fix stray ; after for statement.
9895
6ff38230
RG
98962011-01-17 Richard Guenther <rguenther@suse.de>
9897
9898 PR tree-optimization/47313
9899 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
9900 handling before copying the body. Properly deal with
9901 by-reference result in SSA form.
9902
114ce554
ILT
99032011-01-17 Ian Lance Taylor <iant@google.com>
9904
bf5cd92b 9905 PR target/47219
114ce554
ILT
9906 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
9907 (struct_value_alias_set): Don't define.
9908 (sparc_option_override): Don't set sparc_sr_alias_set and
9909 struct_value_alias_set.
9910 (save_or_restore_regs): Use gen_frame_mem rather than calling
9911 set_mem_alias_set.
9912 (sparc_struct_value_rtx): Likewise.
9913
98c6d93c
L
99142011-01-17 H.J. Lu <hongjiu.lu@intel.com>
9915
9916 PR target/47318
7a81008b 9917 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
9918 (_mm_maskstore_pd): Likewise.
9919 (_mm_maskload_ps): Likewise.
9920 (_mm_maskstore_ps): Likewise.
9921 (_mm256_maskload_pd): Change mask to __m256i.
9922 (_mm256_maskstore_pd): Likewise.
9923 (_mm256_maskload_ps): Likewise.
9924 (_mm256_maskstore_ps): Likewise.
9925
9926 * config/i386/i386-builtin-types.def: Updated.
9927 (ix86_expand_special_args_builtin): Likewise.
9928
9929 * config/i386/i386.c (bdesc_special_args): Update
9930 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
9931 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
9932 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
9933 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
9934
9935 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
9936 Use <avxpermvecmode> on mask register.
9937 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
9938
b9361af2 99392011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
9940 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9941 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
9942
9943 PR target/46655
9944 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
9945 if <= USHRT_MAX in 32-bit mode.
9946
b7ae9eb5
RW
99472011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9948
9949 * doc/install.texi (Configuration, Specific): Wrap long
9950 lines in examples. Allow line wrapping in long options
9951 and URLs where beneficial for PDF output.
9952
4377fad9
RS
99532011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
9954
9955 * config/mips/mips.c (mips_classify_symbol): Don't return
9956 SYMBOL_PC_RELATIVE for nonlocal labels.
9957
55959ffa 99582011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 9959
55959ffa
EB
9960 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
9961
99622011-01-15 Jan Hubicka <jh@suse.cz>
9963
9964 PR tree-optimization/47276
be46831f
JH
9965 * ipa.c (function_and_variable_visibility): Do not try to mark alias
9966 declarations as needed.
9967
05842ff5
MJ
99682011-01-15 Martin Jambor <mjambor@suse.cz>
9969
9970 * common.opt (fdevirtualize): New flag.
9971 * doc/invoke.texi (Option Summary): Document it.
9972 * opts.c (default_options_table): Add devirtualize flag.
9973 * ipa-prop.c (detect_type_change): Return immediately if
9974 devirtualize flag is not set.
9975 (detect_type_change_ssa): Likewise.
9976 (compute_known_type_jump_func): Likewise.
9977 (ipa_analyze_virtual_call_uses): Likewise.
9978
f65cf2b7
MJ
99792011-01-14 Martin Jambor <mjambor@suse.cz>
9980
9981 PR tree-optimization/45934
9982 PR tree-optimization/46302
9983 * ipa-prop.c (type_change_info): New type.
9984 (stmt_may_be_vtbl_ptr_store): New function.
9985 (check_stmt_for_type_change): Likewise.
9986 (detect_type_change): Likewise.
9987 (detect_type_change_ssa): Likewise.
9988 (compute_complex_assign_jump_func): Check for dynamic type change.
9989 (compute_complex_ancestor_jump_func): Likewise.
9990 (compute_known_type_jump_func): Likewise.
9991 (compute_scalar_jump_functions): Likewise.
9992 (ipa_analyze_virtual_call_uses): Likewise.
9993 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
9994
eb5bb0fd
JM
99952011-01-14 Joseph Myers <joseph@codesourcery.com>
9996
9997 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
9998 * config/i386/i386.opt (msse5): New Alias.
9999
f2060fbe
JM
100002011-01-14 Joseph Myers <joseph@codesourcery.com>
10001
10002 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10003 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10004 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10005 * config/sparc/sparc.h (CC1_SPEC): Likewise.
10006
3a7b4385
JM
100072011-01-14 Joseph Myers <joseph@codesourcery.com>
10008
10009 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10010 -mcpu options.
10011 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10012 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10013 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10014 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10015 Likewise.
10016 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10017
a7b778f8
JM
100182011-01-14 Joseph Myers <joseph@codesourcery.com>
10019
38be4072 10020 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 10021
a7edae0a
MS
100222011-01-14 Mike Stump <mikestump@comcast.net>
10023
10024 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10025 * config/fr30/fr30.md: Likweise
10026 (movsi_push): Likewise.
10027 (movsi_pop): Likewise.
10028 (enter_func): Likewise.
10029 * config/moxie/moxie.md (movsi_push): Likewise.
10030 (movsi_pop): Likewise.
10031
cbabf03f
JM
100322011-01-14 Joseph Myers <joseph@codesourcery.com>
10033
10034 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10035 %{no_archive} %{exact_version}.
10036 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10037 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10038 %{no_archive} %{exact_version}.
10039 * config/mips/openbsd.h (LINK_SPEC): Likewise.
10040 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10041 * config/mips/vxworks.h: Likewise.
10042
438da41a
JM
100432011-01-14 Joseph Myers <joseph@codesourcery.com>
10044
38be4072 10045 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 10046
da290a42
JM
100472011-01-14 Joseph Myers <joseph@codesourcery.com>
10048
10049 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10050 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10051
8989d00e
JM
100522011-01-14 Joseph Myers <joseph@codesourcery.com>
10053
10054 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10055 -nodefaultlib.
10056
a3010a69
JM
100572011-01-14 Joseph Myers <joseph@codesourcery.com>
10058
10059 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10060 for mcpu not cpu.
10061 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10062 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10063 not cpu.
10064 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10065 Don't handle -shlib.
10066
e7f2f537
JM
100672011-01-14 Joseph Myers <joseph@codesourcery.com>
10068
10069 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10070 (CC1_SPEC): Don't handle -profile.
10071
34830bfd
JM
100722011-01-14 Joseph Myers <joseph@codesourcery.com>
10073
10074 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10075 * config/mips/mips.h (CC1_SPEC): Likewise.
10076
b2d36e74
JM
100772011-01-14 Joseph Myers <joseph@codesourcery.com>
10078
10079 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10080 * config/mips/mips.h (CC1_SPEC): Likewise.
10081
dabadc52
JM
100822011-01-14 Joseph Myers <joseph@codesourcery.com>
10083
10084 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10085 * config/m32r/linux.h (LINK_SPEC): Likewise.
10086 * config/mips/linux.h (LINK_SPEC): Likewise.
10087 * config/mips/linux64.h (LINK_SPEC): Likewise.
10088 * config/sparc/linux.h (LINK_SPEC): Likewise.
10089 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10090 LINK_SPEC): Likewise.
10091 * config/xtensa/linux.h (LINK_SPEC): Likewise.
10092
43ee6785
JM
100932011-01-14 Joseph Myers <joseph@codesourcery.com>
10094
10095 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10096 %{version:-v}.
10097 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10098
45e79dfd
JM
100992011-01-14 Joseph Myers <joseph@codesourcery.com>
10100
10101 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10102 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10103
37e9e71d
JM
101042011-01-14 Joseph Myers <joseph@codesourcery.com>
10105
10106 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10107
bb127cd8
RO
101082011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10109
10110 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10111 supports -Bstatic/-Bdynamic.
10112 * configure: Regenerate.
10113
89a012ea 101142011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 10115 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
10116
10117 PR target/46037
10118 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10119 when checking debug_info_level. Test write_symbols instead of
10120 debug_hooks->var_location when setting flag_var_tracking_uninit.
10121
7352c013
RG
101222011-01-14 Richard Guenther <rguenther@suse.de>
10123
10124 PR tree-optimization/47179
10125 * target.def (ref_may_alias_errno): New target hook.
10126 * targhooks.h (default_ref_may_alias_errno): Declare.
10127 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10128 (default_ref_may_alias_errno): New function.
10129 * target.h (struct ao_ref_s): Declare.
10130 * tree-ssa-alias.c: Include target.h.
10131 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10132 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10133 (targhooks.o): Likewise.
10134 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10135 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10136
9a6c9288
RG
101372011-01-14 Richard Guenther <rguenther@suse.de>
10138
10139 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
10140
0fdb0d27
RG
101412011-01-14 Richard Guenther <rguenther@suse.de>
10142
10143 PR tree-optimization/47280
10144 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10145 return CFG changes.
10146 (tree_ssa_forward_propagate_single_use_vars): Deal with
10147 CFG changes from associate_plusminus.
10148
8f66db3b
RG
101492011-01-14 Richard Guenther <rguenther@suse.de>
10150
10151 PR middle-end/47281
10152 Revert
10153 2011-01-11 Richard Guenther <rguenther@suse.de>
10154
280d9630
EB
10155 PR tree-optimization/46076
10156 * tree-ssa.c (useless_type_conversion_p): Conversions from
10157 unprototyped to empty argument list function types are useless.
8f66db3b 10158
6c0c92e6
RG
101592011-01-14 Richard Guenther <rguenther@suse.de>
10160
10161 PR tree-optimization/47286
280d9630 10162 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 10163
db09f943
MJ
101642011-01-14 Martin Jambor <mjambor@suse.cz>
10165
10166 PR middle-end/46823
10167 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10168
dde8a3a4
AS
101692011-01-13 Anatoly Sokolov <aesok@post.ru>
10170
10171 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10172 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10173 * config/xtensa/xtensa.c (xtensa_libcall_value,
10174 xtensa_function_value_regno_p): New functions.
10175 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10176
a2b63a20
KT
101772011-01-13 Kai Tietz <kai.tietz@onevision.com>
10178
10179 PR c++/47213
10180 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10181 PE specific hook.
10182 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10183 New function prototype.
10184 * config/i386/winnt.c (i386_pe_assemble_visibility):
10185 Warn only if attribute was specified by user.
10186
b41f0b34
MM
101872011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
10188
10189 PR target/47251
10190 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10191 floating point.
10192 (floatunsdidf2_fcfidu): Ditto.
10193
3f3c098d
AK
101942011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10195
10196 * config/s390/s390.c (print_operand_address): Replace 'error' with
10197 'output_operand_lossage'.
10198 (print_operand): Likewise.
10199
29fa95ed
JL
102002011-01-13 Jeff Law <law@redhat.com>
10201
280d9630 10202 PR rtl-optimization/39077
29fa95ed
JL
10203 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10204 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10205 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10206 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10207 * gcse.c (prune_insertions_deletions): New function.
10208 (compute_pre_data): Use it.
10209
71d12276
DS
102102011-01-13 Dodji Seketeli <dodji@redhat.com>
10211
10212 PR debug/PR46973
10213 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10214 static function.
61052244 10215 (prune_unused_types_mark): Use it.
71d12276 10216
9b0f04e7
AB
102172011-01-13 Andrey Belevantsev <abel@ispras.ru>
10218
10219 PR rtl-optimization/45352
1c3ba85b 10220 * sel-sched.c: Update copyright years.
9b0f04e7 10221 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 10222 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 10223
d6a3e264
RH
102242011-01-12 Richard Henderson <rth@redhat.com>
10225
a49b692a
RH
10226 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10227 (TARGET_MD_ASM_CLOBBERS): New.
10228
126b1483
RH
10229 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10230 (TARGET_DELEGITIMIZE_ADDRESS): New.
10231
f3d9d2e0
RH
10232 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10233 (clzsi2, *bsch): New patterns.
10234
d84760c9
RH
10235 * config/mn10300/mn10300.md (INT): New mode iterator.
10236 (*mov<INT>_clr): New pattern, and peep2 to generate it.
10237
ec815d65
RH
10238 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10239 flag_split_wide_types.
10240
d6a3e264
RH
10241 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10242 (mn10300_trampoline_init): Rewrite without a template, an immediate
10243 load and a direct branch.
10244 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10245
0f8ab434
AS
102462011-01-12 Anatoly Sokolov <aesok@post.ru>
10247
10248 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10249 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10250 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10251 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10252
d8a24b65
KT
102532011-01-12 Kai Tietz <kai.tietz@onevision.com>
10254
10255 PR debug/47209
10256 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10257 of type.
10258
56e22cab
JH
102592011-01-12 Jan Hubicka <jh@suse.cz>
10260
10261 PR driver/47244
10262 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10263 (PLUGIN_COND_CLOSE): New macro.
10264 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10265
4b18b3c2
RG
102662011-01-12 Richard Guenther <rguenther@suse.de>
10267
10268 PR lto/47259
10269 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10270 register variables in a MEM_REF.
10271
8e38461c
JM
102722011-01-12 Joseph Myers <joseph@codesourcery.com>
10273
10274 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10275 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10276 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10277 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10278 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10279 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10280 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10281 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10282 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10283 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10284 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10285 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10286 * config/gnu-user.h: New. Copied from linux.h.
10287 (LINUX_TARGET_STARTFILE_SPEC): Rename to
10288 GNU_USER_TARGET_STARTFILE_SPEC.
10289 (LINUX_TARGET_ENDFILE_SPEC): Rename to
10290 GNU_USER_TARGET_ENDFILE_SPEC.
10291 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10292 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10293 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10294 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10295 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10296 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10297 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10298 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10299 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10300 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10301 * config/arm/linux-eabi.h (CC1_SPEC): Use
10302 GNU_USER_TARGET_CC1_SPEC.
10303 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10304 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10305 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10306 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10307 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10308 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10309 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10310 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10311
a570fc16
RG
103122011-01-12 Richard Guenther <rguenther@suse.de>
10313
10314 PR other/46946
10315 * doc/invoke.texi (ffast-math): Document it is turned on
10316 with -Ofast.
10317
b0223c3e
JH
103182011-01-12 Jan Hubicka <jh@suse.cz>
10319
10320 PR tree-optimization/47233
ca1e00b3
EB
10321 * opts.c (common_handle_option): Disable ipa-reference with profile
10322 feedback.
b0223c3e 10323
1c3ba85b 103242011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
10325
10326 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
10327 error message.
10328
d853ee42
NP
103292011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
10330
10331 * c-parser.c (c_lex_one_token): Updated and reindented some
10332 comments. No changes in code.
10333
4053a5a0
ILT
103342011-01-11 Ian Lance Taylor <iant@google.com>
10335
10336 * godump.c (go_output_var): Don't output the variable if there is
10337 already a type with the same name.
10338
fa3e04d2
ILT
103392011-01-11 Ian Lance Taylor <iant@google.com>
10340
10341 * godump.c (go_format_type): Don't generate float80.
10342
885fe07c
RH
103432011-01-11 Richard Henderson <rth@redhat.com>
10344
72d6e3c5
RH
10345 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
10346 declaration. Rewrite for both speed and size.
10347 (mn10300_address_cost_1): Remove.
10348 (mn10300_register_move_cost): New.
10349 (mn10300_memory_move_cost): New.
10350 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
10351 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
10352 extensions, shifts, BSWAP, CLZ.
10353 (mn10300_wide_const_load_uses_clr): Remove.
10354 (TARGET_REGISTER_MOVE_COST): New.
10355 (TARGET_MEMORY_MOVE_COST): New.
10356 * config/mn10300/mn10300-protos.h: Update.
10357 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
10358
df37c023
RH
10359 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
10360 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
10361 * config/mn10300/mn10300-protos.h: Update.
10362 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
10363 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
10364 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
10365 (*test_int_bitfield, *test_byte_bitfield): Remove.
10366 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 10367 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 10368
85a337b5
RH
10369 * config/mn10300/constraints.md ("c"): Rename from "A".
10370 ("A", "D"): New constraint letters.
10371 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
10372 (fmssf4, fnmasf4, fnmssf4): Likewise.
10373
a5c727e3
RH
10374 * config/mn10300/mn10300.md (isa): New attribute.
10375 (enabled): New attribute.
10376
0d9e23f4
RH
10377 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
10378 (abssf2, negsf2): Define only for hardware fp.
10379 (sqrtsf2): Reformat.
10380 (addsf3, subsf3, mulsf3): Merge expander and insn.
10381
c157b3f0
RH
10382 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
10383 (DEBUGGER_AUTO_OFFSET): Remove.
10384 (DEBUGGER_ARG_OFFSET): Remove.
10385
cc909bba
RH
10386 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
10387 Emit register stores with the same offsets as the hardware.
10388 (mn10300_store_multiple_operation): Don't check that the register
10389 save offsets are monotonic.
10390 * config/mn10300/mn10300-protos.h: Update.
10391
e3b5c2f3
RH
10392 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
10393
885fe07c
RH
10394 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
10395 in terms of the value on the stack, not the MDR register.
10396
6e701822
JH
103972011-01-11 Jan Hubicka <jh@suse.cz>
10398
10399 PR lto/45721
10400 PR lto/45375
10401 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
10402 (symbol_alias_set_destroy, symbol_alias_set_contains,
10403 propagate_aliases_backward): Declare.
10404 * lto-streamer-out.c (struct sets): New sturcture.
10405 (trivally_defined_alias): New function.
10406 (output_alias_pair_p): Rewrite.
10407 (output_unreferenced_globals): Fix output of alias pairs.
10408 (produce_symtab): Likewise.
10409 * ipa.c (function_and_variable_visibility): Set weak alias destination
10410 as needed in lto.
10411 * varasm.c (symbol_alias_set_t): Remove.
10412 (symbol_alias_set_destroy): Export.
10413 (propagate_aliases_forward, propagate_aliases_backward): New functions
10414 based on ...
10415 (compute_visible_aliases): ... this one; remove.
10416 (trivially_visible_alias): New
10417 (trivially_defined_alias): New.
10418 (remove_unreachable_alias_pairs): Rewrite.
10419 (finish_aliases_1): Reorganize code checking if alias is defined.
10420 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
10421 in LTO mode.
10422
1b248907
RG
104232011-01-11 Richard Guenther <rguenther@suse.de>
10424
10425 PR tree-optimization/46076
10426 * tree-ssa.c (useless_type_conversion_p): Conversions from
10427 unprototyped to empty argument list function types are useless.
10428
b1923f0a
RG
104292011-01-11 Richard Guenther <rguenther@suse.de>
10430
10431 PR middle-end/45235
10432 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
10433 volatile MEMs as MEM_READONLY_P.
10434
e98965af
RG
104352011-01-11 Richard Guenther <rguenther@suse.de>
10436
10437 PR tree-optimization/47239
10438 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
10439
9f9ca914
JL
104402011-01-11 Jeff Law <law@redhat.com>
10441
1ee3ea05 10442 PR tree-optimization/47086
9f9ca914
JL
10443 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
10444 IVs from statements that might throw.
10445
345fdcb7
JH
104462011-01-10 Jan Hubicka <jh@suse.cz>
10447
10448 PR lto/45375
10449 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
10450
c459c97b
JH
104512011-01-10 Jan Hubicka <jh@suse.cz>
10452
10453 PR lto/45375
10454 * profile.c (read_profile_edge_counts): Ignore profile inconistency
10455 when correcting profile.
10456
06c9eb51
JH
104572011-01-10 Jan Hubicka <jh@suse.cz>
10458
10459 PR lto/46083
10460 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
10461 DECL_FINI_PRIORITY.
10462 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
10463 Restore DECL_FINI_PRIORITY.
10464
ae9fd815
RW
104652011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10466
10467 * doc/gimple.texi: Fix quoting of multi-word return values in
10468 @deftypefn statements. Ensure presence of return value. Wrap
10469 overlong @deftypefn lines.
10470 (is_gimple_operand, is_gimple_min_invariant_address): Remove
10471 descriptions of removed functions.
10472 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
10473 of multi-word return value in @deftypefn statement.
10474
0ecb4a7c
RW
104752011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10476
10477 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
10478 (Conditional Expressions, Logical Operators)
10479 (Statement and operand traversals): Do not indent smallexample
10480 code. Fix duplicate function argument in example.
10481
2e5e346d
JL
104822011-01-10 Jeff Law <law@redhat.com>
10483
1ee3ea05 10484 PR tree-optimization/47141
2e5e346d
JL
10485 * ipa-split.c (split_function): Handle case where we are
10486 returning a value and the return block has a virtual operand phi.
10487
cf9712cc
JH
104882011-01-10 Jan Hubicka <jh@suse.cz>
10489
1c3ba85b 10490 PR tree-optimization/47234
cf9712cc
JH
10491 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
10492 (pass_feedback_split_functions): Declare.
10493 * passes.c (init_optimization_passes): Add ipa-split as subpass of
10494 tree-profile.
10495 * ipa-split.c (gate_split_functions): Update comments; disable
10496 split-functions for profile_arc_flag and branch_probabilities.
10497 (gate_feedback_split_functions): New function.
10498 (execute_feedback_split_functions): New function.
10499 (pass_feedback_split_functions): New global var.
10500
94cd932c
L
105012011-01-10 H.J. Lu <hongjiu.lu@intel.com>
10502
10503 PR lto/46760
10504 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
10505 calling gimple_call_set_cannot_inline.
10506
fbbfcaf1
IS
105072011-01-10 Iain Sandoe <iains@gcc.gnu.org>
10508
10509 * config/darwin-sections.def: Remove unused section.
10510
d06865bf
DK
105112011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
10512
10513 PR c++/47218
10514 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
10515
96bbfbac
NP
105162011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
10517
10518 PR objc/47232
10519 * c-parser.c (c_parser_declaration_or_fndef): Improved
10520 error message.
10521
1ba6516f
KT
105222011-01-09 Kai Tietz <kai.tietz@onevision.com>
10523
10524 * config/i386/winnt.c (i386_pe_start_function): Make sure
10525 to switch back to function's section.
10526
0c5d770e
IS
105272011-01-09 Iain Sandoe <iains@gcc.gnu.org>
10528
10529 PR gcc/46902
10530 PR testsuite/46912
10531 * plugin.c: Move include of dlfcn.h from here...
10532 * system.h: ... to here.
10533
105342011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
10535
10536 * doc/cpp.texi (C++ Named Operators): Fix markup for header
10537 file name.
10538 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
10539 two extra empty pages in PDF output.
10540
046608a3
NP
105412011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
10542
10543 PR objc/47078
10544 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
10545 for error recovery purposes behave as if it was not specified so
10546 that the default type is usd.
10547
8cb114b9
JH
105482011-01-07 Jan Hubicka <jh@suse.cz>
10549
10550 PR tree-optmization/46469
10551 * ipa.c (function_and_variable_visibility): Clear needed flags on
10552 nodes with external decls; handle weakrefs merging correctly.
10553
b294a75e
JM
105542011-01-07 Joseph Myers <joseph@codesourcery.com>
10555
10556 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
10557 not false.
10558
96bdf9b4
JH
105592011-01-07 Jan Hubicka <jh@suse.cz>
10560
f60c2554 10561 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
10562 and no longer claim that gold is required for linker plugin.
10563 * configure: Regenerate.
10564 * gcc.c (PLUGIN_COND): New macro.
10565 (LINK_COMMAND_SPEC): Use it.
10566 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
10567 * config.in (HAVE_LTO_PLUGIN): New.
10568 * configure.ac (--with-lto-plugin): New parameter; autodetect
10569 HAVE_LTO_PLUGIN.
10570
17afc0fe
JH
105712011-01-07 Jan Hubicka <jh@suse.cz>
10572
10573 PR tree-optimization/46367
10574 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
10575 when we can update original.
10576 (cgraph_mark_inline_edge): Sanity check.
10577 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
10578
d4c48c0f
UW
105792011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10580
10581 * config/spu/spu.h (ASM_COMMENT_START): Define.
10582
96f5b137
L
105832011-01-07 H.J. Lu <hongjiu.lu@intel.com>
10584
10585 PR driver/42445
10586 * gcc.c (%>S): New.
10587 (SWITCH_KEEP_FOR_GCC): Likewise.
10588 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
10589 (do_spec_1): Handle "%>".
10590
10591 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
10592
c6a8f6de
JJ
105932011-01-07 Jakub Jelinek <jakub@redhat.com>
10594
c21bbd7a
JJ
10595 PR target/47201
10596 * config/i386/i386.c (ix86_delegitimize_address): If
10597 simplify_gen_subreg fails, return orig_x.
10598
c6a8f6de
JJ
10599 PR bootstrap/47187
10600 * value-prof.c (gimple_stringop_fixed_value): Handle
10601 lhs of the call properly.
10602
fe95fbf9
JH
106032011-01-07 Jan Hubicka <jh@suse.cz>
10604
10605 PR lto/45375
10606 * lto-opt.c (lto_reissue_options): Set flag_shlib.
10607
14d11d40
IS
106082011-01-07 Iain Sandoe <iains@gcc.gnu.org>
10609
72e961c8
EB
10610 * target.def (function_switched_text_sections): New hook.
10611 * doc/tm.texi: Regenerated.
10612 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 10613 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
10614 (final_scan_insn): Call function_switched_text_sections when a
10615 mid-function section change occurs.
14d11d40 10616 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
10617 * config/darwin-protos.h (darwin_function_switched_text_sections):
10618 Likewise.
14d11d40 10619 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 10620 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 10621
0b764288
IS
106222011-01-07 Iain Sandoe <iains@gcc.gnu.org>
10623
10624 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
10625 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
10626 the secondary code fragment when outputting for DWARF == 2.
10627
2ac6bb04
AS
106282011-01-07 Anatoly Sokolov <aesok@post.ru>
10629
10630 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10631 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
10632 Remove.
10633 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
10634 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10635
9f82de11
EB
106362011-01-06 Eric Botcazou <ebotcazou@adacore.com>
10637
10638 PR debug/46704
280d9630
EB
10639 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
10640 when it is not empty.
9f82de11
EB
10641
106422011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 10643
1ed72abf 10644 Bobcat Enablement
14b52538 10645 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 10646 (case ${target}): Add btver1.
14b52538 10647 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 10648 -march=native recognize btver1 processors.
14b52538 10649 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 10650 btver1 def_and_undef
14b52538 10651 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
10652 btver1 cost table.
10653 (m_BTVER1): New definition.
10654 (m_AMD_MULTIPLE): Includes m_BTVER1.
10655 (initial_ix86_tune_features): Add btver1 tune.
10656 (processor_target_table): Add btver1 entry.
10657 (static const char *const cpu_names): Add btver1 entry.
10658 (software_prefetching_beneficial_p): Add btver1.
10659 (ix86_option_override_internal): Add btver1 instruction sets.
10660 (ix86_issue_rate): Add btver1.
10661 (ix86_adjust_cost): Add btver1.
14b52538 10662 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
10663 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
10664 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
10665 * config/i386/i386.md (define_attr "cpu"): Add btver1.
10666
e1a973d8
RO
106672011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10668
10669 PR target/43309
10670 * config/i386/i386.c (legitimize_tls_address)
10671 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
10672 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
10673 (tls_initial_exec_64_sun): New pattern.
10674
c73f67c5
GP
106752011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
10676
10677 * doc/invoke.texi (Overall Options): Improve wording and markup
10678 of the description of -wrapper.
10679
bc4c6f9c
JM
106802011-01-06 Joseph Myers <joseph@codesourcery.com>
10681
10682 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
10683 rdynamic, threads): New Driver options.
10684
adb75db0
RO
106852011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10686
10687 PR target/38118
10688 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
10689 if coming from .tdata.
10690 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10691
402c1cb4
JH
106922011-01-06 Jan Hubicka <jh@suse.cz>
10693
10694 PR lto/47188
10695 * collect2.c (main): Do not enable LTOmode when plugin is active.
10696
a4da6485
RO
106972011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10698
10699 PR other/45915
10700 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
10701 --version output if supported.
10702 * configure: Regenerate.
10703
028dbdf4
JM
107042011-01-06 Joseph Myers <joseph@codesourcery.com>
10705
10706 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
10707 Driver options.
10708
dfe776dd
JJ
107092011-01-06 Jakub Jelinek <jakub@redhat.com>
10710
10711 PR c/47150
10712 * c-convert.c (convert): When converting a complex expression
10713 other than COMPLEX_EXPR to a different complex type, ensure
10714 c_save_expr is called instead of save_expr, unless in_late_binary_op.
10715 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
10716 when converting COMPLEX_TYPE.
10717
210dedfe
IR
107182011-01-06 Ira Rosen <irar@il.ibm.com>
10719
10720 PR tree-optimization/47139
10721 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
10722 only the last reduction value is used outside the loop. Update
10723 documentation.
10724
cd33a412
JM
107252011-01-05 Joseph Myers <joseph@codesourcery.com>
10726
10727 * config/rtems.opt: New.
10728 * config.gcc (*-*-rtems*): Use rtems.opt.
10729
819edd94
CF
107302011-01-05 Changpeng Fang <changpeng.fang@amd.com>
10731
10732 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
10733 processors do not support 3DNow instructions.
10734
dc242c4a
UW
107352011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10736
10737 * config/spu/spu.c (spu_option_override): Set parameter
10738 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
10739
be286227
JH
107402011-01-05 Jan Hubicka <jh@suse.cz>
10741
10742 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
10743 at the command line.
10744
644e637f
MJ
107452011-01-05 Martin Jambor <mjambor@suse.cz>
10746
10747 PR lto/47162
10748 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
10749 deltas on streamed outgoing edges.
10750 (output_node_opt_summary): Output info for outgoing edges only when
10751 the node is in new parameter set.
10752 (output_cgraph_opt_summary): New parameter set, passed to the two
10753 aforementioned functions. Update its forward declaration and its
10754 callee too.
10755
7bd11157
TT
107562011-01-05 Tom Tromey <tromey@redhat.com>
10757
10758 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
10759 operator to c_finish_omp_atomic.
10760 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
10761 (build_unary_op): Update.
10762 (build_modify_expr): Update.
10763 (build_asm_expr): Update.
10764
f626b979
UW
107652011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10766
10767 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
10768 newly inserted insns.
10769 (pad_bb): Likewise.
10770 (spu_emit_branch_hint): Likewise.
10771 (insert_hbrp_for_ilb_runout): Likewise.
10772 (spu_machine_dependent_reorg): Call df_finish_pass after
10773 schedule_insns returns.
10774
4c825c02
UW
107752011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10776
10777 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
10778
5e9fba51
EB
107792011-01-05 Eric Botcazou <ebotcazou@adacore.com>
10780
10781 PR tree-optimization/47005
10782 * tree-sra.c (struct access): Add 'non_addressable' bit.
10783 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
10784 (decide_one_param_reduction): Return 0 if the parameter is passed by
10785 reference and one of the accesses in the group is non_addressable.
10786
3ebb5ca6
EB
107872011-01-04 Eric Botcazou <ebotcazou@adacore.com>
10788
10789 PR tree-optimization/47056
10790 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
10791 (mark_load): Likewise. Handle FUNCTION_DECL specially.
10792 (mark_store): Likewise. Pass STMT to ipa_record_reference.
10793
d5d4d14e
EB
107942011-01-04 Eric Botcazou <ebotcazou@adacore.com>
10795
10796 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
10797 initializer. Skip view conversions from aggregate types.
10798
d996ef70
KT
107992011-01-04 Kai Tietz <kai.tietz@onevision.com>
10800
10801 PR bootstrap/47055
10802 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
10803
509d65dd 108042011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
10805
10806 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
10807 obvious typo.
10808
55c623b5
UW
108092011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10810
10811 * function.c (thread_prologue_and_epilogue_insns): Do not crash
10812 on empty epilogue sequences.
10813
b98d6b35
JM
108142011-01-04 Joseph Myers <joseph@codesourcery.com>
10815
10816 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
10817 non-static): New Driver options.
10818
a0d43bac
JZ
108192011-01-04 Jie Zhang <jie@codesourcery.com>
10820
10821 PR driver/47137
10822 * gcc.c (default_compilers[]): Set combinable field to 0
10823 for all assembly languages.
10824
2b18eb32
MX
108252011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
10826
10827 * config/mips/loongson3a.md: New file.
10828 * config/mips/mips.md: Include loongson3a.md.
10829 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
10830 TUNE_LOONGSON_3A.
10831
42a48c4f
EB
108322011-01-03 Eric Botcazou <ebotcazou@adacore.com>
10833
10834 PR middle-end/47017
10835 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
10836 instead of convert_memory_address_addr_space on the base expression.
10837
9c1732c4
UW
108382011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10839
10840 * config/spu/spu.c (spu_option_override): Update error text
10841 for bad -march= / -mtune= values.
10842
aa474365
UW
108432011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10844
10845 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
10846 if branch-hint optimization will be performed.
10847
9766135b
JJ
108482011-01-03 Jakub Jelinek <jakub@redhat.com>
10849
371556ee
JJ
10850 PR tree-optimization/47148
10851 * ipa-split.c (split_function): Convert arguments to
10852 DECL_ARG_TYPE if possible.
10853
1ac12fa2
JJ
10854 PR tree-optimization/47155
10855 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
10856 when computing uns.
10857
9766135b
JJ
10858 PR rtl-optimization/47157
10859 * combine.c (try_combine): If undobuf.other_insn becomes
10860 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
10861 and set *new_direct_jump_p too.
10862
f4a2e571
SP
108632011-01-03 Sebastian Pop <sebastian.pop@amd.com>
10864
10865 PR tree-optimization/47021
10866 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
10867
9f8e43c0
JJ
108682011-01-03 Jakub Jelinek <jakub@redhat.com>
10869
10870 * gcc.c (process_command): Update copyright notice dates.
10871 * gcov.c (print_version): Likewise.
10872 * gcov-dump.c (print_version): Likewise.
10873 * mips-tfile.c (main): Likewise.
10874 * mips-tdump.c (main): Likewise.
10875
1a2e38f3
MJ
108762011-01-03 Martin Jambor <mjambor@suse.cz>
10877
10878 PR tree-optimization/46801
10879 * tree-sra.c (type_internals_preclude_sra_p): Check whether
10880 aggregate fields start at byte boundary instead of the bit-field flag.
10881
56b721c5
L
108822011-01-03 H.J. Lu <hongjiu.lu@intel.com>
10883
10884 PR driver/47137
10885 * gcc.c (main): Revert revision 168407.
10886
839d549b
MJ
108872011-01-03 Martin Jambor <mjambor@suse.cz>
10888
10889 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
10890
4ce99a20 108912011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
10892
10893 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
10894 vector optab to expand vector/scalar shift, update gimple to vector.
10895
76df0ae6
MJ
108962011-01-03 Martin Jambor <mjambor@suse.cz>
10897
10898 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
10899 a thunk.
10900
ce47fda3
MJ
109012011-01-03 Martin Jambor <mjambor@suse.cz>
10902
10903 PR tree-optimization/46984
10904 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
10905 HOST_WIDE_INT.
10906 (cgraph_create_indirect_edge): Fixed line length.
10907 (cgraph_indirect_call_info): Declare.
10908 (cgraph_make_edge_direct) Update declaration.
10909 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
10910 (cgraph_create_indirect_edge): Use it.
10911 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
10912 callees.
10913 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
10914 the new thunk_delta representation.
10915 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
10916 HOST_WIDE_INT.
10917 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
10918 (ipa_read_indirect_edge_info): Likewise.
10919 * lto-cgraph.c (output_edge_opt_summary): New function.
10920 (output_node_opt_summary): Call it on all outgoing edges.
10921 (input_edge_opt_summary): New function.
10922 (input_node_opt_summary): Call it on all outgoing edges.
10923
1e67fa1f
L
109242011-01-02 H.J. Lu <hongjiu.lu@intel.com>
10925
10926 PR driver/47137
10927 * gcc.c (main): Don't check have_o when settting combine_inputs.
10928
6656b2ac
EB
109292011-01-02 Eric Botcazou <ebotcazou@adacore.com>
10930
10931 * regrename.c: Add general comment describing the pass.
10932 (struct du_head): Remove 'length' field.
10933 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
10934 (regrename_optimize): Do not sort chains. Rework comments, add others.
10935 Force renaming to the preferred class (if any) in the first pass and do
10936 not consider registers that belong to it in the second pass.
10937 (create_new_chain): Do not set 'length' field.
10938 (scan_rtx_reg): Likewise.
10939
bc470c24
JJ
109402011-01-02 Jakub Jelinek <jakub@redhat.com>
10941
4e996296
JJ
10942 PR tree-optimization/47140
10943 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
10944 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
10945 to bit_value_binop.
10946
bc470c24 10947 PR rtl-optimization/47028
6656b2ac
EB
10948 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
10949 parm_birth_insn instead of at the beginning of first bb.
bc470c24 10950
5af62fcd 109512011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
10952
10953 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
10954 Remove the word "see" before "@pxref".
10955 * doc/rtl.texi: Remove the word "see" before "@pxref".
10956
0e20c89f
JH
109572011-01-01 Jan Hubicka <jh@suse.cz>
10958
6656b2ac
EB
10959 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
10960 memory.
0e20c89f 10961
220e83ca
KT
109622011-01-01 Kai Tietz <kai.tietz@onevision.com>
10963
10964 PR target/38662
6656b2ac 10965 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 10966
ad41bd84 10967\f
797103eb 10968Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
10969
10970Copying and distribution of this file, with or without modification,
10971are permitted in any medium without royalty provided the copyright
10972notice and this notice are preserved.