]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR testsuite/39907 (Aligned access to unaligned address)
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
c4406f74
AS
12009-05-18 Andreas Schwab <schwab@linux-m68k.org>
2
06555043
AS
3 * config.gcc: Fix variable syntax.
4
c4406f74
AS
5 PR target/39531
6 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
7 before calling exact_log2.
8 (output_iorsi3): Likewise.
9 (output_xorsi3): Likewise.
10
99052692
KK
112009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
12
13 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
14 for the none zero constant operand except for EQ and NE
15 comprisons even when the first operand is R0.
16
f4aa3848
AK
172009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
18
19 * config/s390/2064.md: Remove trailing whitespaces.
20 * config/s390/2084.md: Likewise.
21 * config/s390/constraints.md: Likewise.
22 * config/s390/fixdfdi.h: Likewise.
23 * config/s390/libgcc-glibc.ver: Likewise.
24 * config/s390/s390-modes.def: Likewise.
25 * config/s390/s390-protos.h: Likewise.
26 * config/s390/s390.c: Likewise.
27 * config/s390/s390.h: Likewise.
28 * config/s390/s390.md: Likewise.
29 * config/s390/tpf-unwind.h: Likewise.
30
ab7256e4
MK
312009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
32
33 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
34
75df395f
MK
352009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
36
37 M68K TLS support.
38 * configure.ac (m68k-*-*): Check if binutils support TLS.
39 * configure: Regenerate.
40 * config/m68k/predicates.md (symbolic_operand): Extend comment.
41 * config/m68k/constraints.md (Cu): New constraint.
42 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
43 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
44 (movsi): Handle TLS symbols.
45 (addsi3_5200): Handle XTLS symbols, indent.
46 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
47 (m68k_tls_reference_p): Declare.
48 (m68k_legitimize_address): Declare.
49 (m68k_unwrap_symbol): Declare.
50 * config/m68k/m68k.opt (mxtls): New option.
51 * config/m68k/m68k.c (ggc.h): Include.
52 (m68k_output_dwarf_dtprel): Implement hook.
53 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
54 (m68k_expand_prologue): Load GOT pointer when function needs it.
55 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
56 (m68k_legitimate_constant_address_p): Same.
57 (m68k_decompose_address): Handle TLS references.
58 (m68k_get_gp): New static function.
59 (enum m68k_reloc): New contants.
60 (TLS_RELOC_P): New macro.
61 (m68k_wrap_symbol): New static function.
62 (m68k_unwrap_symbol): New function.
63 (m68k_final_prescan_insn_1): New static function.
64 (m68k_final_prescan_insn): New function.
65 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
66 functions.
67 (legitimize_pic_address): Handle TLS references..
68 (m68k_tls_get_addr, m68k_get_tls_get_addr)
69 (m68k_libcall_value_in_a0_p)
70 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
71 (m68k_call_m68k_read_tp): Helper variables and functions for ...
72 (m68k_legitimize_tls_address): Handle TLS references.
73 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
74 New functions.
75 (m68k_legitimize_address): Handle TLS symbols.
76 (m68k_get_reloc_decoration): New static function.
77 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
78 UNSPEC_RELOC32.
79 (m68k_output_dwarf_dtprel): Implement hook.
80 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
81 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
82 m68k_call_* routines.
83 (sched_attr_op_type): Handle TLS symbols.
84 (gt-m68k.h): Include.
85 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
86 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
87
8b75fc9b
MJ
882009-05-18 Martin Jambor <mjambor@suse.cz>
89
90 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
91 (visit_store_addr_for_mod_analysis): New function.
92 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
93 (determine_cst_member_ptr): Use gimple_assign_single_p.
94 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
95 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
96 operands. Don't check number of operands of a NOP_EXPR.
97
f133d4a2
EF
982009-05-18 Eric Fisher <joefoxreal@gmail.com>
99
100 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
101
ae8af500
L
1022009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
103
104 PR c/40172
105 * c-common.c (warn_logical_operator): Don't warn if one of
106 expression isn't always true or false.
107
25e8fde8
KT
1082009-05-17 Kai Tietz <kai.tietz@onevision.com>
109
ae8af500
L
110 * config/i386/biarch32.h: New file.
111 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
25e8fde8 112
ef67af22
AN
1132009-05-17 Adam Nemet <anemet@caviumnetworks.com>
114
115 * config/mips/mips.md (*zero_extend<mode>_trunchi,
116 *zero_extend<mode>_truncqi): Merge these into ...
117 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
118 Name the pattern following this as *zero_extendhi_truncqi.
119
e2d87023
BL
1202009-05-16 Brad Lucier <lucier@math.purdue.edu>
121
122 PR middle-end/39301
123 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
124 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
125 (output_info): Make field HOST_WIDEST_INT.
126 (print_statistics): Use HOST_WIDEST_INT_PRINT.
127 (dump_bitmat_statistics): Same.
128
428ddbf0
FXC
1292009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
130
131 * config.gcc (use_gcc_stdint): Set to wrap.
132 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
133 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
134 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
135 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
136 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
137 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
138 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
139 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
140
1ab8a8c2
JM
1412009-05-16 Joseph Myers <joseph@codesourcery.com>
142
143 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
144 tune_64.
145 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
146 Move definitions earlier.
147 (OPT_ARCH64, OPT_ARCH32): Define.
148 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
149 and tune_64.
150
70544f44
RE
1512009-05-16 Richard Earnshaw <rearnsha@arm.com>
152
153 PR target/40153
154 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
155 implies.
156
6241ded1
RE
1572009-05-16 Richard Earnshaw <rearnsha@arm.com>
158
159 * arm.md (movdi2): Copy non-reg values to DImode registers.
160
a99c6711
JJ
1612009-05-16 Jakub Jelinek <jakub@redhat.com>
162
40a8f07a
JJ
163 PR target/39942
164 * final.c (label_to_max_skip): New function.
165 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
166 CODE_LABEL_NUMBER <= max_labelno.
167 * output.h (label_to_max_skip): New prototype.
168 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
169 (ix86_avoid_jump_mispredicts): ... this. Don't define if
170 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
171 Handle CODE_LABELs with >= 16 byte alignment or with
172 max_skip == (1 << align) - 1.
173 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
174 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
175
a99c6711
JJ
176 PR target/39942
177 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
178 .p2align 3 if MAX_SKIP is smaller than 7.
179 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
180
7e5487a2
ILT
1812009-05-15 Ian Lance Taylor <iant@google.com>
182
183 * alias.c (struct alias_set_entry_d): Rename from struct
184 alias_set_entry. Change all uses.
185 * except.c (struct call_site_record_d): Rename from struct
186 call_site_record. Change all uses.
187 * except.h (struct eh_region_d): Rename from struct eh_region.
188 Change all uses.
189 * gcse.c (struct hash_table_d): Rename from struct hash_table.
190 Change all uses.
191 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
192 ivtype_map_elt. Change all uses.
193 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
194 Change all uses.
195 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
196 * graphite.h (struct name_tree_d): Rename from struct name_tree.
197 Change all uses.
198 (struct sese_d): Rename from struct sese. Change all uses.
199 * omega.h (struct eqn_d): Rename from struct eqn. Change all
200 uses.
201 (struct omega_pb_d): Rename from struct omega_pb. Change all
202 uses.
203 * optabs.h (struct optab_d): Rename from struct optab. Change all
204 uses.
205 (struct convert_optab_d): Rename from struct convert_optab.
206 Change all uses.
207 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
208 ipa_opt_pass. Change all uses.
209 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
210 all uses.
211
212 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
213 defined as a typedef.
214 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
215 defined as a tag.
216
a243fb4a
MLI
2172009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
218
219 PR 16302
220 * fold-const.c (make_range,build_range_check,merge_ranges): Move
221 declaration to...
222 (merge_ranges): Returns bool.
223 * tree.h (make_range): .. to here.
224 (build_range_check): Likewise.
225 (merge_ranges): Likewise. Renamed from merge_ranges.
226 * c-typeck.c (parser_build_binary_op): Update calls to
227 warn_logical_operator.
228 * c-common.c (warn_logical_operator): Add new warning.
229 * c-common.h (warn_logical_operator): Update declaration.
230
1b53c5f3
MLI
2312009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
232
233 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong
234 conditional.
235
c128599a
KG
2362009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
237
f9bab007
KG
238 * doc/install.texi: Document MPC requirements, flags etc.
239
c128599a
KG
240 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
241 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
242 Evaluate constant arguments.
243 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
244 (fold_builtin_1): Likewise, also evaluate constant arguments.
245 Remove superfluous break.
246 (do_mpc_ckconv): New.
247 * real.h: Include mpc.h.
248 * toplev.c (print_version): Output MPC version info if available.
249
d33e4b70
SL
2502009-05-15 Sandra Loosemore <sandra@codesourcery.com>
251
252 * fold-const.c (fold_convert_const_real_from_real): Check for
253 overflow.
254
a02ab464
L
2552009-05-15 H.J. Lu <hongjiu.lu@intel.com>
256
257 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
258 only once.
259
796bda22
JH
2602009-05-15 Jan Hubicka <jh@suse.cz>
261
262 * doc/invoke.texi (max-early-inliner-iterations): New flag.
263 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
264 (try_inline): Fix return value.
265 (cgraph_decide_inlining_incrementally): Honor new value.
266 (cgraph_early_inlining): Handle indirect inlining.
267 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
268
d88e5c37
JH
2692009-05-15 Jan Hubicka <jh@suse.cz>
270
271 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
272 * cgraphunit.c (cgraph_finalize_function): Set it.
273 (cgraph_expand_function): Use it.
274
ae63687c
SL
2752009-05-15 Sandra Loosemore <sandra@codesourcery.com>
276
277 * real.c (encode_ieee_half): Define.
278 (decode_ieee_half): Define.
279 (ieee_half_format): Define.
280 (arm_half_format): Define.
281 * real.h (ieee_half_format): Declare.
282 (arm_half_format): Declare.
283
1bd74ad9
SL
2842009-05-15 Sandra Loosemore <sandra@codesourcery.com>
285
286 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
287 swapped, and reversed optabs exist before trying to use them.
288
dc34db56
PB
2892009-05-15 Paul Brook <paul@codesourcery.com>
290 Sandra Loosemore <sandra@codesourcery.com>
291
dc34db56
PB
292 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
293 loads. Allow PRE_DEC.
294 (output_move_neon): Handle PRE_DEC.
295 (arm_print_operand): Add 'A' for neon structure loads.
296 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
297 * config/arm/neon.md (neon_mov): Update comment.
298 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
299 calls.
300 (Um): New constraint.
301
1d405d7b
JH
3022009-05-15 Jan Hubicka <jh@suse.cz>
303
304 Revert the following patch until testsuite fallout is fixed:
305 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
306 * cgraph.h (struct inline_summary): New filed self_wize,
307 size_inlining_benefit, self_time and time_inlining_benefit.
308 (struct cgraph_global_info): Replace insns by time ans size fields.
309 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
310 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
311 (ipcp_update_callgraph): Do not touch function bodies.
312 * ipa-inline.c: Include except.h
313 MAX_TIME: New constant.
314 (overall_insns): Remove
315 (overall_size, max_benefit): New static variables.
316 (cgraph_estimate_time_after_inlining): New function.
317 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
318 (cgraph_clone_inlined_nodes): Update size.
319 (cgraph_mark_inline_edge): Update size.
320 (cgraph_estimate_growth): Use size info.
321 (cgraph_check_inline_limits): Check size.
322 (cgraph_default_inline_p): Likewise.
323 (cgraph_edge_badness): Compute badness based on benefit and size cost.
324 (cgraph_decide_recursive_inlining): Check size.
325 (cgraph_decide_inlining_of_small_function): Update size; dump sizes and times.
326 (cgraph_decide_inlining): Likewise.
327 (cgraph_decide_inlining_incrementally): Likewise; honor PARAM_EARLY_INLINING_INSNS.
328 (likely_eliminated_by_inlining_p): New predicate.
329 (estimate_function_body_sizes): New function.
330 (compute_inline_parameters): Use it.
331 * except.c (must_not_throw_labels): New function.
332 * except.h (must_not_throw_labels): Declare.
333 * tree-inline.c (init_inline_once): Kill inlining_weigths
334 * tree-ssa-structalias.c: Avoid uninitialized warning.
335 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
336 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
337 (PARAM_INLINE_CALL_COST): Remove.
338 (PARAM_EARLY_INLINING_INSNS): New.
339
7ffa47ca
RG
3402009-05-15 Richard Guenther <rguenther@suse.de>
341
342 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
343 not TODO_update_ssa.
344
828552ed
RG
3452009-05-15 Richard Guenther <rguenther@suse.de>
346
347 PR tree-optimization/39999
348 * gimple.h (gimple_expr_type): Use the expression type looking
349 through useless conversions.
350 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
351 (vn_nary_op_insert_stmt): Likewise.
352 (simplify_binary_expression): Likewise.
353
248fc9f3
RG
3542009-05-15 Richard Guenther <rguenther@suse.de>
355
356 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
357 New options, enabled by default.
358 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
359 Document.
360 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
361 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
362 * tree-ssa-structalias.c (gate_tree_pta): New function.
363 (pass_build_alias): Use it.
364
16b29cc4
JM
3652009-05-15 Joseph Myers <joseph@codesourcery.com>
366
367 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
368 recurse on an invariant address if a conversion from a pointer
369 type to a wider integer type is involved.
370
125cae84
JH
3712009-05-15 Jan Hubicka <jh@suse.cz>
372
373 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
374 * cgraph.h (struct inline_summary): New filed self_wize,
375 size_inlining_benefit, self_time and time_inlining_benefit.
376 (struct cgraph_global_info): Replace insns by time ans size fields.
377 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
378 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
379 (ipcp_update_callgraph): Do not touch function bodies.
380 * ipa-inline.c: Include except.h
381 MAX_TIME: New constant.
382 (overall_insns): Remove
383 (overall_size, max_benefit): New static variables.
384 (cgraph_estimate_time_after_inlining): New function.
385 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
386 (cgraph_clone_inlined_nodes): Update size.
387 (cgraph_mark_inline_edge): Update size.
388 (cgraph_estimate_growth): Use size info.
389 (cgraph_check_inline_limits): Check size.
390 (cgraph_default_inline_p): Likewise.
391 (cgraph_edge_badness): Compute badness based on benefit and size cost.
392 (cgraph_decide_recursive_inlining): Check size.
393 (cgraph_decide_inlining_of_small_function): Update size; dump sizes and times.
394 (cgraph_decide_inlining): Likewise.
395 (cgraph_decide_inlining_incrementally): Likewise; honor PARAM_EARLY_INLINING_INSNS.
396 (likely_eliminated_by_inlining_p): New predicate.
397 (estimate_function_body_sizes): New function.
398 (compute_inline_parameters): Use it.
399 * except.c (must_not_throw_labels): New function.
400 * except.h (must_not_throw_labels): Declare.
401 * tree-inline.c (init_inline_once): Kill inlining_weigths
402 * tree-ssa-structalias.c: Avoid uninitialized warning.
403 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
404 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
405 (PARAM_INLINE_CALL_COST): Remove.
406 (PARAM_EARLY_INLINING_INSNS): New.
407 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
408 (inline-call-cost): Remove.
409 (early-inlining-insns): New.
410
84fb43a1
EB
4112009-05-15 Eric Botcazou <ebotcazou@adacore.com>
412
413 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
414 for bounds.
415 (print_int_cst_bounds_in_octal_p): Likewise.
416 (dbxout_type): Adjust calls to above functions. Be prepared to deal
417 with subtypes.
418 * dwarf2out.c (base_type_die): Likewise.
419 (is_subrange_type): Delete.
420 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
421 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
422 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it if
423 the destination type is boolean.
424 (build_range_check): Do not special-case subtypes.
425 (fold_sign_changed_comparison): Likewise.
426 (fold_unary): Likewise.
427 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
428 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
429 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
430 * tree.c (subrange_type_for_debug_p): New predicate based on the former
431 is_subrange_type.
432 * tree.h (subrange_type_for_debug_p): Declare.
433 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
434 (convert_affine_scev): Remove call to above function.
435 (chrec_convert_aggressive): Likewise.
436 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
437 false for conversions involving subtypes.
438 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
439 (vrp_val_min): Likewise.
440 (needs_overflow_infinity): Likewise.
441 (extract_range_from_unary_expr): Likewise.
442
331d9186
PB
4432009-05-15 Paolo Bonzini <bonzini@gnu.org>
444
445 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
446 * config/frv/frv.c: Likewise.
447 * config/s390/s390.c: Likewise.
448 * config/sparc/sparc.h: Likewise.
449 * config/i386/i386.h: Likewise.
450 * config/i386/i386.c: Likewise.
451 * config/crx/crx.c: Likewise.
452 * config/m68hc11/m68hc11.h: Likewise.
453 * config/iq2000/iq2000.c: Likewise.
454 * config/mn10300/mn10300.h: Likewise.
455 * config/mn10300/mn10300.c: Likewise.
456 * config/m68k/m68k.c: Likewise.
457 * config/rs6000/rs6000.c: Likewise.
458 * config/rs6000/xcoff.h: Likewise.
459 * config/rs6000/linux64.h: Likewise.
460 * config/rs6000/sysv4.h: Likewise.
461 * config/score/score3.c: Likewise.
462 * config/score/score7.c: Likewise.
463 * config/score/score.c: Likewise.
464 * config/arm/arm.md: Likewise.
465 * config/mips/mips.c: Likewise.
466 * config/mips/mips.md: Likewise.
467 * config/bfin/bfin.h: Likewise.
468 * config/pa/pa.c: Likewise.
469 * config/pa/constraints.md: Likewise.
470
471 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
472 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
473 * config/pdp11/pdp11.h: Use memory_address_p instead.
474
09639a83
ILT
4752009-05-14 Ian Lance Taylor <iant@google.com>
476
477 * passes.c (finish_optimization_passes): Change i to int.
478 * plugin.c (plugins_active_p): Change event to int.
479 (dump_active_plugins): Likewise.
480 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
481 Add cast.
482 * tree.c (tree_range_check_failed): Change c to unsigned int.
483 (omp_clause_range_check_failed): Likewise.
484 (build_common_builtin_nodes): Change mode to int. Add cast.
485 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
486 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
487
488 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
489 ++ or -- with a variable of enum type.
490
c04a56bf
SB
4912009-05-14 Steven Bosscher <steven@gcc.gnu.org>
492
493 PR driver/40144
494 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
495
237ee620
SB
4962009-05-14 Steven Bosscher <steven@gcc.gnu.org>
497
498 * store-motion.c: Do not include params.h
499 * Makefile.in: Fix dependencies for various files.
500
1154c4fa
SB
5012009-05-14 Steven Bosscher <steven@gcc.gnu.org>
502
503 * auto-inc-dec.c: Fix pass description, remove apparent
504 accidental duplication.
505
61c27353
L
5062009-05-14 H.J. Lu <hongjiu.lu@intel.com>
507
508 PR middle-end/40147
509 * ipa-utils.h (memory_identifier_string): Moved to ...
510 * tree.h (memory_identifier_string): Here. Add GTY(()).
511
c6c3dba9
PB
5122009-05-14 Paolo Bonzini <bonzini@gnu.org>
513
514 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
515 in the former documentation of...
516 (GO_IF_LEGITIMATE_ADDRESS): ... this.
517 * ira-conflicts.c (get_dup_num): Use address_operand.
518 * targhooks.c (default_legitimate_address_p): New.
519 * targhooks.h (default_legitimate_address_p): New.
520 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
521 Call hook.
522 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
523 * target.h (struct target): Add legitimate_address_p.
524 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
525 (TARGET_INITIALIZER): Include it.
526
527 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
528 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
529 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
530 (TARGET_LEGITIMATE_ADDRESS_P): New.
531
532 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
533 (REG_OK_STRICT_P): Delete.
534 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
535 (frv_legitimate_address_p_1): ... this.
536 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
537 (frv_legitimate_address_p_1): ... the renamed old
538 frv_legitimate_address_p.
539 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
540 (TARGET_LEGITIMATE_ADDRESS_P): New.
541
542 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
543 * config/s390/s390-protos.h (legitimate_address_p): Remove.
544 * config/s390/s390.c (legitimate_address_p): Rename to...
545 (s390_legitimate_address_p): ... this, make static.
546 (legitimize_address): Adjust call.
547 (TARGET_LEGITIMATE_ADDRESS_P): New.
548 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
549
550 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
551 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
552 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
553 (TARGET_LEGITIMATE_ADDRESS_P): New.
554
555 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
556 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
557 * config/spu/spu.c (spu_legitimate_address): Rename to...
558 (spu_legitimate_address_p): ... this, make static.
559 (TARGET_LEGITIMATE_ADDRESS_P): New.
560
561 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
562 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
563 * config/sparc/sparc.c (legitimate_address_p): Rename to...
564 (sparc_legitimate_address_p): ... this, make static and return bool.
565 (legitimize_address): Adjust call.
566 (TARGET_LEGITIMATE_ADDRESS_P): New.
567
568 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
569 * config/i386/i386-protos.h (legitimate_address_p): Remove.
570 * config/i386/i386.c (legitimate_address_p): Rename to...
571 (ix86_legitimate_address_p): ... this, make static.
572 (constant_address_p): Move after it, adjust call.
573 (TARGET_LEGITIMATE_ADDRESS_P): New.
574
575 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
576 * config/avr/avr-protos.h (legitimate_address_p): Remove.
577 * config/avr/avr.c (legitimate_address_p): Rename to...
578 (avr_legitimate_address_p): ... this, make static.
579 (legitimize_address): Adjust call.
580 (TARGET_LEGITIMATE_ADDRESS_P): New.
581
582 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
583 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
584 * config/crx/crx.c (crx_legitimate_address_p): Make static.
585 (TARGET_LEGITIMATE_ADDRESS_P): New.
586
587 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
588 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
589 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
590 (TARGET_LEGITIMATE_ADDRESS_P): New.
591
592 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
593 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
594 Remove.
595 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
596 Make static.
597 (TARGET_LEGITIMATE_ADDRESS_P): New.
598
599 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
600 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
601 Remove.
602 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
603 Rename to...
604 (m68hc11_legitimate_address_p): ... this, make static.
605 (go_if_legitimate_address_internal): Rename to...
606 (m68hc11_legitimate_address_p_1): ... this.
607 (legitimize_address): Adjust call.
608 (TARGET_LEGITIMATE_ADDRESS_P): New.
609
610 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
611 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p):
612 Remove.
613 * config/iq2000/iq2000.c (iq2000_legitimate_address_p):
614 Make static.
615 (TARGET_LEGITIMATE_ADDRESS_P): New.
616
617 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
618 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
619 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
620 (mn10300_legitimate_address_p): ... this, make static.
621 (TARGET_LEGITIMATE_ADDRESS_P): New.
622
623 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
624 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
625 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
626 (TARGET_LEGITIMATE_ADDRESS_P): New.
627
628 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
629 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
630 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
631 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
632 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
633 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
634 (rs6000_legitimate_address_p): ... this, make static.
635 (TARGET_LEGITIMATE_ADDRESS_P): New.
636 (REG_MODE_OK_FOR_BASE_P): Delete.
637 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
638
639 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
640 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
641 Delete.
642 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
643 static, adjust types.
644 (TARGET_LEGITIMATE_ADDRESS_P): New.
645
646 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
647 * config/score/score.c (score_address_p): Rename to...
648 (score_legitimate_address_p): ... this.
649 (TARGET_LEGITIMATE_ADDRESS_P): New.
650 * config/score/score3.c (score3_address_p): Rename to...
651 (score3_legitimate_address_p): ... this.
652 * config/score/score7.c (score7_address_p): Rename to...
653 (score7_legitimate_address_p): ... this.
654
655 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
656 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
657 GO_IF_LEGITIMATE_ADDRESS): Delete.
658 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
659 thumb2_legitimate_address_p): Delete.
660 (arm_legitimate_address_p): Rename to...
661 (arm_legitimate_address_outer_p): ... this.
662 * config/arm/constraints.md ("Uq"): Adjust call.
663 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
664 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one to...
665 (arm_legitimate_address_outer_p): ... this.
666 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make static.
667 (TARGET_LEGITIMATE_ADDRESS_P): New.
668
669 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
670 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
671 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
672 (TARGET_LEGITIMATE_ADDRESS_P): New.
673
674 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
675 * config/vax/vax-protos.h (legitimate_address_p): Remove.
676 * config/vax/vax.c (legitimate_address_p): Rename to...
677 (vax_legitimate_address_p): ... this, make static.
678 (TARGET_LEGITIMATE_ADDRESS_P): New.
679
680 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
681 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
682 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
683 (TARGET_LEGITIMATE_ADDRESS_P): New.
684
685 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
686 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
687 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
688 (mmix_legitimate_address_p): ... this, make static.
689 (TARGET_LEGITIMATE_ADDRESS_P): New.
690
691 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
692 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
693 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
694 (TARGET_LEGITIMATE_ADDRESS_P): New.
695
3bd0d9c8
PB
6962009-05-14 Paolo Bonzini <bonzini@gnu.org>
697
698 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
699 of MODE_COMPLEX_INT.
700
fe049033
RO
7012009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
702
703 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
704 LCT_NORMAL in function call.
705 * mips-tdump.c (print_file_desc): Add cast to enum type.
706 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
707 (mark_stabs): Add casts to enum types.
708 (parse_stabs_common): Add casts to enum types.
16f7ad42 709
b0907a6c
AN
7102009-05-13 Adam Nemet <anemet@caviumnetworks.com>
711
712 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
713 Check for invalid values of LETTER.
714
d1c8e08a
TG
7152009-05-13 Taras Glek <tglek@mozilla.com>
716
16f7ad42
TG
717 * attribs.c (register_attribute): moved out attribute registration into
718 register_attribute.
719 * doc/plugins.texi: Documented register_attribute and PLUGIN_ATTRIBUTES.
720 * gcc-plugin.h: Added forward decl for register_attribute.
721 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
722 * plugin.c (register_callback, invoke_plugin_callbacks): Added
723 PLUGIN_ATTRIBUTES boilerplate.
d1c8e08a 724
4ed7f970
DK
7252009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
726
727 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
728 values even in sentinel and empty entries.
729 (ms_printf_flag_specs): Likewise.
730 (ms_scanf_flag_specs): Likewise.
731 (ms_strftime_flag_specs): Likewise.
732 (ms_print_char_table): Likewise.
733 (ms_scan_char_table): Likewise.
734 (ms_time_char_table): Likewise.
735
3d8fa148
DK
7362009-05-13 Doug Kwan <dougkwan@google.com>
737
738 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
739
f06257d3
AN
7402009-05-13 Adam Nemet <anemet@caviumnetworks.com>
741
742 * config/mips/mips.md (store): Add attributes for QI and HI.
743 Update comment.
744 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
745 (truncdi<mode>2): ... this new pattern.
746
fb201767
BH
7472009-05-13 Brad Hards <bradh@kde.org>
748
749 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
750
c7bda60e 7512009-05-14 Jakub Jelinek <jakub@redhat.com>
efc3527a
BE
752 Ben Elliston <bje@au.ibm.com>
753
754 PR middle-end/40035
755 * dse.c (check_mem_read_rtx): Guard against width == -1.
756
ce985b43
MM
7572009-05-13 Michael Matz <matz@suse.de>
758
759 PR middle-end/39976
760 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
761 (trivially_conflicts_p): New function.
762 (insert_backedge_copies): Use it.
763
7de1d221
JJ
7642009-05-13 Janis Johnson <janis187@us.ibm.com>
765
766 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
767 (handle_stdc_pragma): Use new enum constant names.
768 (handle_pragma_float_const_decimal64): Ditto.
769
bfefafc6
ILT
7702009-05-13 Ian Lance Taylor <iant@google.com>
771
772 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
773 tree.def.
774
286c4fcb
NS
7752009-05-13 Nathan Sidwell <nathan@codesourcery.com>
776
777 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
778 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
779 multilibs.
780 * config/m68k/m68k.h (FL_UCLINUX): Define.
781
ebaa6ea7
JH
7822009-05-13 Jan Hubicka <jh@suse.cz>
783
784 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
785
2b703e1a
KK
7862009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
787
788 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
789 unless -fschedule-insns is specified.
790
c3537723
KK
7912009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
792
793 PR target/39561
794 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
795 TARGET_EXPAND_CBRANCHDI4.
796 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
797 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
798 (cmpeqdi): Fix comment.
799
cdeed45a
KK
8002009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
801
802 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
803 (sh_legitimate_address_p): Likewise.
804 * config/sh/sh.c (sh_legitimate_index_p): New.
805 (sh_legitimate_address_p): Likewise.
806 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
807 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
808 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
809 (MAYBE_BASE_REGISTER_RTX_P): New macro.
810 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
811 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
812 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
813 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
814 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
815
02f0b13a
JH
8162009-05-12 Jan Hubicka <jh@suse.cz>
817
818 * tree-inline.c (estimate_operator_cost): Add operands;
819 when division happens by constant, it is cheap.
820 (estimate_num_insns): Loads and stores are not having cost of 0;
821 EH magic stuff is cheap; when computing runtime cost of switch,
822 use log2 base of amount of its cases; builtin_expect has cost of 0;
823 compute cost for moving return value of call.
824 (init_inline_once): Initialize time_based flags.
825 * tree-inline.h (eni_weights_d): Add time_based flag.
826
ecb7f6de
PB
8272009-05-12 Paolo Bonzini <bonzini@gnu.org>
828
829 * df-core.c: Update head documentation.
830
c24151ce
MM
8312009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
832
833 PR bootstrap/40118
834 * rs6000.c (rs6000_generate_compare): Use op1b instead of
835 shadowing exisiting variable op1.
836
fbdf817d
UB
8372009-05-12 Uros Bizjak <ubizjak@gmail.com>
838
704bf7c8 839 PR target/37179
fbdf817d
UB
840 * config/i386/driver-i386.c (processor_signatures): New enum.
841 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
842 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
843 processor signature to detect geode processor.
844
5e8d1826
PB
8452009-05-12 Paolo Bonzini <bonzini@gnu.org>
846
847 Revert:
848
849 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
850
851 * optabs.c (prepare_cmp_insn): Temporarily disable test that
852 causes spurious differences between trunk and cond-optab branch.
853
f90b7a5a
PB
8542009-05-12 Paolo Bonzini <bonzini@gnu.org>
855
fbdf817d
UB
856 * dojump.c (compare_from_rtx): Delete.
857 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
858 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
f90b7a5a
PB
859 if the comparison does not satisfy the predicate; test predicates for
860 operands 2 and 3 of a cstore pattern. Don't try cstore optab
861 further if one existing pattern fails.
fbdf817d 862 * expr.h (compare_from_rtx): Delete.
f90b7a5a 863 (prepare_operand): Declare it.
fbdf817d 864 * optabs.c: Change "lib call" to "libcall" throughout.
f90b7a5a 865 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
fbdf817d
UB
866 HAVE_conditional_trap, emit_cmp_insn): Delete.
867 (can_compare_p): Delete cmp_optab case.
f90b7a5a 868 (prepare_float_lib_cmp): Return an rtx and a machine mode.
fbdf817d
UB
869 Accept other parameters by value.
870 (prepare_operand): Make non-static.
871 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
872 other parameters by value. Try to widen operands here based on
873 an optab_methods argument and looking at cbranch_optab.
874 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
875 loop. Use cbranch_optab directly.
876 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
877 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
878 assertion.
879 (emit_conditional_move, emit_conditional_add): Inline what's needed
880 of compare_from_rtx, using new prepare_cmp_insn for the rest.
881 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
882 with COMPARE. Move cmov_optab and cstore_optab above
883 with cbranch_optab, move cmp_optab down with ucmp_optab,
884 remove tst_otpab. Do not initialize trap_rtx.
885 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
f90b7a5a
PB
886 for trap code. Do not check HAVE_conditional_trap. Use
887 prepare_cmp_insn. Accept no predicate for operand 3.
fbdf817d
UB
888 * optabs.h (OTI_cmp): Mark as used only for libcalls.
889 (OTI_ctrap, ctrap_optab): New.
890 (tst_optab): Delete.
891 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
892 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
893 with lookup of ctrap_optab.
894 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn,
895 setcc_gen_code): Delete.
896 (ctrap_optab): New.
897
898 * combine.c (combine_simplify_rtx, simplify_set): Do not
899 special case comparing against zero for cc0 machines.
f90b7a5a
PB
900 * simplify-rtx.c (simplify_binary_operation_1): Never remove
901 COMPARE on cc0 machines.
902 (simplify_relational_operation): Return a new expression when
903 a COMPARE could be removed.
fbdf817d
UB
904 * final.c (final_scan_insn): Compare cc_status values
905 against LHS of a (compare FOO (const_int 0)) cc0 source.
906 Also check if cc_status.value is the full compare.
f90b7a5a 907
fbdf817d
UB
908 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
909 (cstoreMM4): Document.
f90b7a5a 910 (conditional_trap): Document ctrapMM4 instead.
fbdf817d 911 (sync_compare_and_swapMM): Refer to cbranchcc4.
f90b7a5a
PB
912 (Dependent Patterns): Eliminate obsolete information referring to
913 the old jump optimization phase.
fbdf817d 914 (Canonicalization): Include cbranchcc4 case, omit canonicalization
f90b7a5a
PB
915 of compares with 0 on cc0 machines.
916 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
917 avoiding references to cc0. Remove text about storing operands
918 in cmpMM.
919 * doc/tm.texi (Condition Codes): Include blurb on different
920 condition code representations, separate into subsections for
921 CC0, MODE_CC and conditional execution.
922
fbdf817d
UB
923 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
924 alpha_emit_setcc): Accept operands and a machine mode.
925 * config/alpha/alpha.c (alpha_emit_conditional_branch):
926 Get code/op0/op1 from operands, use machine mode argument
927 instead of alpha_compare.fp_p. Emit the branch here.
928 (alpha_emit_setcc): Likewise, and return boolean.
929 (alpha_emit_conditional_move): Likewise. Assert that
930 cmp_op_mode == cmp_mode, and simplify accordingly.
931 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
932 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
933 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
934 Delete.
935 (stack probe test): Use cbranchdi4.
936 * config/alpha/predicates.md (alpha_cbranch_operator): New.
937
938 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
939 * config/arc/arc.h (movsicc, movsfcc): Use it.
940 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
941 (cbranchsi4, cstoresi4): New.
942 (cmpsi, bCC and sCC expanders): Remove.
943
944 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
945 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
946 * config/arm/predicates.md (arm_comparison_operator): Only include
947 floating-point operators if there is a hardware floating-point unit.
948 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
949 deferring to cbranch_cc and cstore_cc respectively.
950 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
951 cbranch_cc, cstore_cc): New.
952 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
f90b7a5a 953 arm_compare_op1.
fbdf817d
UB
954 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
955
956 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
957 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
958 as an argument.
959 (adjust_insn_length): Adjust calls.
960 (avr_reorg): Handle (compare (foo) (const_int 0)).
961 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
962 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
963 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
964 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
965 (bCC): Remove.
966 (cbranchqi4, cbranchhi4, cbranchsi4): New.
f90b7a5a
PB
967 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
968
fbdf817d
UB
969 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
970 (cbranchsi4, cstorebi4, cstoresi4): New.
f90b7a5a 971 (movbisi): This insn is duplicate, split it to zero_extend.
fbdf817d
UB
972 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
973 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
974 (bfin_optimize_loop): Use cbranch expander.
975 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
976 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
977 (bfin_bimode_comparison_operator): ... this.
978 (bfin_direct_comparison_operator): New.
f90b7a5a 979
fbdf817d
UB
980 * config/cris/cris.c (cris_normal_notice_update_cc): Look
981 inside (compare FOO (const_int 0)).
982 (cris_rtx_costs): Handle ZERO_EXTRACT.
983 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
984 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
985 (*tstdi_v32): Delete.
986 (*cmpdi_non_v32): Add M alternative for operand 1.
987 (cmpsi, cmp<mode>): Make private.
988 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
989 with COMPARE.
990 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
991
992 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
993 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
994 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
f90b7a5a
PB
995 (cc_reg_operand): New.
996 (any_cond): Delete.
fbdf817d
UB
997 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
998 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
999 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
1000 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
1001 crx_expand_scond): Delete.
1002
1003 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
1004 (cbranchsi4): New.
1005 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
1006 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
1007
1008 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
1009 cstoresi4, cstoresf4, cstoredf4): New.
1010 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
1011 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
1012 Receive the entire operands array.
1013 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
1014 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
1015 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
1016 Get test/op0/op1 from the operands array.
1017 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
1018
1019 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
1020 (h8300_expand_store): New.
1021 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
1022 (const_int 0)).
1023 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
1024 (h8300_expand_store): New.
1025 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
1026 or do not try to produce (set (cc0) REG).
1027 (peepholes): Wrap arguments with COMPARE. Add a peephole to
1028 change a compare into a move to a scratch register. Disable some
1029 peepholes when comparing with zero.
1030 (tstsi, tsthi, tstsi, cmpqi): Make private.
1031 (cmphi): Delete.
1032 (bCC, sCC): Delete.
1033 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
1034 cstoresi4): New.
f90b7a5a
PB
1035
1036 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
1037 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
1038 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
1039 (ix86_emit_i387_log1p): Use cbranchxf2.
1040 (ix86_expand_setcc): Return void.
1041 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
1042 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
1043 cmp<MODEF>, cmpcc): Remove.
fbdf817d
UB
1044 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
1045 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
1046 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
f90b7a5a
PB
1047 (sCC and bCC expanders): Remove.
1048 (stack_protect_test): Use cbranchcc4.
1049
fbdf817d
UB
1050 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
1051 Delete.
1052 (ia64_expand_compare): Accept three rtx by reference and return void.
1053 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
1054 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
1055 from *expr. Update *expr with the BImode comparison to do.
1056 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
1057 cmptf, bCC, sCC, conditional_trap): Delete.
1058 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
1059 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
1060 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
1061 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
1062 * config/ia64/predicates.md (ia64_cbranch_operator): New.
1063
1064 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
1065 type of last argument.
1066 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
1067 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
1068 use machine mode argument instead of branch_type. Remove dead
1069 code for floating-point comparisons.
1070 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
1071 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
1072 Remove.
1073 (cbranchsi4, cstoresi4): New.
1074 * config/iq2000/predicates.md (reg_or_const_operand): New.
1075
1076 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
1077 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
1078 (b<code>_op): Rewrite to...
1079 (bcc_op): ... this, using match_operator.
1080 (s<code>_op): Rewrite to...
1081 (scc_op): ... this, using match_operator.
1082 (s<code>_24_op): Rewrite to...
1083 (scc_op_24): ... this, using match_operator.
1084 (s<code>_<mode>): Rewrite to...
1085 (cstore<mode>4): ... this, using match_operator.
1086 (s<code>_<mode>_24): Rewrite to...
1087 (cstore<mode>4_24): ... this, using match_operator.
1088 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
1089 m32c_unpend_compare, m32c_expand_scc): Delete.
1090 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
1091 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
1092 (m32c_expand_movcc): Change NE to EQ if necessary.
1093 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
1094
1095 * config/m32r/m32r-protos.h (gen_cond_store): New.
1096 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
1097 (gen_cond_store): New, from sCC patterns.
1098 (m32r_expand_block_move): Use cbranchsi4.
1099 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
1100 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
1101 (cbranchsi4, cstoresi4): New.
1102
1103 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
1104 Delete.
1105 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
f90b7a5a 1106 (m68hc11_notice_update_cc): Look into a compare with 0.
fbdf817d
UB
1107 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
1108 Delete.
1109 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
1110 cmphi, cmpqi, bCC): Delete.
1111 (cbranchsi4, cbranchhi4, cbranchqi4): New.
1112 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
1113 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
1114 sets with COMPARE.
1115
1116 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
1117 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
1118 * config/m68k/constraints.md (H): New.
1119 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
1120 the define_insn below.
1121 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
1122 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
1123 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
1124 patterns): Wrap RHS with COMPARE.
1125 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
1126 (*cmpdi_internal): Name this pattern.
1127 (cmpdi): Change to define_insn.
1128 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
1129 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
1130 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
1131 predicate.
1132 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
1133 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
1134 (conditional_trap): Change to...
1135 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
1136 (*conditional_trap): Use the ordered_comparison_operator and
1137 const1_operand predicates.
1138 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
1139 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
1140 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
1141 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
1142
1143 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
1144 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
1145 (mcore_gen_compare): New.
1146 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
1147 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
1148 (mcore_gen_compare): ... this.
1149 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
1150 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
1151 (stack probe pattern): Use cbranchsi4.
1152
1153 * config/mips/predicates.md (mips_cstore_operator): New.
1154 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
1155 * config/mips/mips.md (any_cond): Delete.
1156 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
1157 always succeed.
1158 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
1159 fixuns_truncsfdi2): Use cbranch patterns.
1160 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
1161 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
1162 Adjust call to mips_expand_conditional_branch.
1163 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
1164 cstore<GPR:mode>4.
1165 * config/mips/mips-protos.h (mips_expand_conditional_branch,
1166 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
1167 * config/mips/mips.c (cmp_operands): Delete.
1168 (mips_emit_compare): Get comparison operands from *op0/*op1.
1169 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
1170 that it succeeds. Use op0/op1 instead of cmp_operands.
1171 (mips_expand_conditional_branch, mips_expand_conditional_move,
1172 mips_expand_conditional_trap): Likewise.
1173 (mips_block_move_loop): Use cbranch patterns.
1174 * config/mips/mips.h (cmp_operands): Delete.
1175
1176 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
1177 (mmix_gen_compare_reg): Just return a register in the right CC mode.
1178 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
1179 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
1180 (*cmpcc_folded): Rename to...
1181 (*cmpdi_folded): this.
1182 (*cmpcc): Rename to...
1183 (*cmps): ... this.
1184 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
1185 (bCC): Remove.
1186 (cbranchdi4): New.
1187 (cbranchdf4): New. Handle invalid comparisons here.
1188 * config/mmix/predicates.md (float_comparison_operator): New.
1189
1190 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
1191 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
1192 * config/mn10300/mn10300.md (tst): Delete.
1193 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
1194 Name these patterns and wrap RHS in a compare.
1195 (*cmpsi): Make this pattern private. Include tst.
1196 (*cmpsf): Make this pattern private.
1197 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
1198 (compare with zero peepholes): Likewise.
1199 (bCC): Remove.
1200 (cbranchsi4, cbranchsf4): New.
1201 (casesi): Use cbranchsi4.
1202
1203 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
1204 hppa_branch_type): Delete.
1205 (return_addr_rtx): Use cbranchsi4.
1206 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
1207 Emit CCFPmode comparison here.
1208 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
1209 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
1210 hppa_branch_type): Delete.
1211 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
1212 (movsicc, movdicc): Remove references to hppa_compare_op0,
1213 hppa_compare_op1 and compare_from_rtx.
1214 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
1215 (casesi): Use cbranchsi4.
1216
1217 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
1218 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
1219 * config/pdp11/pdp11.md (register_or_const0_operand): New.
1220 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
1221 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
1222 (bCC): Delete.
1223 (cbranchdf4, cbranchhi4, cbranchqi4): New.
1224 (*branch, *branch_inverted): New.
1225
1226 * config/picochip/picochip.md (cbranchhi4): Use
1227 ordered_comparison_operator.
1228 (cmphi, bCC): Remove.
1229
1230 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
1231 (trap_comparison_operator): Delete.
1232 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
1233 rs6000_emit_cbranch): Accept mode and operands.
1234 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
1235 rs6000_compare_fp_p): Delete.
1236 (rs6000_generate_compare): Accept mode and comparison. Extract code
1237 and op0/op1 from there. Replace references to rs6000_compare_op0
1238 and rs6000_compare_op1.
1239 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
1240 extract result from passed operands.
1241 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
1242 extract loc from passed operands.
1243 (rs6000_emit_cmove): Likewise.
1244 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
1245 rs6000_compare_fp_p): Delete.
1246 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
1247 (cbranch<GPR>4, cbranch<FP>4): New.
1248 (cstore<mode>4): New. Consolidate here all choices about when to use
1249 portable or specialized sCC sequences.
1250 (stack_protect_test): Use cbranchsi4.
1251 (conditional_trap): Replace with ctrap<GPR>4.
1252 (conditional trap insn): Replace trap_comparison_operator with
1253 ordered_comparison_operator.
1254
1255 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
1256 (s390_emit_prologue): Use ctrap.
1257 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
1258 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
1259 New predicates replacing...
1260 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
1261 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
1262 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
1263 (add<mode>cc): Do not use s390_compare_op0/op1.
1264 (s<code>): Change to...
1265 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
1266 (seq): Change to...
1267 (cstorecc4): ... this. Handle EQ or NE equally.
1268 (*sne): Un-privatize for use in cstorecc4.
1269 (b<code>): Change to...
1270 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
1271 (conditional_trap): Replace with...
1272 (ctrap<GPR>4, ctrap<FP>4): ... these.
1273 (stack_protect): Use cbranchcc4.
1274
1275 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
1276 * config/score/score-protos.h (score_gen_cmp): Delete.
1277 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
1278 (score_block_move-loop): Use cbranchsi4.
1279 * config/score/score.md (cbranchsi4): New.
1280 (cmpsi, bCC): Delete.
1281 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
1282 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
1283 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
1284 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
1285 * config/score/score3.h (score3_gen_cmp): Delete.
1286 * config/score/score7.h (score7_gen_cmp): Delete.
1287
1288 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
1289 (sh_emit_scc_to_t): ... this. Return void.
1290 (from_compare): Rename to...
1291 (sh_emit_compare_and_branch): ... this.
1292 (sh_emit_compare_and_set): New.
1293 (sh_expand_t_scc): Accept operands.
1294 * config/sh/predicates.md (sh_float_comparison_operator): New.
1295 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
1296 (prepare_scc_operands): Rename to...
1297 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
1298 arguments.
1299 (sh_emit_cheap_store_flag): New.
f90b7a5a 1300 (sh_emit_set_t_insn): New.
fbdf817d
UB
1301 (from_compare): Rename to...
1302 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
1303 handling of TARGET_SH2E floating point to avoid recursive call.
1304 Generate branch here.
1305 (sh_emit_compare_and_set): New.
1306 (sh_expand_t_scc): Get op0/op1 from arguments.
1307 (sh_emit_cheap_store_flag): New.
1308 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
1309 cases.
f90b7a5a 1310 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
fbdf817d
UB
1311 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
1312 (movsicc, movdicc): Do nothing when it recreated operands from
1313 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
1314 prepare_scc_operands (now sh_emit_scc_to_t).
1315 (udivdi3): Use cstoresi4.
1316 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
1317 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
1318 (cbranchint4_media, cbranchfp4_media): New.
1319 (casesi): Use cbranchdi4.
1320 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
1321 Delete.
1322 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
1323 (movnegt): Remove second operand.
1324 (cbranchsf4, cbranchdf4): New.
1325 (stack_protect): Use cbranchdi4/cbranchsi4.
1326
1327 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
1328 (gen_compare_reg): Accept comparison, extract part of it to...
1329 (gen_compare_reg_1): ... this.
1330 (gen_compare_operator): Delete.
1331 (gen_v9_scc): Accept separate destination, comparison code and arms.
1332 Do not use sparc_compare_op0/sparc_compare_op1.
1333 (emit_scc_insn, emit_conditional_branch_insn): New.
1334 (emit_v9_brxx): Make static. Remove useless assertion.
1335 (sparc_emit_float_lib_cmp): Return RTL instead of calling
1336 emit_cmp_insn.
1337 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
1338 * config/sparc/sparc-protos.h (gen_compare_reg,
f90b7a5a
PB
1339 sparc_emit_float_lib_cmp): Adjust prototype.
1340 (emit_scc_insn, emit_conditional_branch_insn): New.
1341 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
fbdf817d
UB
1342 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
1343 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
1344 iterators to the top.
1345 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
1346 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
f90b7a5a 1347 snedi_special_trunc): Delete.
fbdf817d 1348 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
f90b7a5a 1349 and snedi_special_trunc.
fbdf817d
UB
1350 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
1351 cbranchdi4, cbranch<F:mode>4): New.
1352 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
1353 here. Use gen_compare_reg instead of gen_compare_operator.
1354 (conditional_trap): Replace with...
1355 (ctrapsi4, ctrapdi4): ... this.
1356 (stack_protect_test): Use cbranchcc4.
1357
1358 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
1359 argument to rtx.
1360 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
1361 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
1362 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
1363 from operands[0] or operands[3] depending on is_set.
1364 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
1365 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
1366 cmpdf, bCC), sCC: Remove.
1367 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
1368 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
1369 cstoredf4): New.
1370 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
1371 spu_emit_branch_or_set.
1372
1373 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
1374 Add two arguments.
1375 * config/stormy16/stormy16.h (xstormy16_compare_op0,
1376 xstormy16_compare_op1): Delete.
1377 * config/stormy16/stormy16.c (xstormy16_compare_op0,
1378 xstormy16_compare_op1): Delete.
1379 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
1380 Adjust calls.
1381 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
1382 (cmphi, cmpsi, bCC): Remove.
1383
1384 * config/v850/v850.md (tstsi, cmpsi): Fold into...
1385 (*cmpsi): ... this one.
1386 (cbranchsi4, cstoresi4): New.
1387 (bCC expanders): Delete.
1388 (sCC insns): Fold into...
1389 (*setcc): ... this one.
1390 (casesi): Do not use gen_cmpsi and gen_bgtu.
f90b7a5a
PB
1391 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
1392 (movsicc): Simplify.
1393 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
1394
fbdf817d
UB
1395 * config/vax/vax-protos.h (cond_name): New.
1396 (vax_output_conditional_branch): Remove.
1397 * config/vax/vax.c (cond_name): New.
1398 (vax_output_conditional_branch): Remove.
1399 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
1400 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
1401 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
1402 (bit<VAXint>): Wrap source with (compare).
1403 (b<code> and following unnamed pattern): Rename to *branch and
1404 *branch_reversed. Change macroization to match_operator.
1405 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
1406
1407 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
1408 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
1409 Change last argument to machine_mode.
1410 (xtensa_expand_scc): Add machine_mode argument.
1411 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
1412 (gen_conditional_move, xtensa_expand_conditional_branch,
1413 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
1414 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
1415 Adjust operand numbers.
1416 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
1417 Delete.
1418 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
1419 (cmpsi, cmpsf, b<code>, s<code>): Delete.
1420 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
f90b7a5a 1421
16670495
PB
14222009-05-12 Paolo Bonzini <bonzini@gnu.org>
1423
1424 * optabs.c (prepare_cmp_insn): Temporarily disable test that
1425 causes spurious differences between trunk and cond-optab branch.
1426
4a4a4e99
AO
14272009-05-12 Alexandre Oliva <aoliva@redhat.com>
1428
1429 PR target/37137
1430 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
1431
72b9acff
AO
14322009-05-12 Alexandre Oliva <aoliva@redhat.com>
1433
1434 * tree.c (iterative_hash_pointer): Delete.
1435 (iterative_hash_expr): Short-circuit handling of NULL pointer.
1436 Hash UIDs and versions of SSA names. Don't special-case built-in
1437 function declarations.
1438
b7dd69ac
ILT
14392009-05-11 Ian Lance Taylor <iant@google.com>
1440
1441 PR bootstrap/40103
1442 * graphite.c: Force -Wc++-compat to only be a warning before
1443 #including "cloog/cloog.h".
1444
ed102b70
MJ
14452009-05-11 Martin Jambor <mjambor@suse.cz>
1446
1447 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
1448
08f1af2e
JH
14492009-05-11 Jan Hubicka <jh@suse.cz>
1450
1451 * tree-ssa-loop-ivcanon.c: Include target.h
1452 (struct loop_size): new structure.
1453 (constant_after_peeling): New predicate.
1454 (tree_estimate_loop_size): New function.
1455 (estimated_unrolled_size): Rewrite for new estimates.
1456 (try_unroll_loop_completely): Use new estimates.
1457 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
1458
a7d39bd3
AP
14592009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
1460
1461 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
1462 libcpp interface change.
1463 (spu_macro_to_expand): Likewise.
1464
f5a1f0d0
PB
14652009-05-11 Paolo Bonzini <bonzini@gnu.org>
1466
1467 PR tree-optimization/40026
1468 * gimplify.c (gimplify_init_constructor): Change initial conditional
1469 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
1470 optimize_compound_literals_in_ctor.
1471
c260f01f
NS
14722009-05-11 Nathan Sidwell <nathan@codesourcery.com>
1473
1474 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
1475 New devices.
1476 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
1477
df398a37
L
14782009-05-11 H.J. Lu <hongjiu.lu@intel.com>
1479
1480 * tree-vect-data-refs.c (vect_analyze_group_access): Use
1481 HOST_WIDE_INT for gap.
1482
4da39468
IR
14832009-05-11 Ira Rosen <irar@il.ibm.com>
1484
1485 PR tree-optimization/40074
1486 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
1487 account in group size and step comparison.
1488
4effdf02
RG
14892009-05-11 Richard Guenther <rguenther@suse.de>
1490
1491 * passes.c (init_optimization_passes): Strip now incorrect comment.
1492 (execute_function_todo): Do not set PROP_alias.
1493 * tree-pass.h (PROP_alias): Remove.
1494 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
1495 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
1496 * tree-nrv.c (pass_return_slot): Likewise.
1497 * tree-object-size.c (pass_object_sizes): Likewise.
1498 * tree-ssa-dom.c (pass_dominator): Likewise.
1499 (pass_phi_only_cprop): Likewise.
1500 * tree-ssa-dse.c (pass_dse): Likewise.
1501 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
1502 (pass_cselim): Likewise.
1503 * tree-ssa-pre.c (pass_pre): Likewise.
1504 (pass_fre): Likewise.
1505 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
1506 * tree-ssa-sink.c (pass_sink_code): Likewise.
1507 * tree-stdarg.c (pass_stdarg): Likewise.
1508 * tree-tailcall.c (pass_tail_calls): Likewise.
1509 * tree-vrp.c (pass_vrp): Likewise.
1510
24b97832
ILT
15112009-05-10 Ian Lance Taylor <iant@google.com>
1512
1513 * basic-block.h (enum profile_status): Break out of struct
1514 control_flow_graph.
1515 * cgraph.h (struct inline_summary): Break out of struct
1516 cgraph_local_info.
1517 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
1518 of struct cgraph_order_sort.
fbdf817d 1519 * combine.c (enum undo_kind): New enum, broken out of struct undo.
24b97832
ILT
1520 * cse.c (struct branch_path): Break out of struct
1521 cse_basic_block_data.
1522 * except.h (enum eh_region_type): Break out of struct eh_region.
1523 * gcc.c (enum add_del): Break out of struct modify_target.
fbdf817d 1524 * genrecog.c (enum decision_type): Break out of struct decision_test.
24b97832
ILT
1525 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
1526 ggc_pch_data.
fbdf817d
UB
1527 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
1528 * regmove.c (enum match_use): New enum, broken out of struct match.
24b97832
ILT
1529 * sched-int.h (enum post_call_group): New enum, broken out of
1530 struct deps.
1531 (struct deps_reg): Break out of struct deps.
1532 * target.h (struct asm_int_op): Break out of struct gcc_target.
1533 * tree-eh.c (struct goto_queue_node): Break out of struct
1534 leh_tf_state.
1535 * tree-inline.h (enum copy_body_cge_which): Break out of
1536 copy_body_data.
1537 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
1538
1539 * c-decl.c (in_struct, struct_types): New static variables.
1540 (pushtag): Add loc parameter. Change all callers.
1541 (lookup_tag): Add ploc parameter. Change all callers.
1542 (check_compound_literal_type): New function.
1543 (parser_xref_tag): Add loc parameter. Change all callers. If
1544 -Wc++-compat, warn about struct/union/enum types defined within a
1545 struct or union.
1546 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
1547 and loc parameters. Change all callers. Change error calls to
1548 error_at, using loc. For a redefinition, if the location of the
1549 original definition is known, report it. Set in_struct and
fbdf817d 1550 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
24b97832
ILT
1551 (finish_struct): Add new parameters enclosing_in_struct and
1552 enclosing_struct_types. Change all callers. Set
1553 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
1554 in the struct. If in a struct, add this struct to struct_types.
1555 (start_enum): Add loc parameter. Change all callers. Use
1556 error_at for errors, using loc. For a redefinition, if the
1557 location of the original definition is known, report it. If in a
1558 struct, add this enum type to struct_types. If -Wc++-compat warn
1559 if in sizeof, typeof, or alignof.
fbdf817d
UB
1560 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
1561 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
24b97832
ILT
1562 (c_parser_enum_specifier): Get enum location for start_enum.
1563 (c_parser_struct_or_union_specifier): Get struct location for
1564 start_struct. Save in_struct and struct_types status between
1565 start_struct and finish_struct.
1566 (c_parser_cast_expression): Get location of cast.
1567 (c_parser_alignof_expression): Get location of type.
1568 (c_parser_postfix_expression): Likewise.
1569 (c_parser_postfix_expression_after_paren_type): Add type_loc
fbdf817d
UB
1570 parameter. Change all callers. Call check_compound_literal_type.
1571 Use type_loc for error about variable size type.
1572 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
1573 of an enum constant from an enum type defined in a struct or union.
24b97832
ILT
1574 (c_cast_expr): Add loc parameter. Change all callers. If
1575 -Wc++-compat, warn about defining a type in a cast.
1576 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
1577 (start_enum, start_struct, finish_struct): Update declarations.
1578 (parser_xref_tag, c_cast_expr): Update declarations.
1579 (check_compound_literal_type): Declare.
1580
7a2738fa
BE
15812009-05-11 Ben Elliston <bje@au.ibm.com>
1582
1583 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
1584 for recent libcpp interface change.
1585 (rs6000_macro_to_expand): Likewise.
1586
af618949
MM
15872009-05-10 Michael Matz <matz@suse.de>
1588
1589 PR target/40031
1590 * config/arm/arm.c (require_pic_register): Emit on entry edge,
1591 not at entry of function.
1592
b7d7a473
RG
15932009-05-10 Richard Guenther <rguenther@suse.de>
1594
1595 PR tree-optimization/40081
1596 Revert
1597 * tree-sra.c (instantiate_element): Instantiate scalar replacements
1598 using the main variant of the element type. Do not fiddle with
1599 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
1600
1601 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
1602 structs with volatile fields.
1603
078c3644
JH
16042009-05-10 Jan Hubicka <jh@suse.cz>
1605
1606 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
fbdf817d
UB
1607 (estimate_move_cost): Assert that it does not get called for
1608 VOID_TYPE_P.
078c3644
JH
1609 (estimate_num_insns): Skip VOID types in argument handling.
1610 (optimize_inline_calls): Delete unreachable blocks and verify that
1611 callgraph is valid.
1612
39ff5a96
JH
16132009-05-10 Jan Hubicka <jh@suse.cz>
1614
1615 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
1616 * cgraph.c (cgraph_mark_address_taken_node): New function.
1617 (dump_cgraph_node): Dump new flag.
1618 * cgraph.h (struct cgraph_node): Add address_taken.
1619 (cgraph_mark_address_taken_node): New function.
39ff5a96
JH
1620 * ipa.c (cgraph_postorder): Prioritize functions with address taken
1621 since new direct calls can be born.
1622
9a0c6187
JM
16232009-05-10 Joseph Myers <joseph@codesourcery.com>
1624
1625 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
1626 tok->val.node.node.
1627
4b685e14
JH
16282009-05-10 Jan Hubicka <jh@suse.cz>
1629
1630 PR middle-end/40084
fb0be169
EB
1631 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
1632 argument; rewrite.
4b685e14
JH
1633 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
1634 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
1635 * tree-inline.c (copy_bb): Set frequency correctly.
fb0be169
EB
1636 (fold_marked_statements): Update call to
1637 cgraph_update_edges_for_call_stmt.
4b685e14 1638
29d08eba
JM
16392009-05-10 Joseph Myers <joseph@codesourcery.com>
1640
1641 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
1642 identifiers in diagnostics.
1643 * config/arm/arm.c (arm_handle_fndecl_attribute,
1644 arm_handle_isr_attribute): Likewise.
1645 * config/avr/avr.c (avr_handle_progmem_attribute,
1646 avr_handle_fndecl_attribute, avr_handle_fntype_attribute):
1647 Likewise.
1648 * config/bfin/bfin.c (handle_int_attribute,
1649 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
1650 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
1651 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
1652 Likewise.
1653 * config/darwin.c (darwin_handle_kext_attribute,
1654 darwin_handle_weak_import_attribute): Likewise.
1655 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
1656 h8300_handle_eightbit_data_attribute,
1657 h8300_handle_tiny_data_attribute): Likewise.
1658 * config/i386/i386.c (ix86_handle_cconv_attribute,
1659 ix86_handle_abi_attribute, ix86_handle_struct_attribute):
1660 Likewise.
1661 * config/i386/winnt.c (ix86_handle_shared_attribute,
1662 ix86_handle_selectany_attribute): Likewise.
1663 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
1664 * config/m32c/m32c.c (function_vector_handler): Likewise.
1665 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
1666 m68hc11_handle_fntype_attribute): Likewise.
1667 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
1668 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
1669 * config/mips/mips.c (mips_insert_attributes,
1670 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
1671 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
1672 rs6000_handle_struct_attribute): Likewise.
1673 * config/sh/sh.c (sh_insert_attributes,
1674 sh_handle_resbank_handler_attribute,
1675 sh_handle_interrupt_handler_attribute,
1676 sh2a_handle_function_vector_handler_attribute,
1677 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
1678 Likewise.
1679 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
1680 * config/spu/spu.c (spu_handle_fndecl_attribute,
1681 spu_handle_vector_attribute): Likewise.
1682 * config/stormy16/stormy16.c
1683 (xstormy16_handle_interrupt_attribute): Likewise.
1684 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
1685 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
1686
f41c4af3
JM
16872009-05-10 Joseph Myers <joseph@codesourcery.com>
1688
1689 * pretty-print.h (struct pretty_print_info): Add
1690 translate_identifiers.
1691 (pp_translate_identifiers): New.
1692 (pp_identifier): Only conditionally translate identifier to locale
1693 character set.
1694 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
1695 (pp_base_tree_identifier): Only conditionally translate identifier
1696 to locale character set.
1697 * c-pretty-print.c (M_): Define.
1698 (pp_c_type_specifier, pp_c_primary_expression): Mark English
1699 fragments for conditional translation with M_.
1700 * tree-pretty-print.c (maybe_init_pretty_print): Disable
1701 identifier translation.
1702
896d7dbd
RG
17032009-05-10 Richard Guenther <rguenther@suse.de>
1704
1705 PR tree-optimization/40081
1706 * tree-sra.c (instantiate_element): Instantiate scalar replacements
1707 using the main variant of the element type. Do not fiddle with
1708 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
1709
9a23acef
JH
17102009-05-09 Jan Hubicka <jh@suse.cz>
1711
1712 PR middle-end/40080
1713 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
1714 indirect calls; verify cgraph afterwards.
1715
d563610d
JH
17162009-05-09 Jan Hubicka <jh@suse.cz>
1717
1718 PR bootstrap/40082
1719 * ipa.c (update_inlined_to_pointer): New function.
1720 (cgraph_remove_unreachable_nodes): Use it.
1721
f08a18d0
JH
17222009-05-09 Jan Hubicka <jh@suse.cz>
1723
1724 * tree-eh.c (struct leh_state): Remove prev_try.
1725 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
1726 not track prev_try.
1727 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
1728 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
1729 remove_eh_handler_and_replace, foreach_reachable_handler,
1730 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
1731 * except.h (struct eh_region): Remove eh_region_u_cleanup.
1732 (gen_eh_region_cleanup): Update prototype.
1733
0afd7219
JH
17342009-05-09 Jan Hubicka <jh@suse.cz>
1735
1736 PR middle-end/40043
1737 * except.c (copy_eh_region): Always set prev_try.
1738 (redirect_eh_edge_to_label): Find outer try.
1739 (foreach_reachable_handler): When looking for prev try
1740 handle case where previous try is not going to be taken.
1741
ad6c0864
MM
17422009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
1743
1744 PR tree-optimization/40049
1745 * tree-vect-stmts.c (vectorizable_operation): If the machine has
1746 only vector/vector shifts, convert the type of the constant to the
1747 appropriate type to avoid building incorrect trees, which
1748 eventually have problems with garbage collection.
1749
c94f9067
JM
17502009-05-08 Joseph Myers <joseph@codesourcery.com>
1751
1752 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
1753 -1 for complex floating-point types if honoring signed zeros.
1754
9187e02d
JH
17552009-05-08 Jan Hubicka <jh@suse.cz>
1756
20acb8a2
EB
1757 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
1758 argument; handle correctly when profile is absent.
9187e02d
JH
1759 (build_cgraph_edges): Update.
1760 (rebuild_cgraph_edges): Update.
20acb8a2
EB
1761 * cgraph.c: Do not include varray.h.
1762 (cgraph_set_call_stmt_including_clones): New function.
1763 (cgraph_create_edge_including_clones): Likewise
1764 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
9187e02d
JH
1765 (cgraph_update_edges_for_call_stmt): Handle clones.
1766 (cgraph_remove_node): Handle clone tree.
1767 (cgraph_remove_node_and_inline_clones): New function.
1768 (dump_cgraph_node): Dump clone tree.
1769 (cgraph_clone_node): Handle clone tree.
20acb8a2 1770 (clone_function_name): Bring here from tree-inline.c.
9187e02d 1771 (cgraph_create_virtual_clone): New function.
20acb8a2
EB
1772 * cgraph.h (ipa_replace_map): Move here from ipa.h.
1773 (cgraph_clone_info): New function.
9187e02d 1774 (strut cgraph_node): Add clone_info and new clone tree pointers.
20acb8a2
EB
1775 (cgraph_remove_node_and_inline_clones,
1776 cgraph_set_call_stmt_including_clones,
1777 cgraph_create_edge_including_clones,
1778 cgraph_create_virtual_clone): Declare.
9187e02d
JH
1779 (cgraph_function_versioning): Use VEC argument.
1780 (compute_call_stmt_bb_frequency): Update prototype.
1781 (cgraph_materialize_all_clones): New function.
1782 * ipa-cp.c (ipcp_update_cloned_node): Remove.
1783 (ipcp_create_replace_map): Update to VECtors.
1784 (ipcp_update_callgraph): Use virtual clones.
1785 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
1786 (ipcp_update_profiling): Do not update local profiling.
1787 (ipcp_insert_stage): Use VECtors and virtual clones.
1788 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
1789 (clone_of_p): New function.
1790 (cgraph_preserve_function_body_p): Use clone tree.
1791 (cgraph_optimize): Materialize clones.
1792 (cgraph_function_versioning): Update for VECtors.
1793 (save_inline_function_body): Use clone tree.
20acb8a2
EB
1794 (cgraph_materialize_clone): New function.
1795 (cgraph_materialize_all_clones): Likewise.
9187e02d
JH
1796 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
1797 * ipa.c: Include gimple.h.
1798 (cgraph_remove_unreachable_nodes): Use clone tree.
20acb8a2
EB
1799 * ipa-prop.c (ipa_note_param_call): Update call to
1800 compute_call_stmt_bb_frequencycall.
9187e02d 1801 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
20acb8a2 1802 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
9187e02d
JH
1803 (copy_bb): Handle updating of clone tree; add new edge when new call
1804 appears.
1805 (expand_call_inline): Be strict about every call having edge.
1806 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
1807 (delete_unreachable_blocks_update_callgraph): New function.
20acb8a2
EB
1808 (tree_function_versioning): Use VECtors; always remove unreachable
1809 blocks and fold conditionals.
1810 * tree-inline.h: Do not include varray.h.
9187e02d
JH
1811 (tree_function_versioning): Remove.
1812 * Makefile.in (GTFILES): Remove tree-inline.c
1813 * passes.c (do_per_function): Do only functions having body.
20acb8a2
EB
1814 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
1815 tree.
9187e02d 1816
9b86d6bb
L
18172009-05-08 H.J. Lu <hongjiu.lu@intel.com>
1818 Andrew Morrow <acm@google.com>
1819
1820 PR c/36892
1821 * c-common.c (c_common_attribute_table): Permit deprecated
1822 attribute to take an optional argument.
1823 (handle_deprecated_attribute): If the optional argument to
1824 __attribute__((deprecated)) is not a string ignore the attribute
1825 and emit a warning.
1826
1827 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
1828 * c-typeck.c (build_component_ref): Likewise.
1829 (build_external_ref): Likewise.
1830
1831 * toplev.c (warn_deprecated_use): Add an attribute argument.
1832 Emit the message associated with __attribute__((deprecated)).
1833
1834 * toplev.h (warn_deprecated_use): Updated.
1835
1836 * doc/extend.texi: Document new optional parameter to
1837 __attribute__((deprecated))
1838
82ad047f
ME
18392009-05-08 Michael Eager <eager@eagercon.com>
1840
1841 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
1842 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
1843
788d3075
RG
18442009-05-08 Richard Guenther <rguenther@suse.de>
1845
1846 PR tree-optimization/40062
1847 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
1848 Avoid exponential behavior.
1849
00952e97
PB
18502009-05-08 Paolo Bonzini <bonzini@gnu.org>
1851
1852 PR rtl-optimization/33928
1853 PR 26854
1854 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
1855 process_uses, build_single_def_use_links): New.
1856 (update_df): Update use_def_ref.
1857 (forward_propagate_into): Use get_def_for_use instead of use-def
1858 chains.
1859 (fwprop_init): Call build_single_def_use_links and let it initialize
1860 dataflow.
1861 (fwprop_done): Free use_def_ref.
1862 (fwprop_addr): Eliminate duplicate call to df_set_flags.
1863 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
1864 df_rd_simulate_one_insn): New.
1865 (df_rd_bb_local_compute_process_def): Update head comment.
1866 (df_chain_create_bb): Use the new RD simulation functions.
1867 * df.h (df_rd_simulate_artificial_defs_at_top,
1868 df_rd_simulate_one_insn): New.
1869 * opts.c (decode_options): Enable fwprop at -O1.
1870 * doc/invoke.texi (-fforward-propagate): Document this.
1871
2ca862e9
JM
18722009-05-08 Joseph Myers <joseph@codesourcery.com>
1873
1874 PR c/24581
1875 * c-typeck.c (build_binary_op): Handle arithmetic between one real
1876 and one complex operand specially.
1877 * tree-complex.c (some_nonzerop): Do not identify a real value as
1878 zero if flag_signed_zeros.
1879
3e807ffc
PB
18802009-05-08 Paolo Bonzini <bonzini@gnu.org>
1881
1882 PR rtl-optimization/33928
7925c06c 1883 * loop-invariant.c (record_use): Fix && vs. || mishap.
3e807ffc 1884
1bfdbb29
PB
18852009-05-08 Paolo Bonzini <bonzini@gnu.org>
1886
1887 PR rtl-optimization/33928
e913423f
EB
1888 * loop-invariant.c (struct use): Add addr_use_p.
1889 (struct def): Add n_addr_uses.
1890 (struct invariant): Add cheap_address.
1891 (create_new_invariant): Set cheap_address.
1892 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
1893 (record_uses): Pass df_ref to record_use.
1894 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
1895 used only as such.
1bfdbb29 1896
702cb2a0
KK
18972009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
1898
1899 * config/sh/sh.c: Do not include c-pragma.h.
1900
5e8df753
AP
19012009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
1902
1903 * config/spu/spu.c: Remove include of c-common.h.
1904
6ec637a4
JJ
19052009-05-07 Janis Johnson <janis187@us.ibm.com>
1906
1907 PR c/39037
1908 * c-common.h (mark_valid_location_for_stdc_pragma,
1909 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
1910 clear_float_const_decimal64, float_const_decimal64_p): New.
1911 * c.opt (Wunsuffixed-float-constants): New.
1912 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
1913 unsuffixed float constant, handle new warning.
1914 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
1915 * c-decl.c (c_scope): New flag float_const_decimal64.
1916 (set_float_const_decimal64, clear_float_const_decimal64,
1917 float_const_decimal64_p): New.
1918 (push_scope): Set new flag.
1919 * c-parser.c (c_parser_translation_unit): Mark when it's valid
1920 to use STDC pragmas.
1921 (c_parser_external_declaration): Ditto.
1922 (c_parser_compound_statement_nostart): Ditto.
1923 * c-pragma.c (valid_location_for_stdc_pragma,
1924 mark_valid_location_for_stdc_pragma,
1925 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
1926 handle_pragma_float_const_decimal64): New.
1927 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
1928 * cp/semantics.c (valid_location_for_stdc_pragma_p,
1929 set_float_const_decimal64, clear_float_const_decimal64,
1930 float_const_decimal64_p): New dummy functions.
1931 * doc/extend.texi (Decimal Float): Remove statement that the
1932 pragma, and suffix for double constants, are not supported.
1933 * doc/invoke.texi (Warning Options): List new option.
1934 (-Wunsuffixed-float-constants): New.
1935
45b9b2e9
SB
19362009-05-08 Steven Bosscher <steven@gcc.gnu.org>
1937
1938 * config/i386/i386.c: Do not include c-common.h.
1939
e71da632
MH
19402009-05-07 Mark Heffernan <meheff@google.com>
1941
1942 * doc/invoke.texi (Debugging Options): Document change of debugging
1943 dump location.
e913423f 1944 * opts.c (decode_options): Make dump_base_name relative to
e71da632
MH
1945 aux_base_name directory.
1946
fe4c7bc6
HS
19472009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
1948
1949 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
1950 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
1951
3b3e44eb
RAE
19522009-05-07 Rafael Avila de Espindola <espindola@google.com>
1953
1954 * Makefile.in (install-plugin): Simplify a bit.
1955
fac41238
PB
19562009-05-07 Paolo Bonzini <bonzini@gnu.org>
1957
1958 * Makefile.in (OBJS-common): Add regcprop.o.
1959 (regcprop.o): New.
1960 * timevar.def (TV_CPROP_REGISTERS): New.
1961 * regrename.c (regrename_optimize): Return 0.
1962 (rest_of_handle_regrename): Delete.
1963 (pass_rename_registers): Point to regrename_optimize.
1964 (struct value_data_entry, struct value_data,
1965 kill_value_one_regno, kill_value_regno, kill_value,
1966 set_value_regno, init_value_data, kill_clobbered_value,
1967 kill_set_value, kill_autoinc_value, copy_value,
1968 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
1969 replace_oldest_value_reg, replace_oldest_value_addr,
1970 replace_oldest_value_mem, copyprop_hardreg_forward_1,
1971 debug_value_data, validate_value_data): Move...
1972 * regcprop.c: ... here.
1973 (rest_of_handle_cprop): Delete.
1974 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
1975
472e0df9
JJ
19762009-05-07 Jakub Jelinek <jakub@redhat.com>
1977
1978 PR middle-end/40057
1979 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
1980 GEN_INT for 1 << bitnum.
1981 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
1982 build_int_cst_type.
1983
0d50d55a
UB
19842009-05-07 Uros Bizjak <ubizjak@gmail.com>
1985
1986 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
7925c06c 1987 Remove wrong description of "nand" operation.
0d50d55a 1988
22f597f1
RG
19892009-05-06 Richard Guenther <rguenther@suse.de>
1990 Adam Nemet <anemet@caviumnetworks.com>
1991
1992 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
1993 comment. Add that if LHS is not a gimple register, then RHS1 has
1994 to be a single object (GIMPLE_SINGLE_RHS).
1995
641cac0b
AN
19962009-05-06 Adam Nemet <anemet@caviumnetworks.com>
1997
1998 * expr.c (get_def_for_expr): Move it up in the file.
1999 (store_field): When expanding a bit-field store, look at the
2000 defining gimple stmt for the masking conversion.
2001
5a5c6435
JJ
20022009-05-06 Janis Johnson <janis187@us.ibm.com>
2003
2004 PR middle-end/39986
2005 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
2006 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
2007 32-bit memcpy into long.
2008
96474f36
JJ
20092009-05-06 Jakub Jelinek <jakub@redhat.com>
2010
2011 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
2012 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
2013 new_reg_loc_descr.
2014 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
2015 instead of appending DW_OP_deref*.
2016
529ff441
MM
20172009-05-06 Michael Matz <matz@suse.de>
2018
2019 PR middle-end/40021
2020 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
2021 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
2022
9419a9fd
RAE
20232009-05-06 Rafael Avila de Espindola <espindola@google.com>
2024
2025 * Makefile.in (install-plugin): Fix srcdir handling.
2026
fff1894c
AB
20272009-05-06 Andrey Belevantsev <abel@ispras.ru>
2028
2029 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
2030 when processing for not_regs_needed bitmap.
2031 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
2032 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
2033 handling it for rhs.
2034
700ae70c
L
20352009-05-06 H.J. Lu <hongjiu.lu@intel.com>
2036
ab3426a7 2037 * config/i386/i386.md (unnamed inc/dec peephole): Use
aa016ff7 2038 optimize_insn_for_size_p instead of optimize_size.
700ae70c
L
2039 * config/i386/predicates.md (incdec_operand): Likewise.
2040 (aligned_operand): Likewise.
2041 * config/i386/sse.md (divv8sf3): Likewise.
2042 (sqrtv8sf2): Likewise.
2043
67341fb5
L
20442009-05-06 H.J. Lu <hongjiu.lu@intel.com>
2045
2046 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
2047
2048 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
2049
87946f42
L
20502009-05-06 H.J. Lu <hongjiu.lu@intel.com>
2051
2052 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
2053 ssemodesuffixf2c with avxmodesuffixf2c.
2054
1202aec1
JM
20552009-05-06 Joseph Myers <joseph@codesourcery.com>
2056
2057 PR c/40032
aa016ff7 2058 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
1202aec1 2059
6e57a01d
JJ
20602009-05-05 Jakub Jelinek <jakub@redhat.com>
2061
2062 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
2063 (struct tree_base): Adjust spacing for 8 bit boundaries.
2064 (struct tree_decl_common): Add decl_by_reference_flag bit.
2065 (DECL_BY_REFERENCE): Adjust.
2066 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
2067 print DECL_BY_REFERENCE bit.
2068 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
2069 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
2070 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
2071 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
2072 unconditionally.
2073
32f579f6
JJ
2074 PR middle-end/39666
2075 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
2076 range of the type, but default label is missing, add it with one
2077 of the existing labels instead of adding a new label for it.
2078
617ab743
JM
20792009-05-05 Joseph Myers <joseph@codesourcery.com>
2080
2081 * dwarf.h: Remove.
2082
bf016de8
RAE
20832009-05-05 Rafael Avila de Espindola <espindola@google.com>
2084
2085 * Makefile.in (enable_plugin, plugin_includedir): New.
2086 (install): Depend on install-plugin.
2087 (PLUGIN_HEADERS): New.
2088 (install-plugin): New.
2089 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
2090
7f8fdb9f
RG
20912009-05-05 Richard Guenther <rguenther@suse.de>
2092
2093 PR tree-optimization/40022
2094 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
2095 the only vuse.
2096 (phivn_valid_p): Fix tuplification error, simplify.
2097 (phiprop_insert_phi): Add dumps.
2098 (propagate_with_phi): Simplify.
2099
8d972839
RG
21002009-05-05 Richard Guenther <rguenther@suse.de>
2101
2102 PR middle-end/40023
aa016ff7 2103 * builtins.c (gimplify_va_arg_expr): Properly build the address.
8d972839 2104
66ba9b0b
SZ
21052009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
2106
2107 * tree.h (strip_float_extensions): Remove duplicate declaration.
aa016ff7
UB
2108 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
2109 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
2110 block_ultimate_origin): Rearrange the declarations line to match the
2111 comment that indicates the .c file which the functions are defined.
2112 (dwarf2out_*, set_decl_rtl): Add comment.
2113 (get_base_address): Adjust comment.
2114 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
2115 declarations line and add comment.
2116 (is_builtin_name): Add blank after function name, for clarity.
66ba9b0b 2117
4f1e4960
JM
21182009-05-04 Joseph Myers <joseph@codesourcery.com>
2119
2120 * attribs.c (decl_attributes): Use %qE for identifiers in
2121 diagnostics.
2122 * cgraphunit.c (verify_cgraph_node): Translate function names to
2123 locale character set in diagnostics.
2124 * coverage.c (get_coverage_counts): Use %qE for identifiers in
2125 diagnostics.
2126 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
2127 Document that functions are named in UTF-8.
2128 * expr.c (expand_expr_real_1): Translate function names to locale
2129 character set in diagnostics.
2130 * gimplify.c (omp_notice_variable, omp_is_private,
2131 gimplify_scan_omp_clauses): Use %qE for identifiers in
2132 diagnostics.
2133 * langhooks.c (lhd_print_error_function): Translate function names
2134 to locale character set.
2135 * langhooks.h (decl_printable_name): Document that return value is
2136 in internal character set.
2137 * stmt.c: Include pretty-print.h
2138 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
2139 diagnostics.
2140 (resolve_operand_name_1): Translate named operand name to locale
2141 character set.
2142 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
2143 diagnostics.
2144 * toplev.c (announce_function): Translate function names to locale
2145 character set.
2146 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
2147 (default_tree_printer): Use pp_identifier or translate identifiers
2148 to locale character set. Mark "<anonymous>" for translation.
2149 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
2150 for identifiers in diagnostics.
2151 * tree.c (handle_dll_attribute): Use %qE for identifiers in
2152 diagnostics.
2153 * varasm.c (output_constructor): Use %qE for identifiers in
2154 diagnostics.
2155
40540e68
RAE
21562009-05-04 Rafael Avila de Espindola <espindola@google.com>
2157
2158 * configure.ac: use ` ` instead of $()
2159 * configure: Regenerate.
2160
33fc884c
BE
21612009-05-05 Ben Elliston <bje@au.ibm.com>
2162
2163 * config/pa/linux-atomic.c: Eliminate conditional include of
2164 errno.h on non-LP64 systems to simplify build requirements.
2165
88388a52
JM
21662009-05-04 Joseph Myers <joseph@codesourcery.com>
2167
2168 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
2169 diagnostics.
2170 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
2171 and pass value to identifier_to_locale.
2172 (warn_variable_length_array): Make name a tree.
2173 (grokdeclarator): Separate diagnostic texts for named and unnamed
2174 declarators. Use %qE for named declarators.
2175 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
2176 diagnostics.
2177 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
2178 identifiers in diagnostics.
2179 * c-typeck.c (push_member_name, start_init): Pass identifiers to
2180 identifier_to_locale. Mark "anonymous" strings for translation.
2181
960c5c79
ME
21822009-05-04 Michael Eager <eager@eagercon.com>
2183
2184 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
aa016ff7 2185 address for DImode/DFmode only if double-precision FP regs.
960c5c79 2186
d083fbba
ME
21872009-05-04 Michael Eager <eager@eagercon.com>
2188
2189 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
2190 TARGET_SINGLE_FLOAT check.
2191
c3ba8d32
ME
21922009-05-04 Michael Eager <eager@eagercon.com>
2193
2194 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
2195
edce9f18
ME
21962009-05-04 Michael Eager <eager@eagercon.com>
2197
2198 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
2199 * config/rs6000/t-xilinx: New
2200
506d7b68
PB
22012009-05-04 Paolo Bonzini <bonzini@gnu.org>
2202
e913423f 2203 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
506d7b68
PB
2204 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
2205 * gcc/explow.c (memory_address): Use target hook.
2206 * gcc/targhooks.c (default_legitimize_address): New.
2207 * gcc/targhooks.h (default_legitimize_address): New.
2208 * gcc/target.h (legitimize_address): New.
2209 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
2210 (TARGET_INITIALIZER): Include it.
2211 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
2212
2213 * config/bfin/bfin-protos.h (legitimize_address): Remove.
2214 * config/bfin/bfin.c (legitimize_address): Remove.
2215 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
aa016ff7
UB
2216 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
2217 Remove.
506d7b68
PB
2218 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
2219 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
2220
2221 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
2222 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
2223 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
2224 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
2225 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
2226 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
2227 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
2228 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
2229 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
2230 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
2231 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
2232 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
2233 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
2234 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
2235 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
2236 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
2237 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
2238 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
2239 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
2240 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
2241 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
2242 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
2243 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
2244
2245 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
2246 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
2247 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
2248 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
2249 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
2250 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
2251 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
2252 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
2253 (thumb_legitimize_address): Delete.
2254 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
2255 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
2256 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
2257 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
2258 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
aa016ff7
UB
2259 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
2260 Delete.
2261 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
2262 Delete.
506d7b68
PB
2263
2264 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
2265 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
2266 * config/m32r/m32r.c (m32r_legitimize_address): New.
2267 * config/m68k/m68k.c (m68k_legitimize_address): New.
2268 * config/score/score.c (score_legitimize_address): Standardize.
2269 * config/score/score3.c (score3_legitimize_address): Standardize.
2270 * config/score/score3.h (score3_legitimize_address): Adjust.
2271 * config/score/score7.c (score7_legitimize_address): Standardize.
2272 * config/score/score7.h (score7_legitimize_address): Adjust.
2273 * config/sh/sh.c (sh_legitimize_address): New.
2274 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
2275
2276 * gcc/config/s390/s390.c (legitimize_address): Rename to...
2277 (s390_legitimize_address): ... this.
2278 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
2279 (sparc_legitimize_address): ... this.
2280 * gcc/config/i386/i386.c (legitimize_address): Rename to...
2281 (ix86_legitimize_address): ... this.
2282 * gcc/config/avr/avr.c (legitimize_address): Rename to...
2283 (avr_legitimize_address): ... this.
2284 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
2285 (mn10300_legitimize_address): ... this.
2286 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
2287 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
2288 (alpha_expand_mov): Adjust call.
2289
2290 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
2291 * config/spu/spu.c (spu_legitimize_address): Likewise.
2292 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
2293 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
2294
a3af5087
JM
22952009-05-04 Joseph Myers <joseph@codesourcery.com>
2296
2297 * intl.c (locale_encoding, locale_utf8): New.
2298 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
2299 * intl.h (locale_encoding, locale_utf8): Declare.
2300 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
2301 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
2302 New.
2303 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
2304 argument.
2305 (pp_tree_identifier): Define to call pp_base_tree_identifier.
2306 (pp_base_tree_identifier): Declare as function.
2307 (identifier_to_locale): Declare.
2308 * Makefile.in (pretty-print.o): Update dependencies.
aa016ff7 2309 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
a3af5087 2310
ea5cd5f1
RG
23112009-05-04 Richard Guenther <rguenther@suse.de>
2312
2313 PR middle-end/40015
2314 * builtins.c (fold_builtin_memory_op): Do not decay to element
2315 type if the size matches the whole array.
2316
ddc2690a
KH
23172009-05-04 Kazu Hirata <kazu@codesourcery.com>
2318
2319 * expmed.c (synth_mult): When trying out a shift, pass the result
2320 of a signed shift.
2321
ef268d34
KH
23222009-05-04 Kazu Hirata <kazu@codesourcery.com>
2323
2324 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
2325 (shiftsub1_cost): New.
2326 (init_expmed): Compute shiftsub1_cost.
2327 (synth_mult): Optimize multiplications by constants of the form
2328 -(2^^m-1) for some constant positive integer m.
2329
255d3827
RG
23302009-05-03 Richard Guenther <rguenther@suse.de>
2331
2332 PR c/39983
2333 * c-typeck.c (array_to_pointer_conversion): Do not built
2334 ADDR_EXPRs of arrays of pointer-to-element type.
2335 * c-gimplify.c (c_gimplify_expr): Revert change fixing
2336 up wrong ADDR_EXPRs after-the-fact.
2337 * c-common.c (strict_aliasing_warning): Strip pointer
2338 conversions for obtaining the original type.
2339 * builtins.c (fold_builtin_memset): Handle array types.
2340 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
2341 and array types
2342
16c33770
RG
23432009-05-03 Richard Guenther <rguenther@suse.de>
2344
2345 PR middle-end/23329
2346 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
2347 Do not lose casts from array types with unknown extent to array
2348 types with known extent.
2349 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
2350 alias set compatibility.
2351
62a67c94
MLI
23522009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2353
2354 * flags.h (extra_warnings): Delete.
2355 * toplev.c (process_options): Handle Wuninitialized here.
2356 * opts.c (extra_warnings): Delete.
2357 (set_Wextra): Delete.
2358 (common_handle_option): -Wextra can be handled automatically.
2359 * c-opts.c (c_common_handle_option): Delete obsolete code.
2360 (c_common_post_options): Simplify comment.
2361 * common.opt (W): Add Var.
2362 (Wextra): Add Var.
2363 (Wuninitialized): Initialize to -1.
2364
8c7926c4
AN
23652009-05-03 Adam Nemet <anemet@caviumnetworks.com>
2366 Richard Guenther <rguenther@suse.de>
2367
2368 * expr.c (get_def_for_expr): New function.
2369 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
2370 SSA rather than trees.
2371 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
2372 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
2373
fa5da7de
JM
23742009-05-03 Joseph Myers <joseph@codesourcery.com>
2375
2376 * c-common.c (reswords): Add _Imaginary.
2377 * c-common.c (enum rid): Add RID_IMAGINARY.
2378
2ddd5020
PB
23792009-05-03 Paolo Bonzini <bonzini@gnu.org>
2380
2381 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
2382 Patch by Richard Guenther.
2383
aea88c05
AS
23842009-05-03 Anatoly Sokolov <aesok@post.ru>
2385
2386 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
2387 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
2388 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
2389 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
2390 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
2391 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
2392 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
2393 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
2394 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
2395 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
2396 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
2397 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
2398 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
2399 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
2400 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
2401 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
2402 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
2403 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
2404
85e59f3a
RG
24052009-05-02 Richard Guenther <rguenther@suse.de>
2406
2407 PR tree-optimization/39940
2408 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
2409 doing so.
2410
4636b850
RG
24112009-05-02 Richard Guenther <rguenther@suse.de>
2412
2413 PR middle-end/40001
2414 * tree-ssa.c (execute_update_addresses_taken): Properly check
2415 if we can mark a variable DECL_GIMPLE_REG_P.
2416 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
2417 back to the end of the function.
2418 (is_gimple_reg_type): Remove complex type special casing.
2419 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
2420 if not optimizing.
2421
5e10cb5a
BE
24222009-05-02 Ben Elliston <bje@au.ibm.com>
2423
2424 * doc/collect2.texi (Collect2): Document search path behaviour
2425 when configured with --with-ld.
2426
048bf48b
JH
24272009-05-02 Jan Hubicka <jh@suse.cz>
2428
2429 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
2430 parameter; update callers.
aa016ff7
UB
2431 (coalesce_cost_edge): EH edges are costier because they needs
2432 splitting even if not critical and even more costier when there are
2433 multiple EH predecestors.
048bf48b 2434
d5c5f9ab
JH
24352009-05-02 Jan Hubicka <jh@suse.cz>
2436
2437 * except.c (remove_eh_handler_and_replace): Handle updating after
2438 removing TRY blocks.
2439
2ed1959a
EB
24402009-05-02 Eric Botcazou <ebotcazou@adacore.com>
2441
2442 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
2443
d363a7e7
SB
24442009-05-02 Steven Bosscher <steven@gcc.gnu.org>
2445
2446 * varasm.c: Do not include c-pragma.h.
2447 * attribs.c: Do not incude c-common.h.
2448
9c3d55b4
MM
24492009-05-01 Michael Matz <matz@suse.de>
2450
2451 * calls.c (initialize_argument_information): Handle SSA names like
2452 decls with a non MEM_P DECL_RTL.
2453
ea264ca5
SB
24542009-05-01 Steven Bosscher <steven@gcc.gnu.org>
2455
2456 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
2457 * ipa-utils.c: Likewise.
2458 * ipa-type-escape.c: Likewise.
2459 * cgraphunit.c Do not include c-common.h.
2460 * ipa-pure-const.c: Likewise.
2461 * tree-if-conv.c: Likewise.
2462 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
2463 * ipa-struct-reorg.c: Likewise.
2464 * tree-nomudflap.c: Likewise.
2465 * tree-ssa-structalias.c: Likewise.
2466
6c5d4d1a
SB
24672009-05-01 Steven Bosscher <steven@gcc.gnu.org>
2468
2469 * store-motion.c: Many cleanups to make this pass a first-class
2470 citizen instead of an appendix to gcse load motion. Add TODO list
2471 to make this pass faster/cleaner/better.
2472
2473 (struct ls_expr): Post gcse.c-split cleanups.
2474 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
2475 "stores" field to "avail_stores".
2476 (pre_ldst_mems): Rename to store_motion_mems.
2477 (pre_ldst_table): Rename to store_motion_mems_table.
2478 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
2479 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
2480 (ldst_entry): Rename to st_expr_entry, update users.
2481 (free_ldst_entry): Rename to free_st_expr_entry, update users.
2482 (free_ldst_mems): Rename to free_store_motion_mems, update users.
aa016ff7
UB
2483 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
2484 update caller.
6c5d4d1a
SB
2485 (first_ls_expr): Rename to first_st_expr, update users.
2486 (next_ls_expr): Rename to next_st_expr, update users.
2487 (print_ldst_list): Rename to print_store_motion_mems. Print names of
2488 fields properly for store motion instead of names inherited from load
2489 motion in gcse.c.
2490 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
2491 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
2492 are done with it.
2493
2494 (ae_kill): Rename to st_kill, update users.
2495 (ae_gen): Rename to st_avloc, update users.
2496 (transp): Rename to st_transp, update users.
2497 (pre_insert_map): Rename to st_insert_map, update users.
2498 (pre_delete_map): Rename to st_delete_map, update users.
2499 (insert_store, build_store_vectors, free_store_memory,
2500 one_store_motion_pass): Update for abovementioned changes.
2501
2502 (gcse_subst_count, gcse_create_count): Remove.
2503 (one_store_motion_pass): New statistics counters "n_stores_deleted"
2504 and "n_stores_created", local variables.
2505
2506 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
2507 use for_each_rtx.
2508
2509 (regvec, compute_store_table_current_insn): Remove.
2510 (reg_set_info, reg_clear_last_set): Remove.
2511 (compute_store_table): Use DF caches instead of local dataflow
2512 solvers.
2513
b02cec6e
JM
25142009-05-01 Joseph Myers <joseph@codesourcery.com>
2515
2516 * c-objc-common.c (c_tree_printer): Print identifiers with
2517 pp_identifier, not pp_string. Mark "({anonymous})" for
2518 translation.
2519 * c-pretty-print.c (pp_c_ws_string): New.
2520 (pp_c_cv_qualifier, pp_c_type_specifier,
2521 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
2522 pp_c_storage_class_specifier, pp_c_function_specifier,
2523 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
2524 pp_c_primary_expression, pp_c_postfix_expression,
2525 pp_c_unary_expression, pp_c_shift_expression,
2526 pp_c_relational_expression, pp_c_equality_expression,
2527 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
2528 use pp_string and pp_c_ws_string in place of pp_identifier and
2529 pp_c_identifier for non-identifiers. Mark English strings for
2530 translation.
2531 * c-pretty-print.h (pp_c_ws_string): Declare.
2532
cd533689
PP
25332009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
2534 Roland McGrath <roland@redhat.com>
2535
aa016ff7 2536 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
cd533689
PP
2537 (ENABLE_LD_BUILDID): New configuration option.
2538 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
2539 (LINK_BUILDID_SPEC): New macro.
2540 (init_spec): If defined, prepend it between LINK_EH_SPEC and
2541 link_spec.
2542 * doc/install.texi: Document --enable-linker-build-id option.
2543 * configure: Rebuild.
2544 * config.in: Rebuild.
2545
ba6adec4
AN
25462009-04-30 Adam Nemet <anemet@caviumnetworks.com>
2547
2548 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
2549 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
2550 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
2551 MIPS_GP_SAVE_AREA_SIZE.
2552 * config/mips/mips.c (struct mips_frame_info): Update comment
2553 before arg_pointer_offset and hard_frame_pointer_offset.
2554 (mips_compute_frame_info): Update diagram before function: to
2555 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
2556 indicate the position of frame_pointer_rtx with -fstack-protector and
2557 to show args_size. Don't allocate cprestore area for leaf functions
2558 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
2559 cprestore_size.
2560 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
2561
48f5b722
MM
25622009-04-30 Michael Matz <matz@suse.de>
2563
ba6adec4
AN
2564 PR tree-optimization/39955
2565 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
48f5b722 2566
b65d6744
DK
25672009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
2568
2569 * ira.c (setup_cover_and_important_classes): Use safe macro
2570 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
2571 directly.
2572 * genpreds.c (write_tm_preds_h): Output suitable definition of
2573 REG_CLASS_FOR_CONSTRAINT.
2574
f136c8ae
RAE
25752009-04-30 Rafael Avila de Espindola <espindola@google.com>
2576
2577 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
2578 instead of an int.
2579 * bitmap.c (bitmap_descriptor): Likewise.
2580 * ggc-common.c (loc_descriptor): Likewise.
2581 * varray.c (varray_descriptor): Likewise.
2582 * vec.c (vec_descriptor): Likewise.
2583
43fcece8 25842009-04-30 Eric Botcazou <ebotcazou@adacore.com>
35debead
EB
2585
2586 * Makefile.in (dce.o): Add $(EXCEPT_H).
2587 * dce.c: Include except.h and delete redundant vector definitions.
2588 (deletable_insn_p): Return false for non-call insns that can throw
2589 if DF is running.
2590
df35c271
SB
25912009-04-30 Steven Bosscher <steven@gcc.gnu.org>
2592
2593 * gcse.c (ae_gen): Remove.
2594 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
2595 and make non-static function to make it available in store-motion.c.
2596 Update call sites with search-and-replace.
2597 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
2598 extract_mentioned_regs, extract_mentioned_regs_helper,
2599 find_moveable_store, compute_store_table, load_kills_store, find_loads,
2600 store_killed_in_insn, store_killed_after, store_killed_before,
2601 build_store_vectors, insert_insn_start_basic_block, insert-store,
2602 remove_reachable_equiv_notes, replace_store_insn, delete_store,
2603 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
2604 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
2605 * store-motion.c: ...new file. Also copy data structures from gcse.c
2606 and clean up to remove parts not used by store motion.
2607 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
2608 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
2609
f711a87a
RR
26102009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2611
2612 PR target/38571
2613 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
2614 when optimizing for size.
2615
fa5ed76e
HPN
26162009-04-30 Hans-Peter Nilsson <hp@axis.com>
2617
2618 * gcse.c (gcse_constant_p): Fix typo in last change.
2619
0acbbdb0
RAE
26202009-04-30 Rafael Avila de Espindola <espindola@google.com>
2621
2622 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
2623
82f5c05d
AK
26242009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
2625
2626 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
2627
6d8f135b
JW
26282009-04-29 James E. Wilson <wilson@codesourcery.com>
2629
2630 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
2631 CONST_HIGH_PART result.
2632
c21ca196
AS
26332009-04-29 Anatoly Sokolov <aesok@post.ru>
2634
2635 * config/avr/avr.c (initial_elimination_offset): Rename to
2636 avr_initial_elimination_offset.
2637 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
2638 change return type to bool.
2639 (avr_can_eliminate): New function.
2640 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
2641 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
2642 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
0d50d55a 2643 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
c21ca196
AS
2644 avr_initial_elimination_offset.
2645 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
2646 (avr_initial_elimination_offset): Define.
2647
2a34bece 26482009-04-29 Eric Botcazou <ebotcazou@adacore.com>
aa016ff7 2649 Steven Bosscher <steven@gcc.gnu.org>
2a34bece
EB
2650
2651 PR rtl-optimization/39938
2652 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
2653 * cfgrtl.c: Include insn-attr.h.
2654 (rest_of_pass_free_cfg): New function.
2655 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
2656 * resource.c (init_resource_info): Remove call to df_analyze.
2657
5dc7911e
RG
26582009-04-29 Richard Guenther <rguenther@suse.de>
2659
2660 PR target/39943
2661 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
2662 allow conversion to signed integers.
2663
1fe479fd
RG
26642009-04-29 Richard Guenther <rguenther@suse.de>
2665
2666 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
2667 shifts of floating point vectors if the shift amount is
2668 a constant multiple of the element size.
2669
8e001680
AK
26702009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
2671 Michael Matz <matz@suse.de>
2672
2673 PR middle-end/39927
2674 PR bootstrap/39929
2675 * tree-outof-ssa.c (emit_partition_copy): New function.
2676 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
2677 insert_part_to_rtx_on_edge): Perform the partition base var
2678 copy using emit_partition_copy.
2679 (insert_value_copy_on_edge): Convert constants to the right mode.
2680 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
2681 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
2682
e50e3081
BS
26832009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
2684
2685 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
2686 scan backwards to try to find a constant to initialize it.
2687
4e5d521b
BS
2688 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
2689 insn before the loop_end instruction, don't look past labels.
2690
7c90021d
RG
26912009-04-29 Richard Guenther <rguenther@suse.de>
2692
2693 PR middle-end/39937
2694 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
2695 loose type conversions.
2696 (forward_propagate_addr_expr): Fix tuplification bug. Remove
2697 stmts only if there are no uses of its definition.
2698
97a988bc
BS
26992009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
2700
2701 * config/bfin/bfin.h (splitting_loops): Declare.
2702 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
2703 Reorder bit definitions to be ascending.
2704 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
2705 * config/bfin/bfin.c (splitting_loops): New variable.
2706 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
2707 (struct loop_info): Remove members INIT and LOOP_INIT.
2708 (bfin_optimize_loop): Don't set them. Reorder the code that generates
aa016ff7
UB
2709 the LSETUP sequence. Allow LC to be loaded from any register, but
2710 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
97a988bc
BS
2711 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
2712 set to 1.
2713 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
2714 of reload_completed.
aa016ff7 2715
97a988bc
BS
2716 From Jie Zhang:
2717 * config/bfin/bfin.md (movsi_insn): Refine constraints.
2718
0c463e16
RAE
27192009-04-29 Rafael Avila de Espindola <espindola@google.com>
2720
2721 * Makefile.in (PLUGIN_VERSION_H): New.
2722 (OBJS-common): Remove plugin-version.o.
2723 (plugin.o): Depend on (PLUGIN_VERSION_H).
2724 (plugin-version.o): Remove.
2725 * configure: Regenerate
2726 * configure.ac: Create plugin-version.h.
2727 * gcc-plugin.h (plugin_gcc_version): Remove.
2728 (plugin_default_version_check): Change signature.
2729 * plugin-version.c: Remove.
2730 * plugin.c: Include plugin-version.h.
2731 (str_plugin_gcc_version_name): Remove.
2732 (try_init_one_plugin): Pass gcc version to plugin_init.
2733 (plugin_default_version_check): Both gcc and plugin versions are now
2734 arguments.
2735
307e7eab
BS
27362009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
2737
2738 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
2739 problematic last insns. Test for TYPE_CALL rather than CALL_P.
aa016ff7
UB
2740 Remove special case testing for last insn of inner loops. Don't fail
2741 if the loop ends with a jump, emit an extra nop instead.
307e7eab 2742
c5d96723
BS
2743 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
2744 DREGS rather than comparing directly. Remove code that tries to
2745 account for latencies.
2746
de0b4ad5
RG
27472009-04-29 Richard Guenther <rguenther@suse.de>
2748
2749 PR tree-optimization/39941
2750 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
2751 eliminating an indirect call.
2752
3a19701a
RG
27532009-04-29 Richard Guenther <rguenther@suse.de>
2754
2755 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
2756 parameter. Allow invariants as base if !require_lvalue.
2757 (verify_gimple_assign_single): Adjust.
2758
a0a31d1e
BS
27592009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
2760
2761 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
2762 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
aa016ff7
UB
2763 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
2764 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
a0a31d1e
BS
2765 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
2766 a VEC_SELECT.
aa016ff7
UB
2767 * config/bfin/bfin.c (bfin_expand_builtin,
2768 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
a0a31d1e 2769
795bd26a
RG
27702009-04-28 Richard Guenther <rguenther@suse.de>
2771
2772 * tree-vect-loop.c (get_initial_def_for_induction): Use
2773 correct types for pointer increment.
2774
04be270f
KG
27752009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2776
2777 * toplev.c (print_version): Update GMP version string calculation.
2778
e1a3b85c
EB
27792009-04-28 Eric Botcazou <ebotcazou@adacore.com>
2780
2781 PR rtl-optimization/39938
2782 * resource.c (init_resource_info): Add call to df_analyze.
2783
8224166e
UB
27842009-04-28 Uros Bizjak <ubizjak@gmail.com>
2785
2786 * config/alpha/alpha.md (usegp): Cast the result of
2787 alpha_find_lo_sum_using_gp to enum attr_usegp.
2788 * config/alpha/alpha.c (override_options): Remove end-of-structure
2789 marker element from cpu_table. Use array size of cpu_table to handle
2790 -mcpu and -mtune options.
2791 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
2792
c5f0fe67
JM
27932009-04-28 Joseph Myers <joseph@codesourcery.com>
2794
2795 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
2796 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
2797 tune_32 and tune_64.
2798 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
2799 support on PowerPC.
2800 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
2801 * config/rs6000/option-defaults.h: ... here. New file.
2802 (OPT_64, OPT_32): Define.
2803 (MASK_64BIT): Define to 0 if not already defined.
2804 (OPT_ARCH64, OPT_ARCH32): Define.
2805 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
2806 and tune_64.
2807
0c48a567
RR
28082009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2809
2810 * config/arm/arm.c (arm_override_options): Emit error on using
2811 fpa with AAPCS.
2812
f1028b9d
UB
28132009-04-28 Uros Bizjak <ubizjak@gmail.com>
2814
2815 PR rtl-optimization/39914
2816 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
2817 registers for allocnos created from user-defined variables only
2818 when not optimizing.
2819
e0dd989a
RG
28202009-04-28 Richard Guenther <rguenther@suse.de>
2821
2822 PR middle-end/39937
2823 * fold-const.c (fold_binary): Use distribute_real_division only
2824 on float types.
2825
9a17c91d
SE
28262009-04-28 Steve Ellcey <sje@cup.hp.com>
2827
2828 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
2829 add hpux-stdint.h to tm_file.
2830 (hppa[12]*-*-hpux11*): Ditto.
2831 (ia64*-*-hpux*): Ditto.
2832 * config/hpux-stdint.h: New.
60839f5d 2833 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
9a17c91d 2834 __STDC_EXT__ for all compiles.
60839f5d
EB
2835 * config/pa/pa-hpux.h: Ditto.
2836 * config/pa/pa-hpux10.h: Ditto.
2837 * config/pa/pa-hpux11.h: Ditto.
9a17c91d 2838
af04e659
CM
28392009-04-28 Catherine Moore <clm@codesourcery.com>
2840
2841 * debug.h (set_name): Add comment.
2842
04ef80ce
AP
28432009-04-28 Andrew Pinski <pinskia@gmail.com>
2844
2845 PR target/39929
2846 * config/darwin.c (machopic_gen_offset): Check
2847 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
2848 * config/arm/arm.c (require_pic_register): Likewise.
2849
65ad77af
PB
28502009-04-28 Paolo Bonzini <bonzini@gnu.org>
2851
8224166e
UB
2852 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
2853 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
2854 m32c_promote_prototypes): Delete.
65ad77af 2855
1b15a008
MM
28562009-04-28 Michael Matz <matz@suse.de>
2857
2858 PR middle-end/39922
2859 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
2860 constants.
2861
7569a6cc
RG
28622009-04-28 Richard Guenther <rguenther@suse.de>
2863
f1028b9d 2864 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
7569a6cc 2865
ead204d9
RR
28662009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2867
2868 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
2869 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
2870 * config/arm/arm-tune.md: Regenerate.
2871
f2c45f08 28722009-04-28 Alexander Monakov <amonakov@ispras.ru>
60839f5d 2873
f2c45f08
AM
2874 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
2875 block if there are complex incoming edges.
2876 (sel_merge_blocks): Remove useless assert.
2877 (sel_redirect_edge_and_branch): Check that edge was redirected.
2878 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
2879 (sel_find_rgns): Delete declaration.
2880 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
2881 the region when it is not a preheader.
2882
7a00d767
UB
28832009-04-28 Uros Bizjak <ubizjak@gmail.com>
2884
2885 PR c/39323
2886 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
2887
448ee662
RG
28882009-04-28 Richard Guenther <rguenther@suse.de>
2889
2890 * tree.h (SSA_NAME_VALUE): Remove.
2891 (struct tree_ssa_name): Remove value_handle member.
2892 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
2893 array for jump threading.
2894 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
2895 SSA_NAME_VALUEs.
2896 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
2897 * tree-flow.h (threadedge_initialize_values): Declare.
2898 (threadedge_finalize_values): Likewise.
2899 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
2900 (SSA_NAME_VALUE): Define.
2901 (threadedge_initialize_values): New function.
2902 (threadedge_finalize_values): Likewise.
2903 * tree-ssa-dom.c (ssa_name_values): New global variable.
2904 (SSA_NAME_VALUE): Define.
f1028b9d 2905 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
448ee662 2906
8644a673
IR
29072009-04-28 Ira Rosen <irar@il.ibm.com>
2908
2909 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2910 Use REPORT_VECTORIZED_LOCATIONS instead
2911 REPORT_VECTORIZED_LOOPS.
2912 * tree-vectorizer.c (vect_verbosity_level): Make static.
2913 (vect_loop_location): Rename to vect_location.
2914 (vect_set_verbosity_level): Update comment.
2915 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
2916 and vect_location.
2917 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
2918 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
2919 instead REPORT_UNVECTORIZED_LOOPS.
fbdf817d
UB
2920 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
2921 and vect_loop_def to vect_external_def and vect_internal_def.
8644a673 2922 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
7a00d767 2923 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
8644a673
IR
2924 REPORT_UNVECTORIZED_LOCATIONS.
2925 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
2926 and vect_used_in_loop and to vect_unused_in_scope and
2927 vect_used_in_scope.
2928 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
2929 (vect_verbosity_level): Remove declaration.
2930 (vect_analyze_operations): Likewise.
2931 (vect_analyze_stmt): Declare.
2932 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
2933 REPORT_UNVECTORIZED_LOCATIONS.
2934 (vect_get_loop_niters): Fix indentation.
2935 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
2936 (vect_analyze_loop_operations): New function.
2937 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
2938 vect_analyze_operations.
2939 (vect_is_simple_reduction): Use new names.
2940 (vectorizable_live_operation, vect_transform_loop): Likewise.
fbdf817d
UB
2941 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
2942 to specify whether the data references can be a part of interleaving
2943 chain.
8644a673
IR
2944 (vect_analyze_data_ref_dependence): Use new names.
2945 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
2946 (vect_create_addr_base_for_vector_ref): Remove redundant code.
2947 * tree-vect-patterns.c (widened_name_p): Use new names.
2948 (vect_recog_dot_prod_pattern): Likewise.
2949 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
2950 (process_use, vect_mark_stmts_to_be_vectorized,
2951 vect_model_simple_cost, vect_model_store_cost,
2952 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
2953 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
2954 vectorizable_operation, vectorizable_type_demotion,
2955 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
2956 vectorizable_condition): Likewise.
2957 (vect_analyze_operations): Split into vect_analyze_loop_operations
2958 and ...
2959 (vect_analyze_stmt): ... new function.
2960 (new_stmt_vec_info): Use new names.
2961 (vect_is_simple_use): Use new names and fix comment.
2962 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
2963 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
2964
b91322f2
UB
29652009-04-28 Uros Bizjak <ubizjak@gmail.com>
2966
2967 PR target/39911
2968 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
2969 and integer modes for x87 operands. Do not ICE for unsupported size,
2970 generate error instead. Generate error for unsupported operand types.
2971 ['z']: Do not handle HImode memory operands specially. Warning
2972 for floating-point operands. Fallthru to 'Z' for unsupported operand
2973 types. Do not ICE for unsupported size, generate error instead.
2974 (output_387_binary_op): Use %Z to output operands.
2975 (output_fp_compare): Ditto.
2976 (output_387_reg_move): Ditto.
2977
b2ed71b6
BE
29782009-04-28 Ben Elliston <bje@au.ibm.com>
2979
2980 PR c++/35652
2981 Revert:
2982
2983 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2984
2985 * builtins.c (c_strlen): Do not warn here.
2986 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
2987 * c-common.c (pointer_int_sum): Take an explicit location.
2988 Warn about offsets out of bounds.
2989 * c-common.h (pointer_int_sum): Adjust declaration.
2990
81f40b79
ILT
29912009-04-27 Ian Lance Taylor <iant@google.com>
2992
2993 * collect2.c (is_ctor_dtor): Change type of ret field in struct
2994 names to symkind.
2995 * dce.c (run_fast_df_dce): Change type of old_flags to int.
2996 * df-core.c (df_set_flags): Change return type to int. Change
2997 type of old_flags to int.
2998 (df_clear_flags): Likewise.
2999 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
3000 (df_get_conditional_uses): Likewise.
3001 * df.h (df_set_flags, df_clear_flags): Update declarations.
3002 * dwarf2out.c (struct indirect_string_node): Change type of form
3003 field to enum dwarf_form.
3004 (AT_string_form): Change return type to enum dwarf_form.
3005 * fixed-value.c (fixed_compare): Add cast to enum type.
3006 * fwprop.c (update_df): Change 0 to VOIDmode.
3007 * gensupport.c: Change 0 to UNKNOWN.
3008 * gimple.h (gimple_cond_code): Add cast to enum type.
3009 * haifa-sched.c (reemit_notes): Add cast to enum type.
3010 * hooks.c (hook_int_void_no_regs): Remove function.
3011 * hooks.h (hook_int_void_no_regs): Remove declaration.
3012 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
7a00d767 3013 * predict.c (combine_predictions_for_insn): Add casts to enum type.
81f40b79
ILT
3014 * real.c (real_arithmetic): Add cast to enum type.
3015 (real_compare): Likewise.
3016 * target.h (struct gcc_target): Change return type of
3017 branch_target_register_class to enum reg_class.
3018 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
3019 default_branch_target_register_class.
7a00d767 3020 * targhooks.c (default_branch_target_register_class): New function.
81f40b79 3021 * targhooks.h (default_branch_target_register_class): Declare.
7a00d767 3022 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
81f40b79
ILT
3023 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
3024 cast to int.
3025 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
3026 ERROR_MARK.
3027 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
3028 vect_uninitialized_def. Change 0 to ERROR_MARK.
3029 * tree-vect-stmts.c (supportable_widening_operation): Don't
3030 initialize icode1 and icode2.
7a00d767 3031 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
81f40b79
ILT
3032 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
3033 and to STD_C89.
3034 (cmn_err_flag_specs): Change 0 to STD_C89.
3035 (cmn_err_char_table): Likewise.
3036 * config/arm/arm.c (get_arm_condition_code): Change type of code
3037 to enum arm_cond_code.
3038 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
3039 (IWMMXT_BUILTIN2): Likewise.
3040 (neon_builtin_type_bits): Don't define typedef.
3041 (neon_builtin_datum): Change type of bits field to int.
3042 (arm_expand_neon_args): Add cast to enum type.
3043 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
3044 TLS_MODEL_NONE.
3045 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
3046 casts to enum type.
3047 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
3048 MIPS_FP_COND_f.
3049 * config/mips/mips.md (jal_macro): Return enum constant.
3050 (single_insn): Likewise.
3051 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
3052 CODE_FOR_nothing.
3053 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3054 casts to enum type.
3055 * config/s390/s390.c (s390_tune_flags): Change type to int.
3056 (s390_arch_flags): Likewise.
7a00d767 3057 (s390_handle_arch_option): Change flags field of struct pta to int.
81f40b79
ILT
3058 * config/s390/s390.h (s390_tune_flags): Update declaration.
3059 (s390_arch_flags): Likewise.
3060 * config/sh/sh.c (prepare_move_operands): Compare
3061 tls_symbolic_operand result with enum constant.
3062 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
3063 (sh_expand_prologue): Add cast to enum type.
3064 (sh_expand_epilogue): Likewise.
3065 (tls_symbolic_operand): Change return type to enum tls_model.
3066 (fpscr_set_from_mem): Add cast to enum type.
3067 (legitimize_pic_address): Compare tls_symbolic_operand result with
3068 enum constant.
3069 (sh_target_reg_class): Change return type to enum reg_class.
3070 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
3071 PROCESSOR_xxx.
7a00d767
UB
3072 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
3073 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
81f40b79
ILT
3074 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
3075 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
3076 (delayed_branch, tls_call_delay): Likewise.
3077 (eligible_for_sibcall_delay): Likewise.
3078 (eligible_for_return_delay): Likewise.
3079 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
3080 (spu_expand_builtin_1): Likewise.
3081
3082 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
3083 for all types of conversions.
3084 (output_init_element): Issue -Wc++-compat warning if needed when
3085 initializing a bitfield with enum type.
3086 * c-parser.c (c_parser_expression): Set original_type to
3087 original_type of right hand operand of comman operator.
3088
e4ae5e77
RW
30892009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3090
3091 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
3092 grammar nits.
7a00d767 3093 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
e4ae5e77
RW
3094 * doc/cpp.texi (Standard Predefined Macros)
3095 (Implementation-defined behavior): Likewise.
7a00d767 3096 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
e4ae5e77
RW
3097 * doc/gimple.texi (GIMPLE Exception Handling)
3098 (@code{GIMPLE_ASSIGN}): Likewise.
7a00d767 3099 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
e4ae5e77
RW
3100 * doc/invoke.texi (Warning Options, Optimize Options)
3101 (AVR Options, Darwin Options): Likewise.
3102 (Optimize Options): Reformulate -fwhole-program description.
3103 * doc/loop.texi (Lambda): Likewise.
3104 * doc/md.texi (Output Template, Define Constraints)
3105 (Standard Names, Insn Splitting): Likewise.
3106 * doc/options.texi (Option properties): Likewise.
3107 * doc/passes.texi (Tree-SSA passes): Likewise.
3108 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
3109 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
3110 (File Names and DBX): Likewise.
3111 * doc/trouble.texi (Incompatibilities): Likewise.
3112
1883802f 31132009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6e37f6d4
TS
3114
3115 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
3116 instruction is correct.
3117
1883802f 31182009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
5345cf68
TS
3119
3120 Allow non-constant arguments to conversion intrinsics.
3121 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
3122 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
3123 * spu.c (print_operand): Handle 'v' and 'w'.
3124 (exp2_immediate_p, spu_gen_exp2): Define.
3125 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
3126 spu_convtf_1): Update parameter descriptions.
7a00d767 3127 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
5345cf68
TS
3128 * constraints.md ('v', 'w'): New.
3129 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
3130 Remove.
3131 (i2f, I2F): New define_mode_attr.
3132 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
3133 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
3134 fixuns_truncv4sfv4si2): Update to use mode attribute.
3135 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
3136 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
3137 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
3138 patterns for combine.
3139
5f39ad47
SB
31402009-04-27 Steven Bosscher <steven@gcc.gnu.org>
3141
3142 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
3143 (cprop, hoist, pre, store_motion): New debug counters.
3144 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
3145 is not an RTL pass anymore.
3146 (pass_profiling): Remove extern decl for pass removed in 2005.
3147 (pass_gcse, pass_jump_bypass): Remove.
3148 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
3149 to 0 for clean state.
3150 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
3151 * cse.c (gate_handle_cse_after_global_opts,
3152 rest_of_handle_cse_after_global_opts): New functions.
3153 (pass_cse_after_global_opts): New pass, does local CSE.
3154 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
3155 (TV_CPROP): New timevar.
3156 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
3157 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
3158 (gcse_main, recompute_all_luids): Remove.
3159 (compute_hash_table_work): Call max_reg_num instead of reading
3160 max_gcse_regno.
3161 (cprop_jump): Don't set run_jump_opt_after_gcse.
3162 (constprop_register): Always allow to alter jumps.
3163 (cprop_insn): Likewise.
3164 (do_local_cprop): Likewise.
3165 (local_cprop_pass): Likewise. Return non-zero if something changed.
3166 (cprop): Remove function, fold interesting bits into one_cprop_pass.
3167 (find_implicit_sets): Add note about missed optimization opportunity.
3168 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
3169 pass_rtl_cprop execute function.
3170 Don't bother tracking the pass number, each pass gets its own dumpfile
3171 now anyway.
3172 Always allow to alter jumpsand bypass jumps.
3173 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
3174 will just find no suitable set.
3175 (pre_edge_insert): Fix dumping, this function is for PRE only.
3176 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
3177 pass_rtl_pre execute function.
3178 (hoist_code): Return non-zero if something changed. Keep track of
3179 substitutions and insertions for statistics gathering similar to PRE.
3180 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
3181 called from the pass_rtl_hoist execute function. Show pass statistics.
3182 (compute_store_table): Use max_reg_num directly instead of using the
3183 formerly global max_gcse_regno.
3184 (build_store_vectors): Likewise.
3185 (replace_store_insn): Fix dumping.
3186 (store_motion): Rename to ...
3187 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
3188 pass, called from the pass_rtl_store_motion execute function. Keep
3189 track of substitutions and insertions for statistics gathering similar
3190 to PRE.
3191 (bypass_jumps): Remove, fold interesting bits into ...
3192 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
3193 from the pass_rtl_cprop execute function.
3194 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
3195 pass_jump_bypass): Remove.
3196 (gate_handle_gcse, rest_of_handle_gcse): Remove.
3197 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
3198 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
3199 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
3200 (gate_rtl_store_motion, execute_rtl_store_motion,
3201 pass_rtl_store_motion): New.
3202 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
3203 make it clear that -fcse-skip-blocks is a no-op for backward compat.
3204 * passes.c (init_optimization_passes): Remove pass_gcse and
3205 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
3206 and cse_after_global_opts in place of pass_gcse. Schedule cprop
3207 instead of pass_jump_bypass.
3208
c685de4a
RG
32092009-04-27 Richard Guenther <rguenther@suse.de>
3210
3211 PR middle-end/39928
3212 * gimplify.c (gimplify_expr): If we are required to create
3213 a temporary make sure it ends up as register.
3214
72d41f29
L
32152009-04-27 H.J. Lu <hongjiu.lu@intel.com>
3216
3217 PR target/39903
3218 * config/i386/i386.c (construct_container): Don't call
3219 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
3220 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
3221
e97809c6
MM
32222009-04-27 Michael Matz <matz@suse.de>
3223
3224 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
3225 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
3226 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
3227 (dump_replaceable_exprs): Take a bitmap.
3228 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
3229 array.
3230 (expand_gimple_basic_block): Likewise.
3231 * tree-ssa-ter.c (struct temp_expr_table_d): Make
3232 replaceable_expressions member a bitmap.
3233 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
3234 (mark_replaceable): Likewise.
3235 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
3236 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
3237
211ca15c
RG
32382009-04-27 Richard Guenther <rguenther@suse.de>
3239
3240 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
3241 (verify_stmts): Dispatch to gimple/type verification code.
3242 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
3243 issue with call argument types.
3244
fca5f3d1
MM
32452009-04-27 Michael Matz <matz@suse.de>
3246
3247 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
3248 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
3249 to above.
3250
a1fa3e79 32512009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
8224166e 3252 Eric Botcazou <ebotcazou@adacore.com>
a1fa3e79
EB
3253
3254 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
3255 a label's basic block.
3256 (mark_target_live_regs): Tidy and rework obsolete comments.
3257 Change back DF problem to LIVE. If a label starts a basic block,
3258 assume that all registers that used to be live then still are.
3259 (init_resource_info): If a label starts a basic block, set its
3260 BLOCK_FOR_INSN accordingly.
3261 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
3262
33b223c0
RG
32632009-04-27 Richard Guenther <rguenther@suse.de>
3264
3265 * tree-flow-inline.h (function_ann): Remove.
3266 (get_function_ann): Likewise.
3267 * tree-dfa.c (create_function_ann): Remove.
3268 * tree-flow.h (struct static_var_ann_d): Remove.
3269 (struct function_ann_d): Likewise.
3270 (union tree_ann_d): Remove fdecl member.
3271 (function_ann_t): Remove.
3272 (function_ann, get_function_ann, create_function_ann): Remove
3273 declarations.
3274
e3136fa2
UB
32752009-04-27 Uros Bizjak <ubizjak@gmail.com>
3276
3277 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
3278
f87c9042
JH
32792009-04-27 Jan Hubicka <jh@suse.cz>
3280
3281 * ipa-pure-const.c (struct funct_state_d): New fields
3282 state_previously_known, looping_previously_known; remove
3283 state_set_in_source.
3284 (analyze_function): Use new fields.
3285 (propagate): Avoid assumption that state_set_in_source imply
3286 nonlooping.
3287
3288 * tree-ssa-loop-niter.c (finite_loop_p): New function.
3289 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
3290 * cfgloop.h (finite_loop_p): Declare.
3291
33abd718
MM
32922009-04-26 Michael Matz <matz@suse.de>
3293
e3136fa2 3294 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
33abd718 3295
ddc34084
MM
32962009-04-26 Michael Matz <matz@suse.de>
3297
3298 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
3299 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
3300 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
3301 pass_mark_used_blocks): Remove.
3302 * tree-optimize.c (pass_free_datastructures,
3303 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
3304 * passes.c (init_optimization_passes): Don't call
3305 pass_mark_used_blocks, remove dead code.
3306
1fec7ed4
L
33072009-04-26 H.J. Lu <hongjiu.lu@intel.com>
3308
3309 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
3310 * tree-ssa-live.h (register_ssa_partition): Likewise.
3311
4e3825db
MM
33122009-04-26 Michael Matz <matz@suse.de>
3313
3314 Expand from SSA.
3315 * builtins.c (fold_builtin_next_arg): Handle SSA names.
3316 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
3317 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
3318 SSA names.
3319 (compare_pairs): Swap cost comparison.
3320 (coalesce_ssa_name): Don't use change_partition_var.
3321 * tree-nrv.c (struct nrv_data): Add modified member.
3322 (finalize_nrv_r): Set it.
3323 (tree_nrv): Use it to update statements.
3324 (pass_nrv): Require PROP_ssa.
3325 * tree-mudflap.c (mf_decl_cache_locals,
3326 mf_build_check_statement_for): Use make_rename_temp.
3327 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
3328 * alias.c (find_base_decl): Handle SSA names.
3329 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
3330 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
3331 * rtl.h (set_reg_attrs_for_parm): Declare.
3332 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
3333 to "optimized", remove unused locals at finish.
3334 (execute_free_datastructures): Make global, call
3335 delete_tree_cfg_annotations.
3336 (execute_free_cfg_annotations): Don't call
3337 delete_tree_cfg_annotations.
3338
3339 * ssaexpand.h: New file.
3340 * expr.c (toplevel): Include ssaexpand.h.
e3136fa2 3341 (expand_assignment): Handle SSA names the same as register variables.
4e3825db
MM
3342 (expand_expr_real_1): Expand SSA names.
3343 * cfgexpand.c (toplevel): Include ssaexpand.h.
3344 (SA): New global variable.
3345 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
3346 (SSAVAR): New macro.
3347 (set_rtl): New helper function.
3348 (add_stack_var): Deal with SSA names, use set_rtl.
3349 (expand_one_stack_var_at): Likewise.
3350 (expand_one_stack_var): Deal with SSA names.
3351 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
3352 before unique numbers.
3353 (expand_stack_vars): Use set_rtl.
3354 (expand_one_var): Accept SSA names, add asserts for them, feed them
3355 to above subroutines.
3356 (expand_used_vars): Expand all partitions (without default defs),
3357 then only the local decls (ignoring those expanded already).
3358 (expand_gimple_cond): Remove edges when jumpif() expands an
3359 unconditional jump.
3360 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
3361 or remove abnormal edges. Ignore insns setting the LHS of a TERed
3362 SSA name.
3363 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
3364 members of SA; deal with PARM_DECL partitions here; expand
3365 all PHI nodes, free tree datastructures and SA. Commit instructions
3366 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
3367 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
3368 info and statements at start, collect garbage at finish.
3369 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
3370 (VAR_ANN_PARTITION) Remove.
3371 (change_partition_var): Don't declare.
3372 (partition_to_var): Always return SSA names.
3373 (var_to_partition): Only accept SSA names.
3374 (register_ssa_partition): Only check argument.
3375 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
3376 member.
3377 (delete_var_map): Don't free it.
3378 (var_union): Only accept SSA names, simplify.
3379 (partition_view_init): Mark only useful SSA names as used.
3380 (partition_view_fini): Only deal with SSA names.
3381 (change_partition_var): Remove.
3382 (dump_var_map): Use ssa_name instead of partition_to_var member.
3383 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
3384 basic blocks.
3385 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
3386 (struct _elim_graph): New member const_dests; nodes member vector of
3387 ints.
3388 (set_location_for_edge): New static helper.
3389 (create_temp): Remove.
3390 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
e3136fa2 3391 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
4e3825db
MM
3392 (new_elim_graph): Allocate const_dests member.
3393 (clean_elim_graph): Truncate const_dests member.
3394 (delete_elim_graph): Free const_dests member.
3395 (elim_graph_size): Adapt to new type of nodes member.
3396 (elim_graph_add_node): Likewise.
3397 (eliminate_name): Likewise.
3398 (eliminate_build): Don't take basic block argument, deal only with
3399 partition numbers, not variables.
3400 (get_temp_reg): New static helper.
3401 (elim_create): Use it, deal with RTL temporaries instead of trees.
3402 (eliminate_phi): Adjust all calls to new signature.
3403 (assign_vars, replace_use_variable, replace_def_variable): Remove.
3404 (rewrite_trees): Only do checking.
3405 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
3406 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
3407 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
3408 contains_tree_r, MAX_STMTS_IN_LATCH,
3409 process_single_block_loop_latch, analyze_edges_for_bb,
3410 perform_edge_inserts): Remove.
3411 (expand_phi_nodes): New global function.
3412 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
3413 functions, initialize new parameter, remember partitions having a
3414 default def.
3415 (finish_out_of_ssa): New global function.
3416 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
3417 don't reset in_ssa_p here, don't disable TER when mudflap.
3418 (pass_del_ssa): Remove.
3419 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
3420 partition members.
3421 (execute_free_datastructures): Declare.
3422 * Makefile.in (SSAEXPAND_H): New variable.
3423 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
3424 * basic-block.h (commit_one_edge_insertion): Declare.
3425 * passes.c (init_optimization_passes): Move pass_nrv and
3426 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
3427 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
3428 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
3429 (redirect_branch_edge): Deal with super block when expanding, split
3430 out jump patching itself into ...
3431 (patch_jump_insn): ... here, new static helper.
3432
17c665a9
MM
34332009-04-26 Michael Matz <matz@suse.de>
3434
3435 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
3436 beyond num_ssa_names.
3437 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
3438 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
3439
92061771
JJ
34402009-04-26 Jakub Jelinek <jakub@redhat.com>
3441
ce372372
JJ
3442 PR inline-asm/39543
3443 * fwprop.c (forward_propagate_asm): New function.
3444 (forward_propagate_and_simplify): Propagate also into __asm, if it
3445 doesn't increase the number of referenced registers.
3446
92061771
JJ
3447 PR c/39889
3448 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
3449
34502009-04-26 Jakub Jelinek <jakub@redhat.com>
77f2a970
JJ
3451
3452 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
3453 note_nonlocal_vla_type for nonlocal VLAs.
3454 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
3455 contains_remapped_vars, remap_vla_decls): New functions.
3456 (convert_nonlocal_reference_stmt): If not optimizing, call
3457 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
3458 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
3459 if it wasn't found in var_map.
3460 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
3461 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
3462 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
3463 declare_vars.
3464 * gimplify.c (nonlocal_vlas): New variable.
3465 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
3466 referenced VLAs.
3467 (gimplify_body): Create and destroy nonlocal_vlas.
a9548ddf 3468
4561e242
JJ
3469 * dwarf2out.c (loc_descr_plus_const): New function.
3470 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
3471 mem_loc_descriptor, loc_descriptor_from_tree_1,
3472 descr_info_loc, gen_variable_die): Use it.
3473
a9548ddf
JJ
3474 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
3475 !TREE_STATIC VAR_DECLs.
3476 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
3477 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
3478 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
3479 DECL_BY_REFERENCE is valid.
3480 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
3481 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
3482 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
3483 Copy DECL_BY_REFERENCE.
3484 (struct nesting_copy_body_data): New type.
3485 (nesting_copy_decl): New function.
3486 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
3487 if they have variable length.
3488
10555d08
MM
34892009-04-26 Michael Matz <matz@suse.de>
3490
3491 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
3492 mark new temporaries for renaming.
3493
e11187cc
JM
34942009-04-26 Joseph Myers <joseph@codesourcery.com>
3495
3496 PR c/39581
3497 * c-decl.c (global_bindings_p): Return negative value.
3498 (c_variable_size): New. Based on variable_size from
3499 stor-layout.c.
3500 (grokdeclarator): Call c_variable_size not variable_size.
3501
f6a51d31
UB
35022009-04-26 Uros Bizjak <ubizjak@gmail.com>
3503
3504 * config/i386/i386.c (print_operand) ['z']: Fix typo.
3505
4b97723d
KT
35062009-04-26 Kai Tietz <kai.tietz@onevision.com>
3507
3508 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
3509 Redefine it to just use mingw/include.
3510 (ASM_SPEC): Rules for -m32 and -m64.
3511 (LINK_SPEC): Use Likewise.
3512 (SPEC_32): New define.
3513 (SPEC_64): Likewise.
3514 (SUB_LINK_SPEC): Likewise.
3515 (MULTILIB_DEFAULTS): New define.
3516 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
3517 Add multilib options.
3518 (MULTILIB_DIRNAMES): Likewise.
3519 (MULTILIB_OSDIRNAMES): Likewise.
3520 (LIBGCC): Likewise.
3521 (INSTALL_LIBGCC): Likewise.
3522
991d6621
JM
35232009-04-26 Joseph Myers <joseph@codesourcery.com>
3524
3525 PR c/39556
3526 * c-tree.h (enum c_inline_static_type): New.
3527 (record_inline_static): Declare.
3528 * c-decl.c (struct c_inline_static, c_inline_statics,
3529 record_inline_static, check_inline_statics): New.
3530 (pop_file_scope): Call check_inline_statics.
3531 (start_decl): Call record_inline_static instead of pedwarning
3532 directly for static in inline function.
3533 * c-typeck.c (build_external_ref): Call record_inline_static
3534 instead of pedwarning directly for static referenced in inline
3535 function.
3536
4a81774c
SB
35372009-04-26 Steven Bosscher <steven@gcc.gnu.org>
3538
3539 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
3540 not new but only being rescanned.
3541 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
3542 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
3543 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
3544 record_set_info, compute_set, grealloc): Remove.
3545 (recompute_all_luids): New function.
3546 (gcse_main): Don't compute sets, and don't do related memory
3547 allocations/free-ing. If something changed before the end of the
3548 pass, update LUIDs using recompute_all_luids.
3549 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
3550 (free_gcse_mem): Don't free it either.
3551 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
3552 Use the df insn LUIDs.
3553 (load_killed_in_block): Likewise.
3554 (compute_hash_table_work): Don't compute reg_set_in_block.
3555 (compute_transp): Use DF_REG_DEF_CHAINs.
3556 (local_cprop_pass): Don't use compute_sets and related functions.
3557 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
3558 Use get_max_uid() instead of max_cuid.
3559 (insert_insn_end_basic_block, pre_insert_copy_insn,
3560 update_ld_motion_stores): Don't try to
3561 keep reg_set tables up to date.
3562 (pre_insert_copies): Use df insn LUIDs.
3563 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
3564 (reg_set_info): Don't use extra bitmap argument.
3565 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
3566 information to compute regs_set_in_block.
3567 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
3568 (bypass_jumps): Don't use compute_sets and friends.
3569
e8f99a9d
RW
35702009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3571
3572 PR testsuite/39710
3573 * opts.c (undocumented_msg): Do not leave blank even with
3574 ENABLE_CHECKING.
3575
6895bac8
JM
35762009-04-25 Joseph Myers <joseph@codesourcery.com>
3577
3578 * c-decl.c (build_enumerator): Allow values folding to integer
3579 constants but not integer constant expressions with a pedwarn if
3580 pedantic.
3581
24070fcb
JM
35822009-04-25 Joseph Myers <joseph@codesourcery.com>
3583
3584 PR c/39582
3585 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
3586 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
3587 type is an integer constant.
3588
d6d89aa1
UB
35892009-04-25 Uros Bizjak <ubizjak@gmail.com>
3590
3591 PR target/39897
3592 * config/i386/i386.c (print_operand) ['z']: Revert handling of
3593 HImode operands.
3594
92f6fd0b
JM
35952009-04-25 Joseph Myers <joseph@codesourcery.com>
3596
3597 PR c/39564
3598 * c-decl.c (grokdeclarator): Diagnose declarations of functions
3599 with variably modified return type and no storage class
3600 specifiers, except for the case of nested functions. Distinguish
3601 extern declarations of functions with variably modified return
3602 types from those of objects with variably modified types.
3603
a3710436
JH
36042009-04-25 Jan Hubicka <jh@suse.cz>
3605
3606 * tree.c (list_equal_p): New function.
3607 * tree.h (list_equal_p): Declare.
3608 * coretypes.h (edge_def, edge, const_edge, basic_block_def
3609 basic_block_def, basic_block, const_basic_block): New.
3610 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
3611 (redirect_eh_edge): New function.
3612 (make_eh_edge_update_phi): EH edges are not abnormal.
3613 * except.c: Include tree-flow.h.
3614 (list_match): New function.
3615 (eh_region_replaceable_by_p): New function.
3616 (replace_region): New function.
3617 (hash_type_list): New function.
3618 (hash_eh_region): New function.
3619 (eh_regions_equal_p): New function.
3620 (merge_peers): New function.
3621 (remove_unreachable_regions): Verify EH tree when checking;
3622 merge peers.
3623 (copy_eh_region_1): New function.
3624 (copy_eh_region): New function.
3625 (push_reachable_handler): New function.
3626 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
3627 regions without label but with live RESX.
3628 * except.h (redirect_eh_edge_to_label): New.
3629 * tree-flow.h (redirect_eh_edge): New.
3630 * coretypes.h (edge_def, edge, const_edge, basic_block_def
3631 basic_block_def, basic_block, const_basic_block): Remove.
3632 * Makefile.in (except.o): Add dependency on tree-flow.h
3633 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
3634 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
3635 Remove.
3636
3764d512
EB
36372009-04-25 Eric Botcazou <ebotcazou@adacore.com>
3638
3639 PR bootstrap/39645
3640 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
3641 on the destination of memcpy.
3642
1c62e8f2
PB
36432009-04-25 Paolo Bonzini <bonzini@gnu.org>
3644
3645 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
3646 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
3647 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
3648
496a4ef5
JH
36492009-04-25 Jan Hubicka <jh@suse.cz>
3650
3651 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
3652 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
3653 to be reached by different label than left.
3654 (update_eh_edges): Update comment; remove edge_to_remove if possible
3655 and return true if suceeded.
3656 (cleanup_empty_eh): Accept sharing map; handle shared regions.
3657 (cleanup_eh): Compute sharing map.
3658 * except.c (remove_eh_handler_and_replace): Add argument if we should
3659 update regions.
3660 (remove_unreachable_regions): Update for label sharing.
3661 (label_to_region_map): Likewise.
3662 (get_next_region_sharing_label): New function.
3663 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
3664 prev_try pointers.
3665 (remove_eh_handler): Update.
3666 (remove_eh_region_and_replace_by_outer_of): New function.
3667 * except.h (struct eh_region): Add next_region_sharing_label.
3668 (remove_eh_region_and_replace_by_outer_of,
3669 get_next_region_sharing_label): Declare.
3670 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
3671
36722009-04-25 Jan Hubicka <jh@suse.cz>
3673
3674 * tree-cfg.c (split_critical_edges): Split also edges where we can't
3675 insert code even if they are not critical.
3676
36772009-04-25 Jan Hubicka <jh@suse.cz>
3678
3679 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
3680 (gimple_can_remove_branch_p): EH edges won't remove branch by
3681 redirection.
3682 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
3683 updating of non-abnormal EH edges.
3684 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
3685 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
3686 (split_critical_edges): Split also edges where emitting code on them
3687 will lead to splitting later.
3688
a3a5e3d1
UB
36892009-04-25 Uros Bizjak <ubizjak@gmail.com>
3690 H.J. Lu <hongjiu.lu@intel.com>
3691
3692 PR target/39590
3693 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
3694 the configured assembler supports fildq and fistpq mnemonics.
3695 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
3696 * configure: Regenerated.
3697 * config.in: Ditto.
3698
3699 * config/i386/i386.c (print_operand): Handle 'Z'.
3700 ['z']: Remove handling of special fild/fist suffixes.
3701 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
3702 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
3703 suffix of fild insn.
3704 (*floatsi<mode>2_vector_mixed): Ditto.
3705 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
3706 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
3707 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
3708 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
3709 * config/i386/gas.h (GAS_MNEMONICS): Remove.
3710
23750d7f
BE
37112009-04-25 Ben Elliston <bje@au.ibm.com>
3712
3713 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
3714 the source of a set operation.
3715
e6ff3083
AS
37162009-04-25 Anatoly Sokolov <aesok@post.ru>
3717
3718 * target.h (struct gcc_target): Add case_values_threshold field.
3719 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
3720 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
3721 * targhooks.c (default_case_values_threshold): New function.
3722 * targhooks.h (default_case_values_threshold): Declare function.
3723 * stmt.c (expand_case): Use case_values_threshold target hook.
3724 * expr.h (case_values_threshold): Remove declartation.
3725 * expr.c (case_values_threshold): Remove function.
3726 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
3727
3728 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
3729 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
3730 (avr_case_values_threshold): Declare as static.
3731 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
3732
3733 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
3734 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
3735 (mn10300_case_values_threshold): New function.
3736
569c72fc
L
37372009-04-24 H.J. Lu <hongjiu.lu@intel.com>
3738
3739 * ira.c (setup_cover_and_important_classes): Add enum cast.
3740
ff3cb468
VM
37412009-04-24 Vladimir Makarov <vmakarov@redhat.com>
3742
3743 * genpreds.c (write_enum_constraint_num): Output definition of
3744 CONSTRAINT_NUM_DEFINED_P macro.
3745 * ira.c (setup_cover_and_important_classes): Use
3746 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
3747
4f7be849
DD
37482009-04-24 DJ Delorie <dj@redhat.com>
3749
3750 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
3751 __SH2A_SINGLE_ONLY__ also.
3752
735b94a7
SE
37532009-04-24 Steve Ellcey <sje@cup.hp.com>
3754
3755 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
3756 (movdf_internal): Ditto.
3757 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
3758 SFmode and DFmode constants.
3759 (ia64_print_operand): Add 'G' format for printing
3760 floating point constants.
3761
77a30264
RG
37622009-04-24 Richard Guenther <rguenther@suse.de>
3763
3764 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
3765 from unsigned additions.
3766
2b6da65c
JM
37672009-04-24 Joseph Myers <joseph@codesourcery.com>
3768
3769 * c-typeck.c (set_init_index): Allow array designators that are
3770 not integer constant expressions with a pedwarn if pedantic.
3771
f5a17c43
BS
37722009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
3773
3774 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
3775 zero if no overlap in nonzero bits between the operands.
3776
32e8bb8e
ILT
37772009-04-24 Ian Lance Taylor <iant@google.com>
3778
3779 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
3780 (record_dead_and_set_regs): Likewise.
3781 * df.h (struct df_mw_hardreg): Change flags field to int.
3782 (struct df_base_ref): Likewise.
3783 (struct df): Change changeable_flags field to int.
3784 * df-scan.c (df_defs_record): Change clobber_flags to int.
3785 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
3786 constants rather than #define macros.
3787 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
3788 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
3789 (enum dwarf_calling_convention): Likewise.
3790 (enum dwarf_line_number_x_ops): Likewise.
3791 (enum dwarf_call_frame_info): Likewise.
3792 (enum dwarf_source_language): Likewise.
3793 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
3794 (add_calling_convention_attribute): Likewise.
a3a5e3d1
UB
3795 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
3796 (combine_comparisons): Change compcode to int. Add cast to enum type.
32e8bb8e
ILT
3797 * genrecog.c (maybe_both_true_2): Change c to int.
3798 (write_switch): Likewise. Add cast to enum type.
3799 * gimplify.c (gimplify_omp_for): Handle return values from
3800 gimplify_expr using MIN rather than bitwise or.
3801 (gimplify_expr): Add cast to enum type.
3802 * ipa-prop.c (update_jump_functions_after_inlining): Change
3803 IPA_BOTTOM to IPA_JF_UNKNOWN.
a3a5e3d1
UB
3804 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
3805 Add casts to enum type.
32e8bb8e
ILT
3806 (setup_cover_and_important_classes): Change cl to int. Add casts
3807 to enum type.
3808 (setup_class_translate): Change cl and mode to int.
3809 (ira_init_once): Change mode to int.
3810 (free_register_move_costs): Likewise.
3811 (setup_prohibited_mode_move_regs): Add casts to enum type.
3812 * langhooks.c (add_builtin_function_common): Rework assertion that
3813 value fits bitfield.
3814 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
3815 * omega.c (omega_do_elimination): Avoid math on enum types.
3816 * optabs.c (expand_vec_shift_expr): Remove casts to int.
3817 * opts.c (set_debug_level): Change 2 to enum constant. Use new
3818 int local to handle integral_argment value.
3819 * regmove.c (try_auto_increment): Change PUT_MODE to
3820 PUT_REG_NOTE_KIND.
3821 * reload.c (push_secondary_reload): Add casts to enum type.
3822 (secondary_reload_class, find_valid_class): Likewise.
3823 * reload1.c (emit_input_reload_insns): Likewise.
3824 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
3825 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
3826 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
3827 constant.
3828 * tree.c (build_common_builtin_nodes): Add casts to enum type.
3829 * tree-complex.c (complex_lattice_t): Typedef to int rather than
3830 enum type.
3831 (expand_complex_libcall): Add casts to enum type.
3832 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
3833 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
3834 with ERROR_MARK, not NUM_TREE_CODES.
3835 (vect_create_epilog_for_reduction): Likewise.
3836 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
a3a5e3d1 3837 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
32e8bb8e
ILT
3838 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
3839 enum machine_mode.
3840 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
3841 vect_unused_in_loop. Change 0 to loop_vect.
a3a5e3d1 3842 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
32e8bb8e
ILT
3843 * var-tracking.c (get_init_value): Change return type to enum
3844 var_init_status.
3845 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
3846 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
3847 arm_fp_model.
3848 (arm_override_options): Add casts to enum type.
3849 (arm_emit_tls_decoration): Likewise.
3850 * config/i386/i386.c (ix86_function_specific_restore): Add casts
3851 to enum type.
3852 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
3853 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
3854 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
3855 enum type.
3856 * config/s390/s390.c (code_for_builtin_64): Change to array of
3857 enum insn_code.
3858 (code_for_builtin_31): Likewise.
3859 (s390_expand_builtin): Change code_for_builtin to enum insn_code
3860 const *.
3861 * config/sparc/sparc.c (sparc_override_options): Change value
3862 field in struct code_model to enum cmodel. In initializer change
3863 0 to NULL and add cast to enum type.
3864
3865 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
3866 Change all callers. Issue a -Wc++-compat warning using
3867 lhs_origtype if necessary.
3868 (convert_for_assignment): Issue -Wc++-compat warnings about
3869 invalid conversions to enum type on assignment.
3870 * c-common.h (build_modify_expr): Update declaration.
3871
ac4fc08a
NC
38722009-04-24 Nick Clifton <nickc@redhat.com>
3873
3874 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
3875 (function_arg_advance): Likewise.
3876 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
3877 5th alternative.
3878
f22e891a
AK
38792009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
3880
3881 * config/s390/constraints.md ('I', 'J'): Fix condition.
3882
ad58aabe
DN
38832009-04-24 Diego Novillo <dnovillo@google.com>
3884
3885 * gengtype-parse.c (parse_error): Add newline after message.
3886
879a4a01
L
38872009-04-24 H.J. Lu <hongjiu.lu@intel.com>
3888
3889 * config/i386/sse.md (avxmodesuffixs): Removed.
3890 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
3891 (*avx_pinsr<ssevecsize>): This.
3892
f63426af
BS
38932009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
3894
3895 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
3896 follow chains of regs with a single definition, and allow expressions
3897 that are function_invariant_p.
ce72fe6c 3898 (simple_rhs_p): Allow expressions that are function_invariant_p.
f63426af 3899
30349c74
PB
39002009-04-24 Paolo Bonzini <bonzini@gnu.org>
3901
3902 PR middle-end/39867
3903 * fold-const.c (fold_cond_expr_with_comparison): When folding
3904 > and >= to MAX, make sure the MAX uses the same type as the
3905 comparison's operands.
3906
8d8256c1
NC
39072009-04-24 Nick Clifton <nickc@redhat.com>
3908
3909 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
3910 addressing for DImode accesses.
3911 (frv_print_operand_address): Handle PLUS case.
a3a5e3d1 3912 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
8d8256c1 3913
6216f94e
JJ
39142009-04-24 Jakub Jelinek <jakub@redhat.com>
3915
3916 PR rtl-optimization/39794
3917 * alias.c (canon_true_dependence): Add x_addr argument.
3918 * rtl.h (canon_true_dependence): Adjust prototype.
3919 * cse.c (check_dependence): Adjust canon_true_dependence callers.
3920 * cselib.c (cselib_invalidate_mem): Likewise.
3921 * gcse.c (compute_transp): Likewise.
3922 * dse.c (scan_reads_nospill): Likewise.
3923 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
3924 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
3925 canon_base_addr of the group, plus optional offset.
3926 (struct group_info): Rename canon_base_mem to
3927 canon_base_addr.
3928 (get_group_info): Set canon_base_addr to canon_rtx of base, not
3929 canon_rtx of base_mem.
3930
6de7a512
PB
39312009-04-23 Paolo Bonzini <bonzini@gnu.org>
3932
3933 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
3934 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
3935
4a3a2376
UW
39362009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3937
3938 * config/spu/spu-builtins.h: Delete file.
3939
3940 * config/spu/spu.h (enum spu_builtin_type): Move here from
3941 spu-builtins.h.
3942 (struct spu_builtin_description): Likewise. Add GTY marker.
3943 Do not use enum spu_function_code or enum insn_code.
3944 (spu_builtins): Add extern declaration.
3945
3946 * config/spu/spu.c: Do not include "spu-builtins.h".
3947 (enum spu_function_code, enum spu_builtin_type_index,
3948 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
3949 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
3950 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
3951 unsigned_V2DI_type_node): Move here from spu-builtins.h.
3952 (spu_builtin_types): Make static. Add GTY marker.
3953 (spu_builtins): Add extern declaration with GTY marker.
3954 Include "gt-spu.h".
3955
3956 * config/spu/spu-c.c: Do not include "spu-builtins.h".
3957 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
3958 Check programmatically whether all parameters are scalar.
3959
3960 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
3961
bbaba73f
EB
39622009-04-23 Eric Botcazou <ebotcazou@adacore.com>
3963
3964 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
3965 assignment from the constructor either if the target is volatile.
3966
ee93c1c6
DJ
39672009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
3968
3969 * config/arm/arm.md (insv): Do not share operands[0].
3970
b2f21330
NS
39712009-04-23 Nathan Sidwell <nathan@codesourcery.com>
3972
3973 * config/vxlib-tls.c (active_tls_threads): Delete.
3974 (delete_hook_installed): New.
3975 (tls_delete_hook): Don't delete the delete hook.
3976 (tls_destructor): Delete it here.
3977 (__gthread_set_specific): Adjust installing the delete hook.
3978 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
3979 __gthread_leave_tsd_dtor_context.
3980
4782dfa7
RAE
39812009-04-23 Rafael Avila de Espindola <espindola@google.com>
3982
3983 * c-format.c (gcc_tdiag_char_table): Add support for %E.
3984
bf758008
UB
39852009-04-23 Uros Bizjak <ubizjak@gmail.com>
3986
3987 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
3988 enum type.
3989 (alpha_rtx_costs): Ditto.
3990 (emit_unlikely_jump): Use add_reg_note.
3991 (emit_frame_store_1): Ditto.
3992 (alpha_expand_prologue): Ditto.
3993 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
3994 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
3995
7323a100
NC
39962009-04-23 Nick Clifton <nickc@redhat.com>
3997
3998 * config/v850/v850.md (epilogue): Remove suppressed code.
3999 (return): Rename to return_simple and remove test of frame size.
4000 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
4001 to gen_return_simple.
4002
360032ba
JY
40032009-04-22 Jing Yu <jingyu@google.com>
4004
4005 PR testsuite/39781
4006 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
4007
53650abe
AP
40082009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
4009
4010 PR C/31499
4011 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
4012 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
4013 value is a VECTOR_CST, the element type is the element type of the
4014 vector.
4015
89043e8a
DD
40162009-04-22 DJ Delorie <dj@redhat.com>
4017
4018 * config/m32c/m32c.h: Update GTY annotations to new syntax.
4019
023f059b
JJ
40202009-04-22 Jakub Jelinek <jakub@redhat.com>
4021
4022 * alias.c (find_base_term): Move around LO_SUM case, so that
4023 CONST falls through into PLUS/MINUS handling.
4024
2c0eba5a
JJ
4025 PR c/39855
4026 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
4027 into 0, use omit_one_operand.
4028
9a461028
BE
40292009-04-23 Ben Elliston <bje@au.ibm.com>
4030
4031 * config/rs6000/linux-unwind.h (get_regs): Remove type
4032 puns. Change the type of `pc' to an array of unsigned ints and
4033 update all users. Constify frame24.
4034
653e2568
DD
40352009-04-22 DJ Delorie <dj@redhat.com>
4036
4037 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
4038 declarations before code.
4039 (current_function_special_page_vector): Likewise.
4040 (m32c_expand_insv): Silence a warning.
4041
60839f5d 40422009-04-21 Taras Glek <tglek@mozilla.com>
d1b38208
TG
4043
4044 * alias.c: Update GTY annotations to new syntax.
4045 * basic-block.h: Likewise.
4046 * bitmap.h: Likewise.
4047 * c-common.h: Likewise.
4048 * c-decl.c: Likewise.
4049 * c-parser.c: Likewise.
4050 * c-pragma.c: Likewise.
4051 * c-tree.h: Likewise.
4052 * cfgloop.h: Likewise.
4053 * cgraph.h: Likewise.
4054 * config/alpha/alpha.c: Likewise.
4055 * config/arm/arm.h: Likewise.
4056 * config/avr/avr.h: Likewise.
4057 * config/bfin/bfin.c: Likewise.
4058 * config/cris/cris.c: Likewise.
4059 * config/darwin.c: Likewise.
4060 * config/frv/frv.c: Likewise.
4061 * config/i386/i386.c: Likewise.
4062 * config/i386/i386.h: Likewise.
4063 * config/i386/winnt.c: Likewise.
4064 * config/ia64/ia64.h: Likewise.
4065 * config/iq2000/iq2000.c: Likewise.
4066 * config/mips/mips.c: Likewise.
4067 * config/mmix/mmix.h: Likewise.
4068 * config/pa/pa.c: Likewise.
4069 * config/pa/pa.h: Likewise.
4070 * config/rs6000/rs6000.c: Likewise.
4071 * config/s390/s390.c: Likewise.
4072 * config/sparc/sparc.c: Likewise.
4073 * config/xtensa/xtensa.c: Likewise.
4074 * cselib.h: Likewise.
4075 * dbxout.c: Likewise.
4076 * dwarf2out.c: Likewise.
4077 * except.c: Likewise.
4078 * except.h: Likewise.
4079 * fixed-value.h: Likewise.
4080 * function.c: Likewise.
4081 * function.h: Likewise.
4082 * gimple.h: Likewise.
4083 * integrate.c: Likewise.
4084 * optabs.c: Likewise.
4085 * output.h: Likewise.
4086 * real.h: Likewise.
4087 * rtl.h: Likewise.
4088 * stringpool.c: Likewise.
4089 * tree-data-ref.c: Likewise.
4090 * tree-flow.h: Likewise.
4091 * tree-scalar-evolution.c: Likewise.
4092 * tree-ssa-address.c: Likewise.
4093 * tree-ssa-alias.h: Likewise.
4094 * tree-ssa-operands.h: Likewise.
4095 * tree.c: Likewise.
4096 * tree.h: Likewise.
4097 * varasm.c: Likewise.
4098 * varray.h: Likewise.
4099 * vec.h: Likewise.
bf758008 4100 * coretypes.h: Do not define GTY macro if it is already defined.
d1b38208
TG
4101 * doc/gty.texi: Update GTY documentation to new syntax.
4102 * gengtype-lex.l: Enforce attribute-like syntax for GTY
4103 annotations on structs.
4104 * gengtype-parse.c: Likewise.
4105
a123d175
MH
41062009-04-22 Mark Heffernan <meheff@google.com>
4107
bf758008 4108 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
a123d175 4109
4c7c486a
KH
41102009-04-22 Kazu Hirata <kazu@codesourcery.com>
4111
4112 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
4113 where appropriate.
4114
6e782a29
KH
41152009-04-22 Kazu Hirata <kazu@codesourcery.com>
4116
4117 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
4118 the same as a PLUS without a shift. Increase the cost of a
4119 CONST_INT in MULT.
4120
38d2336a
MLI
41212009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4122
4123 * Makefile.in: Update dependencies.
bf758008 4124 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
38d2336a
MLI
4125 * errors.h: Remove bogus comment about compatibility.
4126 (warning): Update declaration.
4127 * genautomata.c: Update all calls to warning.
4128 * gimple.c: Do not include errors.h. Include toplev.h.
4129 * tree-ssa-structalias.c: Do not include errors.h.
4130 * omega.c: Likewise.
4131 * tree-ssa-reassoc.c: Likewise.
4132 * config/spu/spu-c.c: Likewise.
4133 * config/spu/t-spu-elf: Update dependencies.
4134
aea4deba
RG
41352009-04-22 Richard Guenther <rguenther@suse.de>
4136
4137 PR tree-optimization/39824
4138 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
4139 make sure the types are compatible.
4140
cfc93532
MLI
41412009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4142
4143 PR c++/14875
4144 * c-common.c (c_parse_error): Take a token_flags parameter.
4145 Use token_type for the token type instead.
4146 Pass token_flags to cpp_type2name.
4147 * c-common.h (c_parse_error): Update declaration.
4148 * c-parser.c (c_parser_error): Pass 0 as token flags.
4149
8632d02a
AB
41502009-04-22 Andrey Belevantsev <abel@ispras.ru>
4151
4152 PR rtl-optimization/39580
4153 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
4154
4c33221c
UW
41552009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4156
4157 * function.c (expand_function_end): Do not emit a jump to the "naked"
4158 return label for fall-through returns.
4159 * except.c (sjlj_emit_function_exit): Always place the call to the
4160 unregister function at the location installed by expand_function_end.
4161
9925bce0
RG
41622009-04-22 Richard Guenther <rguenther@suse.de>
4163
4164 PR tree-optimization/39845
4165 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
4166 (gen_inbound_check): Likewise.
4167
24a40b35
NS
41682009-04-22 Nathan Sidwell <nathan@codesourcery.com>
4169
4170 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
4171 padding for PPC.
4172 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
4173 * config/vxlib.c (__gthread_once): Add race guard for PPC.
4174
6c34a092
PB
41752009-04-22 Paolo Bonzini <bonzini@gnu.org>
4176
4177 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
4178 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
4179 shift counts to avoid out-of-bounds array accesses.
4180
baa48dfa
PB
41812009-04-22 Paolo Bonzini <bonzini@gnu.org>
4182
4183 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
4184 (Pmode): Move above.
4185
7d83f4f5
UB
41862009-04-22 Uros Bizjak <ubizjak@gmail.com>
4187
4188 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
4189 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
4190 GET_CODE macro. Use IN_RANGE macro where appropriate.
4191 * config/alpha/alpha.h: Ditto.
4192 * config/alpha/alpha.md: Ditto.
4193 * config/alpha/constraints.md: Ditto.
4194 * config/alpha/predicates.md: Ditto.
4195
3ad606bc
PB
41962009-04-22 Paolo Bonzini <bonzini@gnu.org>
4197
4198 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
4199 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4200 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4201 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4202 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4203 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4204 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4205 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4206 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4207 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4208 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4209 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4210 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4211 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4212 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4213 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4214 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4215 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4216 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4217 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4218 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4219 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4220 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4221 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4222 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4223 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4224 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4225
3cabd6d1
LB
42262009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4227
4228 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
4229 references from comments.
4230 * cfgbuild.c: (count_basic_blocks): Delete.
4231 (find_basic_blocks_1): Delete.
4232 (find_basic_blocks): Delete.
4233 * except.c (finish_eh_generation): Make static. Move comment from
7d83f4f5 4234 except.h here. Remove find_basic_blocks references from comments.
3cabd6d1
LB
4235 * except.h (finish_eh_generation): Delete.
4236 * basic-block.h (find_basic_blocks): Delete.
4237 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
4238
270d1bcd
DK
42392009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
4240
4241 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
4242 (sdbout_parms): Likewise.
4243
b757d36f
KK
42442009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
4245
4246 * config/sh/sh.c (prepare_cbranch_operands): Use
4247 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
4248 (expand_cbranchdi4): Likewise.
4249 (from_compare): Add cast to enum type.
4250 (expand_cbranchsi4): Use add_reg_note.
4251 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
4252 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
4253 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
4254 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
4255 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
4256 instead of CODE_FOR_nothing.
4257 (cbranchdi4): Likewise. Fix the order of arguments for
4258 gen_rtx_fmt_ee.
4259 (push_fpscr): Use add_reg_note.
4260 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
4261 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
4262
ad41bd84
JM
42632009-04-21 Joseph Myers <joseph@codesourcery.com>
4264
4265 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
4266 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
4267 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
4268 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
4269 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
4270 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
4271 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
4272 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
4273 config/alpha/x-vms, config/arc/t-arc,
4274 config/arm/README-interworking, config/arm/arm-c.c,
4275 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
4276 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
4277 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
4278 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
4279 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
4280 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
4281 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
4282 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
4283 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
4284 config/cris/t-elfmulti, config/crx/t-crx,
4285 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
4286 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
4287 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
4288 config/h8300/t-h8300, config/i386/athlon.md,
4289 config/i386/darwin-libgcc.10.4.ver,
4290 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
4291 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
4292 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
4293 config/i386/t-linux64, config/i386/t-nwld,
4294 config/i386/t-rtems-i386, config/i386/t-sol2-10,
4295 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
4296 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
4297 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
4298 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
4299 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
4300 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
4301 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
4302 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
4303 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
4304 config/m68k/t-uclinux, config/mcore/t-mcore,
4305 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
4306 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
4307 config/mips/crtn.asm, config/mips/irix-crti.asm,
4308 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
4309 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
4310 config/mips/mips-fixed.md, config/mips/sb1.md,
4311 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
4312 config/mips/t-iris6, config/mips/t-isa3264,
4313 config/mips/t-libgcc-mips16, config/mips/t-linux64,
4314 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
4315 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
4316 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
4317 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
4318 config/mn10300/t-linux, config/mn10300/t-mn10300,
4319 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
4320 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
4321 config/picochip/libgccExtras/clzsi2.asm,
4322 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
4323 config/rs6000/darwin-libgcc.10.4.ver,
4324 config/rs6000/darwin-libgcc.10.5.ver,
4325 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
4326 config/rs6000/t-aix43, config/rs6000/t-aix52,
4327 config/rs6000/t-darwin, config/rs6000/t-fprules,
4328 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
4329 config/rs6000/t-lynx, config/rs6000/t-netbsd,
4330 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
4331 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
4332 config/rs6000/t-rtems, config/rs6000/t-spe,
4333 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
4334 config/score/t-score-elf, config/sh/divcost-analysis,
4335 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
4336 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
4337 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
4338 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
4339 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
4340 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
4341 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
4342 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
4343 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
4344 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
4345 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
4346 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
4347 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
4348 limitx.h, version.c, xcoff.h: Add copyright and license notices.
4349 * config/h8300/genmova.sh: Include copyright and license notices
4350 in generated output.
4351 * config/h8300/mova.md: Regenerate.
4352 * doc/install.texi2html: Include word "Copyright" in copyright
4353 notice and use name "Free Software Foundation, Inc.".
4354 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
4355 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
4356 ChangeLog-2007, ChangeLog-2008: Correct dates.
4357
ca80e52b
EB
43582009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4359
4360 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
4361 NE_EXPR operations as well.
4362 * c-parser.c (c_parser_condition): Do not set location information on
4363 the condition.
4364 (c_parser_conditional_expression): Likewise.
4365 (c_parser_binary_expression): Set location information on operators.
4366 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
4367 TRUTH_NOT_EXPR has been folded.
4368 * fold-const.c (fold_truth_not_expr): Copy location information from
4369 the incoming expression to the outgoing one.
4370 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
4371 recursive calls on the LHS of the operator but pass that of the
4372 operator to recursive calls on the RHS of the operator. Set it
4373 on the COND_EXPR.
4374 (shortcut_cond_expr): Set the locus of the operator on the second
4375 COND_EXPR and that of the expression on the first in degenerate cases.
4376 Pass the locus of the expression to calls to shortcut_cond_r.
4377 Set the locus of the 'then' block on the associated jump, if any.
4378 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
4379 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
4380 expression to call to gimplify_boolean_expr.
4381
35091630
KT
43822009-04-21 Kai Tietz <kai.tietz@onevision.com>
4383
4384 * config.gcc: Add additional configuration for
4385 i686-w64-mingw* and x86_64-w64-mingw* triplet.
4386 * config/i386/mingw-w64.h: New mingw-w64 specific header.
4387 (CPP_SPEC): Redefine for allowing -municode option.
4388 (STARTFILE_SPEC): Likewise.
4389 * config/i386/t-mingw-w64: New.
4390 * config/i386/mingw-w64.opt: New.
4391 (municode): Add new target option.
4392 * doc/invoke.texi (municode): Add documentation for new option.
4393
0267afc4
ILT
43942009-04-21 Ian Lance Taylor <iant@google.com>
4395
4396 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4397 Correct test for number of arguments.
4398 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
4399
2ba9daa7
AS
44002009-04-21 Andreas Schwab <schwab@linux-m68k.org>
4401
4402 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
4403 argument of emit_library_call.
4404
ad8a1ac0
RG
44052009-04-21 Richard Guenther <rguenther@suse.de>
4406
4407 PR middle-end/39829
4408 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
4409 inside VIEW_CONVERT_EXPRs.
4410
7156c8ab
MJ
44112009-04-21 Martin Jambor <mjambor@suse.cz>
4412
4413 * tree-switch-conversion.c (build_constructors): Split a long line.
4414 (constructor_contains_same_values_p): New function.
7d83f4f5
UB
4415 (build_one_array): Create assigns of constants if possible, do not
4416 call mark_sym_for_renaming, call update_stmt.
7156c8ab
MJ
4417 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
4418 make_rename_temp. Do not call mark_symbols_for_renaming, call
4419 update_stmt.
4420 (gen_def_assigns): Do not call mark_symbols_for_renaming or
4421 find_new_referenced_vars, call update_stmt.
4422 (gen_inbound_check): Use create_tmp_var and create ssa names manually
4423 instead of calling make_rename_temp. Do not call
4424 find_new_referenced_vars or mark_symbols_for_renaming, call
4425 update_stmt.
4426
2970ccb3
RG
44272009-04-21 Richard Guenther <rguenther@suse.de>
4428
4429 PR tree-optimization/39827
7d83f4f5 4430 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
2970ccb3
RG
4431 (tree_ssa_phiprop): Pass the correct array size.
4432
47f402d1
UB
44332009-04-21 Uros Bizjak <ubizjak@gmail.com>
4434
4435 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
4436
1e4ae551
MLI
44372009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4438
4439 PR 16202
4440 * c-typeck.c (lvalue_p): Move declaration ...
4441 * c-common.h (lvalue_p): ... to here.
4442 * c-common.c (candidate_equal_p): New.
4443 (add_tlist): Use it.
4444 (merge_tlist): Use it.
4445 (warn_for_collisions_1): Likewise.
4446 (warning_candidate_p): Accept more candidates.
4447 (verify_tree): A warning candidate can be an expression. Use
4448 candidate_equal_p.
4449
244609a6
BE
44502009-04-21 Ben Elliston <bje@au.ibm.com>
4451
4452 PR target/5267
4453 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
4454 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
4455 options. Remove -mcall-solaris documentation.
4456
9c650d90
MLI
44572009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4458
4459 PR c++/13358
4460 * doc/invoke.texi (-Wlong-long): Update description.
4461 * c-lex (interpret_integer): Only warn if there was no previous
4462 overflow and -Wlong-long is enabled.
4463 * c-decl.c (declspecs_add_type): Drop redundant flags.
4464 * c.opt (Wlong-long): Init to -1.
4465 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
4466 and front-end warn_long_long. Wlong-long only depends on other
4467 flags if it is uninitialized.
4468 * c-parser.c (disable_extension_diagnostics): warn_long_long is
4469 the same for CPP and FE.
4470 (restore_extension_diagnostics): Likewise.
4471
bbbbb16a
ILT
44722009-04-20 Ian Lance Taylor <iant@google.com>
4473
4474 Fix enum conversions which are invalid in C++:
47f402d1
UB
4475 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
4476 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
4477 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
4478 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
47f402d1 4479 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
bbbbb16a 4480 (dbxout_parms): Likewise.
47f402d1 4481 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
bbbbb16a
ILT
4482 (df_clear_flags): Likewise.
4483 * df-problems.c (df_rd_bb_local_compute_process_def): Change
4484 top_flag parameter to int.
4485 (df_chain_create_bb_process_use): Likewise.
47f402d1
UB
4486 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
4487 Remove cast.
bbbbb16a
ILT
4488 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
4489 (df_ref_create_structure, df_def_record_1): Likewise.
4490 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
4491 (df_notes_rescan): Change 0 to VOIDmode in function call.
4492 (df_get_call_refs, df_insn_refs_collect): Likewise.
4493 (df_bb_regs_collect): Likewise.
4494 (df_entry_block_defs_collect): Likewise.
4495 (df_exit_block_uses_collect): Likewise.
4496 * df.h: Update declarations.
4497 * double-int.c (double_int_divmod): Add cast to enum type.
4498 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
4499 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
4500 (based_loc_descr): Likewise.
4501 (loc_descriptor_from_tree_1): Change first_op and second_op to
4502 enum dwarf_location_atom. Add cast to enum type.
4503 * expmed.c (init_expmed): Change 0 to SET in function call.
47f402d1 4504 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
bbbbb16a
ILT
4505 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
4506 (do_store_flag): Likewise.
4507 * fixed-value.h (struct fixed_value): Change mode to enum
4508 machine_mode.
47f402d1 4509 * function.c (assign_parms): Change 0 to VOIDmode in function call.
bbbbb16a
ILT
4510 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
4511 function call.
4512 (insert_insn_decl, insert_decl, insert_state): Likewise.
4513 (automata_list_finish): Likewise.
4514 * genrecog.c (process_define_predicate): Add cast to enum type.
4515 * gensupport.c (init_predicate_table): Add cast to enum type.
4516 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
4517 function call.
4518 (gimple_build_call_1, gimple_build_label): Likewise.
4519 (gimple_build_goto, gimple_build_asm_1): Likewise.
4520 (gimple_build_switch_1, gimple_build_cdt): Likewise.
47f402d1 4521 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
bbbbb16a
ILT
4522 (enum fallback): Rename from enum fallback_t.
4523 (fallback_t): Typedef as int.
4524 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
4525 GSI_SAME_STMT in function call.
4526 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
4527 enum type.
4528 (setup_reg_class_relations): Likewise.
47f402d1 4529 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
bbbbb16a
ILT
4530 (setup_prohibited_class_mode_regs): Add cast to enum type.
4531 (setup_prohibited_mode_move_regs): Likewise.
47f402d1 4532 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
bbbbb16a
ILT
4533 (record_address_regs): Change i to enum reg_class.
4534 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
4535 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
4536 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
4537 (GET_MODE_2XWIDER_MODE): Likewise.
4538 (GET_CLASS_NARROWEST_MODE): Likewise.
4539 * omp-low.c (expand_omp_for): Add cast to enum type.
4540 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
4541 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
4542 * postreload.c (reload_cse_simplify_operands): Change rclass local
4543 to enum reg_class.
4544 * predict.c (combine_predictions_for_insn): Change best_predictor
4545 and predictor to enum br_predictor.
4546 (combine_predictions_for_bb): Likewise.
4547 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
4548 use SET_PREDICT_EXPR_OUTCOME.
47f402d1 4549 * real.c (real_arithmetic): Change icode to code in function call.
bbbbb16a
ILT
4550 * reginfo.c (init_move_cost): Add casts to enum type.
4551 (init_reg_sets_1, init_fake_stack_mems): Likewise.
4552 * regmove.c (regclass_compatible_p): Change class0 and class1 to
4553 enum reg_class.
4554 * reload.c (find_valid_class): Add casts to enum type.
4555 (push_reload): Change 0 to NO_REGS in function call.
4556 (find_reloads): Change this_alternative to array of enum
4557 reg_class. Remove some now-unnecessary casts.
4558 (make_memloc): Change 0 to VOIDmode in function call.
4559 * reload1.c (reload): Change 0 to VOIDmode in function call.
4560 (eliminate_regs_1, elimination_effects): Likewise.
4561 (eliminate_regs_in_insn): Likewise.
4562 (emit_input_reload_insns): Add cast to enum type.
4563 (delete_output_reload): Change 0 to VOIDmode in function call.
4564 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
4565 to enum type in function call.
4566 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
4567 (SET_PREDICT_EXPR_OUTCOME): Define.
47f402d1 4568 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
bbbbb16a
ILT
4569 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
4570 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
4571 (dump_function): Likewise.
4572 * tree-dump.h: Update declarations.
4573 * tree-pass.h: Update declarations.
4574 * varasm.c (assemble_integer): Change mclass to enum mode_class.
4575 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
4576 enum type.
4577 (arm_rtx_costs_1): Correct parenthesization.
4578 (arm_rtx_costs): Add casts to enum type.
4579 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
4580 (vfp_emit_fstmd): Use add_rg_note.
4581 (emit_multi_reg_push, emit_sfm): Likewise.
4582 (thumb_set_frame_pointer): Likewise.
4583 (arm_expand_prologue): Likewise.
4584 (arm_regno_class): Change return type to enum reg_class.
4585 (thumb1_expand_prologue): Use add_reg_note.
4586 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
4587 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
4588 in function call.
4589 * config/arm/gentune.sh: Add cast to enum type.
4590 * config/arm/arm-tune.md: Rebuild.
4591 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
4592 (ix86_split_fp_branch, predict_jump): Likewise.
4593 (ix86_expand_multi_arg_builtin): Change sub_code from enum
4594 insn_code to enum rtx_code.
4595 (ix86_builtin_vectorized_function): Add cast to enum type.
4596 * config/i386/i386.md (truncdfsf2): Change slot to enum
4597 ix86_stack_slot.
4598 (truncxf<mode>2, isinf<mode>2): Likewise.
4599 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
4600 enum type.
4601 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
4602 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
4603 (insert_bundle_state): Change 1 to INSERT in function call.
4604 (ia64_add_bundle_selector_before): Likewise.
4605 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
4606 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
4607 (restore_stack_nonlocal): Likewise.
4608 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
4609 function call.
4610 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
4611 function call.
4612 (mips_rtx_costs): Likewise.
4613 (mips_override_options): Add casts to enum type.
4614 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
4615 in function call.
4616 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
4617 (store_reg, set_reg_plus_d): Likewise.
4618 (hppa_expand_prologue, hppa_profile_hook): Likewise.
4619 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
4620 cast to enum type.
4621 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
4622 function call.
4623 (emit_unlikely_jump): Use add_reg_note.
4624 (rs6000_emit_allocate_stack): Likewise.
4625 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
4626 (output_toc): Change 1 to INSERT in function call.
4627 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
4628 (rs6000_initialize_trampoline): Likewise.
4629 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
4630 function call.
4631 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
4632 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
4633 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
4634 (save_gprs): Use add_reg_note.
4635 (s390_emit_prologue): Likewise.
47f402d1 4636 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
4637 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
4638 (sparc_fold_builtin): Add cast to enum type.
4639 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
4640 enum insn_code.
4641 (spu_expand_prologue): Use add_reg_note.
47f402d1 4642 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
4643
46442009-04-20 Ian Lance Taylor <iant@google.com>
4645
4646 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
4647 (c_parser_postfix_expression_after_primary): Get VEC for list of
4648 arguments. Get original types of arguments. Call
4649 build_function_call_vec.
4650 (cached_expr_list_1, cached_expr_list_2): New static variables.
4651 (c_parser_expr_list): Change return type to VEC *. Add
4652 p_orig_types parameter. Change all callers.
4653 (c_parser_release_expr): New static function.
4654 (c_parser_vec_to_tree_list): New static function.
4655 * c-typeck.c (build_function_call): Rewrite to build a VEC and
4656 call build_function_call_vec.
4657 (build_function_call_vec): New function, based on old
4658 build_function_call.
4659 (convert_arguments): Remove nargs and argarray parameters. Change
4660 values to a VEC. Add origtypes parameter.
47f402d1 4661 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
bbbbb16a
ILT
4662 (convert_for_assignment): Add origtype parameter. Change all
4663 callers. If warn_cxx_compat, check for conversion to an enum
4664 type when calling a function.
4665 (store_init_value): Add origtype parameter. Change all callers.
4666 (digest_init): Likewise.
4667 (struct init_node): Add origtype field.
4668 (add_pending_init): Add origtype parameter. Change all callers.
4669 (output_init_element): Likewise.
4670 (output_pending_init_elements): Pass origtype from init_node to
4671 output_init_element.
f28a61ab 4672 (process_init_element): Pass origtype from c_expr to
bbbbb16a
ILT
4673 output_init_element.
4674 (c_finish_return): Add origtype parameter. Change all callers.
4675 * c-common.c (sync_resolve_size): Change params to VEC *. Change
4676 caller.
4677 (sync_resolve_params): Likewise.
47f402d1 4678 (sync_resolve_return): Change params to first_param. Change caller.
bbbbb16a 4679 (resolve_overloaded_builtins): Change params to VEC *. Change
47f402d1 4680 callers. Save first parameter around call to build_function_call_vec.
bbbbb16a
ILT
4681 * c-decl.c (finish_decl): Add origtype parameter. Change all
4682 callers. Call build_function_call_vec rather than
4683 build_function_call for cleanup.
4684 * c-tree.h: Update declarations.
4685 * c-common.h: Update declarations.
4686 * stub-objc.c (objc_rewrite_function_call): Change parameter from
4687 params to first_param.
4688 * target.h (struct gcc_target): Change resolve_overloaded_builtin
4689 params parameter from tree to void *.
4690 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4691 Change arglist parameter to have type void *, and to be a pointer
4692 to a VEC.
4693 * config/rs6000/rs6000-protos.h
4694 (altivec_resolve_overloaded_builtin): Update declaration.
4695 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
4696 fnargs parameter to have type void *, and to be a pointer to a
4697 VEC. Call build_function_call_vec instead of
4698 build_function_call.
47f402d1 4699 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
bbbbb16a 4700
6ff078d4 47012009-04-20 Joey Ye <joey.ye@intel.com>
60839f5d 4702 Xuepeng Guo <xuepeng.guo@intel.com>
6ff078d4
JY
4703 H.J. Lu <hongjiu.lu@intel.com>
4704
4705 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
4706
4707 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
4708 (IX86_LEA_PRIORITY): Likewise.
4709 (distance_non_agu_define): New function.
4710 (distance_agu_use): Likewise.
4711 (ix86_lea_for_add_ok): Likewise.
4712 (ix86_dep_by_shift_count): Likewise.
4713
4714 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
4715 should split for LEA.
4716
4717 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
4718 function.
4719 (ix86_dep_by_shift_count): Likewise.
4720
87a5b4cc
RG
47212009-04-20 Richard Guenther <rguenther@suse.de>
4722
4723 * expr.c (handled_component_p): Move ...
4724 * tree.h (handled_component_p): ... here.
4725 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
4726 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
4727 and REALPART_EXPR to be in one group.
4728
438c239d
RG
47292009-04-20 Richard Guenther <rguenther@suse.de>
4730
4731 * basic-block.h (get_all_dominated_blocks): Declare.
4732 * dominance.c (get_all_dominated_blocks): New function.
4733 * tree-cfg.c (get_all_dominated_blocks): Remove.
4734 (remove_edge_and_dominated_blocks): Adjust.
4735 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
4736 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
4737 instead of recursing.
4738
fed5ae11
DK
47392009-04-20 Doug Kwan <dougkwan@google.com>
4740
4741 * cgraph.h (cgraph_node_ptr): New type for vector functions.
4742 (struct cgraph_node_set_def): New type.
4743 (cgraph_node_set) New type. Also declare vector functions.
4744 (struct cgraph_node_set_element_def): New type.
4745 (cgraph_node_set_element): Ditto.
4746 (cgraph_node_set_iterator): New iterator type.
4747 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
4748 cgraph_node_set_remove, dump_cgraph_node_set,
4749 debug_cgraph_node_set): New prototypes.
4750 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
4751 cgraph_node_set_size): New inlines.
4752 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
4753 including cgraph.h.
4754 (struct ipa_opt_pass): Add struct cgraph_node_set_def
4755 argument to function 'write_summary'.
4756 * ipa.c: Include ggc.h.
4757 (hash_cgraph_node_set_element,
4758 eq_cgraph_node_set_element, cgraph_node_set_new,
4759 cgraph_node_set_add, cgraph_node_set_remove,
4760 cgraph_node_set_find, dump_cgraph_node_set,
4761 debug_cgraph_node_set): New functions.
4762 * Makefile.in (ipa.o): Add dependency on GGC_H.
4763
c4551b28
IR
47642009-04-20 Ira Rosen <irar@il.ibm.com>
4765
4766 PR tree-optimization/39675
2ba9daa7 4767 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
47f402d1
UB
4768 check of the return code of vect_schedule_slp. Check that
4769 stmt_vec_info still exists for the statement, before checking its
4770 vectorization type.
c4551b28 4771
21a495fb
MM
47722009-04-20 Michael Matz <matz@suse.de>
4773
4774 * Makefile.in (generated_files): Take out $(simple_generated_c).
4775
8e208874
DK
47762009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
4777
4778 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
4779 (UINTPTR_TYPE): Likewise.
4780
a45e580b
JM
47812009-04-19 Joseph Myers <joseph@codesourcery.com>
4782
4783 PR c/37481
4784 * c-typeck.c (digest_init): Check for initializing an array with a
4785 string literal.
4786
20845d35
JM
47872009-04-19 Joseph Myers <joseph@codesourcery.com>
4788
4789 PR c/19771
4790 * c-semantics.c (pop_stmt_list): Propagate
4791 STATEMENT_LIST_HAS_LABEL to parent statement list.
4792
28143fdd
AN
47932009-04-19 Adam Nemet <anemet@caviumnetworks.com>
4794
4795 * config/mips/mips.h (mips_tune_attr): New macro.
4796 * config/mips/mips.md (cpu): Use it.
4797
da377db9
JM
47982009-04-19 Joseph Myers <joseph@codesourcery.com>
4799
4800 PR c/38243
4801 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
4802 declaring a tag.
4803
3baf459d
DN
48042009-04-19 Diego Novillo <dnovillo@google.com>
4805
4806 * toplev.c (compile_file): Move call to coverage_finish ...
4807 * cgraphunit.c (ipa_passes): ... here.
4808 Call cgraph_process_new_functions.
4809 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
4810 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
4811
b6fa5b01
JH
48122009-04-19 Jan Hubicka <jh@suse.cz>
4813
47f402d1
UB
4814 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
4815 cfun.
b6fa5b01
JH
4816 (dump_cgraph_node): Dump can throw external flag.
4817 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
4818
ca409efd
MLI
48192009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
4820
4821 PR c/32061
4822 PR c++/36954
4823 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
4824 * common.opt (Wlogical-op): Move from here...
4825 * c.opt (Wlogical-op): ... to here.
4826 * c-typeck.c (parser_build_binary_op): Update call to
4827 warn_logical_operator.
4828 * c-opts.c (c_common_post_options): Enable warn_logical_op with
4829 extra_warnings.
4830 * c-common.c (warn_logical_op): Update.
4831 * c-common.h (warn_logical_op): Update declaration.
4832
9db4cdd3
EB
48332009-04-19 Eric Botcazou <ebotcazou@adacore.com>
4834
4835 * tree.c (protected_set_expr_location): Fix formatting.
4836
f37acdf9
JM
48372009-04-18 Joseph Myers <joseph@codesourcery.com>
4838
4839 PR c/27676
4840 * c-typeck.c (readonly_warning): new.
4841 (build_unary_op, build_modify_expr): Use readonly_warning for
4842 storing into something readonly but not const-qualified.
4843
2b4b7036
JM
48442009-04-18 Joseph Myers <joseph@codesourcery.com>
4845
4846 PR c/22367
4847 * c-typeck.c (build_unary_op): Check for taking address of
4848 expression of type void.
4849
3ce62965
JM
48502009-04-18 Joseph Myers <joseph@codesourcery.com>
4851
4852 PR c/35210
4853 * c-typeck.c (build_function_call): Check for calling a function
4854 with qualified void return types. Call require_complete_type when
4855 generating a trap.
4856
2505c5ed
JH
48572009-04-18 Jan Hubicka <jh@suse.cz>
4858
4859 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
4860 Set nothrow flag.
4861 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
4862 can_throw_external flag.
4863 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
4864 * ipa-pure-const.c (ignore_edge): New function.
4865 (propagate): Compute order for NOTHROW computation; set NOTHROWs
4866 only over can_throw_external edges.
4867 (local_pure_const): Add nothrow flag.
4868 * ipa-utils.c (searchc): Add ignore_edge callback.
4869 (ipa_utils_reduced_inorder): Add ignore_edge callback.
4870 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
4871 (set_nothrow_function_flags): Update cgraph.
4872 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
4873
2586ba4b
RG
48742009-04-18 Richard Guenther <rguenther@suse.de>
4875
4876 PR middle-end/39804
4877 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
4878 (fold_stmt): ... this and ...
4879 (fold_stmt_inplace): ... this.
4880 (fold_stmt_1): Fold references in calls and asms.
4881 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
4882
1eefab17
KH
48832009-04-18 Kazu Hirata <kazu@codesourcery.com>
4884
4885 * tree-vrp.c (ssa_name_nonzero_p): Remove.
4886 * tree.h: Remove the prototype for ssa_name_nonzero_p.
4887
aa424b01
KH
48882009-04-18 Kazu Hirata <kazu@codesourcery.com>
4889
4890 * tree.c (function_args_count): Remove.
4891 * tree.h: Remove the prototype for function_args_count.
4892
613a896b
KH
48932009-04-18 Kazu Hirata <kazu@codesourcery.com>
4894
4895 * tree-iterator.c (expr_only): Remove.
4896 * tree.h: Remove the prototype for expr_only.
4897
579e694c
KH
48982009-04-18 Kazu Hirata <kazu@codesourcery.com>
4899
4900 * reginfo.c (cannot_change_mode_set_regs): Remove.
4901 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
4902
ee7e3ad3
AS
49032009-04-08 Anatoly Sokolov <aesok@post.ru>
4904
4905 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
4906 whether operands 0 and 1 overlaps.
4907
92ef7fb1
MLI
49082009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
4909
4910 PR middle-end/36902
4911 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
4912 pointer. Use warning_at instead of warning.
4913 (search_for_addr_array): Likewise.
4914 (check_array_bounds): Likewise.
4915 (check_all_array_refs): Check that the incoming edge is not in the
4916 list of edges to be removed.
4917 (check_all_array_refs): Avoid the temporal pointer.
4918 (vrp_visit_cond_stmt): Fix typo.
4919 (simplify_switch_using_ranges): Handle the case where the switch
4920 index is an integer constant.
4921
0e097268
AN
49222009-04-18 Adam Nemet <anemet@caviumnetworks.com>
4923
4924 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
4925
c782f1dd
KH
49262009-04-18 Kazu Hirata <kazu@codesourcery.com>
4927
4928 * doc/extend.texi, doc/invoke.texi: Fix typos.
4929
668fb0e8
CC
49302009-04-17 Cary Coutant <ccoutant@google.com>
4931
4932 * tree-flow-inline.h (get_lineno): Fix inverted test.
4933
4d4014c1
DN
49342009-04-17 Diego Novillo <dnovillo@google.com>
4935
4936 * tree-ssa-pre.c (create_expression_by_pieces): Remove
4937 assertion for AVAIL_OUT.
4938
2984e1b6
MF
49392009-04-17 Mike Frysinger <vapier@gentoo.org>
4940
4941 PR target/38627
4942 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
4943 * config/sh/linux-atomic.asm: Likewise.
4944
9994a182
DN
49452009-04-17 Diego Novillo <dnovillo@google.com>
4946
4947 * except.c (debug_eh_tree): New.
4948 (struct eh_region, struct eh_status): Move ...
4949 * except.h: ... here.
4950 (add_type_for_runtime): Declare extern.
4951 (lookup_type_for_runtime): Likewise.
4952 (debug_eh_tree): Declare.
4953 * Makefile.in (GTFILES): List except.h before except.c
4954
07485407
DN
49552009-04-17 Diego Novillo <dnovillo@google.com>
4956
47f402d1 4957 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
07485407
DN
4958 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
4959 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
4960 (find_vars_r): ... here.
4961 * tree-flow.h (find_referenced_vars_in): Declare.
4962 * tree-ssa-pre.c (create_expression_by_pieces): Assert
4963 that AVAIL_OUT exists for BLOCK.
4964 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
4965 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
4966 (tree-parloops.o): Likewise.
4967
4e53d196
SB
49682009-04-17 Simon Baldwin <simonb@google.com>
4969
4970 * toplev.c (default_tree_printer): Add handling for %E format.
4971
413d3aa8
DN
49722009-04-17 Diego Novillo <dnovillo@google.com>
4973
47f402d1
UB
4974 * tree-pretty-print.c (dump_generic_node): Add break after
4975 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
4976 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
4977 FUNCTION_TYPE together. Call print_struct_decl when printing
4978 structures and TDF_SLIM is not given.
413d3aa8
DN
4979 (print_struct_decl): Fix logic for detecting recursion.
4980
5a691e98
RAE
49812009-04-17 Rafael Avila de Espindola <espindola@google.com>
4982
4983 PR 31567
4984 * gcc.c (create_at_file): New.
4985 (compile_input_file_p): New.
4986 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
4987 * main.c (main): Update call to toplev_main.
4988 * toplev.c (toplev_main): Change signature. Call expandargv.
4989 * toplev.h (toplev_main): Change signature.
4990
9eacf7a6
EB
49912009-04-17 Eric Botcazou <ebotcazou@adacore.com>
4992
4993 * dwarf2out.c (field_byte_offset): Use the type size as the field size
4994 if the latter is not constant.
4995
58298177
DE
49962009-04-17 David Edelsohn <edelsohn@gnu.org>
4997
4998 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
4999
5b4c43d7
EB
50002009-04-17 Eric Botcazou <ebotcazou@adacore.com>
5001
5002 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
5003 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
5004
b51605c4
RG
50052009-04-17 Richard Guenther <rguenther@suse.de>
5006
5007 * tree-ssa-structalias.c (get_constraint_for_component_ref):
5008 Handle component references view-converting an invariant address.
5009
9e3be889
AN
50102009-04-17 Adam Nemet <anemet@caviumnetworks.com>
5011
5012 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
5013 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
5014 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
5015 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
5016 Use @deftypevr rather than @deftypevar.
5017
7c3e9dc3
RG
50182009-04-17 Richard Guenther <rguenther@suse.de>
5019
47f402d1 5020 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
7c3e9dc3
RG
5021 (get_prop_source_stmt): Likewise.
5022 (can_propagate_from): Likewise.
5023
aca600aa
AS
50242009-04-17 Andrew Stubbs <ams@codesourcery.com>
5025
5026 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
5027 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
5028 (--with-multilib-list): Add default value.
5029 * configure: Regenerate.
5030 * Makefile.in (TM_ENDIAN_CONFIG): Define.
5031 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
5032 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
5033 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
5034 Don't add default cpu to multilib list unnecessarily, but do enable
5035 the relevant compiler option..
5036 Add support for --with-multilib-list=<blank> and
5037 --with-multilib-list=!<somelib> to supress unwanted multilibs.
5038 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
5039 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
5040 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
5041 TM_MULTILIB_CONFIG.
5042 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
5043 (MULTILIB_OSDIRNAMES): New variable.
5044 * config/sh/t-1e: Delete file.
5045 * config/sh/t-mlib-sh1: Delete file.
5046 * config/sh/t-mlib-sh2: Delete file.
5047 * config/sh/t-mlib-sh2a: Delete file.
5048 * config/sh/t-mlib-sh2a-nofpu: Delete file.
5049 * config/sh/t-mlib-sh2a-single: Delete file.
5050 * config/sh/t-mlib-sh2a-single-only: Delete file.
5051 * config/sh/t-mlib-sh2e: Delete file.
5052 * config/sh/t-mlib-sh3e: Delete file.
5053 * config/sh/t-mlib-sh4: Delete file.
5054 * config/sh/t-mlib-sh4-nofpu: Delete file.
5055 * config/sh/t-mlib-sh4-single: Delete file.
5056 * config/sh/t-mlib-sh4-single-only: Delete file.
5057 * config/sh/t-mlib-sh4a: Delete file.
5058 * config/sh/t-mlib-sh4a-nofpu: Delete file.
5059 * config/sh/t-mlib-sh4a-single: Delete file.
5060 * config/sh/t-mlib-sh4a-single-only: Delete file.
5061 * config/sh/t-mlib-sh4al: Delete file.
5062 * config/sh/t-mlib-sh5-32media: Delete file.
5063 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
5064 * config/sh/t-mlib-sh5-64media: Delete file.
5065 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
5066 * config/sh/t-mlib-sh5-compact: Delete file.
5067 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
5068 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
5069 * doc/install.texi (Options specification): Add
5070 --with-multilib-list and --with-endian.
5071
cf8aba7f
RAE
50722009-04-17 Rafael Avila de Espindola <espindola@google.com>
5073
5074 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
5075 REVISION_c.
5076 (OBJS-common): Add plugin-version.o.
5077 (plugin-version.o): New.
5078 * gcc-plugin.h (plugin_gcc_version): New.
5079 (plugin_default_version_check): New.
5080 (plugin_init_func, plugin_init): Add version argument.
5081 * plugin-version.c: New.
5082 * plugin.c (str_plugin_gcc_version_name): New.
5083 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
5084 pass it to the init function.
5085 (plugin_default_version_check): New.
5086
61e20b90
RG
50872009-04-17 Richard Guenther <rguenther@suse.de>
5088
5089 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
5090 for decl-vs-decl disambiguation.
5091
90c6fd8a
AK
50922009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
5093
5094 * config/s390/s390.h (s390_tune_attr): New macro definition.
5095 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
5096
9fe9fe04
RG
50972009-04-17 Richard Guenther <rguenther@suse.de>
5098
5099 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
5100 (fold_stmt_r): Likewise.
5101 (maybe_fold_reference): New function.
5102 (fold_gimple_assign): Handle cases fold_stmt_r did.
5103 (fold_stmt): Do not use fold_stmt_r.
5104 (fold_stmt_inplace): Likewise.
5105
7e673273
RG
51062009-04-17 Richard Guenther <rguenther@suse.de>
5107
5108 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
5109 (record_equivalences_from_stmt): Remove useless checks and
5110 simplifications.
5111 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
5112 the type is already suitable.
5113
fabf2749
PB
51142009-04-17 Paolo Bonzini <bonzini@gnu.org>
5115
5116 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
5117
68f7b061
UB
51182009-04-17 Uros Bizjak <ubizjak@gmail.com>
5119
5120 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
5121 (CMPtype): Define as __gcc_CMPtype.
5122
532bfb0a
AJ
51232009-04-17 Aurelien Jarno <aurelien@aurel32.net>
5124
5125 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
5126 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
5127
e3ac77ff
RG
51282009-04-17 Richard Guenther <rguenther@suse.de>
5129
5130 PR tree-optimization/39746
5131 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
5132 special-casing for builtins and static variable use/def.
5133 (call_may_clobber_ref_p_1): Likewise.
5134
7072a650
ILT
51352009-04-16 Ian Lance Taylor <iant@google.com>
5136
5137 * df.h: Include "timevar.h".
5138 (struct df_problem): Change tv_id field to timevar_id_t.
5139 * tree-pass.h: Include "timevar.h".
5140 (struct opt_pass): Change tv_id field to timevar_id_t.
5141 * timevar.h (timevar_id_t): Define TV_NONE.
5142 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
5143 TV_NONE rather than tv_id != 0.
5144 (execute_one_pass): Likewise.
5145 * Makefile.in (DF_H): Add $(TIMEVAR_H).
5146 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
5147 dependencies to $(TREE_PASS_H).
5148 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
5149 to TV_NONE.
5150 (pass_branch_target_load_optimize2): Likewise.
5151 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
5152 (pass_outof_cfg_layout_mode): Likewise.
5153 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
5154 (pass_rebuild_cgraph_edges): Likewise.
5155 (pass_remove_cgraph_callee_edges): Likewise.
5156 * df-core.c (pass_df_initialize_opt): Likewise.
5157 (pass_df_initialize_no_opt): Likewise.
5158 (pass_df_finish): Likewise.
5159 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
5160 * except.c (pass_set_nothrow_function_flags): Likewise.
5161 (pass_convert_to_eh_region_ranges): Likewise.
5162 * final.c (pass_compute_alignments): Likewise.
5163 * function.c (pass_instantiate_virtual_regs): Likewise.
5164 (pass_init_function): Likewise.
5165 (pass_leaf_regs): Likewise.
5166 (pass_match_asm_constraints): Likewise.
5167 * gimple-low.c (pass_lower_cf): Likewise.
5168 (pass_mark_used_blocks): Likewise.
5169 * init-regs.c (pass_initialize_regs): Likewise.
5170 * integrate.c (pass_initial_value_sets): Likewise.
5171 * ira.c (pass_ira): Likewise.
5172 * jump.c (pass_cleanup_barriers): Likewise.
5173 * omp-low.c (pass_expand_omp): Likewise.
5174 (pass_lower_omp): Likewise.
5175 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
5176 * recog.c (pass_split_all_insns): Likewise.
5177 (pass_split_after_reload): Likewise.
5178 (pass_split_before_regstack): Likewise.
5179 (pass_split_before_sched2): Likewise.
5180 (pass_split_for_shorten_branches): Likewise.
5181 * reginfo.c (pass_reginfo_init): Likewise.
5182 (pass_subregs_of_mode_init): Likewise.
5183 (pass_subregs_of_mode_finish): Likewise.
5184 * passes.c (pass_postreload): Likewise.
5185 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
5186 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
5187 (pass_warn_function_return): Likewise.
5188 (pass_warn_function_noreturn): Likewise.
5189 * tree-complex.c (pass_lower_complex): Likewise.
5190 (pass_lower_complex_O0): Likewise.
5191 * tree-if-conv.c (pass_if_conversion): Likewise.
5192 * tree-into-ssa.c (pass_build_ssa): Likewise.
5193 * tree-mudflap.c (pass_mudflap_1): Likewise.
5194 (pass_mudflap_2): Likewise.
5195 * tree-nomudflap.c (pass_mudflap_1): Likewise.
5196 (pass_mudflap_2): Likewise.
5197 * tree-nrv.c (pass_return_slot): Likewise.
5198 * tree-object-size.c (pass_object_sizes): Likewise.
5199 * tree-optimize.c (pass_all_optimizations): Likewise.
5200 (pass_early_local_passes): Likewise.
5201 (pass_all_early_optimizations): Likewise.
5202 (pass_cleanup_cfg): Likewise.
5203 (pass_cleanup_cfg_post_optimizing): Likewise.
5204 (pass_free_datastructures): Likewise.
5205 (pass_free_cfg_annotations): Likewise.
5206 (pass_fixup_cfg): Likewise.
5207 (pass_init_datastructures): Likewise.
5208 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
5209 (pass_late_warn_uninitialized): Likewise.
5210 (pass_update_address_taken): Likewise.
5211 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
5212 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
5213 (pass_cse_sincos): Likewise.
5214 (pass_convert_to_rsqrt): Likewise.
5215 * tree-ssa-structalias.c (pass_build_alias): Likewise.
5216 * tree-stdarg.c (pass_stdarg): Likewise.
5217 * tree-tailcall.c (pass_tail_recursion): Likewise.
5218 (pass_tail_calls): Likewise.
5219 * tree-vect-generic.c (pass_lower_vector): Likewise.
5220 (pass_lower_vector_ssa): Likewise.
5221 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
5222
0051ef59
JM
52232009-04-16 Joseph Myers <joseph@codesourcery.com>
5224
5225 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
5226 XLR entry.
5227 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
5228 Handle -march=xlr.
5229 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
5230 logical and signext.
5231
b3f8558a
KK
52322009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
5233
5234 PR target/39767
5235 * config/sh/predicates.md (arith_operand): Check if the operand
5236 of TRUNCATE is a REG.
5237
f57597d9
KH
52382009-04-16 Kazu Hirata <kazu@codesourcery.com>
5239
5240 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
5241 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
5242
b172d063
KH
52432009-04-16 Kazu Hirata <kazu@codesourcery.com>
5244
5245 * tree-iterator.c (tsi_split_statement_list_after,
5246 tsi_split_statement_list_before): Remove.
5247 * tree-iterator.h: Remove the prototypes for
532bfb0a 5248 tsi_split_statement_list_after and tsi_split_statement_list_before.
b172d063 5249
78fe4f1f
KH
52502009-04-16 Kazu Hirata <kazu@codesourcery.com>
5251
5252 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
5253 * tree-ssa-propagate.h: Remove the prototype for
5254 stmt_makes_single_load.
5255
43dd3201
KH
52562009-04-16 Kazu Hirata <kazu@codesourcery.com>
5257
5258 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
5259 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
5260
4252a4aa
KH
52612009-04-16 Kazu Hirata <kazu@codesourcery.com>
5262
5263 * tree-iterator.c (EXPR_LAST_BODY): Remove.
5264
bfb69968
KH
52652009-04-16 Kazu Hirata <kazu@codesourcery.com>
5266
5267 * except.c (eh_region_outer_p): Remove.
5268 * except.h: Remove the prototype for eh_region_outer_p.
5269
c7db7fa5
KH
52702009-04-16 Kazu Hirata <kazu@codesourcery.com>
5271
5272 * function.c (current_function_assembler_name): Remove.
5273 * function.h: Remove the prototype for
5274 current_function_assembler_name.
5275
efc0b2bd
ILT
52762009-04-16 Ian Lance Taylor <iant@google.com>
5277
532bfb0a 5278 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
efc0b2bd
ILT
5279 (add_reg_note): Call alloc_reg_note.
5280 * rtl.h (alloc_reg_note): Declare.
5281 * combine.c (try_combine): Use alloc_reg_note.
5282 (recog_for_combine, move_deaths): Likewise.
5283 (distribute_notes): Use alloc_reg_note and add_reg_note.
5284 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
5285 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
5286 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
5287
6080348f
VM
52882009-04-16 Vladimir Makarov <vmakarov@redhat.com>
5289
5290 PR rtl-optimization/39762
5291 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
5292 ira_may_move_out_cost): Add comments about way of their usage.
532bfb0a 5293 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
2ba9daa7 5294
6080348f
VM
5295 * ira-conflicts.c (process_regs_for_copy): Use function
5296 ira_get_register_move_cost instead of global
5297 ira_register_move_cost.
5298
5299 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
5300 color_pass, move_spill_restore, update_curr_costs): Ditto.
5301
5302 * ira-lives.c (process_single_reg_class_operands): Ditto.
5303
5304 * ira-emit.c (emit_move_list): Ditto.
5305
5306 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
5307 (record_reg_classes): Ditto. Use functions
5308 ira_get_register_move_cost and ira_get_may_move_cost instead of
5309 global vars ira_register_move_cost, ira_may_move_out_cost and
5310 ira_may_move_in_cost.
5311 (record_address_regs): Don't call ira_init_register_move_cost.
5312 Use function ira_get_may_move_cost instead of global
5313 ira_may_move_in_cost.
5314 (process_bb_node_for_hard_reg_moves): Use function
532bfb0a 5315 ira_get_register_move_cost instead of global ira_register_move_cost.
6080348f 5316 (ira_costs): Don't call ira_init_register_move_cost.
2ba9daa7 5317
646bea10
RG
53182009-04-16 Richard Guenther <rguenther@suse.de>
5319
5320 * tree-cfg.c (verify_gimple_assign_binary):
5321 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
5322 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
5323 (create_general_new_stmt): Note that this function is broken.
5324
02e819ff
RAE
53252009-04-16 Rafael Avila de Espindola <espindola@google.com>
5326
5327 * common.opt (fhelp): Add Var(help_flag).
5328 * gcc-plugin.h (plugin_info): Add help.
5329 * plugin.c (plugin_name_args): Add help.
5330 (register_plugin_info): Set plugin->help.
5331 (print_help_one_plugin): New.
5332 (print_plugins_help): New.
5333 * plugin.h (print_plugins_help): New.
5334 * toplev.c (toplev_main): Call print_plugins_help if needed.
5335
ccacdf06
RG
53362009-04-16 Richard Guenther <rguenther@suse.de>
5337
5338 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
5339 (gimple_ior_addresses_taken_1): New function.
5340 (gimple_ior_addresses_taken): Likewise.
5341 * gimple.h (struct gimple_statement_with_ops_base): Remove
5342 addresses_taken member.
5343 (gimple_ior_addresses_taken): Declare.
5344 (gimple_addresses_taken, gimple_addresses_taken_ptr,
5345 gimple_set_addresses_taken): Remove.
5346 * ipa-reference.c (mark_address): New function.
5347 (scan_stmt_for_static_refs): Use it for marking addresses taken.
5348 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
5349 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
5350 (gimple_add_to_addresses_taken): Remove.
5351 (get_tmr_operands): Call mark_address_taken.
5352 (get_asm_expr_operands): Likewise.
5353 (get_expr_operands): Likewise.
5354 (build_ssa_operands): Do not clear the addresses_taken bitmap.
5355 (free_stmt_operands): Do not free it.
5356 * tree-ssa.c (delete_tree_ssa): Likewise.
5357 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
5358
346ef3fa
RG
53592009-04-16 Richard Guenther <rguenther@suse.de>
5360
5361 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
5362 (walk_stmt_load_store_ops): Likewise.
5363 * gimple.c (get_base_loadstore): New function.
5364 (walk_stmt_load_store_addr_ops): Likewise.
5365 (walk_stmt_load_store_ops): Likewise.
5366 * ipa-pure-const.c (check_op): Simplify.
5367 (check_load, check_store): New functions.
5368 (check_stmt): Use walk_stmt_load_store_ops.
5369 * ipa-reference.c (mark_load): Adjust signature.
5370 (mark_store): Likewise.
5371 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
5372
44e9f006
RAE
53732009-04-16 Rafael Avila de Espindola <espindola@google.com>
5374
5375 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
5376 (plugin_info): New.
5377 * opts.c (common_handle_option): Don't call print_version.
5378 * plugin.c (plugin_name_args): Add version.
5379 (register_plugin_info): New.
5380 (register_callback): Handle PLUGIN_INFO.
5381 (try_init_one_plugin): New.
5382 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
5383 if failed to init.
5384 (finalize_one_plugin): New.
5385 (finalize_plugins): New.
5386 (print_one_plugin): New.
5387 (print_plugins_versions): New.
5388 * plugin.h (print_plugins_versions): New.
5389 (finalize_plugins): New.
5390 * toplev.c (compile_file): Don't call initialize_plugins.
5391 (print_version): Call print_plugins_versions.
5392 (toplev_main): Call initialize_plugins. Print version if needed.
5393 Call finalize_plugins.
5394
41fd0f9b
RAE
53952009-04-16 Rafael Avila de Espindola <espindola@google.com>
5396
5397 * common.opt (fversion): New.
5398 * gcc.c (print_version): New.
5399 (process_command): Don't print the version. Just set print_version.
5400 (main): Print version. Call subprocesses if print_version and
5401 verbose_flag are set.
5402 * opts.c (common_handle_option): Handle OPT_fversion.
5403
550918ca 54042009-04-16 Richard Guenther <rguenther@suse.de>
532bfb0a 5405 Ira Rosen <irar@il.ibm.com>
550918ca
RG
5406
5407 PR tree-optimization/39698
5408 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
5409 type of the reduction variable. Only generate the def if
5410 it is needed.
5411
5412 * omp-low.c (expand_omp_for_generic): When converting to a pointer
5413 make sure to first convert to an integer of the same precision.
5414 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
5415 the type of the evolution correctly in computing the new
5416 induction variable base.
5417
54634841
RG
54182009-04-16 Richard Guenther <rguenther@suse.de>
5419
5420 PR middle-end/39625
5421 * tree-cfg.c (make_blocks): Split statements with to-be
5422 abnormal SSA names on the lhs.
5423
b6fc2cdb
PB
54242009-04-16 Paolo Bonzini <bonzini@gnu.org>
5425
5426 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
5427 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
5428 * c-typeck.c (really_start_incremental_init): Likewise.
5429 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
5430 (TARGET_INITIALIZER): Remove it.
5431 * target.h (struct target): Remove vector_opaque_p.
5432 * tree.c (build_opaque_vector_type): New.
5433 * tree.h (TYPE_VECTOR_OPAQUE): New.
5434 (build_opaque_vector_type): Declare.
5435 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
5436 * config/rs6000/rs6000.c (build_opaque_vector_type,
5437 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
5438 (rs6000_init_builtins): Use build_opaque_vector_type for
5439 opaque_V4SI_type_node.
5440
a417cdd9
CM
54412009-04-15 Catherine Moore <clm@codesourcery.com>
5442
532bfb0a
AJ
5443 * debug.h (set_name): Declare.
5444 * dwarf2out.c (dwarf2out_set_name): Declare.
5445 (dwarf2_debug_hooks): Add set_name.
5446 (find_AT_string): New.
5447 (add_AT_string): Call find_AT_string.
5448 (dwarf2out_set_name): New.
5449 * cp/decl.c (grokdeclarator): Call set_name.
5450 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
5451 * debug.c (do_nothing_debug_hooks): Likewise.
5452 * dbxout.c (dbx_debug_hooks): Likewise.
5453 * sdbout.c (sdb_debug_hooks): Likewise.
a417cdd9 5454
60839f5d 54552009-04-15 Michael Eager <eager@eagercon.com>
2c5cac98 5456
532bfb0a
AJ
5457 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
5458 reg for single-precision FPU.
5459 * config/rs6000/rs6000.md (movsi_internal1): Only for
5460 !TARGET_SINGLE_FPU.
5461 (movsi_internal1_single): New. Add pattern to move SI values to/from
2c5cac98
ME
5462 single-precision FP regs.
5463
ada39f0b
RG
54642009-04-15 Richard Guenther <rguenther@suse.de>
5465
5466 * omp-low.c (lower_rec_input_clauses): Build correct address
5467 expressions.
5468 (expand_omp_for_generic): Fix multiplication type.
532bfb0a 5469 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
ada39f0b
RG
5470 (generate_memset_zero): Fix types.
5471 * tree-profile.c (prepare_instrumented_value): Correctly
5472 widen a pointer.
5473
6866c6e8
ILT
54742009-04-15 Ian Lance Taylor <iant@google.com>
5475
5476 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
5477 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
5478 for -Wall and for -Wc++-compat.
5479 (c_common_post_options): For C++, set warn_enum_compare if not
5480 already set.
5481 * c-tree.h (struct c_expr): Add field original_type.
5482 (build_external_ref): Update declaration.
5483 * c-parser.c (c_parser_braced_init): Set original_type.
5484 (c_parser_initelt): Likewise.
5485 (c_parser_expr_no_commas): Likewise.
5486 (c_parser_conditional_expression): Likewise.
5487 (c_parser_cast_expression): Likewise.
5488 (c_parser_unary_expression): Likewise. Pull setting of
5489 original_code to top of function.
5490 (c_parser_sizeof_expression): Set original_type.
5491 (c_parser_alignof_expression): Likewise.
5492 (c_parser_postfix_expression): Likewise. Pull setting of
5493 original_code to top of function.
532bfb0a 5494 (c_parser_postfix_expression_after_paren_type): Set original_type.
6866c6e8
ILT
5495 (c_parser_postfix_expression_after_primary): Likewise.
5496 (c_parser_expression): Likewise.
5497 * c-typeck.c (build_external_ref): Add type parameter. Change all
5498 callers.
5499 (c_expr_sizeof_expr): Set original_type field.
5500 (parser_build_unary_op): Likewise.
5501 (parser_build_binary_op): Likewise. Optionally warn about
5502 comparisons of enums of different types.
5503 (digest_init): Set original_type field.
5504 (really_start_incremental_init): Likewise.
5505 (push_init_level, pop_init_level): Likewise.
5506 * doc/invoke.texi (Warning Options): -Wenum-compare now
5507 supported in C.
5508
f116fecf
RG
55092009-04-15 Richard Guenther <rguenther@suse.de>
5510
5511 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
5512 out a necessary conversion.
5513 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
5514 names we didn't value number.
5515 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
5516
25e20805
RG
55172009-04-15 Richard Guenther <rguenther@suse.de>
5518
5519 PR tree-optimization/39764
5520 * tree-ssa-ccp.c (get_value): Canonicalize value with
5521 canonicalize_float_value.
5522
90cc3676
JH
55232009-04-15 Jan Hubicka <jh@suse.cz>
5524
5525 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
5526 Wrong version of patch.
5527
6d14c006
JH
55282009-04-15 Jan Hubicka <jh@suse.cz>
5529
5530 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
5531
5afaa917
NS
55322009-04-15 Nathan Sidwell <nathan@codesourcery.com>
5533
5534 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
5535 our distinct integral and vector types.
5536
3b482fca
RAE
55372009-04-15 Rafael Avila de Espindola <espindola@google.com>
5538
5539 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
5540 * init.c (build_vtbl_address): Remove call to assemble_external.
5541
6cd1d2e2
DJ
55422009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5543
5544 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
5545 output for other floating point modes.
5546
dab71827
DN
55472009-04-14 Diego Novillo <dnovillo@google.com>
5548
5549 * diagnostic.c (diagnostic_report_diagnostic): Do not
5550 warn about loaded plugins for DK_ERROR and DK_WARNING.
5551 * c-decl.c (declspecs_add_type): Move call to
5552 invoke_plugin_callbacks ...
5553 * c-parser.c (c_parser_declspecs): ... here.
5554 * plugin.c (dump_active_plugins): Tidy output.
5555
68a607d8
DN
55562009-04-14 Diego Novillo <dnovillo@google.com>
5557 Le-Chun Wu <lcwu@google.com>
5558
5559 * configure.ac: Add --enable-plugin support.
5560 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
5561 * Makefile.in (PLUGIN_H): Define.
5562 Export ENABLE_PLUGIN and GMPINC to site.exp.
5563 Add PLUGINLIBS to link command.
5564 Add/modify dependencies for plugin.o and files including plugin.h.
5565 (plugin.o): New.
5566 * config.in: Regenerate.
2ba9daa7 5567
68a607d8
DN
5568 * opts.c (common_handle_option): Handle OPT_fplugin_ and
5569 OPT_fplugin_arg_.
5570
55712009-04-14 Le-Chun Wu <lcwu@google.com>
5572
5573 * tree-pass.h (register_one_dump_file): Add a prototype for
5574 register_one_dump_file.
5575 * toplev.c (compile_file): Call initialize_plugins.
5576 (do_compile): Call invoke_plugin_callbacks.
5577 (toplev_main): Call invoke_plugin_callbacks.
5578 * common.opt: Add -fplugin= and -fplugin-arg-.
5579 * gcc-plugin.h: New public header file for plugins to include.
5580 * plugin.c: New source file.
5581 * plugin.h: New internal header file.
5582 * passes.c (register_one_dump_file): Make it external.
2ba9daa7 5583
68a607d8
DN
5584 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
5585
55862009-04-14 Diego Novillo <dnovillo@google.com>
5587
5588 * doc/plugins.texi: New.
5589 * doc/gccint.texi: Add reference to Plugins chapter.
5590 * doc/invoke.texi: Document -fplugin and -fplugin-arg
5591 * diagnostic.c (diagnostic_report_diagnostic): Warn about
5592 loaded plugins, if any.
5593 * timevar.def (TV_PLUGIN_INIT): Define.
5594 (TV_PLUGIN_RUN): Define.
5595 * plugin.c: Include timevar.h
5596 (plugins_active_p): New.
5597 (dump_active_plugins): New.
5598 (debug_active_plugins): New.
5599
50617257
JM
56002009-04-14 Joseph Myers <joseph@codesourcery.com>
5601
5602 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
5603 library paths.
5604 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
5605
b32f6fff
KH
56062009-04-14 Kazu Hirata <kazu@codesourcery.com>
5607
5608 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
5609 the same as a minus without a shift.
5610
85d04fa2
NC
56112009-04-14 Nick Clifton <nickc@redhat.com>
5612
5613 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
5614 comparisons with small integers will always produce a short
5615 branch.
5616
e495a0c8
RAE
56172009-04-14 Rafael Avila de Espindola <espindola@google.com>
5618
5619 Merge:
e495a0c8
RAE
5620 2008-12-19 Diego Novillo <dnovillo@google.com>
5621
532bfb0a 5622 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
e495a0c8 5623
ad41bd84 56242009-04-14 Richard Guenther <rguenther@suse.de>
587aa063
RG
5625
5626 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
5627 verification.
5628 (verify_gimple_assign_binary): Likewise. Handle shifts and
5629 rotates correctly.
5630 (verify_gimple_phi): Print the mismatched argument position.
5631 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
5632 Fix types.
5633 (vect_update_init_of_dr): Likewise.
5634 * matrix-reorg.c (transform_access_sites): Do what the
5635 comment suggests.
5636 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
5637
60839f5d 56382009-04-13 Michael Eager <eager@eagercon.com>
9eca1774
ME
5639
5640 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
5641 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
5642 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
2ba9daa7 5643 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
9eca1774
ME
5644 remove duplicate config
5645
b0e2d008
DR
56462009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5647
5648 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
5649 file_name:line_number type locator of the call site.
2ba9daa7 5650
1244a8b7
VM
56512009-04-13 Vladimir Makarov <vmakarov@redhat.com>
5652
5653 * genautomata.c: Put blank after comma.
5654 (automaton_decls): New.
5655 (struct unit_usage): Add comments to member next.
5656 (store_alt_unit_usage): Keep the list ordered.
5657 (unit_present_on_list_p, equal_alternatives_p): New.
5658 (check_regexp_units_distribution): Check units distribution
5659 correctness correctly.
5660 (main): Don't write automata if error is found. Return correct
5661 exit code.
2ba9daa7 5662
1244a8b7
VM
5663 * config/m68k/cf.md (cfv4_ds): Remove.
5664 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
5665 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
5666
5667 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
5668 power4-load-ext, power4-store, power4-store-update,
5669 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
5670 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
5671 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
5672 power4-sqrt, power4-isync): Modify reservation to make correct
5673 unit distribution to automata.
5674
5675 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
5676 power5-store-update, power5-two, power5-three, power5-lmul,
5677 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
2ba9daa7 5678
f7dd1864
AN
56792009-04-13 Adam Nemet <anemet@caviumnetworks.com>
5680
5681 * except.c (pass_set_nothrow_function_flags): Set name and add
5682 TODO_dump_func.
5683 (set_nothrow_function_flags): Mention in the dump file when
5684 changing a function to nothrow.
5685
59a1171f
OS
56862009-04-13 Ozkan Sezer <sezeroz@gmail.com>
5687
5688 PR/39066
5689 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
5690 instead of unsigned long.
5691
934c2060
RR
56922009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5693
f7dd1864
AN
5694 * config/arm/arm.c (return_used_this_function): Remove.
5695 (arm_output_function_prologue): Remove use of
934c2060 5696 return_used_this_function.
f7dd1864 5697 (output_return_instruction): Replace use of
934c2060
RR
5698 return_used_this_function
5699 by cfun->machine->return_used_this_function.
f7dd1864
AN
5700 (arm_output_epilogue): Likewise.
5701 (arm_output_function_epilogue): Likewise.
5702 (thumb_unexpanded_epilogue): Likewise.
5703 * config/arm/arm.h (struct machine_function):
934c2060 5704 New member return_used_this_function.
f7dd1864 5705
ae5cc016
MM
57062009-04-12 Mark Mitchell <mark@codesourcery.com>
5707
5708 * doc/install.texi: Correct description of default directory for
5709 --with-gxx-include-dir.
5710
a0ce68df 57112009-04-12 Eric Botcazou <ebotcazou@adacore.com>
849d624b
EB
5712
5713 * fold-const.c (build_range_check): Properly deal with enumeral and
5714 boolean base types.
5715
3906a4a1
SB
57162009-04-12 Steven Bosscher <steven@gcc.gnu.org>
5717
5718 * doc/invoke.texi (max_gcse_passes): Remove documentation.
5719 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
5720 * params.h (MAX_GCSE_PASSES): Remove.
5721 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
5722 in sequence. Remove ability to run multiple passes.
5723 (bypass_jumps): Report run as third CPROP pass.
5724
efaadb93
AN
57252009-04-12 Adam Nemet <anemet@caviumnetworks.com>
5726
5727 PR middle-end/39651
5728 * except.c (can_throw_external): Look at each insn in a SEQUENCE
5729 when deciding whether the whole SEQUENCE can throw.
5730
4c48007b
UB
57312009-04-12 Uros Bizjak <ubizjak@gmail.com>
5732
5733 PR target/39740
5734 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
5735 offseted label references.
5736
b4104018
JH
57372009-04-11 Jan Hubicka <jh@suse.cz>
5738
5739 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
5740
32848948
RG
57412009-04-11 Richard Guenther <rguenther@suse.de>
5742
5743 PR middle-end/39732
5744 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
5745 return variables as TREE_ADDRESSABLE.
5746
8810712e
RG
57472009-04-11 Richard Guenther <rguenther@suse.de>
5748
5749 PR tree-optimization/39713
5750 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
5751 reference trees have SSA_NAME operands.
5752
fa78c0c1
RG
57532009-04-11 Richard Guenther <rguenther@suse.de>
5754
5755 PR c/39712
5756 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
5757 address expressions.
5758
4d722130
DK
57592009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
5760
5761 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
5762 match changes in Cygwin 1.7
5763 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
5764 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
5765
567a90f5
PB
57662009-04-10 Paolo Bonzini <bonzini@gnu.org>
5767
5768 PR tree-optimization/39701
5769 * doc/invoke.texi (Optimization Options): Document change in
5770 meaning and initialization of -fdelete-null-pointer-checks.
5771
1ad2f450
L
57722009-04-10 H.J. Lu <hongjiu.lu@intel.com>
5773
5774 PR middle-end/39701
5775 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
5776
5777 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
5778 here.
5779
5780 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
5781
1afc5373
CF
57822009-04-10 Chao-ying Fu <fu@mips.com>
5783
5784 * doc/tm.texi (Instruction Output): Document
5785 TARGET_ASM_FINAL_POSTSCAN_INSN.
5786 * target.h (final_postscan_insn): New field in asm_out.
5787 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
5788 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
5789 * final.c (final_scan_insn): Call
5790 targetm.asm_out.final_postscan_insn after outputting
5791 an asm macro and a normal instruction.
5792
5793 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
5794 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
5795 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
5796 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
5797 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
5798
4d35e75c
PB
57992009-04-10 Paolo Bonzini <bonzini@gnu.org>
5800
5801 PR middle-end/39701
1ad2f450
L
5802 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
5803 variables as non-NULL even with -fdelete-null-pointer-checks.
4d35e75c 5804
62c49b83
L
58052009-04-10 H.J. Lu <hongjiu.lu@intel.com>
5806
5807 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
5808
80558628
L
58092009-04-09 H.J. Lu <hongjiu.lu@intel.com>
5810
5811 PR target/39678
5812 * config/i386/i386.c (classify_argument): Handle SCmode with
5813 (bit_offset % 64) != 0.
5814
8c70d28b
SL
58152009-04-09 Sandra Loosemore <sandra@codesourcery.com>
5816
5817 * doc/invoke.texi (Optimize Options): Add cross-reference to
5818 -Q --help=optimizers examples.
5819
e1ff19bf
BE
58202009-04-10 Ben Elliston <bje@au.ibm.com>
5821
5822 PR target/36800
5823 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
5824 regalign for the reg == fpr and TDmode case.
5825
52daca75
DA
58262009-04-09 David Ayers <ayers@fsfe.org>
5827
5828 PR objc/29200
5829 * objc/objc-act.c (warn_with_method): Remove helper function.
5830 (check_duplicates): Call warning and inform directly.
5831 (really_start_method): Likewise.
5832
b45f0e58
PB
58332009-04-09 Paolo Bonzini <bonzini@gnu.org>
5834
5835 * expmed.c (expand_divmod): Always use a comparison for a division
5836 by a large unsigned integer.
5837
1ad2f450
L
5838 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
5839 for things others than variables or functions as nonzero.
b45f0e58 5840
748086b7
JJ
58412009-04-09 Nick Clifton <nickc@redhat.com>
5842
5843 * unwind-compat.c: Change copyright header to refer to version
5844 3 of the GNU General Public License with version 3.1 of the
5845 GCC Runtime Library Exception and to point readers at the
7a715bba 5846 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
748086b7
JJ
5847 * config/alpha/crtfastmath.c: Likewise.
5848 * config/alpha/linux-unwind.h: Likewise.
5849 * config/alpha/qrnnd.asm: Likewise.
5850 * config/alpha/vms-crt0-64.c: Likewise.
5851 * config/alpha/vms-crt0.c: Likewise.
5852 * config/alpha/vms-dwarf2.asm: Likewise.
5853 * config/alpha/vms-dwarf2eh.asm: Likewise.
5854 * config/alpha/vms-psxcrt0-64.c: Likewise.
5855 * config/alpha/vms-psxcrt0.c: Likewise.
5856 * config/alpha/vms_tramp.asm: Likewise.
5857 * config/arc/initfini.c: Likewise.
5858 * config/arc/lib1funcs.asm: Likewise.
5859 * config/arm/bpabi-v6m.S: Likewise.
5860 * config/arm/bpabi.S: Likewise.
5861 * config/arm/bpabi.c: Likewise.
5862 * config/arm/crti.asm: Likewise.
5863 * config/arm/crtn.asm: Likewise.
5864 * config/arm/ieee754-df.S: Likewise.
5865 * config/arm/ieee754-sf.S: Likewise.
5866 * config/arm/lib1funcs.asm: Likewise.
5867 * config/arm/libunwind.S: Likewise.
5868 * config/arm/linux-atomic.c: Likewise.
5869 * config/arm/mmintrin.h: Likewise.
5870 * config/arm/pr-support.c: Likewise.
5871 * config/arm/unaligned-funcs.c: Likewise.
5872 * config/arm/unwind-arm.c: Likewise.
5873 * config/arm/unwind-arm.h: Likewise.
5874 * config/avr/libgcc.S: Likewise.
5875 * config/bfin/crti.s: Likewise.
5876 * config/bfin/crtlibid.s: Likewise.
5877 * config/bfin/crtn.s: Likewise.
5878 * config/bfin/lib1funcs.asm: Likewise.
5879 * config/bfin/linux-unwind.h: Likewise.
5880 * config/cris/arit.c: Likewise.
5881 * config/cris/cris_abi_symbol.c: Likewise.
5882 * config/darwin-64.c: Likewise.
5883 * config/darwin-crt2.c: Likewise.
5884 * config/darwin-crt3.c: Likewise.
5885 * config/darwin.h: Likewise.
5886 * config/dbxelf.h: Likewise.
5887 * config/dfp-bit.c: Likewise.
5888 * config/dfp-bit.h: Likewise.
5889 * config/elfos.h: Likewise.
5890 * config/fixed-bit.c: Likewise.
5891 * config/fixed-bit.h: Likewise.
5892 * config/fp-bit.c: Likewise.
5893 * config/fp-bit.h: Likewise.
5894 * config/fr30/crti.asm: Likewise.
5895 * config/fr30/crtn.asm: Likewise.
5896 * config/fr30/lib1funcs.asm: Likewise.
5897 * config/freebsd-spec.h: Likewise.
5898 * config/frv/cmovd.c: Likewise.
5899 * config/frv/cmovh.c: Likewise.
5900 * config/frv/cmovw.c: Likewise.
5901 * config/frv/frvbegin.c: Likewise.
5902 * config/frv/frvend.c: Likewise.
5903 * config/frv/lib1funcs.asm: Likewise.
5904 * config/glibc-stdint.h: Likewise.
5905 * config/h8300/clzhi2.c: Likewise.
5906 * config/h8300/crti.asm: Likewise.
5907 * config/h8300/crtn.asm: Likewise.
5908 * config/h8300/ctzhi2.c: Likewise.
5909 * config/h8300/fixunssfsi.c: Likewise.
5910 * config/h8300/lib1funcs.asm: Likewise.
5911 * config/h8300/parityhi2.c: Likewise.
5912 * config/h8300/popcounthi2.c: Likewise.
5913 * config/i386/ammintrin.h: Likewise.
5914 * config/i386/att.h: Likewise.
5915 * config/i386/avxintrin.h: Likewise.
5916 * config/i386/biarch64.h: Likewise.
5917 * config/i386/bmmintrin.h: Likewise.
5918 * config/i386/cpuid.h: Likewise.
5919 * config/i386/cross-stdarg.h: Likewise.
5920 * config/i386/crtfastmath.c: Likewise.
5921 * config/i386/crtprec.c: Likewise.
5922 * config/i386/cygming-crtbegin.c: Likewise.
5923 * config/i386/cygming-crtend.c: Likewise.
5924 * config/i386/cygwin.asm: Likewise.
5925 * config/i386/emmintrin.h: Likewise.
5926 * config/i386/gmm_malloc.h: Likewise.
5927 * config/i386/gthr-win32.c: Likewise.
5928 * config/i386/i386.h: Likewise.
5929 * config/i386/immintrin.h: Likewise.
5930 * config/i386/linux-unwind.h: Likewise.
5931 * config/i386/linux64.h: Likewise.
5932 * config/i386/mm3dnow.h: Likewise.
5933 * config/i386/mmintrin-common.h: Likewise.
5934 * config/i386/mmintrin.h: Likewise.
5935 * config/i386/nmmintrin.h: Likewise.
5936 * config/i386/pmm_malloc.h: Likewise.
5937 * config/i386/pmmintrin.h: Likewise.
5938 * config/i386/smmintrin.h: Likewise.
5939 * config/i386/sol2-c1.asm: Likewise.
5940 * config/i386/sol2-ci.asm: Likewise.
5941 * config/i386/sol2-cn.asm: Likewise.
5942 * config/i386/sol2-gc1.asm: Likewise.
5943 * config/i386/tmmintrin.h: Likewise.
5944 * config/i386/unix.h: Likewise.
5945 * config/i386/w32-unwind.h: Likewise.
5946 * config/i386/wmmintrin.h: Likewise.
5947 * config/i386/x86-64.h: Likewise.
5948 * config/i386/x86intrin.h: Likewise.
5949 * config/i386/xmmintrin.h: Likewise.
5950 * config/ia64/crtbegin.asm: Likewise.
5951 * config/ia64/crtend.asm: Likewise.
5952 * config/ia64/crtfastmath.c: Likewise.
5953 * config/ia64/crti.asm: Likewise.
5954 * config/ia64/crtn.asm: Likewise.
5955 * config/ia64/fde-glibc.c: Likewise.
5956 * config/ia64/lib1funcs.asm: Likewise.
5957 * config/ia64/linux-unwind.h: Likewise.
5958 * config/ia64/quadlib.c: Likewise.
5959 * config/ia64/unwind-ia64.c: Likewise.
5960 * config/linux.h: Likewise.
5961 * config/m32c/m32c-lib1.S: Likewise.
5962 * config/m32c/m32c-lib2-trapv.c: Likewise.
5963 * config/m32c/m32c-lib2.c: Likewise.
5964 * config/m32r/initfini.c: Likewise.
5965 * config/m68hc11/larith.asm: Likewise.
5966 * config/m68hc11/m68hc11-crt0.S: Likewise.
5967 * config/m68k/cf.md: Likewise.
5968 * config/m68k/crti.s: Likewise.
5969 * config/m68k/crtn.s: Likewise.
5970 * config/m68k/lb1sf68.asm: Likewise.
5971 * config/m68k/linux-unwind.h: Likewise.
5972 * config/mcore/crti.asm: Likewise.
5973 * config/mcore/crtn.asm: Likewise.
5974 * config/mcore/lib1.asm: Likewise.
5975 * config/mips/linux-unwind.h: Likewise.
5976 * config/mips/loongson.h: Likewise.
5977 * config/mips/mips16.S: Likewise.
5978 * config/mmix/crti.asm: Likewise.
5979 * config/mmix/crtn.asm: Likewise.
5980 * config/pa/fptr.c: Likewise.
5981 * config/pa/hpux-unwind.h: Likewise.
5982 * config/pa/lib2funcs.asm: Likewise.
5983 * config/pa/linux-atomic.c: Likewise.
5984 * config/pa/linux-unwind.h: Likewise.
5985 * config/pa/milli64.S: Likewise.
5986 * config/pa/quadlib.c: Likewise.
5987 * config/pa/stublib.c: Likewise.
5988 * config/picochip/libgccExtras/adddi3.asm: Likewise.
5989 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
5990 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
5991 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
5992 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
5993 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
5994 * config/picochip/libgccExtras/divmod15.asm: Likewise.
5995 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
5996 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
5997 * config/picochip/libgccExtras/longjmp.asm: Likewise.
5998 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
5999 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
6000 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
6001 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
6002 * config/picochip/libgccExtras/setjmp.asm: Likewise.
6003 * config/picochip/libgccExtras/subdi3.asm: Likewise.
6004 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
6005 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
6006 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
6007 * config/rs6000/750cl.h: Likewise.
6008 * config/rs6000/altivec.h: Likewise.
6009 * config/rs6000/biarch64.h: Likewise.
6010 * config/rs6000/crtresfpr.asm: Likewise.
6011 * config/rs6000/crtresgpr.asm: Likewise.
6012 * config/rs6000/crtresxfpr.asm: Likewise.
6013 * config/rs6000/crtresxgpr.asm: Likewise.
6014 * config/rs6000/crtsavfpr.asm: Likewise.
6015 * config/rs6000/crtsavgpr.asm: Likewise.
6016 * config/rs6000/darwin-asm.h: Likewise.
6017 * config/rs6000/darwin-fallback.c: Likewise.
6018 * config/rs6000/darwin-fpsave.asm: Likewise.
6019 * config/rs6000/darwin-ldouble.c: Likewise.
6020 * config/rs6000/darwin-tramp.asm: Likewise.
6021 * config/rs6000/darwin-unwind.h: Likewise.
6022 * config/rs6000/darwin-vecsave.asm: Likewise.
6023 * config/rs6000/darwin-world.asm: Likewise.
6024 * config/rs6000/e500crtres32gpr.asm: Likewise.
6025 * config/rs6000/e500crtres64gpr.asm: Likewise.
6026 * config/rs6000/e500crtres64gprctr.asm: Likewise.
6027 * config/rs6000/e500crtrest32gpr.asm: Likewise.
6028 * config/rs6000/e500crtrest64gpr.asm: Likewise.
6029 * config/rs6000/e500crtresx32gpr.asm: Likewise.
6030 * config/rs6000/e500crtresx64gpr.asm: Likewise.
6031 * config/rs6000/e500crtsav32gpr.asm: Likewise.
6032 * config/rs6000/e500crtsav64gpr.asm: Likewise.
6033 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
6034 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
6035 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
6036 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
6037 * config/rs6000/eabi-ci.asm: Likewise.
6038 * config/rs6000/eabi-cn.asm: Likewise.
6039 * config/rs6000/eabi.asm: Likewise.
6040 * config/rs6000/linux-unwind.h: Likewise.
6041 * config/rs6000/linux64.h: Likewise.
6042 * config/rs6000/paired.h: Likewise.
6043 * config/rs6000/paired.md: Likewise.
6044 * config/rs6000/ppc64-fp.c: Likewise.
6045 * config/rs6000/ppu_intrinsics.h: Likewise.
6046 * config/rs6000/rs6000.h: Likewise.
6047 * config/rs6000/si2vmx.h: Likewise.
6048 * config/rs6000/sol-ci.asm: Likewise.
6049 * config/rs6000/sol-cn.asm: Likewise.
6050 * config/rs6000/spe.h: Likewise.
6051 * config/rs6000/spu2vmx.h: Likewise.
6052 * config/rs6000/sysv4.h: Likewise.
6053 * config/rs6000/tramp.asm: Likewise.
6054 * config/rs6000/vec_types.h: Likewise.
6055 * config/s390/linux-unwind.h: Likewise.
6056 * config/s390/tpf-unwind.h: Likewise.
6057 * config/score/crti.asm: Likewise.
6058 * config/score/crtn.asm: Likewise.
6059 * config/sh/crt1.asm: Likewise.
6060 * config/sh/crti.asm: Likewise.
6061 * config/sh/crtn.asm: Likewise.
6062 * config/sh/divtab-sh4-300.c: Likewise.
6063 * config/sh/divtab-sh4.c: Likewise.
6064 * config/sh/divtab.c: Likewise.
6065 * config/sh/lib1funcs-4-300.asm: Likewise.
6066 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
6067 * config/sh/lib1funcs.asm: Likewise.
6068 * config/sh/lib1funcs.h: Likewise.
6069 * config/sh/linux-atomic.asm: Likewise.
6070 * config/sh/linux-unwind.h: Likewise.
6071 * config/sh/shmedia.h: Likewise.
6072 * config/sh/sshmedia.h: Likewise.
6073 * config/sh/ushmedia.h: Likewise.
6074 * config/sparc/crtfastmath.c: Likewise.
6075 * config/sparc/linux-unwind.h: Likewise.
6076 * config/sparc/sol2-c1.asm: Likewise.
6077 * config/sparc/sol2-ci.asm: Likewise.
6078 * config/sparc/sol2-cn.asm: Likewise.
6079 * config/spu/divmodti4.c: Likewise.
6080 * config/spu/divv2df3.c: Likewise.
6081 * config/spu/float_disf.c: Likewise.
6082 * config/spu/float_unsdidf.c: Likewise.
6083 * config/spu/float_unsdisf.c: Likewise.
6084 * config/spu/float_unssidf.c: Likewise.
6085 * config/spu/mfc_multi_tag_release.c: Likewise.
6086 * config/spu/mfc_multi_tag_reserve.c: Likewise.
6087 * config/spu/mfc_tag_release.c: Likewise.
6088 * config/spu/mfc_tag_reserve.c: Likewise.
6089 * config/spu/mfc_tag_table.c: Likewise.
6090 * config/spu/multi3.c: Likewise.
6091 * config/spu/spu_internals.h: Likewise.
6092 * config/spu/spu_intrinsics.h: Likewise.
6093 * config/spu/spu_mfcio.h: Likewise.
6094 * config/spu/vec_types.h: Likewise.
6095 * config/spu/vmx2spu.h: Likewise.
6096 * config/stormy16/stormy16-lib2.c: Likewise.
6097 * config/svr4.h: Likewise.
6098 * config/sync.c: Likewise.
6099 * config/v850/lib1funcs.asm: Likewise.
6100 * config/vxlib-tls.c: Likewise.
6101 * config/vxlib.c: Likewise.
6102 * config/vxworks-dummy.h: Likewise.
6103 * config/xtensa/crti.asm: Likewise.
6104 * config/xtensa/crtn.asm: Likewise.
6105 * config/xtensa/ieee754-df.S: Likewise.
6106 * config/xtensa/ieee754-sf.S: Likewise.
6107 * config/xtensa/lib1funcs.asm: Likewise.
6108 * config/xtensa/lib2funcs.S: Likewise.
6109 * config/xtensa/linux-unwind.h: Likewise.
6110 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
6111 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
6112 * coretypes.h: Likewise.
6113 * crtstuff.c: Likewise.
6114 * defaults.h: Likewise.
6115 * dwarf2.h: Likewise.
6116 * emutls.c: Likewise.
6117 * gbl-ctors.h: Likewise.
6118 * gcov-io.h: Likewise.
6119 * ginclude/float.h: Likewise.
6120 * ginclude/iso646.h: Likewise.
6121 * ginclude/stdarg.h: Likewise.
6122 * ginclude/stdbool.h: Likewise.
6123 * ginclude/stddef.h: Likewise.
6124 * ginclude/stdfix.h: Likewise.
6125 * ginclude/stdint-gcc.h: Likewise.
6126 * ginclude/tgmath.h: Likewise.
6127 * gthr-aix.h: Likewise.
6128 * gthr-dce.h: Likewise.
6129 * gthr-gnat.c: Likewise.
6130 * gthr-gnat.h: Likewise.
6131 * gthr-lynx.h: Likewise.
6132 * gthr-mipssde.h: Likewise.
6133 * gthr-nks.h: Likewise.
6134 * gthr-posix.c: Likewise.
6135 * gthr-posix.h: Likewise.
6136 * gthr-posix95.h: Likewise.
6137 * gthr-rtems.h: Likewise.
6138 * gthr-single.h: Likewise.
6139 * gthr-solaris.h: Likewise.
6140 * gthr-tpf.h: Likewise.
6141 * gthr-vxworks.h: Likewise.
6142 * gthr-win32.h: Likewise.
6143 * gthr.h: Likewise.
6144 * libgcc2.c: Likewise.
6145 * libgcc2.h: Likewise.
6146 * libgcov.c: Likewise.
6147 * tsystem.h: Likewise.
6148 * typeclass.h: Likewise.
6149 * unwind-c.c: Likewise.
6150 * unwind-compat.h: Likewise.
6151 * unwind-dw2-fde-compat.c: Likewise.
6152 * unwind-dw2-fde-darwin.c: Likewise.
6153 * unwind-dw2-fde-glibc.c: Likewise.
6154 * unwind-dw2-fde.c: Likewise.
6155 * unwind-dw2-fde.h: Likewise.
6156 * unwind-dw2.c: Likewise.
6157 * unwind-dw2.h: Likewise.
6158 * unwind-generic.h: Likewise.
6159 * unwind-pe.h: Likewise.
6160 * unwind-sjlj.c: Likewise.
6161 * unwind.inc: Likewise.
6162 * config/arm/neon-gen.ml: Change generated copyright header to
6163 refer to version 3 of the GNU General Public License with
6164 version 3.1 of the GCC Runtime Library Exception and to point
6165 readers at the COPYING3 and COPYING3.RUNTIME files and the
6166 FSF's license web page.
6167 * config/arm/arm_neon.h: Regenerate.
6168
61692009-04-09 Jakub Jelinek <jakub@redhat.com>
6170
6171 * config/cris/cris.md: Change copyright header to refer to version
6172 3 of the GNU General Public License.
6173 * doc/install.texi2html: Change copyright header to refer to version
6174 3 of the GNU General Public License and to point readers at the
6175 COPYING3 file and the FSF's license web page.
6176 * config/vax/linux.h: Likewise.
6177
4a77c72b
PB
61782009-04-09 Paolo Bonzini <bonzini@gnu.org>
6179
1ad2f450
L
6180 * config/i386/i386.md (cmpcc): New.
6181 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
6182 (sync_compare_and_swap_cc*): Delete.
6183
6184 * config/s390/s390.c (s390_compare_emitted): Remove.
6185 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
6186 s390_compare_emitted used to be handled. Assert that modes match.
6187 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
6188 refer to sync_compare_and_swap_ccsi.
6189 * config/s390/s390.h (s390_compare_emitted): Remove.
6190 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
6191 instead of s390_compare_emitted.
6192 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
6193 instead of s390_compare_emitted.
6194 * config/s390/s390.md (cmpcc): New.
6195 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
6196 CC_REGNUM, do not pretend it's set.
6197 (sync_compare_and_swap_cc*): Delete.
6198 * config/s390/predicates.md (cc_reg_operand): New.
6199
6200 * expr.c (sync_compare_and_swap_cc): Delete.
6201 * optabs.h (sync_compare_and_swap_cc): Delete.
6202 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
6203 is being used with can_compare_p.
6204 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
6205 (find_cc_set): New.
6206 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
6207 look for a MODE_CC set instead. Use emit_store_flag.
6208 (expand_compare_and_swap_loop): Likewise, with some additional
6209 complication to avoid a force_reg when useless. Use
6210 emit_cmp_and_jump_insns.
6211 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
6212 * doc/md.texi (sync_compare_and_swap_cc): Merge with
6213 sync_compare_and_swap documentation.
4a77c72b 6214
0c0efb33
JH
62152009-04-09 Jan Hubicka <jh@suse.cz>
6216
6217 * except.c (find_prev_try): Break out from ....
6218 (duplicate_eh_regions): ... here; properly update prev_try pointers
6219 when duplication part of tree.
6220 (dump_eh_tree): Improve dumping.
6221 (verify_eh_region): New.
6222 (verify_eh_tree): Use it.
6223
22a65a54
RG
62242009-04-06 Richard Guenther <rguenther@suse.de>
6225
6226 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
6227 &ARRAY addresses by adjusting their types and prepending
6228 a conversion.
6229 * tree-cfg.c (verify_gimple_assign_single): Verify that
6230 addresses are correct.
6231
f76968e6
RG
62322009-04-09 Richard Guenther <rguenther@suse.de>
6233
6234 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
6235 indices into an array reference if possible.
6236 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
6237 Fold POINTER_PLUS_EXPR statements with invariant address.
6238
c90c5fb5
AM
62392009-04-09 Alan Modra <amodra@bigpond.net.au>
6240
6241 PR target/39634
6242 * config.gcc (powerpc64-*-linux*): Always build biarch.
6243
17cede2e
JM
62442009-04-09 Joseph Myers <joseph@codesourcery.com>
6245
6246 PR c/39613
6247 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
6248 it and pedwarn if this results in an INTEGER_CST.
6249
a3337ea2
KG
62502009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6251
6252 * doc/install.texi: Update minimum GMP version. Remove obsolete
6253 text in MPFR section.
6254
ce9ba79b
JJ
62552009-04-08 Jakub Jelinek <jakub@redhat.com>
6256
6257 * dwarf2out.c (class_scope_p): New static inline.
6258 (class_or_namespace_scope_p): Use it.
6259 (gen_variable_die): Use DW_TAG_member tag for static data member
6260 declarations instead of DW_TAG_variable.
6261
4f0ae266
JJ
6262 PR middle-end/39573
6263 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
6264 variables.
6265
d27f0ddc
RG
62662009-04-08 Richard Guenther <rguenther@suse.de>
6267
6268 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
6269 valueize random data.
6270
557cc596
DE
62712009-04-08 David Edelsohn <edelsohn@gnu.org>
6272
6273 * config.gcc (aix tm_file): Add aix-stdint.h.
6274 (aix tm clause use_gcc_stdint): Set to wrap.
6275 * config/rs6000/aix-stdint.h: New file.
2ba9daa7 6276
75ccc1e7
RG
62772009-04-08 Richard Guenther <rguenther@suse.de>
6278
6279 PR middle-end/36291
6280 * tree-dfa.c (add_referenced_var): Do not recurse into
6281 global initializers.
6282 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
6283 exposed variables.
6284 (fold_const_aggregate_ref): Likewise.
6285
c6963675
PB
62862009-04-08 Paolo Bonzini <bonzini@gnu.org>
6287
6c44cf79
L
6288 * recog.c (ordered_comparison_operator): New.
6289 * gensupport.c (std_preds): Add it.
c6963675
PB
6290 * doc/md.texi (Machine-Independent Predicates): Document it.
6291
6d07ad98
JH
62922009-04-08 Jan Hubicka <jh@suse.cz>
6293
6294 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
6295 * function.h (rtl_eh): Remove exception_handler_label_map.
6296 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
6297 remove_exception_handler_label, for_each_eh_label_1): Remove.
6298 (rtl_remove_unreachable_regions): Remove.
6299 (convert_from_eh_region_ranges): Do not remove unreachable regions.
6300 (find_exception_handler_labels): Don't build the hashtable.
6301 (maybe_remove_eh_handler): Remove.
6302 (for_each_eh_label): Rewrite to walk the tree.
6303 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
6304 * except.h (maybe_remove_eh_handler): Remove.
6305 * passes.c (init_optimization_passes): Schedule second EH cleanup
6306 before out-of-ssa.
6307 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
6308 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
6309
7ddf71e3
PB
63102009-04-08 Paolo Bonzini <bonzini@gnu.org>
6311
6312 * genoutput.c (validate_optab_operands): New.
6313 (gen_insn, gen_expand): Call it.
6314
6315 * genflags.c (gen_insn): Detect misused iterators.
6316 (main): Pass line_no to gen_insn, exit with status 1 on error.
6317
6318 * genextract.c (line_no): Make global.
6319 (VEC_safe_set_locstr): Change assertion to error message.
6320 (main): Exit with status 1 on error.
6321
4d84fe7c
JM
63222009-04-08 Joseph Myers <joseph@codesourcery.com>
6323
6324 PR c/39614
6325 PR c/39673
6326 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
6327 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
6328 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
6329 * c-convert.c (convert): Do not call fold on results of conversion
6330 functions when the result is a C_MAYBE_CONST_EXPR.
6331 * c-parser.c (c_parser_postfix_expression): Do not fold condition
6332 of __builtin_choose_expr.
6333 * c-typeck.c (remove_c_maybe_const_expr): New.
6334 (build_unary_op, build_conditional_expr, build_compound_expr,
6335 build_binary_op, c_objc_common_truthvalue_conversion): Call
6336 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
6337 integer operands.
6338
60839f5d 63392009-04-08 Bingfeng Mei <bmei@broadcom.com>
d1d1c602 6340
2ba9daa7 6341 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
6c44cf79 6342 CODE to produce a new one. Add a prototype to use fold_convert_const
d1d1c602 6343
8e481a2c
DS
63442009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
6345
6346 PR bootstrap/39660
6347 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
6348 mix declarations and code.
6349
ee618c17
BE
63502009-04-08 Ben Elliston <bje@au.ibm.com>
6351
6352 * gcc.c: Replace `CC' with `GCC' throughout.
6353
f2a758a2
L
63542009-04-07 H.J. Lu <hongjiu.lu@intel.com>
6355
6356 * doc/invoke.texi: Document Atom support.
6357
6ea2bd47
JM
63582009-04-07 Jason Merrill <jason@redhat.com>
6359
6360 PR c++/25185
6361 * c-common.h, c-common.c: Add flag_pretty_templates.
6362 * c-opts.c (c_common_handle_option): Set it.
6363 * c.opt: Add -fno-pretty-templates.
6364 * doc/invoke.texi (C++ Dialect Options): Likewise.
6365
fcb82ab0
UB
63662009-04-07 Uros Bizjak <ubizjak@gmail.com>
6367
6368 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
6369 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
6370 (ia64_expand_builtin): Likewise.
6371
dc5e7298
MJ
63722009-04-07 Martin Jambor <mjambor@suse.cz>
6373
6374 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
6375 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
6376 ADDR_EXPRS are include too.
6377
0609b355
RG
63782009-04-07 Richard Guenther <rguenther@suse.de>
6379
6380 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
6381 decls are only used if passes as parameters or if they are
6382 local statics and the call is not to a builtin.
6383 (call_may_clobber_ref_p_1): Likewise.
6384
d8e535fa
PB
63852009-04-07 Paolo Bonzini <bonzini@gnu.org>
6386
6387 * expr.c (do_store_flag): Remove last argument. Simplify code
6388 to avoid duplication of tests already done by can_compare_p.
6389 (expand_expr_real_1): Adjust caller.
6390
c3c64f50
PB
63912009-04-07 Paolo Bonzini <bonzini@gnu.org>
6392
fcb82ab0
UB
6393 * optabs.c (can_compare_p): Test the predicate of a
6394 cbranch and cstore pattern.
c3c64f50 6395
9a53bc17
PB
63962009-04-07 Paolo Bonzini <bonzini@gnu.org>
6397
fcb82ab0
UB
6398 * expr.c (convert_move): Use emit_store_flag instead of
6399 "emulating" it.
9a53bc17 6400
67b8f1c1
PB
64012009-04-07 Paolo Bonzini <bonzini@gnu.org>
6402
fcb82ab0
UB
6403 * config/i386/i386.c (ix86_compare_emitted): Remove.
6404 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
6405 ix86_compare_op0 like ix86_compare_emitted used to be handled.
6406 * config/i386/i386.h (ix86_compare_emitted): Remove.
6407 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
6408 instead of ix86_compare_emitted.
6409 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
67b8f1c1 6410
44509946
AS
64112009-04-07 Andrew Stubbs <ams@codesourcery.com>
6412
6413 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
6414 Add t-sysroot-suffix to tmake_file.
6415 * config/print-sysroot-suffix.sh: New file.
6416 * config/t-sysroot-suffix: New file.
6417
ca22d882
BE
64182009-04-07 Ben Elliston <bje@au.ibm.com>
6419
6420 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
6421 as the latter produces a warning when the target does not support
6422 infinity.
6423
95aac11b
BE
64242009-04-07 Ben Elliston <bje@au.ibm.com>
6425
6426 * dfp.c: Replace type punning assignments with memcpy throughout.
6427 * Makefile.in (dfp.o-warn): Remove.
2ba9daa7 6428
633dd061
AM
64292009-04-07 Alan Modra <amodra@bigpond.net.au>
6430
6431 PR target/39634
6432 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
6433 Include soft-fp/t-softfp after rs6000/t-linux64.
6434
fe0a25ec
EB
64352009-04-06 Eric Botcazou <ebotcazou@adacore.com>
6436
6437 * stor-layout.c (set_sizetype): Use the full precision of their
6438 machine mode for bitsize types.
6439
0c011bc3
L
64402009-04-06 H.J. Lu <hongjiu.lu@intel.com>
6441
6442 * config/i386/i386.md: Revert 2 accidental checkins.
6443
b6837b94 64442009-04-06 Joey Ye <joey.ye@intel.com>
60839f5d 6445 Xuepeng Guo <xuepeng.guo@intel.com>
b6837b94
JY
6446 H.J. Lu <hongjiu.lu@intel.com>
6447
6448 Atom pipeline model, tuning and insn selection.
6449 * config.gcc (atom): Add atom config options and target.
6450
6451 * config/i386/atom.md: New.
6452
6453 * config/i386/i386.c (atom_cost): New cost.
6454 (m_ATOM): New macro flag.
6455 (initial_ix86_tune_features): Set m_ATOM.
6456 (x86_accumulate_outgoing_args): Likewise.
6457 (x86_arch_always_fancy_math_387): Likewise.
6458 (processor_target): Add Atom cost.
6459 (cpu_names): Add Atom cpu name.
6460 (override_options): Set Atom ISA.
6461 (ix86_issue_rate): New case PROCESSOR_ATOM.
6462 (ix86_adjust_cost): Likewise.
6463
6464 * config/i386/i386.h (TARGET_ATOM): New target macro.
6465 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
6466 (TARGET_OPT_AGU): New target option.
6467 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
6468 (processor_type): Add PROCESSOR_ATOM.
6469
6470 * config/i386/i386.md (cpu): Add new value "atom".
6471 (use_carry, movu): New attr.
6472 (atom.md): Include atom.md.
6473 (adddi3_carry_rex64): Set attr "use_carry".
6474 (addqi3_carry): Likewise.
6475 (addhi3_carry): Likewise.
6476 (addsi3_carry): Likewise.
6477 (*addsi3_carry_zext): Likewise.
6478 (subdi3_carry_rex64): Likewise.
6479 (subqi3_carry): Likewise.
6480 (subhi3_carry): Likewise.
6481 (subsi3_carry): Likewise.
6482 (x86_movdicc_0_m1_rex64): Likewise.
6483 (*x86_movdicc_0_m1_se): Likewise.
6484 (x86_movsicc_0_m1): Likewise.
6485 (*x86_movsicc_0_m1_se): Likewise.
6486 (*adddi_1_rex64): Emit add insn as much as possible.
6487 (*addsi_1): Likewise.
6488 (return_internal): Set atom_unit.
6489 (return_internal_long): Likewise.
6490 (return_pop_internal): Likewise.
6491 (*rcpsf2_sse): Set atom_sse_attr attr.
6492 (*qrt<mode>2_sse): Likewise.
6493 (*prefetch_sse): Likewise.
6494
6495 * config/i386/i386-c.c (ix86_target_macros_internal): New case
6496 PROCESSOR_ATOM.
6497 (ix86_target_macros_internal): Likewise.
6498
6499 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
6500 (*prefetch_sse_rex): Likewise.
6501 (sse_rcpv4sf2): Likewise.
6502 (sse_vmrcpv4sf2): Likewise.
6503 (sse_sqrtv4sf2): Likewise.
6504 (<sse>_vmsqrt<mode>2): Likewise.
6505 (sse_ldmxcsr): Likewise.
6506 (sse_stmxcsr): Likewise.
6507 (*sse_sfence): Likewise.
6508 (sse2_clflush): Likewise.
6509 (*sse2_mfence): Likewise.
6510 (*sse2_lfence): Likewise.
6511 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
6512 (<sse>_movup<ssemodesuffixf2c>): Likewise.
6513 (avx_movdqu<avxmodesuffix>): Likewise.
6514 (avx_lddqu<avxmodesuffix>): Likewise.
6515 (sse2_movntv2di): Change attr "type" to "ssemov".
6516 (sse2_movntsi): Likewise.
6517 (rsqrtv8sf2): Change attr "type" to "sseadd".
6518 (sse3_addsubv2df3): Set attr "atom_unit".
6519 (sse3_h<plusminus_insn>v4sf3): Likewise.
6520 (*sse2_pmaddwd): Likewise.
6521 (*vec_extractv2di_1_rex64): Likewise.
6522 (*vec_extractv2di_1_avx): Likewise.
6523 (sse2_psadbw): Likewise.
6524 (ssse3_phaddwv8hi3): Likewise.
6525 (ssse3_phaddwv4hi3): Likewise.
6526 (ssse3_phadddv4si3): Likewise.
6527 (ssse3_phadddv2si3): Likewise.
6528 (ssse3_phaddswv8hi3): Likewise.
6529 (ssse3_phaddswv4hi3): Likewise.
6530 (ssse3_phsubwv8hi3): Likewise.
6531 (ssse3_phsubwv4hi3): Likewise.
6532 (ssse3_phsubdv4si3): Likewise.
6533 (ssse3_phsubdv2si3): Likewise.
6534 (ssse3_phsubswv8hi3): Likewise.
6535 (ssse3_phsubswv4hi3): Likewise.
6536 (ssse3_pmaddubsw128): Likewise.
6537 (sse3_pmaddubsw: Likewise.
6538 (ssse3_palignrti): Likewise.
6539 (ssse3_palignrdi): Likewise.
6540
53e350d3
GP
65412009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
6542
6543 * doc/install.texi (Specific): Fix two cross-references to MinGW.
6544
439ef907
RG
65452009-04-06 Richard Guenther <rguenther@suse.de>
6546
6547 PR tree-optimization/28868
6548 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
6549 of which PHI results we inserted.
6550 (insert_into_preds_of_block): Record inserted PHIs.
6551 (eliminate): Eliminate redundant PHI nodes.
6552 (init_pre): Init inserted_phi_names.
6553
4bad83f5
RG
65542009-04-06 Richard Guenther <rguenther@suse.de>
6555
6556 PR tree-optimization/39643
6557 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
6558 IMAGPART_EXPRs of complex constants.
6559 (execute_fold_all_builtins): If we folded a call queue
6560 TODO_update_address_taken.
6561
570c4247
JH
65622009-04-06 Jan Hubicka <jh@suse.cz>
6563
6564 PR middle-end/39659
6565 * except.c (remove_unreachable_regions): Propagate may_contain_throw
6566 flag.
6567
a460d7a1
AS
65682009-04-06 Andrew Stubbs <ams@codesourcery.com>
6569
6570 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
6571 delay slot.
6572 (ic_invalidate_array): Likewise.
6573
60839f5d 65742009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
6bdf8c2e
HS
6575
6576 * calls.c (emit_library_call_value_1): Fix a problem with parameter
6577 alignment for library calls.
6578
7d253f6e
DS
65792009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
6580
6581 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
6582 (mingw32 tm clause use_gcc_stdint): Set to wrap.
6583 * config/i386/mingw-stdint.h: New file.
6584
941c3614
RB
65852009-04-05 Richard Guenther <rguenther@suse.de>
6586
6587 PR tree-optimization/39648
6588 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
6589 our &A vs. &A[0] IL deficiencies.
6590
12633413
JH
65912009-04-04 Jan Hubicka <jh@suse.cz>
6592
941c3614
RB
6593 * except.c (sjlj_find_directly_reachable_regions): Be ready for
6594 removed toplevel regions.
12633413
JH
6595 (sjlj_mark_call_sites): Likewise.
6596
bb2aaded
DK
65972009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
6598
6599 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
6600 (cygwin tm clause use_gcc_stdint): Set to wrap.
6601 * config/i386/cygwin-stdint.h: New file.
6602
86290011
RG
66032009-04-04 Richard Guenther <rguenther@suse.de>
6604
6605 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
6606 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
6607 single-argument PHIs if we are in loop-closed SSA form.
6608 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
6609 for the pre-condition.
6610 (slpeel_tree_peel_loop_to_edge): Likewise.
6611 (vect_build_loop_niters): Take an optional sequence to append stmts.
6612 (vect_generate_tmps_on_preheader): Likewise.
6613 (vect_do_peeling_for_loop_bound): Take extra guards for the
6614 pre-condition.
6615 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
6616 the cost model check.
6617 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
7a715bba 6618 guards if we are going to peel. Do not apply versioning in that case.
86290011
RG
6619 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
6620 (vect_do_peeling_for_loop_bound): Likewise.
6621 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
6622 loop bound only record extra pre-conditions, do not apply loop
6623 versioning.
6624
5eeeac64
RG
66252009-04-04 Richard Guenther <rguenther@suse.de>
6626
6627 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
6628 renaming code.
6629
1ff7d06b
JH
66302009-04-04 Jan Hubicka <jh@suse.cz>
6631
6632 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
6633 last_basic_block for size of bb->index indexed array.
6634 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
6635 compute_out, link_btr_uses, build_btr_def_use_webs,
6636 build_btr_def_use_webs, migrate_btr_defs): Likewise.
6637
14925fcd
JH
66382009-04-04 Jan Hubicka <jh@suse.cz>
6639
6640 * except.c (remove_eh_handler_and_replace): Break out from ...
6641 (remove_eh_handler): ... here.
6642 (bring_to_root): New function.
6643 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
6644 handled ones, bring others to root of tree.
6645
4e6d1743
JH
66462009-04-04 Jan Hubicka <jh@suse.cz>
6647
4cb735f7
JH
6648 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
6649 (all_phis_safe_to_merge): New function.
6650 (update_info): New structure.
6651 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
6652 (cleanup_empty_eh): Update SSA if possible.
4e6d1743 6653
c6803d43
RG
66542009-04-04 Richard Guenther <rguenther@suse.de>
6655
6656 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
6657 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
6658 (append_vuse): Likewise.
6659
54f5943c
JJ
66602009-04-04 Jakub Jelinek <jakub@redhat.com>
6661
6662 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
6663 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
6664 instead of REG_UNSAVED for DW_CFA_undefined.
6665 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
6666 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
6667 outermost frame.
6668
aad2bccb
RE
66692009-04-04 Richard Earnshaw <rearnsha@arm.com>
6670
6671 PR target/39501
6672 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
6673 * testsuite/gcc.c-torture/execute/pr39501.c: New file.
6674 * testsuite/gcc.c-torture/execute/pr39501.x: New file.
6675
aa7069aa
RG
66762009-04-04 Richard Guenther <rguenther@suse.de>
6677
6678 PR tree-optimization/8781
6679 PR tree-optimization/37892
6680 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
6681 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
6682 (valueize_refs): Call it for *& valueizations.
6683 (shared_reference_ops_from_ref): Rename to ...
6684 (valueize_shared_reference_ops_from_ref): ... this and valueize.
6685 (shared_reference_ops_from_call): Rename to ...
6686 (valueize_shared_reference_ops_from_call): ... this and valueize.
6687 (vn_reference_lookup): Update.
6688 (visit_reference_op_call): Likewise.
6689 * tree-ssa-pre.c (phi_translate_1): Fold *&.
6690 (eliminate): Value-replace the call address in call statements.
6691
cd15ad3e
RG
66922009-04-04 Richard Guenther <rguenther@suse.de>
6693
6694 PR tree-optimization/39636
6695 * tree-ssa-forwprop.c
6696 (forward_propagate_addr_into_variable_array_index): Check for
6697 GIMPLE_ASSIGN before accessing the rhs code.
6698
462f3262
JM
66992009-04-03 Jason Merrill <jason@redhat.com>
6700
6701 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
6702
6adb807e
SE
67032009-04-03 Steve Ellcey <sje@cup.hp.com>
6704
6705 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
6706 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
6707 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
6708 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
6709 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
6710 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
6711 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
6712 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
6713 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
6714 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
6715 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
6716 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
6717 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
6718 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
6719 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
6720 Use fr_reg_or_fp01_operand instead of fr_register_operand
6721
6722 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
6723 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
6724 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
6725
174b3107
VM
67262009-04-03 Vladimir Makarov <vmakarov@redhat.com>
6727
b844e5d8
L
6728 PR rtl-optimization/39607
6729 PR rtl-optimization/39631
7a715bba
UB
6730
6731 Revert:
2ba9daa7 6732
174b3107
VM
6733 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
6734 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
6735 instead of DF_LR_OUT.
6736 * ira-lives.c (process_bb_node_lives): Ditto.
6737 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
6738 instead of DF_LR_{OUT,IN}.
6739 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
6740 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
6741
535b544a
SB
67422009-04-03 Steven Bosscher <steven@gcc.gnu.org>
6743
6744 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
6745 (execute_lower_omp): Always run but take the short way out if -fopenmp
6746 is not given.
6747 (gate_lower_omp): Remove, forcing the pass manager to always run the
6748 pass and always set PROP_gimple_lomp.
6749 (pass_lower_omp): Remove gate function.
6750 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
6751 PROP_trees. Instead, require it.
6752 * ipa-cp.c (pass_ipa_cp): Likewise.
6753 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
6754 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
6755 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
6756 and PROP_gimple_leh.
6757
5006671f
RG
67582009-04-03 Richard Guenther <rguenther@suse.de>
6759
6760 PR middle-end/13146
6761 PR tree-optimization/23940
6762 PR tree-optimization/33237
6763 PR middle-end/33974
6764 PR middle-end/34093
6765 PR tree-optimization/36201
6766 PR tree-optimization/36230
6767 PR tree-optimization/38049
6768 PR tree-optimization/38207
6769 PR tree-optimization/38230
6770 PR tree-optimization/38301
6771 PR tree-optimization/38585
6772 PR middle-end/38895
6773 PR tree-optimization/38985
6774 PR tree-optimization/39299
6775 * tree-ssa-structalias.h: Remove.
6776 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
6777 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
6778 (struct vuse_element_d): Remove.
6779 (struct vuse_vec_d): Likewise.
6780 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
6781 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
6782 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
6783 VUSE_ELEMENT_VAR): Likewise.
6784 (struct voptype_d): Likewise.
6785 (NUM_VOP_FREE_BUCKETS): Likewise.
6786 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
6787 (struct stmt_operands_d): Remove.
6788 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
6789 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
6790 VDEF_NUM, VDEF_VECT): Likewise.
6791 (copy_virtual_operands): Remove.
6792 (operand_build_cmp): Likewise.
6793 (create_ssa_artificial_load_stmt): Likewise.
6794 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
6795 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
6796 vuse_index and mayuse_index members. Pack and move done and iter_type
6797 members to the front.
6798 (SSA_OP_VMAYUSE): Remove.
6799 (SSA_OP_VIRTUAL_USES): Adjust.
6800 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
6801 (unlink_stmt_vdef): Declare.
6802 (add_to_addressable_set): Remove.
6803 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
6804 (vrp_visit_stmt): Likewise.
6805 * doc/tree-ssa.texi (Alias analysis): Update.
6806 * doc/invoke.texi (max-aliased-vops): Remove docs.
6807 (avg-aliased-vops): Likewise.
6808 * tree-into-ssa.c (syms_to_rename): Remove.
6809 (need_to_update_vops_p): Likewise.
6810 (need_to_initialize_update_ssa_p): Rename to ...
6811 (update_ssa_initialized_fn): ... this. Track function we are
6812 initialized for.
6813 (symbol_marked_for_renaming): Simplify.
6814 (add_new_name_mapping): Do not set need_to_update_vops_p.
6815 (dump_currdefs): Use SYMS_TO_RENAME.
6816 (rewrite_update_stmt): Always walk all uses/defs.
6817 (dump_update_ssa): Adjust.
6818 (init_update_ssa): Take function argument. Track what we are
6819 initialized for.
6820 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
6821 (create_new_def_for): Initialize for cfun, assert we are initialized
6822 for cfun.
6823 (mark_sym_for_renaming): Simplify.
6824 (mark_set_for_renaming): Do not initialize update-ssa.
6825 (need_ssa_update_p): Simplify. Take function argument.
6826 (name_mappings_registered_p): Assert we ask for the correct function.
6827 (name_registered_for_update_p): Likewise.
6828 (ssa_names_to_replace): Likewise.
6829 (release_ssa_name_after_update_ssa): Likewise.
6830 (update_ssa): Likewise. Use SYMS_TO_RENAME.
6831 (dump_decl_set): Do not print a newline.
6832 (debug_decl_set): Do it here.
6833 (dump_update_ssa): And here.
6834 * tree-ssa-loop-im.c (move_computations): Adjust.
6835 (movement_possibility): Likewise.
6836 (determine_max_movement): Likewise.
6837 (gather_mem_refs_stmt): Likewise.
6838 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
6839 or NAME_MEMORY_TAG.
6840 * tree-complex.c (update_all_vops): Remove.
6841 (expand_complex_move): Adjust.
6842 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
6843 Simplify test for memory referencing statement. Exclude
6844 non-invariant ADDR_EXPRs.
6845 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
6846 * tree-loop-distribution.c (generate_memset_zero): Adjust.
6847 (rdg_flag_uses): Likewise.
6848 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
6849 related code.
6850 (tree_optimize_tail_calls_1): Also split the
6851 edge from the entry block if we have degenerate PHI nodes in
6852 the first basic block.
6853 * tree.c (init_ttree): Remove memory-tag related code.
6854 (tree_code_size): Likewise.
6855 (tree_node_structure): Likewise.
6856 (build7_stat): Re-write to be build6_stat.
6857 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
6858 (SSA_VAR_P): Adjust.
6859 (struct tree_memory_tag): Remove.
6860 (struct tree_memory_partition_tag): Likewise.
6861 (union tree_node): Adjust.
6862 (build7): Re-write to be build6.
6863 * tree-pass.h (pass_reset_cc_flags): Remove.
6864 (TODO_update_address_taken): New flag.
6865 (pass_simple_dse): Remove.
6866 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
6867 * params.h (MAX_ALIASED_VOPS): Remove.
6868 (AVG_ALIASED_VOPS): Likewise.
6869 * omp-low.c (expand_omp_taskreg): Update SSA form.
6870 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
6871 aliases the lhs in a copy stmt.
6872 * tree-ssa-dse.c (struct address_walk_data): Remove.
6873 (memory_ssa_name_same): Likewise.
6874 (memory_address_same): Likewise.
6875 (get_kill_of_stmt_lhs): Likewise.
6876 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
6877 unused stores. Look through PHI nodes into post-dominated regions.
6878 (dse_optimize_stmt): Simplify. Properly remove stores.
6879 (tree_ssa_dse): Compute dominators.
6880 (execute_simple_dse): Remove.
6881 (pass_simple_dse): Likewise.
6882 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
6883 gimple_loaded_syms and gimple_stored_syms computation.
6884 * toplev.c (dump_memory_report): Dump alias and pta stats.
6885 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
6886 (vn_reference_eq): Likewise.
6887 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
6888 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
6889 valueize_vuses): Remove.
6890 (get_def_ref_stmt_vuses): Simplify. Rename to ...
6891 (get_def_ref_stmt_vuse): ... this.
6892 (vn_reference_lookup_2): New function.
6893 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
6894 walking equivalent vuses. Simplify.
6895 (vn_reference_lookup): Likewise.
6896 (vn_reference_insert): Likewise.
6897 (vn_reference_insert_pieces): Likewise.
6898 (visit_reference_op_call): Simplify.
6899 (visit_reference_op_load): Likewise.
6900 (visit_reference_op_store): Likewise.
6901 (init_scc_vn): Remove shared_lookup_vuses initialization.
6902 (free_scc_vn): Remove shared_lookup_vuses freeing.
6903 (sort_vuses, sort_vuses_heap): Remove.
6904 (get_ref_from_reference_ops): Export.
6905 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
6906 vector with single vuse pointer.
6907 (vn_reference_lookup_pieces, vn_reference_lookup,
6908 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
6909 (shared_vuses_from_stmt): Remove.
6910 (get_ref_from_reference_ops): Declare.
6911 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
6912 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
6913 memory-tag related code.
6914 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
6915 (likely_value): Add comment, skip static-chain of call statements.
6916 (surely_varying_stmt_p): Adjust.
6917 (gimplify_and_update_call_from_tree): Likewise.
6918 (execute_fold_all_builtins): Do not rebuild alias info.
6919 (gimplify_and_update_call_from_tree): Properly update VOPs.
6920 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
6921 (copy_ref_info): Remove memory-tag related code.
6922 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
6923 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
6924 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
6925 computation.
6926 * tree-ssa-dom.c (gimple_p): Remove typedef.
6927 (eliminate_redundant_computations): Adjust.
6928 (record_equivalences_from_stmt): Likewise.
6929 (avail_expr_hash): Likewise.
6930 (avail_expr_eq): Likewise.
7a715bba 6931 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
5006671f
RG
6932 (stmt_makes_single_load): Likewise.
6933 (stmt_makes_single_store): Likewise.
6934 * tree-ssa-alias.c: Rewrite completely.
6935 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
6936 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
6937 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
6938 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
6939 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
6940 Remove public functions.
6941 (pass_reset_cc_flags): Remove.
6942 (pass_build_alias): Move ...
6943 * tree-ssa-structalias.c (pass_build_alias): ... here.
6944 * tree-ssa-alias.c (may_be_aliased): Move ...
6945 * tree-flow-inline.h (may_be_aliased): ... here.
6946 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
6947 count_uses_and_derefs): Move ...
6948 * gimple.c: ... here.
6949 * gimple.h (count_uses_and_derefs): Declare.
6950 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
6951 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
6952 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
6953 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
6954 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
6955 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
6956 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
6957 New functions.
6958 * tree-dfa.c (refs_may_alias_p): Move ...
6959 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
6960 * tree-ssa-alias.h: New file.
6961 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
6962 (statement_sink_location): Likewise.
6963 * opts.c (decode_options): Do not adjust max-aliased-vops or
6964 avg-aliased-vops values.
6965 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
6966 (TV_CALL_CLOBBER): Likewise.
6967 (TV_FLOW_SENSITIVE): Likewise.
6968 (TV_FLOW_INSENSITIVE): Likewise.
6969 (TV_MEMORY_PARTITIONING): Likewise.
6970 (TV_ALIAS_STMT_WALK): New timevar.
6971 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
6972 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
6973 (get_address_description): Remove memory-tag related code.
6974 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
6975 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
6976 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
6977 and immediate uses in statements. Document.
6978 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
6979 (dump_symbols): Remove.
6980 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
6981 * alias.c (get_deref_alias_set): New function split out from ...
6982 (get_alias_set): ... here.
6983 * alias.h (get_deref_alias_set): Declare.
6984 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
6985 type parameter. Remove restrict pointer handling. Create a
6986 ref-all pointer in case type-based alias sets do not conflict.
6987 (vect_analyze_data_refs): Remove SMT related code.
6988 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
6989 (vectorizable_load): Likewise.
6990 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
6991 (DR_SYMBOL_TAG, DR_VOPS): Remove.
6992 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
6993 Ignore vops and SMTs.
6994 (dr_analyze_alias): Likewise..
6995 (free_data_ref): Likewise.
6996 (create_data_ref): Likewise.
6997 (analyze_all_data_dependences): Likewise.
6998 (get_references_in_stmt): Adjust.
6999 * tree-flow-inline.h (gimple_aliases_computed_p,
7000 gimple_addressable_vars, gimple_call_clobbered_vars,
7001 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
7002 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
7003 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
7004 gimple_mem_ref_stats): Remove.
7005 (gimple_vop): New function.
7006 (op_iter_next_use): Remove vuses and mayuses cases.
7007 (op_iter_next_def): Remove vdefs case.
7008 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
7009 (clear_and_done_ssa_iter): Do not set removed fields.
7010 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
7011 Assert we are not iterating over vuses or vdefs if not also
7012 iterating over uses or defs.
7013 (op_iter_init_use): Likewise.
7014 (op_iter_init_def): Likewise.
7015 (op_iter_next_vdef): Remove.
7016 (op_iter_next_mustdef): Likewise.
7017 (op_iter_init_vdef): Likewise.
7018 (compare_ssa_operands_equal): Likewise.
7019 (link_use_stmts_after): Handle vuse operand.
7020 (is_call_used): Use is_call_clobbered.
7021 (is_call_clobbered): Global variables are always call clobbered,
7022 query the call-clobbers bitmap.
7023 (mark_call_clobbered): Ignore global variables.
7024 (clear_call_clobbered): Likewise.
7025 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
7026 virtual operands sanity check.
7027 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
7028 Remove.
7029 (TARGET_MEM_REF): Remove TMR_TAG operand.
7030 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
7031 Remove call-clobber related code.
7032 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
7033 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
7034 partitions or escape reason.
7035 (get_single_def_stmt, get_single_def_stmt_from_phi,
7036 get_single_def_stmt_with_phi): Remove.
7037 (dump_referenced_vars): Tidy.
7038 (get_ref_base_and_extent): Allow bare decls.
7039 (collect_dfa_stats): Adjust.
7040 * graphite.c (rename_variables_in_stmt): Adjust.
7041 (graphite_copy_stmts_from_block): Likewise.
7042 (translate_clast): Likewise.
7043 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
7044 (EXPR_DIES): New.
7045 (translate_vuse_through_block): Use the oracle.
7046 (phi_translate_1): Adjust.
7047 (value_dies_in_block_x): Use the oracle. Cache the outcome
7048 in EXPR_DIES.
7049 (valid_in_sets): Check if the VUSE for
7050 a REFERENCE is available.
7051 (eliminate): Do not remove stmts during elimination,
7052 instead queue and remove them afterwards.
7053 (do_pre): Do not rebuild alias info.
7054 (pass_pre): Run TODO_rebuild_alias before PRE.
7055 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
7056 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
7057 (mark_all_v_defs_stmt): Remove.
7058 (mark_all_v_defs_seq): Adjust.
7059 (sra_replace): Likewise.
7060 (scalarize_use): Likewise.
7061 (scalarize_copy): Likewise.
7062 (scalarize_init): Likewise.
7063 (scalarize_ldst): Likewise.
7064 (todoflags): Remove.
7065 (tree_sra): Do not rebuild alias info.
7066 (tree_sra_early): Adjust.
7067 (pass_sra): Run TODO_update_address_taken before SRA.
7068 * tree-predcom.c (set_alias_info): Remove.
7069 (prepare_initializers_chain): Do not call it.
7070 (mark_virtual_ops_for_renaming): Adjust.
7071 (mark_virtual_ops_for_renaming_list): Remove.
7072 (initialize_root_vars): Adjust.
7073 (initialize_root_vars_lm): Likewise.
7074 (prepare_initializers_chain): Likewise.
7075 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
7076 (may_propagate_copy_into_stmt): Likewise.
7077 (merge_alias_info): Do nothing for now.
7078 (propagate_tree_value_into_stmt): Adjust.
7079 (stmt_may_generate_copy): Likewise.
7080 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
7081 not mark symbols for renaming.
7082 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
7083 with the same statement, make sure to update the new pointed-to one.
7084 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
7085 call statements, do not mark symbols for renaming.
7086 (mark_operand_necessary): Dump something.
7087 (ref_may_be_aliased): New function.
7088 (mark_aliased_reaching_defs_necessary_1): New helper function.
7089 (mark_aliased_reaching_defs_necessary): Likewise.
7090 (mark_all_reaching_defs_necessary_1): Likewise.
7091 (mark_all_reaching_defs_necessary): Likewise.
7092 (propagate_necessity): Do not process virtual PHIs. For
7093 non-aliased loads mark all reaching definitions as necessary.
7094 For aliased loads and stores mark the immediate dominating
7095 aliased clobbers as necessary.
7096 (visited): New global static.
7097 (perform_tree_ssa_dce): Free visited bitmap after propagating
7098 necessity.
7099 (remove_dead_phis): Perform simple dead virtual PHI removal.
7100 (remove_dead_stmt): Properly unlink virtual operands when
7101 removing stores.
7102 (eliminate_unnecessary_stmts): Schedule PHI removal after
7103 stmt removal.
7104 * tree-ssa-ter.c (is_replaceable_p): Adjust.
7105 (process_replaceable): Likewise.
7106 (find_replaceable_in_bb): Likewise.
7107 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
7108 based on the single gimple vop.
7109 (verify_flow_insensitive_alias_info): Remove.
7110 (verify_flow_sensitive_alias_info): Likewise.
7111 (verify_call_clobbering): Likewise.
7112 (verify_memory_partitions): Likewise.
7113 (verify_alias_info): Likewise.
7114 (verify_ssa): Adjust..
7115 (execute_update_addresses_taken): Export. Update SSA
7116 manually. Optimize only when optimizing. Use a local bitmap.
7117 (pass_update_address_taken): Remove TODO_update_ssa, add
7118 TODO_dump_func.
7119 (pass_update_address_taken): Just use TODO_update_address_taken.
7120 (init_tree_ssa): Do not initialize addressable_vars.
7121 (verify_ssa): Verify new VUSE / VDEF properties.
7122 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
7123 Do not call verify_alias_info.
7124 (delete_tree_ssa): Clear the VUSE, VDEF operands.
7125 Do not free the loaded and stored syms bitmaps. Reset the escaped
7126 and callused solutions. Do not free addressable_vars.
7127 Remove memory-tag related code.
7128 (warn_uninitialized_var): Aliases are always available.
7129 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
7130 * lambda-code.c (can_put_in_inner_loop): Adjust.
7131 (can_put_after_inner_loop): Likewise.
7132 (perfect_nestify): Likewise.
7133 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
7134 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
7135 (vectorizable_conversion): Do not mark symbols for renaming.
7136 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
7137 (expand_call_inline): Unlink the calls virtual operands before
7138 replacing it.
7139 (tree_function_versioning): Do not call update_ssa if we are not
7140 updating clones. Simplify.
7141 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
7142 (propagate_with_phi): Likewise..
7143 * tree-outof-ssa.c (create_temp): Remove memory tag and call
7144 clobber code. Assert we are not aliased or global.
7145 * tree-flow.h: Include tree-ssa-alias.h
7146 (enum escape_type): Remove.
7147 (struct mem_sym_stats_d): Likewise.
7148 (struct mem_ref_stats_d): Likewise.
7149 (struct gimple_df): Add vop member. Remove global_var,
7150 call_clobbered_vars, call_used_vars, addressable_vars,
7151 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
7152 escaped and callused members.
7153 (struct ptr_info_def): Remove all members, add points-to solution
7154 member pt.
7155 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
7156 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
7157 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
7158 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
7159 (tree-ssa-alias.o): Likewise.
7160 (toplev.o): Add tree-ssa-alias.h
7161 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
7162 * gimple.c (gimple_set_bb): Fix off-by-one error.
7163 (is_gimple_reg): Do not handle memory tags.
7164 (gimple_copy): Also copy virtual operands.
7165 Delay updating the statement. Do not reset loaded and stored syms.
7166 (gimple_set_stored_syms): Remove.
7167 (gimple_set_loaded_syms): Likewise.
7168 (gimple_call_copy_skip_args): Copy the virtual operands
7169 and mark the new statement modified.
7170 * tree-ssa-structalias.c (may_alias_p): Remove.
7171 (set_uids_in_ptset): Take the alias set to prune with as
7172 parameter. Fold in the alias test of may_alias_p.
7173 (compute_points_to_sets): Compute whether a ptr is dereferenced
7174 in a local sbitmap.
7175 (process_constraint): Deal with &ANYTHING on the lhs, reject all
7176 other ADDRESSOF constraints on the lhs.
7177 (get_constraint_for_component_ref): Assert that we don't get
7178 ADDRESSOF constraints from the base of the reference.
7179 Properly generate UNKNOWN_OFFSET for DEREF if needed.
7180 (struct variable_info): Remove collapsed_to member.
7181 (get_varinfo_fc): Remove.
7182 (new_var_info): Do not set collapsed_to.
7183 (dump_constraint): Do not follow cycles.
7184 (dump_constraint_graph): Likewise.
7185 (build_pred_graph): Likewise.
7186 (build_succ_graph): Likewise.
7187 (rewrite_constraints): Likewise.
7188 (do_simple_structure_copy): Remove.
7189 (do_rhs_deref_structure_copy): Remove.
7190 (do_lhs_deref_structure_copy): Remove.
7191 (collapse_rest_of_var): Remove.
7192 (do_structure_copy): Re-implement.
7193 (pta_stats): New global variable.
7194 (dump_pta_stats): New function.
7195 (struct constraint_expr): Make offset signed.
7196 (UNKNOWN_OFFSET): Define special value.
7197 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
7198 (solution_set_expand): New helper function split out from ...
7199 (do_sd_constraint): ... here.
7200 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
7201 (do_ds_constraint): Likewise.
7202 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
7203 and CALLUSED = *CALLUSED.
7204 (set_union_with_increment): Make inc argument signed.
7205 (type_safe): Remove.
7206 (get_constraint_for_ptr_offset): Handle unknown and negative
7207 constant offsets.
7208 (first_vi_for_offset): Handle offsets before start. Bail
7209 out early for offsets beyond the variable extent.
7210 (first_or_preceding_vi_for_offset): New function.
7211 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
7212 Together with ESCAPED = *ESCAPED this properly computes reachability.
7213 (find_what_var_points_to): New function.
7214 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
7215 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
7216 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
7217 pt_solutions_intersect): New functions.
7218 (compute_call_used_vars): Remove.
7219 (compute_may_aliases): New main entry into PTA computation.
7220 * gimple.h (gimple_p): New typedef.
7221 (struct gimple_statement_base): Remove references_memory_p.
7222 (struct gimple_statement_with_memory_ops_base): Remove
7223 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
7224 members.
7225 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
7226 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
7227 gimple_set_references_memory): Remove.
7228 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
7229 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
7230 New functions.
7231 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
7232 (verify_expr): Allow RESULT_DECL.
7233 (gimple_duplicate_bb): Do not copy virtual operands.
7234 (gimple_duplicate_sese_region): Adjust.
7235 (gimple_duplicate_sese_tail): Likewise.
7236 (mark_virtual_ops_in_region): Remove.
7237 (move_sese_region_to_fn): Do not call it.
7238 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
7239 and pass_simple_dse.
7240 (execute_function_todo): Handle TODO_update_address_taken,
7241 call execute_update_addresses_taken for TODO_rebuild_alias.
7242 (execute_todo): Adjust.
7243 (execute_one_pass): Init dump files early.
7244 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
7245 call-clobbered.
7246 (create_general_new_stmt): Clear vops.
7247 * tree-ssa-reassoc.c (get_rank): Adjust.
7248 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
7249 symbols for renaming.
7250 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
7251 (PARAM_AVG_ALIASED_VOPS): Likewise.
7252 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
7253 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
7a715bba 7254 * tree-ssa-operands.c: Simplify for new virtual operand representation.
5006671f
RG
7255 (operand_build_cmp, copy_virtual_operands,
7256 create_ssa_artificial_load_stmt, add_to_addressable_set,
7257 gimple_add_to_addresses_taken): Remove public functions.
7258 (unlink_stmt_vdef): New function.
7259
457d1d00
AM
72602009-04-03 Alan Modra <amodra@bigpond.net.au>
7261
7262 * config.gcc (powerpc-*-linux*): Merge variants.
7263
e19da24c 72642009-04-02 Chao-ying Fu <fu@mips.com>
60839f5d 7265 James Grosbach <james.grosbach@microchip.com>
e19da24c
CF
7266
7267 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
7268 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
7269 cop0_sp_offset.
7270 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
7271 keep_interrupts_masked_p, use_debug_exception_return_p.
7272 (mips_attribute_table): Add interrupt, use_shadow_register_set,
7273 keep_interrupts_masked, use_debug_exception_return.
7274 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
7275 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
7276 New functions.
7277 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
7278 (mips_print_operand): Process COP0 registers to print $0 .. $31
7279 correctly for GAS to process.
7280 (mips_interrupt_extra_call_saved_reg_p): New function.
7281 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
7282 extra registers.
7283 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
7284 (mips_compute_frame_info): Add supports for interrupt context that
7285 includes doubleword accumulators and COP0 registers.
7286 (mips_for_each_saved_acc): New function.
7287 (mips_for_each_saved_gpr_and_fpr): Change the function name from
7288 mips_for_each_saved_reg.
7289 (mips_save_reg): Save accumulators.
7290 (mips_kernel_reg_p): A new for_each_rtx callback.
7291 (mips_expand_prologue): Support interrupt handlers.
7292 (mips_restore_reg): Restore accumulators.
7293 (mips_expand_epilogue): Support interrupt handlers.
7294 (mips_can_use_return_insn): Return false for interrupt handlers.
7295 (mips_epilogue_uses): New function.
7296 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
7297 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
7298 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
7299 cop0_move): New instructions.
7300 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
7301 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
7302 defines.
7303 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
7304 New defines.
7305 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
7306 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
7307 interrupt handlers, we use K0 as the temporary register.
7308 (EPILOGUE_USES): Change to a function call.
7309 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
7310 handlers, we use K0 as the temporary register.
2ba9daa7 7311
e19da24c
CF
7312 * doc/extend.texi (Function Attributes): Document interrupt,
7313 use_shadow_register_set, keep_interrupts_masked,
7314 use_debug_exception_return for MIPS attributes.
7315
aa1ca044
AM
73162009-04-03 Alan Modra <amodra@bigpond.net.au>
7317
7318 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
7319 Remove a number of t-files from tmake_file.
7320 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
7321 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
7322 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
7323 target_prototype, not TARGET_PROTOTYPE.
7324 (LINK_OS_GNU_SPEC): Define.
7325 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
7326 and darwin-ldoubdle.c.
7327
14fdc613
MM
73282009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7329
7330 PR driver/39293
7331 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
7332 (cpp_options): Ditto.
7333 (default_compilers): Ditto.
7334 (display_help): Ditto.
7335 (process_command): Ditto.
7336 (do_spec_1): Ditto.
7337 (set_input): Use lbasename instead of duplicate code.
7338 (save_temps_prefix): New static for -save-temps=obj.
7339 (save_temps_length): Ditto.
2ba9daa7 7340
14fdc613
MM
7341 * doc/invoke.texi (-save-temps=obj): Document new variant to
7342 -save-temps switch.
7343
d3aa398e
JL
73442009-04-02 Jeff Law <law@redhat.com>
7345
7346 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
7347 variable.
7348
83f0ccb8
L
73492009-04-02 H.J. Lu <hongjiu.lu@intel.com>
7350
7351 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
7352 * configure: Regenerated.
7353
dcb6e951
RAE
73542009-04-02 Rafael Avila de Espindola <espindola@google.com>
7355
7356 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
7357 share the argument list.
7358
d85478c2
RAE
73592009-04-02 Rafael Avila de Espindola <espindola@google.com>
7360
7361 Merge
7362
7363 2009-02-12 Diego Novillo <dnovillo@google.com>
7364
83f0ccb8
L
7365 * varpool.c (debug_varpool): New.
7366 * cgraph.h (debug_varpool): Declare.
d85478c2 7367
34f42a49
JH
73682009-04-02 Jan Hubicka <jh@suse.cz>
7369
7370 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
7371 pass.
7372
a4747b4a
L
73732009-04-02 H.J. Lu <hongjiu.lu@intel.com>
7374
7375 * config/i386/i386.c (ix86_abi): Move initialization to ...
7376 (override_options): Here.
7377
63a9de54
CB
73782009-04-02 Christian Bruel <christian.bruel@st.com>
7379
7380 * config/sh/sh.c (sh_dwarf_register_span): New function.
7381 (TARGET_DWARF_REGISTER_SPAN): Define.
7382 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
2ba9daa7 7383
2f0fa28e
IR
73842009-04-02 Ira Rosen <irar@il.ibm.com>
7385
7386 PR tree-optimization/39595
2ba9daa7 7387 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
2f0fa28e
IR
7388 interleaved loads group is not greater than the SLP group size.
7389
bbf7ce11
RAE
73902009-04-02 Rafael Avila de Espindola <espindola@google.com>
7391
7392 * builtins.c (is_builtin_name): New.
7393 (called_as_built_in): Use is_builtin_name.
7394 * tree.h (is_builtin_name): New.
7395 * varasm.c (incorporeal_function_p): Use is_builtin_name
7396
47e4dfcf
AS
73972009-04-02 Andrew Stubbs <ams@codesourcery.com>
7398
7399 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
7400
d0940d56
DS
74012009-04-02 Dodji Seketeli <dodji@redhat.com>
7402
7403 PR c++/26693
532bfb0a 7404 * c-decl.c (clone_underlying_type): Move this ...
d0940d56
DS
7405 * c-common.c (set_underlying_type): ... here.
7406 Also, make sure the function properly sets TYPE_STUB_DECL() on
7407 the newly created typedef variant type.
7408 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
7a715bba
UB
7409 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
7410 points.
d0940d56 7411
bf1cbdc6
RG
74122009-04-02 Richard Guenther <rguenther@suse.de>
7413
7414 PR tree-optimization/37221
7415 * tree-flow.h (degenerate_phi_result): Declare.
7416 * tree-ssa-dom.c (degenerate_phi_result): Export.
7417 * tree-scalar-evolution.c (analyze_initial_condition): If
7418 the initial condition is defined by a degenerate PHI node
7419 use the degenerate value.
7420
87cfb32c
EB
74212009-04-01 Eric Botcazou <ebotcazou@adacore.com>
7422
7423 PR rtl-optimization/39588
7424 * combine.c (merge_outer_ops): Do not set the constant when this
7425 is not necessary.
7426 (simplify_shift_const_1): Do not modify it either in this case.
7427
bbb6eae8
SB
74282009-04-01 Steven Bosscher <steven@gcc.gnu.org>
7429
7430 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
7431 tuning is deprecated if -mtune value is set to an Itanium1 variant.
7432
839a3b8a
JJ
74332009-04-01 Janis Johnson <janis187@us.ibm.com>
7434
7435 PR c/29027
7436 * c-lex.c (interpret_float): Default (no suffix) is double.
7437
667e8acb
XDL
74382009-04-1 Xinliang David Li <davidxl@google.com>
7439
7440 * config/i386/i386.c (legitimate_constant_p): Recognize
7441 all one vector constant.
7442
60839f5d 74432009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 7444
60839f5d 7445 * config/vax/vax.c: Add #includes to silence warnings.
c4e75102
MT
7446 Change #include order to silence two warnings.
7447
60839f5d 74482009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 7449
60839f5d 7450 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
c4e75102
MT
7451 (ASM_SPEC): Pass -k to the assembler for PIC code.
7452
60839f5d 74532009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 7454
60839f5d
EB
7455 * config.gcc: Add vax-*-linux* to the switch.
7456 * config/vax/linux.h: New file. (TARGET_VERSION,
c4e75102
MT
7457 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
7458
60839f5d 74592009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 7460
60839f5d 7461 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
c4e75102 7462 Use predicate macros instead of GET_CODE() == foo.
60839f5d 7463 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
c4e75102
MT
7464 ashlsi3, rotrsi3, <unnamed>): Likewise.
7465
60839f5d 74662009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 7467
60839f5d 7468 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
c4e75102 7469 jbbccihi, jbbccisi): Remova trailing whitespace.
60839f5d
EB
7470 * config/vax/constraints.md: Likewise.
7471 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
7472 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
7473 * config/vax/predicates.md: Likewise.
7474 * config/vax/vax.c (print_operand_address, vax_output_int_move,
c4e75102 7475 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
60839f5d
EB
7476 * config/vax/vax.h: Likewise.
7477 * config/vax/vax.md (nonlocal_goto): Likewise.
c4e75102 7478
60839f5d 74792009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 7480
60839f5d 7481 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
c4e75102
MT
7482 (indirectable_address_p, adjacent_operands_p): Add spaces around
7483 braces.
60839f5d 7484 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
c4e75102 7485
60839f5d 74862009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 7487
60839f5d 7488 * config/vax/vax.c (legitimate_constant_address_p,
c4e75102
MT
7489 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
7490 index_term_p, reg_plus_index_p, legitimate_address_p,
7491 vax_mode_dependent_address_p): Update comments to match functions
7492 modified by the recent int->bool conversion.
7493
60839f5d 74942009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 7495
60839f5d
EB
7496 * config/vax/builtins.md: Update copyright message.
7497 * config/vax/constraints.md: Likewise.
7498 * config/vax/netbsd-elf.h: Likewise.
7499 * config/vax/predicates.md: Likewise.
7500 * config/vax/vax-protos.h: Likewise.
7501 * config/vax/vax.c: Likewise.
7502 * config/vax/vax.h: Likewise.
7503 * config/vax/vax.md: Likewise.
7504 * config/vax/vax.opt: Likewise.
c4e75102 7505
60839f5d 75062009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 7507
60839f5d 7508 * config/vax/builtins.md (ffssi2, ffssi2_internal,
c4e75102 7509 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
60839f5d
EB
7510 * config/vax/constraints.md (B, R): Likewise.
7511 * config/vax/predicates.md (external_memory_operand,
c4e75102 7512 nonimmediate_addsub_di_operand): Likewise.
60839f5d
EB
7513 * config/vax/vax.c (vax_output_int_add): Likewise.
7514 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
c4e75102
MT
7515 untyped_call): Likewise.
7516
60839f5d 75172009-04-01 Matt Thomas <matt@3am-software.com>
c4e75102 7518
7a715bba
UB
7519 * config/vax/predicates.md: New file.
7520 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
c4e75102
MT
7521 external_const_operand, nonsymbolic_operand, external_memory_operand,
7522 indirect_memory_operand, indexed_memory_operand,
7523 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
7524 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
7525 predicate.
7a715bba
UB
7526 * config/vax/constraints.md: New file.
7527 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
7528 New constraint.
7529 * config/vax/builtins.md: New file.
7530 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
7531 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
7532 jbbccisi): Define.
c4e75102
MT
7533 * config/vax/vax.opt (mqmath): Add option.
7534 * config/vax/vax.md (isfx): Extend with DI.
7535 (VAXintQH, VAXintQHSD): Define.
7536 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
7537 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
7538 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
7539 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
7540 (movdi): Update constraints and use vax_output_int_move().
7541 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
7542 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
7543 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
7544 nonlocal_goto): New.
7545 (mov<mode>): Extend accepted operand types.
7546 (subdi3_old): Rename from subdi3, change update constraints and use
7547 a new implementation.
60839f5d 7548 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
c4e75102
MT
7549 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
7550 MOVE_RATIO, CLEAR_RATIO): Define.
7551 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
7552 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
7553 (PRINT_OPERAND): Redefine using a function instead of inlined code.
60839f5d 7554 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
c4e75102
MT
7555 (split_quadword_operands): Make static and really allow variable
7556 splitting.
7557 (print_operand_address): Update for PIC generation.
7558 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
7559 indexable_address_p, fixup_mathdi_operand,
7560 vax_expand_addsub_di_operands, adjacent_operands_p): New.
7561 (vax_float_literal, legitimate_constant_p,
7562 indirectable_constant_address_p, index_term_p,
7563 reg_plus_index_p): Return bool instead of int.
7564 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
7565 where needed.
7566 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
7567 generation.
7568 (vax_output_conditional_branch): Indent.
7569 (legitimate_constant_address_p, indirectable_constant_address_p,
7570 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
7571 vax_mode_dependent_address_p): Return bool instead of int, update for
7572 PIC generation.
7573 * config/vax/vax-protos.h (legitimate_constant_address_p,
7574 legitimate_constant_p, legitimate_address_p,
7575 vax_mode_dependent_address_p): Change declaration to bool.
7576 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
7577 vax_expand_addsub_di_operands, vax_output_int_subtract,
7578 vax_output_movmemsi): Declare.
7579 (split_quadword_operands, vax_float_literal): Delete declaration.
7580 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
7581 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
7582 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
7583 ASM_OUTPUT_DWARF_PCREL): Define.
7584 (ASM_SPEC): Change definition to allow PIC generation.
7585
9332c6eb
L
75862009-04-01 Steve Ellcey <sje@cup.hp.com>
7587
7588 * doc/sourcebuild.texi: Update front-end requirements.
7589
d93e052c
JJ
75902009-04-01 Jakub Jelinek <jakub@redhat.com>
7591
7592 PR target/39226
7593 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
7594 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
7595 (booldi3_internal3): Use boolean_or_operator instead of
7596 boolean_operator.
7597
6ccb2a4a
JM
75982009-04-01 Joseph Myers <joseph@codesourcery.com>
7599
7600 PR c/39605
7601 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
7602 declarator whose size is not an integer constant expression but
7603 folds to an integer constant, then treat it as a constant
7604 subsequently.
7605
299b87f8
RG
76062009-04-01 Richard Guenther <rguenther@suse.de>
7607
7608 * fold-const.c (fold_plusminus_mult_expr): Do not fold
7609 i * 4 + 2 to (i * 2 + 1) * 2.
7610
b85eb797
JJ
76112009-04-01 Jakub Jelinek <jakub@redhat.com>
7612
7613 PR c/37772
7614 * c-parser.c (c_parser_asm_statement): Skip until close paren and
7615 return if c_parser_asm_string_literal returned NULL.
7616
235e1fe8
NC
76172009-04-01 Nick Clifton <nickc@redhat.com>
7618
7619 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
7620 already defined.
7621 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
7622 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
7623 other typedefs to avoid conflicts with libgcc2.c. Define labels
7624 to gain 16-bit bit-manipulation functions from libgcc2.c and then
7625 include it.
7626 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
7627 to gain 16-bit trapping arithmetic functions from libgcc2.c and
7628 then include it.
7629
d6868399
RAE
76302009-04-01 Rafael Avila de Espindola <espindola@google.com>
7631
7a715bba
UB
7632 * varasm.c (default_function_rodata_section): Declare DOT as
7633 const char*.
d6868399 7634
73d21f56 76352009-04-01 Kai Tietz <kai.tietz@onevision.com>
60839f5d 7636 Andrey Galkin <agalkin@hypercom.com>
73d21f56
KT
7637
7638 PR/39492
7639 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
7640 Make object_name unique for each process.
7641
03742a9b
JJ
76422009-04-01 Jakub Jelinek <jakub@redhat.com>
7643
7644 PR other/39591
7645 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
7646 addressable variables in the parallel that could go out of scope while
7647 running queued tasks.
7648
4223ff5f
AS
76492009-04-01 Anatoly Sokolov <aesok@post.ru>
7650
7651 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
7652 (CASE_VALUES_THRESHOLD): Redefine.
7653 * config/avr/avr.c (avr_override_options): Remove initialization of
7654 avr_case_values_threshold variable.
7655 (avr_case_values_threshold): Remove variable. Add new function.
7656 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
7657 * config/avr/avr.opt (mno-tablejump): Remove option.
7658 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
7659
e893f6f3
DD
76602009-04-01 DJ Delorie <dj@redhat.com>
7661
7662 * varasm.c (default_function_rodata_section): Don't assume
7663 anything about where the first '.' in the section name is.
7664
b246d100
AM
76652009-04-01 Alan Modra <amodra@bigpond.net.au>
7666
7667 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
7668 rs6000_emit_stack_tie.
7669
d3e37a9e
ILT
76702009-03-31 Ian Lance Taylor <iant@google.com>
7671
7672 * tree-eh.c (tree_remove_unreachable_handlers): Compare
7673 gimple_code with GIMPLE_RESX, not RESX.
7674
c1b61fca
JM
76752009-03-31 Joseph Myers <joseph@codesourcery.com>
7676
7677 * c-common.c (c_get_ident): New.
7a715bba 7678 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
c1b61fca 7679
c2d2ad48
BE
76802009-04-01 Ben Elliston <bje@au.ibm.com>
7681
7682 * config/rs6000/sysv4.opt (msdata): Improve option description.
7683
13d1a6e7
SE
76842009-03-31 Steve Ellcey <sje@cup.hp.com>
7685
7686 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
7687 (divdf3_internal_lat): Remove.
7688 (divxf3_internal_lat): Remove.
7689 (divxf3_internal_thr): Remove.
7690 (divxf): Use divxf3_internal.
7691 * config/ia64/div.md (divsf3_internal_lat): New.
7692 (divdf3_internal_lat): New.
7693 (divxf3_internal): New.
7694
207bf79d
JM
76952009-03-31 Joseph Myers <joseph@codesourcery.com>
7696
7697 PR c/448
7698 * Makefile.in (USE_GCC_STDINT): Define.
7699 (stmp-int-hdrs): Install stdint.h if applicable.
7700 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
7701 if known.
7702 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
7703 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
7704 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
7705 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
7706 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
7707 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
7708 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
7709 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
7710 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
7711 (c_common_nodes_and_builtins): Initialize
7712 underlying_wchar_type_node. Do not initialize
7713 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
7714 nodes for new types.
7715 (c_stddef_cpp_builtins): Define macros for new types.
7716 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
7717 Remove.
7718 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
7719 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
7720 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
7721 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
7722 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
7723 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
7724 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
7725 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
7726 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
7727 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
7728 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
7729 int16_type_node, int32_type_node, int64_type_node,
7730 uint8_type_node, uint16_type_node, c_uint32_type_node,
7731 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
7732 int_least32_type_node, int_least64_type_node,
7733 uint_least8_type_node, uint_least16_type_node,
7734 uint_least32_type_node, uint_least64_type_node,
7735 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
7736 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
7737 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
7738 uintptr_type_node): Define.
7739 * c-cppbuiltin.c (builtin_define_constants,
7740 builtin_define_type_minmax): New.
7741 (builtin_define_stdint_macros): Define more macros.
7742 (c_cpp_builtins): Define more limit macros.
7743 (type_suffix): New.
7744 (builtin_define_type_max): Define in terms of
7745 builtin_define_type_minmax. Remove is_long parameter. All
7746 callers changed.
7747 * config.gcc (use_gcc_stdint): Define.
7748 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
7749 Add newlib-stdint.h for generic targets.
7750 * config/glibc-stdint.h, config/newlib-stdint.h,
7751 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
7752 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
7753 * config/score/score.h (UINTPTR_TYPE): Define.
7754 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
7755 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
7756 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
7757 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
7758 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
7759 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
7760 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
7761 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
7762 * config/spu/spu.h (STDINT_LONG32): Define.
7763 * configure.ac (use_gcc_stdint): Substitute.
7764 * configure: Regenerate.
7765 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
7766 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
7767 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
7768 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
7769 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
7770 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
7771 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
7772 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
7773 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
7774 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
7775 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
7776 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
7777 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
7778 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
7779 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
7780 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
7781 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
7782 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
7783 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
7784 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
7785 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
7786 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
7787 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
7788 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
7789 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
7790 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
7791 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
7792 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
7793 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
7794
ed853664
BS
77952009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
7796
7797 * loop-iv.c (suitable_set_for_replacement): Renamed from
7798 simplify_using_assignment; changed to return bool and to accept new
7799 args DEST and SRC. Return true iff we find a source/destination pair
7800 that can be used to make a replacement, and fill SRC and DEST if so.
7801 Remove arg ALTERED. Don't deal with altered regs here. All callers
7802 changed.
7803 (simplify_using_initial_values): Deal with altered regs here and track
7804 more precisely the effect they have on the validity of our expression.
7805
1569e190
BS
7806 * loop-iv.c (simplify_using_condition): A condition of the form
7807 (EQ REG CONST) can be used to simply make a substitution.
7808 (simplify_using_initial_values): Keep track of conditions we have seen
7809 and keep using them to simplify new expressions, while applying the
7810 same substitutions to them as to the expression.
7811
1d1eb80c
BS
7812 * simplify-rtx.c (simplify_relational_operation_1): Simplify
7813 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
7814 GEU/LTU reversed.
7815
28af33b0
BS
7816 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
7817 changed. Use this when trying to improve the upper bound.
7818 Generate the comparison by using simplify_gen_relational.
7819
b30321cd
BS
7820 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
7821
60081874
BS
7822 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
7823 functions.
2ba9daa7 7824 (simplify_using_assignment, simplify_using_initial_values): Call
60081874
BS
7825 replace_in_expr to make replacements. Call replace_single_def_regs
7826 once on the initial version of the expression.
7827
bebc6e07
RR
78282009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7829
fcb82ab0 7830 PR target/27237
bebc6e07 7831 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
2ba9daa7 7832
6b12efe9
RG
78332009-03-31 Richard Guenther <rguenther@suse.de>
7834
7835 PR middle-end/31029
7836 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
7837 equality comparisons. Fold C - X CMP X if C % 2 == 1.
7838
108f6c2f
RG
78392009-03-31 Richard Guenther <rguenther@suse.de>
7840
7841 * tree.h (div_if_zero_remainder): Declare.
7842 * fold-const.c (div_if_zero_remainder): Export.
7843 * tree-ssa-forwprop.c
7844 (forward_propagate_addr_into_variable_array_index): Handle
7845 constant array index addition outside of the variable index.
7846
8f612190
JM
78472009-03-31 Joseph Myers <joseph@codesourcery.com>
7848
7849 PR target/39592
7850 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
7851 define_splits, floatunssi<mode>2): Require x87 conversions from
7852 DImode to be permitted.
7853
47580d22
JM
78542009-03-31 Joseph Myers <joseph@codesourcery.com>
7855
7856 PR preprocessor/15638
7857 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
7858
ba4d8f9d
RG
78592009-03-31 Richard Guenther <rguenther@suse.de>
7860
7861 PR middle-end/23401
7862 PR middle-end/27810
7863 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
7864 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
7865 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
7866 a separate statement.
7867 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
7868 (lookup_tmp_var): Likewise.
7869 (is_gimple_formal_tmp_or_call_rhs): Remove.
7870 (is_gimple_reg_or_call_rhs): Rename to ...
7871 (is_gimple_reg_rhs_or_call): ... this.
7872 (is_gimple_mem_or_call_rhs): Rename to ...
7873 (is_gimple_mem_rhs_or_call): ... this.
7874 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
7875 DECL_GIMPLE_REG_P only if is_formal is true.
7876 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
7877 for non-proper post-modify expression gimplification.
7878 (gimplify_self_mod_expr): For post-modify expressions gimplify
7879 the lvalue to a minimal lvalue.
7880 (rhs_predicate_for): Remove formal temp case.
7881 (gimplify_modify_expr_rhs): Likewise.
7882 (gimplify_addr_expr): Use is_gimple_reg.
7883 (gimplify_expr): Remove formal temp cases.
7884 (gimple_regimplify_operands): Likewise.
7885 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
7886 and FILTER_EXPR like constants.
7887 * gimple.c (walk_gimple_op): Fix val_only initialization, use
7888 is_gimple_reg.
7889 (is_gimple_formal_tmp_rhs): Remove.
7890 (is_gimple_reg_rhs): Remove special casing.
7891 (is_gimple_mem_rhs): Fix.
7892 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
7893 (is_gimple_formal_tmp_var): Remove.
7894 (is_gimple_formal_tmp_reg): Likewise.
7895 (is_gimple_min_lval): Allow invariant component ref parts.
7896 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
7897 is_gimple_formal_tmp_reg): Remove declarations.
7898 * tree-cfg.c (verify_expr): Verify that variables with address
7899 taken do not have DECL_GIMPLE_REG_P set.
7900 * tree-mudflap.c (mf_build_check_statement_for): Use
7901 force_gimple_operand instead of gimplify_expr.
7902
8de9b877
AZ
79032009-03-31 Ayal Zaks <zaks@il.ibm.com>
7904
7905 * modulo-sched.c (sms_schedule_by_order): Pass the actual
7906 schedulable rows to compute_split_row.
7907
b5e3caf2
BE
79082009-03-31 Ben Elliston <bje@au.ibm.com>
7909
7910 PR target/31635
7911 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
7912 OPT_mvrsave.
7913
9752c4ad
AM
79142009-03-31 Alan Modra <amodra@bigpond.net.au>
7915
7916 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
7917 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
7918 * configure: Regenerate.
7919 * config.in: Regenerate.
7920 * config/rs6000/rs6000.opt (mtls-markers): Add.
7921 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
7922 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
7923 (tls_ld_aix, tls_ld_sysv): Likewise.
7924 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
7925 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
7926
b597d1b6
AM
79272009-03-31 Alan Modra <amodra@bigpond.net.au>
7928
7929 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
7930
a203a221
JH
79312009-03-30 Jan Hubicka <jh@suse.cz>
7932
b597d1b6
AM
7933 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
7934 out of RESX.
7935 (tree_remove_unreachable_handlers): Cleanup EH predecestor
7936 detection and label handling.
a203a221 7937
5b0c0b2c
VM
79382009-03-30 Vladimir Makarov <vmakarov@redhat.com>
7939
7940 * ira-int.h (ira_allocno): Rename left_conflicts_num to
7941 left_conflicts_size.
7942 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
7943 ALLOCNO_LEFT_CONFLICTS_SIZE.
7944
7945 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
7946 remove_allocno_from_bucket_and_push,
7947 allocno_spill_priority_compare, push_allocnos_to_stack,
7948 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
7949 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
7950 (setup_allocno_left_conflicts_num): Ditto. Rename to
7951 setup_allocno_left_conflicts_size.
7952 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
7953 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
7954 setup_allocno_left_conflicts_size instead of
7955 setup_allocno_left_conflicts_num.
7956
7957 * ira-build.c (ira_create_allocno): Use
7958 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
7959 ALLOCNO_LEFT_CONFLICTS_NUM.
2ba9daa7 7960
9a48a93f
VM
79612009-03-30 Vladimir Makarov <vmakarov@redhat.com>
7962
7963 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
7964 instead of DF_LR_OUT.
7965
7966 * ira-lives.c (process_bb_node_lives): Ditto.
7967
7968 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
7969 instead of DF_LR_{OUT,IN}.
7970
7971 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
7972
7973 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
7974
4c936d4f
JH
79752009-03-30 Jan Hubicka <jh@suse.cz>
7976
7977 * except.c (label_to_region_map): Fix thinko.
7978
f4d9f129
SE
79792009-03-30 Steve Ellcey <sje@cup.hp.com>
7980
7981 PR middle-end/38237
7982 * tree.h (tree_find_value): New declaration.
7983 * tree.c (tree_find_value): New function.
7984 * varasm.c (assemble_external): Avoid duplicate entries on lists.
7985
b3f27c15
JJ
79862009-03-30 Jakub Jelinek <jakub@redhat.com>
7987
7988 PR debug/39563
7989 * c-decl.c (struct c_binding): Add locus field.
7990 (bind): Add locus argument, set locus field from it.
7991 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
7992 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
7993 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
7994 implicitly_declare, undeclared_variable, lookup_label,
7995 declare_label, c_make_fname_decl, c_builtin_function,
7996 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
7997 bind callers.
7998
ad41bd84 79992009-03-30 H.J. Lu <hongjiu.lu@intel.com>
680e8a00
L
8000
8001 PR target/38781
8002 * config/i386/i386.c (classify_argument): Check total size of
8003 structure.
8004
133f9369
MJ
80052009-03-30 Martin Jambor <mjambor@suse.cz>
8006
8007 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
8008 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
8009 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
8010 respectively.
8011
8012 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
8013 seen_variable_array_ref while also traversing a union.
8014
8015 * tree-inline.c (optimize_inline_calls): Do not call
8016 cgraph_node_remove_callees.
8017 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
8018 (pass_remove_cgraph_callee_edges): New variable.
8019 * passes.c (init_optimization_passes): Add
8020 pass_remove_cgraph_callee_edges after early inlining and before all
8021 late intraprocedural passes.
8022
8023 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
8024
1190f2eb
PB
80252009-03-30 Paolo Bonzini <bonzini@gnu.org>
8026
8027 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
8028 Fix typos in names.
8029
fedc1775
PB
80302009-03-30 Paolo Bonzini <bonzini@gnu.org>
8031
fcb82ab0
UB
8032 * combine.c (simplify_comparison): Use have_insn_for.
8033 * dojump.c (do_jump): Likewise.
fedc1775 8034
65c5ae8b
PB
80352009-03-30 Paolo Bonzini <bonzini@gnu.org>
8036
8037 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
8038 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
8039 sparc_compare_op0 like sparc_compare_emitted used to be handled.
8040 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
8041 instead of sparc_compare_emitted.
8042 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
8043 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
8044 instead of sparc_compare_emitted.
8045
d25aa7ab
PB
80462009-03-30 Paolo Bonzini <bonzini@gnu.org>
8047
8048 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
8049 enter/exit cfglayout mode.
8050 (pass_partition_block): Require it.
8051 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
8052 (combine_instructions): Track basic blocks instead of labels.
8053 (update_cfg_for_uncondjump): New.
8054 (try_combine): Use it. Update jumps after rescanning.
8055 (pass_combine): Require PROP_cfglayout.
8056 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
8057
9c9e26f5
PB
80582009-03-30 Paolo Bonzini <bonzini@gnu.org>
8059
fcb82ab0
UB
8060 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
8061 Provide/destroy PROP_cfglayout respectively.
8062 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
8063 * tree-pass.h (PROP_cfglayout): New.
9c9e26f5 8064
28ddeea1
PB
80652009-03-30 Paolo Bonzini <bonzini@gnu.org>
8066
8067 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
8068 fold_convert_const_fixed_from_fixed,
8069 fold_convert_const_fixed_from_int,
8070 fold_convert_const_fixed_from_real, fold_negate_const): Do not
8071 set TREE_CONSTANT_OVERFLOW.
8072 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
8073 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
8074
ebfd146a
IR
80752009-03-30 Ira Rosen <irar@il.ibm.com>
8076
8077 * tree-vect-loop-manip.c: New file.
8078 * tree-vectorizer.c: Update documentation and included files.
8079 (vect_loop_location): Make extern.
8080 (rename_use_op): Move to tree-vect-loop-manip.c
2ba9daa7
AS
8081 (rename_variables_in_bb, rename_variables_in_loop,
8082 slpeel_update_phis_for_duplicate_loop,
ebfd146a
IR
8083 slpeel_update_phi_nodes_for_guard1,
8084 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
8085 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
8086 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
2ba9daa7 8087 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
ebfd146a
IR
8088 find_loop_location): Likewise.
8089 (new_stmt_vec_info): Move to tree-vect-stmts.c.
8090 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
8091 get_vectype_for_scalar_type, vect_is_simple_use,
8092 supportable_widening_operation, supportable_narrowing_operation):
8093 Likewise.
8094 (bb_in_loop_p): Move to tree-vect-loop.c.
2ba9daa7
AS
8095 (new_loop_vec_info, destroy_loop_vec_info,
8096 reduction_code_for_scalar_code, report_vect_op,
ebfd146a
IR
8097 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
8098 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
8099 (vect_supportable_dr_alignment): Likewise.
8100 * tree-vectorizer.h (tree-data-ref.h): Include.
8101 (vect_loop_location): Declare.
8102 Reorganize function declarations according to the new file structure.
8103 * tree-vect-loop.c: New file.
2ba9daa7 8104 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
ebfd146a
IR
8105 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
8106 * tree-vect-data-refs.c: New file.
8107 * tree-vect-patterns.c (timevar.h): Don't include.
8108 * tree-vect-stmts.c: New file.
2ba9daa7 8109 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
ebfd146a 8110 tree-vect-slp.c, tree-vect-loop.c.
2ba9daa7
AS
8111 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
8112 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
ebfd146a
IR
8113 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
8114 (tree-vect-analyze.o): Remove.
8115 (tree-vect-transform.o): Likewise.
8116 (tree-vect-data-refs.o): Add rule.
2ba9daa7 8117 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
ebfd146a
IR
8118 tree-vect-slp.o): Likewise.
8119 (tree-vect-patterns.o): Remove redundant dependencies.
8120 (tree-vectorizer.o): Likewise.
8121 * tree-vect-slp.c: New file.
8122
40a1cfba
RW
81232009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8124
8125 * optc-gen.awk: Warn if an option flag has multiple different
8126 help strings.
8127
a9a7a9a2
SP
81282009-03-30 Sebastian Pop <sebastian.pop@amd.com>
8129
8130 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
8131 -floop-block): Document dependences on PPL, CLooG and Graphite.
8132
8ce94e44
JM
81332009-03-30 Joseph Myers <joseph@codesourcery.com>
8134
8135 PR rtl-optimization/323
8136 * c-common.c (c_fully_fold, convert_and_check,
8137 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
8138 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
8139 * c-common.def (EXCESS_PRECISION_EXPR): New.
8140 * c-cppbuiltin.c (builtin_define_float_constants): Define
8141 constants with enough digits for long double.
8142 * c-lex.c (interpret_float): Interpret constant with excess
8143 precision where appropriate.
8144 * c-opts.c (c_common_post_options): Set
8145 flag_excess_precision_cmdline. Give an error for
8146 -fexcess-precision=standard for C++ for processors where the
8147 option is significant.
8148 * c-parser.c (c_parser_conditional_expression): Handle excess
8149 precision in condition.
8150 * c-typeck.c (convert_arguments): Handle arguments with excess
8151 precision.
8152 (build_unary_op): Move excess precision outside operation.
8153 (build_conditional_expr): Likewise.
8154 (build_compound_expr): Likewise.
8155 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
8156 (build_modify_expr): Handle excess precision in RHS.
8157 (convert_for_assignment): Handle excess precision in converted
8158 value.
8159 (digest_init, output_init_element, process_init_element): Handle
8160 excess precision in initializer.
8161 (c_finish_return): Handle excess precision in return value.
8162 (build_binary_op): Handle excess precision in operands and add
8163 excess precision as needed for operation.
8164 * common.opt (-fexcess-precision=): New option.
8165 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
8166 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8167 For standard excess precision, output explicit conversion to and
8168 truncation from XFmode.
8169 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
8170 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
8171 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
8172 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
8173 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
8174 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
8175 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
8176 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
8177 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
8178 define_splits, sqrt<mode>2): Disable where appropriate for
8179 standard excess precision.
8180 * convert.c (convert_to_real): Do not shorten arithmetic to type
8181 for which excess precision would be used.
8182 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
8183 * doc/invoke.texi (-fexcess-precision=): Document option.
8184 (-mfpmath=): Correct index entry.
8185 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
8186 flag_excess_precision): New.
8187 * langhooks.c (lhd_post_options): Set
8188 flag_excess_precision_cmdline.
8189 * opts.c (common_handle_option): Handle -fexcess-precision=.
8190 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
8191 init_excess_precision): New.
8192 (lang_dependent_init_target): Call init_excess_precision.
8193 * tree.c (excess_precision_type): New.
8194 * tree.h (excess_precision_type): Declare.
8195
1e57bf47
JM
81962009-03-30 Joseph Myers <joseph@codesourcery.com>
8197
8198 PR c/35235
8199 * c-typeck.c (build_component_ref): Do not copy qualifiers from
8200 non-lvalue to component.
8201
148e4216
JM
82022009-03-29 Joseph Myers <joseph@codesourcery.com>
8203
8204 PR preprocessor/34695
8205 * Makefile.in (c-opts.o): Depend on c-tree.h.
8206 * c-common.c: Move down include of diagnostic.h.
8207 (done_lexing, c_cpp_error): New.
8208 * c-common.h (done_lexing): Declare.
8209 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
8210 (parse_in).
8211 * c-opts.c: Include c-tree.h.
8212 (c_common_init_options): Set preprocessor error callback.
8213 (c_common_handle_option): Do not set preprocessor
8214 inhibit_warnings, warnings_are_errors, warn_system_headers,
8215 pedantic_errors or inhibit_warnings flags.
8216 (c_common_post_options): Do not check cpp_errors (parse_in).
8217 (c_common_finish): Do not output dependencies if there were
8218 errors. Do not check return value of cpp_finish.
8219 * c-ppoutput.c (pp_file_change): Set input_location.
8220 * c-tree.h (c_cpp_error): Declare.
8221 * diagnostic.c (diagnostic_set_info_translated): Also initialize
8222 override_column.
8223 (diagnostic_build_prefix): Check override_column.
8224 * diagnostic.h (diagnostic_info): Add override_column field.
8225 (diagnostic_override_column): Define.
8226
2ec5deb5
PB
82272009-03-28 Paolo Bonzini <bonzini@gnu.org>
8228
ba20e309
UB
8229 * c-common.c (c_expand_expr, c_staticp): Remove.
8230 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
8231 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
8232 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
8233 * c-gimplify.c (gimplify_compound_literal_expr,
8234 optimize_compound_literals_in_ctor): Remove.
8235 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
8236 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
8237 * c-semantics.c (emit_local_var): Remove.
8238
8239 * langhooks-def.h (lhd_expand_expr): Remove.
8240 * langhooks.c (lhd_expand_expr): Remove.
8241 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
8242
8243 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
8244 handling from c-semantics.c; don't call into langhook.
8245 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
8246 * gimplify.c (gimplify_compound_literal_expr,
8247 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
8248 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
8249 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
8250 as was done in c-gimplify.c.
8251 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
8252 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
8253 Move from c-common.h.
8254 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
2ec5deb5
PB
8255
8256 * tree.c (staticp): Do not call langhook.
8257 * langhooks.c (lhd_staticp): Delete.
8258 * langhooks-def.h (lhd_staticp): Delete prototype.
8259 (LANG_HOOKS_STATICP): Delete.
8260 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
8261
ba20e309
UB
8262 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
8263 instead of DECL_STMTs.
2ec5deb5 8264
928c19bb
JM
82652009-03-29 Joseph Myers <joseph@codesourcery.com>
8266
8267 PR c/456
8268 PR c/5675
8269 PR c/19976
8270 PR c/29116
8271 PR c/31871
8272 PR c/35198
8273 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
8274 void_type_node.
8275 (fold_call_expr): Return a NOP_EXPR from folding rather than the
8276 contained expression.
ba20e309 8277 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
928c19bb
JM
8278 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
8279 conditional expressions for C.
8280 (decl_constant_value_for_optimization): Move from
ba20e309 8281 decl_constant_value_for_broken_optimization in c-typeck.c. Check
928c19bb
JM
8282 whether optimizing and that the expression is a VAR_DECL not of
8283 array type instead of doing such checks in the caller. Do not
8284 check pedantic. Call gcc_unreachable for C++.
8285 * c-common.def (C_MAYBE_CONST_EXPR): New.
8286 * c-common.h (c_fully_fold, c_save_expr,
8287 decl_constant_value_for_optimization): New prototypes.
8288 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
8289 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
8290 EXPR_INT_CONST_OPERANDS): Define.
8291 * c-convert.c (convert): Strip nops from expression.
8292 * c-decl.c (groktypename): Take extra parameters expr and
8293 expr_const_operands. Update call to grokdeclarator.
8294 (start_decl): Update call to grokdeclarator. Add statement for
8295 expressions used in type of decl.
8296 (grokparm): Update call to grokdeclarator.
8297 (push_parm_decl): Update call to grokdeclarator.
8298 (build_compound_literal): Add parameter non_const and build a
8299 C_MAYBE_COSNT_EXPR if applicable.
8300 (grokdeclarator): Take extra parameters expr and
8301 expr_const_operands. Track expressions used in declaration
8302 specifiers and declarators. Fold array sizes and track whether
8303 they are constant expressions and whether they are integer
8304 constant expressions.
8305 (parser_xref_tag): Set expr and expr_const_operands fields in
8306 return value.
8307 (grokfield): Update call to grokdeclarator.
8308 (start_function): Update call to grokdeclarator.
8309 (build_null_declspecs): Set expr and expr_const_operands fields in
8310 return value.
8311 (declspecs_add_type): Handle expressions in typeof specifiers.
8312 * c-parser.c (c_parser_declspecs): Set expr and
8313 expr_const_operands fields for declaration specifiers.
8314 (c_parser_enum_specifier): Likewise.
8315 (c_parser_struct_or_union_specifier): Likewise.
8316 (c_parser_typeof_specifier): Likewise. Update call to
8317 groktypename. Fold expression as needed. Return expressions with
8318 type instead of adding statements.
8319 (c_parser_attributes): Update calls to c_parser_expr_list.
8320 (c_parser_statement_after_labels): Fold expression before passing
8321 to objc_build_throw_stmt.
8322 (c_parser_condition): Fold expression.
8323 (c_parser_asm_operands): Fold expression.
8324 (c_parser_conditional_expression): Use c_save_expr. Update call
8325 to build_conditional_expr.
8326 (c_parser_alignof_expression): Update call to groktypename.
8327 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
8328 original_code. Fold expression argument of va_arg. Create
8329 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
8330 argument to va_arg. Update calls to groktypename. Fold array
8331 index for offsetof. Verify that first argument to
8332 __builtin_choose_expr has integer type.
8333 (c_parser_postfix_expression_after_paren_type): Update calls to
8334 groktypename and build_compound_literal. Handle expressions with
8335 side effects in type name.
8336 (c_parser_postfix_expression_after_primary): Update call to
8337 c_parser_expr_list. Set original_code for calls to
8338 __builtin_constant_p.
8339 (c_parser_expr_list): Take extra parameter fold_p. Fold
8340 expressions if requested.
8341 (c_parser_objc_type_name): Update call to groktypename.
8342 (c_parser_objc_synchronized_statement): Fold expression.
8343 (c_parser_objc_receiver): Fold expression.
8344 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
8345 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
8346 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
8347 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
8348 (struct c_typespec): Add elements expr and expr_const_operands.
8349 (struct c_declspecs): Add elements expr and expr_const_operands.
8350 (groktypename, build_conditional_expr, build_compound_literal):
8351 Update prototypes.
8352 (in_late_binary_op): Declare.
8353 * c-typeck.c (note_integer_operands): New function.
8354 (in_late_binary_op): New variable.
8355 (decl_constant_value_for_broken_optimization): Move to c-common.c
8356 and rename to decl_constant_value_for_optimization.
8357 (default_function_array_conversion): Do not strip nops.
8358 (default_conversion): Do not call
8359 decl_constant_value_for_broken_optimization.
8360 (build_array_ref): Do not fold result.
8361 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
8362 result when operand is a VLA.
8363 (c_expr_sizeof_type): Update call to groktypename. Handle
8364 expressions included in type name. Use C_MAYBE_CONST_EXPR for
8365 result when operand names a VLA type.
8366 (build_function_call): Update call to build_compound_literal.
8367 Only fold result for calls to __builtin_* functions. Strip
8368 NOP_EXPR from INTEGER_CST returned from such functions. Fold
8369 the function designator.
8370 (convert_arguments): Fold arguments. Update call to
8371 convert_for_assignment.
8372 (build_unary_op): Handle increment and decrement of
8373 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
8374 decrement earlier. Fold operand of increment and decrement.
8375 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
8376 built for integer operand. Wrap returns that are INTEGER_CSTs
8377 without being integer constant expressions or that have integer
8378 constant operands without being INTEGER_CSTs.
8379 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
8380 (build_conditional_expr): Add operand ifexp_bcp. Track whether
8381 result is an integer constant expression or can be used in
8382 unevaluated parts of one and avoid folding and wrap as
8383 appropriate. Fold operands before possibly doing -Wsign-compare
8384 warnings.
8385 (build_compound_expr): Wrap result for C99 if operands can be used
8386 in integer constant expressions.
8387 (build_c_cast): Update call to digest_init. Do not ignore
8388 overflow from casting floating-point constants to integers. Wrap
8389 results that could be confused with integer constant expressions,
8390 null pointer constants or floating-point constants.
8391 (c_cast_expr): Update call to groktypename. Handle expressions
8392 included in type name.
8393 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
8394 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
8395 Update calls to convert_for_assignment.
8396 (convert_for_assignment): Take new parameter
8397 null_pointer_constant. Do not strip nops or call
8398 decl_constant_value_for_broken_optimization. Set
8399 in_late_binary_op for conversions to boolean.
8400 (store_init_value): Update call to digest_init.
8401 (digest_init): Take new parameter null_pointer_constant. Do not
8402 call decl_constant_value_for_broken_optimization. pedwarn for
8403 initializers not constant expressions. Update calls to
8404 convert_for_assignment.
8405 (constructor_nonconst): New.
8406 (struct constructor_stack): Add nonconst element.
8407 (really_start_incremental_init, push_init_level, pop_init_level):
8408 Handle constructor_nonconst and nonconst element.
8409 (set_init_index): Call constant_expression_warning for array
8410 designators.
8411 (output_init_element): Fold value. Set constructor_nonconst as
8412 applicable. pedwarn for initializers not constant expressions.
8413 Update call to digest_init. Call constant_expression_warning
8414 where constant initializers are required.
8415 (process_init_element): Use c_save_expr.
8416 (c_finish_goto_ptr): Fold expression.
8417 (c_finish_return): Fold return value. Update call to
8418 convert_for_assignment.
8419 (c_start_case): Fold switch expression.
8420 (c_process_expr_stmt): Fold expression.
8421 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
ba20e309 8422 ensure statement expression is not evaluated in constant expression.
928c19bb
JM
8423 (build_binary_op): Track whether results are integer constant
8424 expressions or may occur in such, disable folding and wrap results
8425 as applicable. Fold operands for -Wsign-compare warnings unless
8426 in_late_binary_op.
8427 (c_objc_common_truthvalue_conversion): Handle results folded to
8428 integer constants that are not integer constant expressions.
8429 * doc/extend.texi: Document when typeof operands are evaluated,
8430 that condition of __builtin_choose_expr is an integer constant
8431 expression, and more about use of __builtin_constant_p in
8432 initializers.
8433
5babbcc0
RG
84342009-03-29 Richard Guenther <rguenther@suse.de>
8435
8436 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
8437 propagate addresses of array references.
8438
0340f2ba
SB
84392009-03-29 Steven Bosscher <steven@gcc.gnu.org>
8440
8441 * regmove.c (perhaps_ends_bb_p): Remove.
8442 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
8443 from INSN and check that the main loop stays within that basic block.
8444 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
8445 (regmove_forward_pass): Split out from regmove_optimize. Use
8446 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
8447 (regmove_backward_pass): Split out from regmove_optimize. Use
8448 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
8449 (regmove_optimize): Simplify.
8450
eeae74a1
L
84512009-03-29 H.J. Lu <hongjiu.lu@intel.com>
8452
8453 PR target/39545
8454 * config/i386/i386.c (classify_argument): Ignore flexible array
8455 member in struct and warn ABI change.
8456
a24078b2
L
84572009-03-29 H.J. Lu <hongjiu.lu@intel.com>
8458
8459 * config/i386/i386-protos.h (ix86_agi_dependent): New.
8460
8461 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
8462 (ix86_adjust_cost): Updated.
8463
a8da523f
JH
84642009-03-29 Jan Hubicka <jh@suse.cz>
8465
8466 PR middle-end/28850
8467 * tree-pass.h (pass_cleanup_eh): New function.
8468 (remove_unreachable_regions): Break code handling RTL
8469 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
8470 that can not be reached by runtime.
8471 (can_be_reached_by_runtime): New function.
8472 (label_to_region_map): New function.
8473 (num_eh_regions): New function.
8474 (rtl_remove_unreachable_regions): New function.
8475 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
8476 (remove_eh_region): New function.
8477 * except.h: Include sbitmap and vecprim.
8478 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
8479 num_eh_regions): Declare.
8480 * passes.c (init_optimization_passes): Schedule cleanup_eh.
ba20e309 8481 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
a8da523f
JH
8482 * tree-eh.c (tree_remove_unreachable_handlers): New function.
8483 (tree_empty_eh_handler_p): New function.
8484 (cleanup_empty_eh): New function.
8485 (cleanup_eh): New function.
8486 (pass_cleanup_eh): New function.
8487
98f358e5
JH
84882009-03-29 Jan Hubicka <jh@suse.cz>
8489
8490 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
8491 for removed regions.
8492
13a9fa44
JH
84932009-03-29 Jan Hubicka <jh@suse.cz>
8494
8495 * except.c (dump_eh_tree): Dump all datastructures.
8496
e38cf733
JH
84972009-03-29 Jan Hubicka <jh@suse.cz>
8498
8499 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
8500 (duplicate_eh_regions_1): Likewise.
8501 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
8502 vector; call EH verification.
8503 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
8504 Be ready for region being removed.
8505
12802c2b
JH
85062009-03-29 Jan Hubicka <jh@suse.cz>
8507
8508 * bitmap.c (bitmap_last_set_bit): New function.
8509 * bitmap.h (bitmap_last_set_bit): Declare.
8510
4ea80a41
DA
85112009-03-29 David Ayers <ayers@fsfe.org>
8512
8513 PR objc/27377
8514 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
8515 by calling objc_compare_types and surpress warnings about
8516 incompatible C pointers that are compatible ObjC pointers.
2ba9daa7 8517
4ea80a41 85182009-03-29 Adam Nemet <anemet@caviumnetworks.com>
3dc9eaa6
AN
8519
8520 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
8521 call initialize_inline_failed.
8522 (initialize_inline_failed): Move it from here ...
8523 * cgraph.c (initialize_inline_failed): ... to here.
8524 (cgraph_create_edge): Call initialize_inline_failed rather than
8525 setting inline_failed directly.
8526
7fb0ee07
BE
85272009-03-29 Ben Elliston <bje@au.ibm.com>
8528
8529 PR target/32542
8530 * sysv4.opt (msdata): Improve comment.
8531 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
8532 * sysv4.h (SVR4_ASM_SPEC): Likewise.
8533
0be77bf2
BE
85342009-03-29 Ben Elliston <bje@au.ibm.com>
8535
8536 PR target/30451
8537 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
8538 load and store attributes.
8539
593812b6
BE
85402009-03-29 Ben Elliston <bje@au.ibm.com>
8541
8542 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
8543 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
8544 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
8545 * doc/extend.texi (X86 Built-in Functions): Add index entries for
8546 __builtin_infq and __builtin_huge_valq.
8547
8272d11d
AS
85482009-03-28 Anatoly Sokolov <aesok@post.ru>
8549
8550 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
8551 atmega8m1 devices.
8552 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
8553 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
8554
74fe548b
XDL
85552009-03-28 Xinliang David Li <davidxl@google.com>
8556
2ba9daa7 8557 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
74fe548b
XDL
8558 (do_dbg_cnt): New function.
8559
33977f81
JH
85602009-03-28 Jan Hubicka <jh@suse.cz>
8561
8562 Merge from pretty-ipa:
8563
8564 2009-03-27 Jan Hubicka <jh@suse.cz>
ba20e309 8565
33977f81
JH
8566 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
8567 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
8568 * passes.c (function_called_by_processed_nodes_p): New.
8569 * ipa-pure-const.c (check_call): Fix handling of operands.
8570 (analyze_function): Dump debug output for skipped bodies.
8571 (local_pure_const): Use function_called_by_processed_nodes_p.
8572 * dwarf2out.c (reference_to_unused): Use output.
8573 * passes.c (do_per_function_toporder): Likewise.
8574
8575 2008-11-12 Jan Hubicka <jh@suse.cz>
8576
8577 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
8578 * ipa-pure-const.c (funct_state_d): Add can throw field; make
8579 state_set_in_source enum
8580 (check_decl): Ignore memory tags; do not set fake looping flags;
8581 dump diagnostics.
8582 (check_operand, check_tree, check_rhs_var, check_lhs_var,
8583 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
8584 (check_call, analyze_function): Rewrite.
8585 (check_stmt): New.
8586 (add_new_function): Update call of analyze_function.
8587 (generate_summary): Add call of analyze_function.
8588 (propagate): Propagate can_throw; handle state_set_in_source correctly.
8589 (local_pure_const): New function.
8590 (pass_local_pure_const): New pass.
8591 * ipa-inline.c (inline_transform): Set after_inlining.
8592 * tree-eh.c (stmt_can_throw_external): New.
8593 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
8594 work with aliasing built.
8595 * tree-flow.h (stmt_can_throw_external): New.
8596 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
8597 and local pure/const pass in early and late optimization queue.
ba20e309 8598
617f3897
MJ
85992009-03-28 Martin Jambor <mjambor@suse.cz>
8600
8601 * fold-const.c (get_pointer_modulus_and_residue): New parameter
8602 allow_func_align.
8603 (fold_binary): Allow function decl aligment consideration is the
8604 second argument is integer constant one.
8605 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
8606 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
8607 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
8608
fe89fbc5
JH
86092009-03-28 Jan Hubicka <jh@suse.cz>
8610
8611 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
8612 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
8613 * function.h (rtl_data): Add nothrow flag.
8614 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
8615 set DECL_NOTHROW for AVAILABLE functions.
8616
574872ff
JJ
86172009-03-28 Jakub Jelinek <jakub@redhat.com>
8618
b3bf8855
JJ
8619 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
8620 following vector keyword has expansion starting with pixel or bool
8621 keyword, expand vector to __vector and pixel or bool to __pixel or
8622 __bool.
8623
574872ff
JJ
8624 PR c++/39554
8625 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
8626 warn_if_disallowed_function_p): Removed.
8627 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
8628 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
8629 warning_if_disallowed_function_p.
8630 * flags.h (warn_if_disallowed_function_p,
8631 warn_disallowed_functions): Removed.
8632 * common.opt (Wdisallowed-function-list=): Removed.
8633 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
8634
b005da11
RG
86352009-03-28 Richard Guenther <rguenther@suse.de>
8636
8637 PR tree-optimization/38723
8638 * tree-ssa-pre.c (compute_avail): Add all default definitions to
8639 the entry block.
8640
1de812a6
JH
86412009-03-28 Jan Hubicka <jh@suse.cz>
8642
8643 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
8644 test introduced by my previous patch.
8645
fbb789d4
RG
86462009-03-28 Richard Guenther <rguenther@suse.de>
8647
8648 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
8649 the PHIs value undefined.
8650
6f1873a1
JH
86512009-03-28 Jan Hubicka <jh@suse.cz>
8652
8653 * tree-pass.h (pass_fixup_cfg): New pass.
8654 * ipa-inline.c (inline_transform): Set
8655 always_inline_functions_inlined/after_inlining.
8656 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
8657 (pass_fixup_cfg): New pass.
8658 * passes.c (init_optimization_passes): Add fixup_cfg.
8659
17021bc8
RG
86602009-03-28 Richard Guenther <rguenther@suse.de>
8661
8662 PR tree-optimization/38458
8663 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
8664 argument use the arguments copy-of value.
8665
e8114fba
RG
86662009-03-28 Richard Guenther <rguenther@suse.de>
8667
8668 PR tree-optimization/38180
8669 * tree-ssa-ccp.c (get_default_value): Simplify.
8670 (likely_value): Likewise.
8671 (surely_varying_stmt_p): Properly handle VOP case.
8672 (ccp_initialize): Likewise.
8673 (ccp_fold): Handle propagating through *&.
8674 (fold_const_aggregate_ref): Also handle decls.
8675
257eb6e3
JH
86762009-03-28 Jan Hubicka <jh@suse.cz>
8677
8678 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
8679 * cgraph.h (cgraph_node): Likewise.
8680 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
8681 (cgraph_reset_node): Use process flag.
8682 (cgraph_mark_functions_to_output): Likewise.
8683 (cgraph_expand_function): Likewise.
8684 (cgraph_expand_all_functions): Likewise.
8685 (cgraph_output_in_order): Likewise.
8686 * dwarf2out.c (reference_to_unused): Likewise.
8687 * passes.c do_per_function_toporder): Likewise.
8688
61a05df1
JH
86892009-03-28 Jan Hubicka <jh@suse.cz>
8690
8691 Bring from lto-branch:
ba20e309 8692
61a05df1
JH
8693 2008-09-03 Doug Kwan <dougkwan@google.com>
8694
8695 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
8696 enums instead of reason strings.
8697 * cgraph.c (cgraph_create_edge): Same.
8698 (cgraph_inline_failed_string): New function.
8699 * cgraph.h (cgraph_inline_failed_t): New enum type.
8700 (cgraph_inline_failed_string): New prototype.
8701 (struct cgraph_edge): Change type of INLINED_FAILED from constant
8702 char pointer to cgraph_inline_failed_t.
8703 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
8704 (cgraph_default_inline_p): Ditto.
60839f5d 8705 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
61a05df1
JH
8706 to cgraph_inline_failed_t pointer.
8707 * cif-code.def: New file.
8708 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
8709 reason string.
8710 (cgraph_check_inline_limits): Change type of REASON to pointer to
8711 cgraph_inline_failed_t. Replace reason strings with enums.
8712 (cgraph_default_inline_p): Ditto.
8713 (cgraph_recursive_inlining_p): Ditto.
8714 (update_caller_keys): Change type of FAILED_REASON to
8715 cgraph_inline_failed_t.
8716 (cgraph_set_inline_failed): Change type of REASON to pointer to
8717 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
8718 convert enums to strings for text output.
8719 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
8720 to be of type cgraph_inline_failed_t. Replace reason strings with
8721 enums. Call cgraph_inline_failed_string to covert enums
8722 to strings for text output.
8723 (cgraph_decide_inlining): Replace reason strings with enums.
8724 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
8725 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
8726 for text output.
8727 * tree-inline.c (expand_call_inline): Change type of REASON
8728 to cgraph_inline_failed_t. Replace reason strings with enums.
8729 Call cgraph_inline_failed_string for text output.
8730 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
8731 (cgraph.o): Ditto.
8732
144e8aac
JH
87332009-03-28 Jan Hubicka <jh@suse.cz>
8734
8735 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
8736 cgraph_clone_node): Remove master clone handling.
8737 (cgraph_is_master_clone, cgraph_master_clone): Remove.
8738 * cgraph.h (master_clone): Remove.
8739 (cgraph_is_master_clone, cgraph_master_clone): Remove.
8740 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
8741 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
8742
4a371c8d
JH
87432009-03-28 Jan Hubicka <jh@suse.cz>
8744
8745 * cgraph.c (cgraph_function_body_availability): Functions declared
8746 inline are always safe to assume that it is not going to be replaced.
8747
6cdb0ee3
RG
87482009-03-28 Richard Guenther <rguenther@suse.de>
8749
8750 PR tree-optimization/38513
8751 * tree-ssa-pre.c (eliminate): Remove redundant stores.
8752 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
8753 EXC_PTR_EXPR and FILTER_EXPR.
8754 (get_ref_from_reference_ops): Likewise.
8755
8ca1fd76
RG
87562009-03-28 Richard Guenther <rguenther@suse.de>
8757
8758 PR tree-optimization/38968
8759 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
8760 Use FLOOR_MOD_EXPR to compute misalignment.
8761
a254e44d
RG
87622009-03-28 Richard Guenther <rguenther@suse.de>
8763
8764 PR tree-optimization/37795
8765 * tree.h (combine_comparisons): Declare.
8766 * fold-const.c (combine_comparisons): Export.
8767 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
8768 comparisons.
8769 (ifcombine_iforif): Use combine_comparisons.
8770
a8ee227c
JH
87712009-03-28 Jan Hubicka <jh@suse.cz>
8772
8773 * tree-eh.c (inlinable_call_p): New function.
8774 (make_eh_edges): Use it.
8775 (verify_eh_edges): Use it.
8776 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
8777 * except.c (reachable_next_level): Add inlinable_function argument
8778 (sjlj_find_directly_reachable_regions): Update.
8779 (add_reachable_handler): Do not set saw_any_handlers.
8780 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
8781 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
8782 Add new inlinable call parameter.
8783 (can_throw_internal, can_throw_external): Update.
8784 * except.h (can_throw_internal_1, can_throw_external_1,
8785 foreach_reachable_handler): Update declaration.
8786
52c0e446
JM
87872009-03-28 Joseph Myers <joseph@codesourcery.com>
8788
8789 * config/arm/t-arm-coff, config/h8300/coff.h,
8790 config/i386/i386-aout.h, config/i386/i386-coff.h,
8791 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
8792 config/pdp11/2bsd.h, config/rs6000/aix41.h,
8793 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
8794 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
8795 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
8796 sys-types.h: Remove.
8797 * Makefile.in: Remove protoize and fixproto support and references
8798 in comments.
8799 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
8800 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
8801 Remove.
8802 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
8803 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
8804 unprotoize$(exeext).
8805 (rest.encap): Don't depend on $(STMP_FIXPROTO)
8806 (.PHONY): Don't depend on proto.
8807 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
8808 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
8809 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
8810 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
8811 build/gen-protos.o, build/scan.o, xsys-protos.h,
8812 build/fix-header$(build_exeext), build/fix-header.o,
8813 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
8814 stmp-install-fixproto): Remove.
8815 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
8816 SYSCALLS.c or fixproto files.
8817 (install-common): Don't install protoize.
8818 (install-headers-tar, install-headers-cpio, install-headers-cp):
8819 Don't depend on $(STMP_FIXPROTO).
8820 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
8821 install fixproto files or write out fixproto settings.
8822 (uninstall): Don't uninstall protoize.
8823 * config.gcc (use_fixproto): Remove.
8824 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
8825 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
8826 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
8827 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
8828 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
8829 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
8830 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
8831 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
8832 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
8833 * config/t-vxworks (STMP_FIXPROTO): Remove.
8834 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
8835 STMP_FIXPROTO): Remove.
8836 * config.in, configure: Regenerate.
8837 * crtstuff.c (gid_t, uid_t): Don't undefine.
8838 * doc/install.texi: Change m68k-coff to m68k-elf in example.
8839 (arm-*-coff, arm-*-aout: Remove target entries.
8840 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
8841 Remove mention of AIX 4.1.
8842 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
8843 * doc/invoke.texi (Running Protoize): Remove.
8844 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
8845 (Protoize Caveats): Remove.
8846 * tsystem.h: Update comments on headers assumed to exist.
8847
20a07f44
VM
88482009-03-27 Vladimir Makarov <vmakarov@redhat.com>
8849
8850 * genautomata.c: Add a new year to the copyright. Add a new
8851 reference.
8852 (struct insn_reserv_decl): Add comments for member bypass_list.
8853 (find_bypass): Remove.
8854 (insert_bypass): New.
8855 (process_decls): Use insert_bypass.
8856 (output_internal_insn_latency_func): Output all bypasses with the
8857 same input insn in one switch case.
8858
8859 * rtl.def (define_bypass): Describe bypass choice.
8860 * doc/md.texi (define_bypass): Ditto.
8861
3a0d06c1
RB
88622009-03-27 Richard Guenther <rguenther@suse.de>
8863
8864 * gimplify.c (mark_addressable): Export.
8865 * tree-flow.h (mark_addressable): Declare.
8866 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
8867 * tree-ssa.c (verify_phi_args): Verify that address taken
8868 variables have TREE_ADDRESSABLE set.
8869
88702009-03-27 Richard Guenther <rguenther@suse.de>
8871
8872 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
8873 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
8874 Do not mark decls TREE_ADDRESSABLE.
8875 (build_fold_addr_expr): Adjust.
8876 (fold_addr_expr): Remove.
8877 (fold_unary): Use build_fold_addr_expr.
8878 (fold_comparison): Likewise.
8879 (split_address_to_core_and_offset): Likewise.
8880 * coverage.c (tree_coverage_counter_addr): Mark the array decl
8881 TREE_ADDRESSABLE.
8882 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
8883 (gimplify_modify_expr_to_memcpy): Mark source and destination
8884 addressable.
8885 * omp-low.c (create_omp_child_function): Mark the object decl
8886 TREE_ADDRESSABLE.
8887 (lower_rec_input_clauses): Mark the var we take the address of
8888 TREE_ADDRESSABLE.
8889 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
8890
2ac26e15
L
88912009-03-27 H.J. Lu <hongjiu.lu@intel.com>
8892
8893 PR middle-end/39315
8894 * cfgexpand.c (expand_one_stack_var_at): Change alignment
8895 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
8896
472c7fbd
RG
88972009-03-27 Richard Guenther <rguenther@suse.de>
8898
8899 PR tree-optimization/39120
8900 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
8901 constraints.
8902 (handle_lhs_call): Process return constraints. Add escape
8903 constraints if necessary.
8904 (handle_const_call): Fill out return constraints. Make nested
8905 case more precise. Avoid consttmp if possible.
8906 (handle_pure_call): Fill out return constraints. Avoid
8907 callused if possible.
8908 (find_func_aliases): Simplify call handling.
8909
89102009-03-27 Richard Guenther <rguenther@suse.de>
8911
8912 PR tree-optimization/39120
8913 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
8914 as a representative.
8915 (solve_graph): Do propagate CALLUSED.
8916 (handle_pure_call): Use a scalar constraint from CALLUSED for
8917 the return value.
8918 (find_what_p_points_to): CALLUSED shall not appear in poins-to
8919 solutions.
8920
d9223014
L
89212009-03-27 H.J. Lu <hongjiu.lu@intel.com>
8922
8923 PR c/39323
8924 * c-common.c (handle_aligned_attribute): Properly check alignment
8925 overflow. Use (1U << i) instead of (1 << i).
8926
ba20e309 8927 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
d9223014
L
8928
8929 * expr.h (get_mem_align_offset): Updated.
8930
8931 * tree.h (tree_decl_common): Change align to "unsigned int" and
8932 move it before pointer_alias_set.
8933
689b689c
L
89342009-03-27 H.J. Lu <hongjiu.lu@intel.com>
8935 Jakub Jelinek <jakub@redhat.com>
8936
8937 PR target/38034
8938 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
8939 gr_register_operand with gr_reg_or_0_operand.
8940 (cmpxchg_rel_di): Likewise.
8941 (sync_lock_test_and_set<mode>): Likewise.
8942
c619e982
L
89432009-03-27 H.J. Lu <hongjiu.lu@intel.com>
8944
8945 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
8946 (true_regnum): Likewise.
8947
8948 * rtlanal.c (subreg_info): Moved to ...
8949 * rtl.h (subreg_info): Here. New.
8950 (subreg_get_info): New.
8951
8952 * rtlanal.c (subreg_get_info): Make it extern.
8953
51212b32
L
89542009-03-27 H.J. Lu <hongjiu.lu@intel.com>
8955
8956 PR target/39472
8957 * config/i386/i386.c (ix86_abi): New.
8958 (override_options): Handle -mabi=.
ba20e309 8959 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
51212b32
L
8960 (ix86_call_abi_override): Likewise.
8961 (init_cumulative_args): Likewise.
8962 (function_arg_advance): Likewise.
8963 (function_arg_64): Likewise.
8964 (function_arg): Likewise.
8965 (ix86_pass_by_reference): Likewise.
8966 (ix86_function_value_regno_p): Likewise.
8967 (ix86_build_builtin_va_list_abi): Likewise.
8968 (setup_incoming_varargs_64): Likewise.
8969 (is_va_list_char_pointer): Likewise.
8970 (ix86_init_machine_status): Likewise.
ba20e309 8971 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
51212b32
L
8972 (ix86_function_type_abi): Return enum calling_abi. Rewrite
8973 for 64bit. Replace DEFAULT_ABI with ix86_abi.
ba20e309 8974 (ix86_function_abi): Make it static and return enum calling_abi.
51212b32
L
8975 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
8976 with ix86_abi.
8977 (ix86_fn_abi_va_list): Updated.
8978
8979 * config/i386/i386.h (ix86_abi): New.
8980 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
8981 (CONDITIONAL_REGISTER_USAGE): Likewise.
8982 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
8983 (machine_function): Likewise.
8984
8985 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
8986 with ix86_abi.
8987 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
8988 (STACK_BOUNDARY): Likewise.
8989 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
8990
8991 * config/i386/i386.opt (mabi=): New.
8992
8993 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
8994 return enum calling_abi.
8995 (ix86_function_type_abi): Likewise.
8996 (ix86_function_abi): Removed.
8997
8998 * doc/invoke.texi: Document -mabi= option for x86.
8999
7338ea63
KG
90002009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9001
9002 * builtins.c (real_dconstp): Delete.
9003 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
9004
68599f33
DS
90052009-03-27 Dodji Seketeli <dodji@redhat.com>
9006 Jakub Jelinek <jakub@redhat.com>
9007
9008 PR debug/37959
9009 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
9010 (gen_subprogram_die): When a function is explicit, generate the
9011 DW_AT_explicit attribute.
9012 * langhooks.h (struct lang_hooks_for_decls): Add
9013 function_decl_explicit_p langhook.
9014 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
9015 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
9016
9f5e9983
JJ
90172009-03-27 Jakub Jelinek <jakub@redhat.com>
9018
64d7685c
JJ
9019 * builtins.c (fold_builtin_memory_op): Optimize memmove
9020 into memcpy if we can prove source and destination don't overlap.
9021
9f5e9983
JJ
9022 * tree-inline.c: Include gt-tree-inline.h.
9023 (clone_fn_id_num): New variable.
9024 (clone_function_name): New function.
9025 (tree_function_versioning): Use it.
9026 * Makefile.in (GTFILES): Add tree-inline.c.
9027
e54d52a8
MM
90282009-03-27 Mark Mitchell <mark@codesourcery.com>
9029
9030 * BASE-VER: Change to 4.5.0.
9031
e9d51dc6
XDL
90322009-03-27 Xinliang David Li <davidxl@google.com>
9033
9034 PR tree-optimization/39557
9035 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
9036
4577cea1
XDL
90372009-03-27 Xinliang David Li <davidxl@google.com>
9038
9039 PR tree-optimization/39548
2ba9daa7 9040 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
4577cea1
XDL
9041 candidate check.
9042
0f7464f4
L
90432009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9044
9045 * c-common.c (pointer_int_sum): Use %wd on return from
9046 tree_low_cst.
9047
a8847a7f
L
90482009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9049
9050 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
9051 on return from tree_low_cst.
9052
b0957daf
AP
90532009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
9054
9055 PR c++/36799
ba20e309
UB
9056 * ginclude/stdarg.h (va_copy): Define also for
9057 __GXX_EXPERIMENTAL_CXX0X__.
b0957daf 9058
a5f805df
MLI
90592009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9060
9061 PR c++/35652
9062 * builtins.h (c_strlen): Do not warn here.
9063 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
9064 * c-common.c (pointer_int_sum): Take an explicit location.
9065 Warn about offsets out of bounds.
9066 * c-common.h (pointer_int_sum): Adjust declaration.
9067
6f401211
RW
90682009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9069
a5f805df
MLI
9070 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
9071 markup glitch.
6f401211 9072
5a59b39e
JJ
90732009-03-26 Jakub Jelinek <jakub@redhat.com>
9074
9075 PR c++/39554
9076 * opts.c (warn_if_disallowed_function_p): Don't assume
9077 get_callee_fndecl must return non-NULL.
9078
d5f89b53
VM
90792009-03-26 Vladimir Makarov <vmakarov@redhat.com>
9080
9081 PR rtl-optimization/39522
9082 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
9083 when reg_reloaded_valid is set.
9084
61238a79
UW
90852009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9086
9087 * config/spu/divv2df3.c: New file.
9088 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
9089 (DPBIT_FUNCS): Filter out _div_df.
9090
03f8829b
BS
90912009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
9092
9093 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
9094 a jump insn, count that jump in the distance to the loop start.
9095
9fdcdc74
KK
90962009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
9097
9098 PR target/39523
9099 * config/sh/sh.c (calc_live_regs): Fix condition for global
9100 registers except PIC_OFFSET_TABLE_REGNUM.
9101
46994828
KT
91022009-03-25 Kai Tietz <kai.tietz@onevision.com>
9103
9104 PR/39518
9105 * doc/invoke.texi (-mconsole): New.
9106 (-mcygwin): New.
9107 (-mno-cygwin): New.
9108 (-mdll): New.
9109 (-mnop-fun-dllimport): New.
9110 (-mthread): New.
9111 (-mwin32): New.
9112 (-mwindows): New.
9113 (sub section "i386 and x86-64 Windows Options"): New.
9114
60839f5d 91152009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
370017b4
RC
9116
9117 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
9118 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
9119
ae560440
RG
91202009-03-25 Richard Guenther <rguenther@suse.de>
9121
9122 PR middle-end/39497
9123 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
9124 of -Wno-error.
9125
cd510f15
AM
91262009-03-25 Andrey Belevantsev <abel@ispras.ru>
9127
9128 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
9129 neither of haifa/selective schedulers are working.
9130
44ab0f0e
RW
91312009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9132
9133 * doc/invoke.texi (Debugging Options): Fix description of
9134 -fno-merge-debug-strings.
9135
ad9646c7
HPN
91362009-03-24 Hans-Peter Nilsson <hp@axis.com>
9137
e6142656
HPN
9138 * config/cris/libgcc.ver: New version-script.
9139 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
9140
ad9646c7
HPN
9141 * configure.ac <GAS features, nop mnemonic>: Add pattern
9142 crisv32-*-* for "nop".
ba20e309 9143 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
ad9646c7
HPN
9144 * configure: Regenerate.
9145
09ac4473
IR
91462009-03-24 Ira Rosen <irar@il.ibm.com>
9147
9148 PR tree-optimization/39529
9149 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
9150 mark_sym_for_renaming for the tag copied to the new vector
9151 pointer.
9152
d94a427e
AL
91532009-03-24 Arthur Loiret <aloiret@debian.org>
9154
ba20e309 9155 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
d94a427e
AL
9156 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
9157 EXTRA_SPEC_FUNCTIONS.
9158 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
9159 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
9160 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
9161 -march and -mtune options.
9162
60839f5d 91632009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
722d07aa
RC
9164
9165 * config/m68k/t-rtems: Add m5329 multilib.
9166
603f5959
DS
91672009-03-24 Dodji Seketeli <dodji@redhat.com>
9168 Jakub Jelinek <jakub@redhat.com>
9169
9170 PR debug/39524
9171 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
9172 nodes.
9173
c5cdb03f
JJ
91742009-03-23 Jakub Jelinek <jakub@redhat.com>
9175
9176 PR c/39495
9177 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
9178 instead of c_parser_expression_conv, if original_code isn't one of the
9179 4 allowed comparison codes, fail.
9180
3691626c
RG
91812009-03-23 Richard Guenther <rguenther@suse.de>
9182
9183 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
9184 * tree.h (struct tree_type): Likewise.
9185 * reload.h (struct insn_chain): Likewise.
9186 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
9187 * function.h (struct function): Likewise.
9188 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
9189
88ccb72a
JJ
91902009-03-23 Jakub Jelinek <jakub@redhat.com>
9191
9192 PR tree-optimization/39516
9193 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
9194
60839f5d 91952009-03-23 Bingfeng Mei <bmei@broadcom.com>
a583a67e 9196
2ba9daa7 9197 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
a583a67e
BM
9198 should be set true if BITS_PER_WORD of target is bigger than 32
9199
f82162f8
HPN
92002009-03-22 Hans-Peter Nilsson <hp@axis.com>
9201
9202 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
9203 Translate -B-options to -rpath-link. Correct existing
9204 rpath-link and conditionalize on !nostdlib.
9205
048fd785
RW
92062009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9207
9208 * doc/extend.texi (Function Attributes, Variable Attributes):
9209 Fix typos.
9210 * doc/invoke.texi (Debugging Options, Optimize Options)
9211 (i386 and x86-64 Options, MCore Options): Likewise.
9212
6e75c1a9
JJ
92132009-03-20 Jakub Jelinek <jakub@redhat.com>
9214
9215 PR debug/37890
9216 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
9217 it for block local namespace aliases.
9218 (gen_decl_die): Pass context_die to gen_namespace_die.
9219
ea1199ee
JJ
92202009-03-19 Jakub Jelinek <jakub@redhat.com>
9221
9222 PR c/39495
9223 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
9224 minimum or maximum value.
9225
58929c10
AO
92262009-03-19 Alexandre Oliva <aoliva@redhat.com>
9227
9228 * reginfo.c (globalize_reg): Recompute derived reg sets.
9229
60839f5d 92302009-03-19 Ozkan Sezer <sezeroz@gmail.com>
234952b3
OS
9231
9232 PR target/39063
9233 * libgcc2.c (mprotect): Do not use signed arguments for
9234 VirtualProtect, use DWORD arguments. Also fix the 'may
9235 be used uninitialized' warning for the np variable.
9236
f57c2f04
JJ
92372009-03-19 Jakub Jelinek <jakub@redhat.com>
9238
9239 PR target/39496
9240 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
9241 functions using regparm calling conventions when not optimizing.
9242 (ix86_function_sseregparm): Similarly for sseregparm calling
9243 conventions.
9244
9e517d61
LF
92452009-03-19 Li Feng <nemokingdom@gmail.com>
9246
9247 PR middle-end/39500
9248 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
9249 dependence if the first conflict is after niter iterations.
9250
8ef20026
HPN
92512009-03-19 Hans-Peter Nilsson <hp@axis.com>
9252
9253 PR middle-end/38609
9254 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
9255 functions with dynamic stack-pointer adjustments.
9256
64e4a1a6
BE
92572009-03-19 Ben Elliston <bje@au.ibm.com>
9258
9259 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
9260 option; change to -msdata=data.
9261
9a0f3e86
RW
92622009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9263
9264 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
9265 and -fopenmp.
9266
09bc5979
EB
92672009-03-18 Eric Botcazou <ebotcazou@adacore.com>
9268
9269 PR target/35180
9270 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
9271
332459cd
SL
92722009-03-18 Sandra Loosemore <sandra@codesourcery.com>
9273
9274 * doc/invoke.texi (Code Gen Options): Expand discussion of
9275 -fno-common.
9276
8f5929e1
JJ
92772009-03-18 Jakub Jelinek <jakub@redhat.com>
9278
9279 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
9280 * matrix-reorg.c (struct matrix_info): Likewise.
9281 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
9282 * rtl.h (struct mem_attrs): Likewise.
9283 * df.h (struct df): Likewise.
9284 * tree-data-ref.h (struct data_dependence_relation): Likewise.
9285 * ira-int.h (struct ira_allocno): Likewise.
9286 * df-scan.c (struct df_collection_rec): Likewise.
9287 * ira.c (struct equivalence): Likewise.
9288 * function.c (struct temp_slot): Likewise.
9289 * cfgloop.h (struct loop): Likewise.
9290
d130d647
JJ
9291 PR debug/39485
9292 * function.c (use_register_for_decl): When not optimizing, disregard
9293 register keyword for variables with types containing methods.
9294
9968d233
SP
92952009-03-18 Sebastian Pop <sebastian.pop@amd.com>
9296
9297 PR middle-end/39447
9298 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
9299 (is_simple_operand): Call contains_component_ref_p before calling data
9300 reference analysis that would fail on COMPONENT_REFs.
9301
9302 * tree-vrp.c (search_for_addr_array): Fix formatting.
9303
69484bfd
RG
93042009-03-18 Richard Guenther <rguenther@suse.de>
9305
9306 * tree-vect-transform.c (vect_loop_versioning): Fold the
9307 generated comparisons.
9308 * tree-vectorizer.c (set_prologue_iterations): Likewise.
9309 (slpeel_tree_peel_loop_to_edge): Likewise.
9310
66811228
RW
93112009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9312
0631b69f
RW
9313 PR middle-end/37805
9314 * opts.c (print_specific_help): In addition to `undocumented',
9315 accept `separate' and `joined' flags if passed alone. Describe
9316 output by the first matched one of those.
9317 (common_handle_option): Skip over empty strings.
9318 * gcc.c (display_help): Fix help string for `--help='.
9319 * doc/invoke.texi (Option Summary, Overall Options): With
9320 `--help=', classes and qualifiers can both be repeated, but
9321 only the latter can be negated. One should not pass only
9322 negated qualifiers. Fix markup and examples.
9323
66811228
RW
9324 Revert
9325 2008-10-14 Jakub Jelinek <jakub@redhat.com>
9326 PR middle-end/37805
9327 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
9328 and -fhelp=separate.
9329
3c072c6b
JY
93302009-03-17 Jing Yu <jingyu@google.com>
9331
9332 PR middle-end/39378
80c65208
JY
9333 * function.h (struct rtl_data): Move is_thunk from here...
9334 (struct function): ...to here.
9335 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
3c072c6b
JY
9336 * varasm.c (assemble_start_function): Change is_thunk from crtl to
9337 cfun.
80c65208
JY
9338 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
9339 cfun.
9340 (alpha_does_function_need_gp, alpha_start_function): Likewise.
9341 (alpha_output_function_end_prologue): Likewise.
9342 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
9343 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
9344 (rs6000_output_function_epilogue): Likewise.
9345 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
3c072c6b 9346
9ade279b
UB
93472009-03-17 Uros Bizjak <ubizjak@gmail.com>
9348
9349 PR target/39482
9350 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
9351 from different units in a single alternative.
9352 (*truncdfsf_i387): Ditto.
9353 (*truncxfsf2_mixed): Ditto.
9354 (*truncxfdf2_mixed): Ditto.
9355
16e60c17
JJ
93562009-03-17 Jakub Jelinek <jakub@redhat.com>
9357
98381eb4
JJ
9358 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
9359 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
9360
df5deb18
JJ
9361 PR debug/39474
9362 * tree-ssa-live.c (remove_unused_locals): Don't remove local
9363 unused non-artificial variables when not optimizing.
9364
a3f596ba
JJ
9365 PR debug/39471
9366 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
9367 DW_TAG_imported_module even if decl is IMPORTED_DECL with
9368 NAMESPACE_DECL in its DECL_INITIAL.
9369
6b2b8871
JJ
9370 PR middle-end/39443
9371 * optabs.c (set_user_assembler_libfunc): New function.
9372 * expr.h (set_user_assembler_libfunc): New prototype.
9373 * c-common.c: Include libfuncs.h.
9374 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
9375 for memcmp, memset, memcpy, memmove and abort.
9376 * Makefile.in (c-common.o): Depend on libfuncs.h.
9377
16e60c17
JJ
9378 PR debug/39412
9379 * dwarf2out.c (gen_inlined_enumeration_type_die,
9380 gen_inlined_structure_type_die, gen_inlined_union_type_die,
9381 gen_tagged_type_instantiation_die): Removed.
9382 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
9383 do nothing.
9384
4d936aca
JJ
93852009-03-17 Janis Johnson <janis187@us.ibm.com>
9386
9387 PR testsuite/38526
9388 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
9389 its use.
9390 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
9391 (check-parallel-%): Ditto.
9392 (check-consistency): Ditto.
9393
4e9b2e50
KT
93942009-03-17 Kai Tietz <kai.tietz@onevision.com>
9395
9396 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
9397 local variable rhs by NULL_TREE.
9398
21440b2d
L
93992009-03-17 H.J. Lu <hongjiu.lu@intel.com>
9400
9401 PR target/39477
9ade279b 9402 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
21440b2d 9403
d8905c6a
L
94042009-03-17 H.J. Lu <hongjiu.lu@intel.com>
9405
9406 PR target/39476
9ade279b 9407 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
d8905c6a
L
9408
94092009-03-17 H.J. Lu <hongjiu.lu@intel.com>
435a61d3
L
9410
9411 PR target/39473
9412 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
9413 for ms->sysv ABI calls only in 64bit mode.
9414
9415 * config/i386/i386.md (untyped_call): Support 32bit.
9416
cdcabece
L
94172009-03-16 H.J. Lu <hongjiu.lu@intel.com>
9418
9419 * doc/extend.texi: Replace x86_65 with x86_64.
9420
97b4ba9f
JJ
94212009-03-16 Jakub Jelinek <jakub@redhat.com>
9422
9423 PR tree-optimization/39455
9424 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
9425 mismatches for POINTER_TYPE_P (type).
9426 (number_of_iterations_le): Likewise.
9427
60839f5d 94282009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
83c191e1
HS
9429
9430 * config/picochip/picochip.c: Removed profiling support.
9431 * config/picochip/picochip.md: Removed profiling instruction.
9432 * config/picochip/picochip.h: Removed profiling builtin.
9433
f38095f3
JM
94342009-03-16 Joseph Myers <joseph@codesourcery.com>
9435
9436 * doc/install.texi (--with-host-libstdcxx): Document.
9437
2cb4817b
AS
94382009-03-14 Anatoly Sokolov <aesok@post.ru>
9439
9440 PR target/34299
9441 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
9442 generate a warning if the function name does not begin with
9443 "__vector" and the function has either the 'signal' or 'interrupt'
9444 attribute, from here to ...
9445 (avr_declare_function_name): ...here. New function.
9446 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
9447 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
9448
39b2ac74
JJ
94492009-03-14 Jakub Jelinek <jakub@redhat.com>
9450
9451 PR bootstrap/39454
9452 * cse.c (fold_rtx): Don't modify original const_arg1 when
9453 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
9454 separate variable instead.
9455 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
9456 from out of range shift counts.
9457 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
9458
ad41bd84 94592009-03-13 Catherine Moore <clm@codesourcery.com>
f7a82dee 9460
60839f5d 9461 * config/i386/x-mingw32 (host-mingw32.o): Replace
f7a82dee
CM
9462 diagnostic.h with $(DIAGNOSTIC_H).
9463
ad41bd84 94642009-03-12 Jakub Jelinek <jakub@redhat.com>
03a18198
JJ
9465
9466 PR target/39431
9467 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
9468 predicate.
9469 * config/i386/sync.md (sync_compare_and_swap<mode>,
9470 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
9471 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
9472 into a register.
9473 (sync_double_compare_and_swapdi_pic,
9474 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
9475 cmpxchg8b_pic_memory_operand instead of just memory_operand.
9476
122c59c7
L
94772009-03-12 H.J. Lu <hongjiu.lu@intel.com>
9478
9479 PR target/39445
9ade279b 9480 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
122c59c7 9481
cec8874f
L
94822009-03-12 H.J. Lu <hongjiu.lu@intel.com>
9483
9484 PR target/39327
9485 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
9486 (avx_addsubv4df3): Likewise.
9487 (*avx_addsubv4sf3): Likewise.
9488 (sse3_addsubv4sf3): Likewise.
9489
bbb52802
L
94902009-03-12 H.J. Lu <hongjiu.lu@intel.com>
9491
9492 PR target/38824
9ade279b 9493 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
bbb52802 9494
a812fb07
VM
94952009-03-12 Vladimir Makarov <vmakarov@redhat.com>
9496
9497 PR debug/39432
9498 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
9499 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
9500 registers for allocnos created from user-defined variables.
9501
4caab5ba
UW
95022009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9503
9504 PR target/39181
9505 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
9506 of non-integer mode as well.
9507
498e51ca
AN
95082009-03-11 Adam Nemet <anemet@caviumnetworks.com>
9509
9510 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
9511 for functions for which the parameter types are unknown.
9512
9bfaf89d
JJ
95132009-03-11 Jakub Jelinek <jakub@redhat.com>
9514
9515 PR target/39137
9ade279b 9516 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
9bfaf89d
JJ
9517 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
9518 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
9519 * config/i386/i386.c (ix86_local_alignment): For
9520 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
9521 long long variables on the stack to avoid dynamic realignment.
9522 Allow the first argument to be a decl rather than type.
9523 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
9524
18a3bdcb
NC
95252009-03-11 Nick Clifton <nickc@redhat.com>
9526
9527 PR target/5362
40190a76
NC
9528 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
9529 options.
9530 Add description to mno-lsim option.
9531 * config/mcore/mcore.h: Remove comment about deprecated m4align
9532 option.
9533 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
9534 * doc/invoke.texi: Add description of mno-lsim and
9535 mstack-increment options.
9536
18a3bdcb
NC
9537 * config/fr30/fr30.opt: Document the -mno-lsim option.
9538 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
9539 and -mno-lsim options.
9540
dc215785
UW
95412009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9542
9543 * fold-const.c (fold_comparison): Only call fold_inf_compare
9544 if the mode supports infinities.
9545
7716876b
JM
95462009-03-11 Jason Merrill <jason@redhat.com>
9547
9548 PR debug/39086
9549 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
9550 end already did. Notice GIMPLE_CALL modifications of the result.
9551 Don't copy debug information from an ignored decl or a decl from
9552 another function.
9553
ddef83d2
RG
95542009-03-10 Richard Guenther <rguenther@suse.de>
9555 Nathan Froyd <froydnj@codesourcery.com>
9556
9557 PR middle-end/37850
9ade279b 9558 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
ddef83d2
RG
9559 (__divMODE3): Likewise.
9560
9a9ba8d9
JJ
95612009-03-09 Jakub Jelinek <jakub@redhat.com>
9562
9563 PR tree-optimization/39394
9564 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
9565 DECL_SIZE_UNIT of variable length FIELD_DECLs.
9566
929b7fc3
AK
95672009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9568
9569 * recog.c (verfiy_changes): Disallow renaming of hard regs in
9570 inline asms for register asm ("") declarations.
9571
1803581d
EB
95722009-03-09 Eric Botcazou <ebotcazou@adacore.com>
9573
9574 * fold-const.c (fold_unary): Fix comment.
9575
8454d27e
JH
95762009-03-07 Jan Hubicka <jh@suse.cz>
9577
9578 PR target/39361
969a5433
JJ
9579 * tree-inline.c (setup_one_parameter): Do replacement of const
9580 argument by constant in SSA form.
8454d27e 9581
3a695389
UW
95822009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9583
9584 PR middle-end/38028
9585 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
9586 determine alignment passed to assign_stack_local.
9587 (assign_parms_unsplit_complex): Likewise.
9588 * except.c (sjlj_build_landing_pads): Likewise.
9589
9f0e7885
JJ
95902009-03-06 Jakub Jelinek <jakub@redhat.com>
9591
65401a0b
JJ
9592 PR middle-end/39360
9593 * tree-flow.h (add_referenced_var): Return bool instead of void.
9594 * tree-dfa.c (add_referenced_var): Return result of
9595 referenced_var_check_and_insert call.
9596 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
9597 of referenced_var_check_and_insert.
9598
9f0e7885 9599 PR debug/39372
9ade279b 9600 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
9f0e7885
JJ
9601 (gen_variable_die): Emit DW_AT_location on abstract static variable's
9602 DIE, don't emit it if abstract origin already has it.
9603 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
9604 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
9605
3b664bd1
JBG
96062009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9607
ba20e309 9608 * genpreds.c (needs_variable): Fix parentheses at variable name
3b664bd1
JBG
9609 detection.
9610 (write_tm_constrs_h): Indent generated code.
9611
d8f8ca80
RR
96122009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9613
9614 * doc/extend.texi (Function Attributes): Add documentation
9615 for isr attributes.
9616
6c3d550c
JJ
96172009-03-06 Jakub Jelinek <jakub@redhat.com>
9618
9619 PR debug/39387
9620 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
9621 take locus from its DECL_SOURCE_LOCATION instead of input_location.
9622
f9e96751
BS
96232009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
9624
9625 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
9626 the loop as bad.
9627
ee0ee7e2
JJ
96282009-03-05 Jakub Jelinek <jakub@redhat.com>
9629
9630 PR debug/39379
9631 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
9632 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
9633
6c6094f1
UB
96342009-03-05 Uros Bizjak <ubizjak@gmail.com>
9635
9636 * config/i386/i386.md (R8_REG, R9_REG): New constants.
9637 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
9638 constants instead of magic numbers.
9639 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
9640 (QI_REG_P): Ditto.
9641 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
9642 (x86_64_ms_abi_int_parameter_registers): Ditto.
9643 (x86_64_int_return_registers): Ditto.
09f8a8d3 9644 (ix86_maybe_switch_abi): Ditto.
6c6094f1
UB
9645 (ix86_expand_call): Ditto for clobbered_registers array.
9646 (ix86_hard_regno_mode_ok): Ditto.
9647 (x86_extended_QIreg_mentioned_p): Ditto.
9648
b267bd41
R
96492009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
9650
6c6094f1 9651 PR tree-optimization/39349
1f3ad3f0
R
9652 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
9653
b267bd41
R
9654 * combine.c (gen_lowpart_for_combine): Use omode when generating
9655 clobber.
9656
1242bc9d
R
96572009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
9658
6c6094f1 9659 PR rtl-optimization/39235
1242bc9d
R
9660 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
9661
48f03606
ZD
96622009-03-04 Zdenek Dvorak <ook@ucw.cz>
9663
9664 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
9665
b505e785
RG
96662009-03-04 Richard Guenther <rguenther@suse.de>
9667
9668 PR tree-optimization/39362
9669 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
9670 that occur in abnormal PHIs should be varying.
9671
f017bf5e
ZD
96722009-03-04 Zdenek Dvorak <ook@ucw.cz>
9673
9674 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
9675 Extend comments.
9676 (simple_iv): Take loop as an argument instead of statement.
9677 * tree-scalar-evolution.h (simple_iv): Declaration changed.
9678 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
9679 to simple_iv.
9680 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
9681 Ditto.
9682 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
9683 * matrix-reorg.c (analyze_transpose): Ditto.
9684 * tree-data-ref.c (dr_analyze_innermost): Ditto.
9685 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
9686 * tree-predcom.c (ref_at_iteration): Ditto.
9687 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
9688
6a66f28e
RG
96892009-03-04 Richard Guenther <rguenther@suse.de>
9690
9691 PR tree-optimization/39358
9692 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
9693 escaped_id and callused_id.
9694 (solve_graph): Likewise.
9695
57e454ee
RG
96962009-03-04 Richard Guenther <rguenther@suse.de>
9697
9698 PR tree-optimization/39339
9699 * tree-sra.c (try_instantiate_multiple_fields): Make it
9700 no longer ICE on the above.
9701
a6fe9ed4
JM
97022009-03-03 Joseph Myers <joseph@codesourcery.com>
9703
9704 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
9705 that fits within Pmode.
9706
dc672951
SE
97072009-03-03 Steve Ellcey <sje@cup.hp.com>
9708
9709 PR middle-end/10109
9710 * tm.texi (LIBCALL_VALUE): Update description.
9711
8b9d598f
SE
97122009-03-03 Steve Ellcey <sje@cup.hp.com>
9713
9714 PR middle-end/34443
9715 * doc/extend.texi (section): Update description.
9716
13e4e36e
L
97172009-03-03 H.J. Lu <hongjiu.lu@intel.com>
9718
9719 PR middle-end/39345
9720 * tree-inline.c (remapped_type): New.
9721 (can_be_nonlocal): Call remapped_type instead of remap_type.
9722
067dd3c9
JJ
97232009-03-03 Jakub Jelinek <jakub@redhat.com>
9724
9725 PR fortran/39354
9726 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
9727 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
9728
9bd9f738
RG
97292009-03-03 Richard Guenther <rguenther@suse.de>
9730
9731 PR middle-end/39272
9732 * tree.c (tree_nonartificial_location): New function.
9733 * tree.h (tree_nonartificial_location): Declare.
9734 * builtins.c (expand_builtin_memory_chk): Provide location
9735 of the call location for artificial function pieces.
9736 (maybe_emit_chk_warning): Likewise.
9737 (maybe_emit_sprintf_chk_warning): Likewise.
9738 (maybe_emit_free_warning): Likewise.
9739 * expr.c (expand_expr_real_1): Likewise.
9740
f07049c8
JJ
97412009-03-03 Jakub Jelinek <jakub@redhat.com>
9742
9743 PR tree-optimization/39343
9744 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
9745 COMPONENT_REF t has ARRAY_TYPE.
9746
7d4fba4a
SP
97472009-03-02 Sebastian Pop <sebastian.pop@amd.com>
9748
9749 PR middle-end/39335
9750 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
9751 when the type precision of the induction variable should be
9752 larger than the type precision of nit.
9753 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
9754 * graphite.c (graphite_loop_normal_form): Same.
9755 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
9756
78168632
UB
97572009-03-02 Uros Bizjak <ubizjak@gmail.com>
9758
9759 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
9760 (*call_1_rex64_ms_sysv): Use named constants instead of magic
6c6094f1 9761 numbers to describe clobbered registers.
78168632 9762 (*call_value_0_rex64_ms_sysv): Ditto.
6c6094f1
UB
9763 * config/i386/mmx.md (mmx_emms): Ditto.
9764 (mmx_femms): Ditto.
78168632 9765
63553059
RS
97662009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
9767
9768 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
9769 of ABI_64.
9770
500a1f85
UW
97712009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9772
9773 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
9774 (spu_section_type_flags): New function.
9775
962aae34
UB
97762009-03-02 Uros Bizjak <ubizjak@gmail.com>
9777
9778 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
9779 reg_class_contents of FLOAT_REGS into a temporary.
9780
6dfb529c 97812009-03-02 Richard Guenther <rguenther@suse.de>
962aae34 9782 Ira Rosen <irar@il.ibm.com>
6dfb529c
RG
9783
9784 PR tree-optimization/39318
9785 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
9786 information to the vectorized statement.
9787
6b5629db
UB
97882009-03-01 Uros Bizjak <ubizjak@gmail.com>
9789
434426d2
UB
9790 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
9791 variable. Use defined names instead of magic constants for REX SSE
9792 registers.
6b5629db 9793
14e5b285
RG
97942009-03-01 Richard Guenther <rguenther@suse.de>
9795
9796 PR tree-optimization/39331
9797 * omp-low.c (lower_send_shared_vars): Do not receive new
9798 values for the reference of DECL_BY_REFERENCE parms or results.
9799
526d73ab
JH
98002009-03-01 Jan Hubicka <jh@suse.cz>
9801
9802 PR debug/39267
9803 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
9804 BLOCK_NONLOCALIZED_VAR): New macros.
9805 (tree_block): Add nonlocalized_vars.
f4ea99bd
EB
9806 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
9807 gen_decl_die): Add origin argument. Allow generation of die with
9808 origin at hand only.
526d73ab 9809 (gen_member_die, gen_type_die_with_usage, force_decl_die,
f4ea99bd
EB
9810 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
9811 of gen_*.
526d73ab
JH
9812 (gen_block_die): Fix checking for unused blocks.
9813 (process_scope_var): Break out from .... ; work with origins only.
9814 (decls_for_scope) ... here; process nonlocalized list.
9815 (dwarf2out_ignore_block): Look for nonlocalized vars.
f4ea99bd
EB
9816 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
9817 vars.
526d73ab
JH
9818 (dump_scope_block): Dump them.
9819 * tree-inline.c (remap_decls): Handle nonlocalized vars.
9820 (remap_block): Likewise.
9821 (can_be_nonlocal): New predicate.
9822 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
9823
7a9d3fe8
RW
98242009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9825
9826 * configure: Regenerate.
9827
b3cdf3cb
RW
98282009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9829
a16d1645 9830 * optc-gen.awk: No need to duplicate option flags twice.
9ade279b 9831 Reuse help texts for duplicate options which do not have any.
a16d1645 9832
1156c176
RW
9833 * gcc.c (display_help): Document --version.
9834
033505fc
RW
9835 * gcc.c (main): If print_help_list and verbose_flag, ensure
9836 driver output comes before subprocess output.
9837
4d077054
RW
9838 * optc-gen.awk: Assign all remaining fields to help string,
9839 space-separated, for multi-line help in *.opt.
9840
a072f1cf
RW
9841 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
9842 -Wno-pedantic-ms-format is for MinGW targets only.
9843
b3cdf3cb
RW
9844 * doc/options.texi (Option file format): Fix bad indentation,
9845 restoring dropped sentence.
9846
a3aadcc5
JH
98472009-02-28 Jan Hubicka <jh@suse.cz>
9848
9849 * tree-inline.c (tree_function_versioning): Output debug info.
9850
1cf5abb3
JH
98512009-02-28 Jan Hubicka <jh@suse.cz>
9852
9853 PR debug/39267
9854 * tree-inline.c (setup_one_parameter): Do not copy propagate
9855 arguments when not optimizing.
9856
c4d3f42f
L
98572009-02-28 H.J. Lu <hongjiu.lu@intel.com>
9858
9859 PR target/39327
9860 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
9861 (avx_addsubv4df3): Likewise.
9862 (*avx_addsubv4sf3): Likewise.
9863 (sse3_addsubv4sf3): Likewise.
9864 (*avx_addsubv2df3): Likewise.
9865 (sse3_addsubv2df3): Likewise.
9866 (avx_unpckhps256): Correct item selectors.
9867 (avx_unpcklps256): Likewise.
9868 (avx_unpckhpd256): Likewise.
9869 (avx_unpcklpd256): Likewise.
9870
eb50f5f4
JH
98712009-02-28 Jan Hubicka <jh@suse.cz>
9872
9873 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
9874 static vars.
9875 (copy_arguments_for_versioning): If var is declared don't declare it.
9876 (tree_function_versioning): First setup substitutions and then copy
9877 args.
9878
26140130
JH
98792009-02-27 Jan Hubicka <jh@suse.cz>
9880
9881 PR debug/39267
9882 * cgraph.h (varpool_output_debug_info): Remove.
9883 * cgraphunit.c (varpool_output_debug_info): Remove.
9884 * dwarf2out.c (deferred_locations_struct): New struct
9885 (deferred_locations): New type.
9886 (deferred_locations_list): New static var.
9887 (deffer_location): New function.
9888 (gen_variable_die): Use it.
9889 (decls_for_scope): Output info on local static vars.
9890 (dwarf2out_finish): Process deferred locations.
9891 * varpool.c (varpool_output_debug_info): Remove.
9892
cff7525f
JH
98932009-02-27 Jan Hubicka <jh@suse.cz>
9894
9895 PR debug/39267
9896 * tree.h (TREE_PROTECTED): Fix comment.
9897 (BLOCK_HANDLER_BLOCK): Remove.
9898 (struct tree_block): Remove handler_block add body_block.
9899 (inlined_function_outer_scope_p): New.
9900 (is_body_block): Remove.
9901 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
9902 * dwarf2out.c (is_inlined_entry_point): Remove.
9903 (add_high_low_attributes): Use inlined_function_outer_scope_p.
f10a1c6c
EB
9904 (gen_block_die): Use is_inlined_entry_point check. Remove body block
9905 code.
cff7525f
JH
9906 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
9907 * gimplify.c (gimplify_expr): Gimplify body blocks.
f10a1c6c
EB
9908 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
9909 block with multiple subblocks.
cff7525f
JH
9910 (dump_scope_block): Prettier output; dump more flags and info.
9911 (dump_scope_blocks): New.
9912 (remove_unused_locals): Use dump_scope_blocks.
9913 * tree-flow.h (dump_scope_blocks): Declare.
9914 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
9915 * stmt.c (is_body_block): Remove.
9916 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
9917 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
9918
c20993b9
SP
99192009-02-27 Sebastian Pop <sebastian.pop@amd.com>
9920
9921 PR middle-end/39308
2ba9daa7 9922 * graphite.c (graphite_loop_normal_form): Do not call
c20993b9
SP
9923 number_of_iterations_exit from a gcc_assert.
9924
e3cba5e5
AK
99252009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9926
60839f5d 9927 * config/s390/s390.c (s390_swap_cmp): Look for conditional
e3cba5e5
AK
9928 jumps if COND is NULL.
9929 (find_cond_jump): New function.
9930 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
60839f5d 9931 * config/s390/s390.md: Remove z10_cobra attribute value.
e3cba5e5 9932
9dadeeb8
UB
99332009-02-26 Uros Bizjak <ubizjak@gmail.com>
9934
9935 * config/alpha/alpha.h (alpha_expand_mov): Return false if
9936 force_const_mem returns NULL_RTX.
9937
625d3251
EB
99382009-02-26 Jan Hubicka <jh@suse.cz>
9939
9940 PR debug/39267
9941 * cgraph.h (varpool_output_debug_info): Remove.
9942 * cgraphunit.c (varpool_output_debug_info): Remove.
9943 * dwarf2out.c (deferred_locations_struct): New struct
9944 (deferred_locations): New type.
9945 (deferred_locations_list): New static var.
9946 (deffer_location): New function.
9947 (gen_variable_die): Use it.
9948 (decls_for_scope): Output info on local static vars.
9949 (dwarf2out_finish): Process deferred locations.
9950 * varpool.c (varpool_output_debug_info): Remove.
9951
38432148 99522009-02-25 H.J. Lu <hongjiu.lu@intel.com>
8592acaf
L
9953
9954 PR rtl-optimization/39241
9955 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
9956 to subreg_offset_representable_p.
9957
62d049cf
PB
99582009-02-25 Paolo Bonzini <bonzini@gnu.org>
9959
9960 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
9961 execute function prototype. Get f and nregs from max_reg_num
9962 and get_insns. Remove the first backward pass as it's dead,
9963 guard the forward pass by flag_expensive_optimizations.
9964 (rest_of_handle_regmove): Delete.
9965 (pass_regmove): Replace it with regmove_optimize.
9966
f618d33e
MJ
99672009-02-25 Martin Jambor <mjambor@suse.cz>
9968
9969 PR tree-optimization/39259
9970 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
6c6094f1 9971 calls_alloca function flags.
f618d33e
MJ
9972 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
9973 calls are detected.
9974
c8a05f7c
PB
99752009-02-25 Paolo Bonzini <bonzini@gnu.org>
9976
9977 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
9978 flags_set_1_rtx, flags_set_1_set): Delete.
9979 (regmove_optimize): Do not call mark_flags_life_zones.
9980
6d2538f5
JB
99812009-02-24 Julian Brown <julian@codesourcery.com>
9982
9983 PR target/35965
9984 * config/arm/arm.c (require_pic_register): Only set
9985 cfun->machine->pic_reg once per function.
9986
a2fa6772
SL
99872009-02-24 Sandra Loosemore <sandra@codesourcery.com>
9988
9989 * doc/invoke.texi (Link Options): Document an easier way to pass
9dadeeb8 9990 options that take arguments to the GNU linker using -Xlinker and -Wl.
a2fa6772 9991
5472de36
SE
99922009-02-24 Steve Ellcey <sje@cup.hp.com>
9993
9994 PR target/33785
9995 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
9996
844216f3
RG
99972009-02-24 Richard Guenther <rguenther@suse.de>
9998
9999 PR debug/39285
10000 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
10001
71adbef3 100022009-02-24 Richard Guenther <rguenther@suse.de>
8592acaf 10003 Zdenek Dvorak <ook@ucw.cz>
71adbef3
RG
10004
10005 PR tree-optimization/39233
10006 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
10007 from converting them to a generic type.
10008
f1a558e0
SP
100092009-02-23 Sebastian Pop <sebastian.pop@amd.com>
10010
10011 PR tree-optimization/39260
10012 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
10013 contains a condition with a real type.
10014 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
10015
d8028f2c
JM
100162009-02-23 Jason Merrill <jason@redhat.com>
10017
10018 PR c++/38880
10019 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
10020 narrowing_initializer_constant_valid_p.
2ba9daa7 10021 (narrowing_initializer_constant_valid_p): Don't return
d8028f2c
JM
10022 null_pointer_node for adding a pointer to itself.
10023
9283b513
JH
100242009-02-23 Jan Hubicka <jh@suse.cz>
10025
10026 PR c/12245
9dadeeb8
UB
10027 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
10028 resizing.
9283b513 10029
61e04322
JH
100302009-02-23 Jan Hubicka <jh@suse.cz>
10031
9dadeeb8
UB
10032 PR tree-optimization/37709
10033 * tree.c (block_ultimate_origin): Move here from dwarf2out.
10034 * tree.h (block_ultimate_origin): Declare.
10035 * dwarf2out.c (block_ultimate_origin): Move to tree.c
61e04322
JH
10036 * tree-ssa-live.c (remove_unused_scope_block_p):
10037 Eliminate blocks containig no instructions nor live variables nor
10038 nested blocks.
10039 (dump_scope_block): New function.
10040 (remove_unused_locals): Enable removal of dead blocks by default;
9dadeeb8 10041 enable dumping at TDF_DETAILS.
61e04322 10042
38432148 100432009-02-21 H.J. Lu <hongjiu.lu@intel.com>
5339d3ea
L
10044
10045 * config/i386/i386.c (classify_argument): Don't allow COImode
10046 and OImode.
10047 (function_arg_advance_32): Don't allow OImode.
10048 (function_arg_32): Likewise.
10049 (function_value_32): Likewise.
10050 (return_in_memory_32): Likewise.
10051 (function_arg_64): Remove OImode comment.
10052
38432148 100532009-02-21 H.J. Lu <hongjiu.lu@intel.com>
f161e158
L
10054
10055 PR target/39261
10056 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
10057 ix86_expand_vector_set for V4DImode in 64bit mode only.
10058 (ix86_expand_vector_init_one_var): Likewise.
10059
dcd739a6
SP
100602009-02-21 Sebastian Pop <sebastian.pop@amd.com>
10061
10062 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
10063
6c3b938d
RS
100642009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
10065
8e361f23 10066 PR bootstrap/39257
6c3b938d
RS
10067 * loop-iv.c: Revert last change.
10068 * emit-rtl.c: Likewise.
10069
38432148 100702009-02-21 H.J. Lu <hongjiu.lu@intel.com>
4c64d3dd
L
10071
10072 PR target/39256
10073 * config/i386/i386.c (type_natural_mode): Remove an extra
10074 space in the warning message.
10075 (function_value_32): Handle 32-byte vector modes.
10076 (return_in_memory_32): Likewise.
10077
2ec62529
RS
100782009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
10079
10080 * loop-iv.c (truncate_value): New function.
10081 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
10082 of lowpart_subreg.
10083 (lowpart_subreg): Move to...
10084 * emit-rtl.c: ...here.
10085
ecb8c3cc 100862009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
f814e489 10087
ecb8c3cc
DS
10088 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
10089 accidental and undocumented change at revision 140860.
10090
ae46a823
JM
100912009-02-21 Joseph Myers <joseph@codesourcery.com>
10092
10093 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
10094 take gimple_seq * arguments.
10095 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
10096 types_compatible_p langhook.
10097
07d8efe3 100982009-02-20 Mark Mitchell <mark@codesourcery.com>
f814e489 10099 Joseph Myers <joseph@codesourcery.com>
07d8efe3
MM
10100
10101 * config/arm/arm.c (arm_builtin_va_list): New function.
10102 (arm_expand_builtin_va_start): Likewise.
10103 (arm_gimplify_va_arg_expr): Likewise.
10104 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
10105 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
10106 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
10107 (va_list_type): New variable.
10108 (arm_mangle_type): Mangle va_list_type appropriately.
10109
b1fb9f56
JJ
101102009-02-20 Jakub Jelinek <jakub@redhat.com>
10111
10112 PR middle-end/39157
10113 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
10114 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
10115 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
10116 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
10117 parameter to 1000 for -O1 by default.
10118 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
10119 parameter.
10120 * loop-invariant.c: Include params.h.
10121 (move_loop_invariants): Don't call move_single_loop_invariants on
10122 very large loops.
10123
5bc0807c
JM
101242009-02-20 Jaka Mocnik <jaka@xlab.si>
10125
10126 * calls.c (emit_library_call_value_1): Use slot_offset instead of
10127 offset when calculating bounds for indexing stack_usage_map. Fixes
10128 a buffer overflow with certain target setups.
10129
c69cd1f5
JJ
101302009-02-20 Jakub Jelinek <jakub@redhat.com>
10131
10132 PR target/39240
10133 * calls.c (expand_call): Clear try_tail_call if caller and callee
10134 disagree in promotion of function return value.
10135
09812622
JJ
101362009-02-19 Jakub Jelinek <jakub@redhat.com>
10137
10138 PR target/39175
10139 * c-common.c (c_determine_visibility): If visibility changed and
10140 DECL_RTL has been already set, call make_decl_rtl to update symbol
10141 flags.
10142
68017cb4
L
101432009-02-19 H.J. Lu <hongjiu.lu@intel.com>
10144
10145 PR c++/39188
10146 * varasm.c (assemble_variable): Don't check DECL_NAME when
10147 globalizing a variable.
10148
ab4194da
JM
101492009-02-19 Joseph Myers <joseph@codesourcery.com>
10150
10151 PR c/38483
10152 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
10153 expression before any __builtin_trap call.
10154 * c-typeck.c (build_function_call): Convert and check function
10155 arguments before generating a call to a trap. Evaluate the
10156 function arguments before the trap.
10157
6b67572e
UB
101582009-02-19 Uros Bizjak <ubizjak@gmail.com>
10159
10160 PR target/39228
10161 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
10162 (UNSPEC_FXAM_MEM): New unspec.
10163 (fxam<mode>2_i387_with_temp): New insn and split pattern.
10164 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
10165 memory using fxam<mode>2_i387_with_temp to remove excess precision.
10166
9e39dba6
RG
101672009-02-19 Richard Guenther <rguenther@suse.de>
10168
10169 PR tree-optimization/39207
10170 PR tree-optimization/39074
10171 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
10172 storedanything_tree): New.
10173 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
6b67572e 10174 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
9e39dba6
RG
10175 (build_succ_graph): Add edges from STOREDANYTHING to all
10176 non-direct nodes.
10177 (init_base_vars): Initialize STOREDANYTHING.
10178 (compute_points_to_sets): Free substitution info after
10179 building the succ graph.
10180 (ipa_pta_execute): Likewise.
10181
10182 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
10183 field.
10184 (do_ds_constraint): Do not add to special var or non-pointer
10185 field solutions.
10186 (type_could_have_pointers): Split out from ...
10187 (could_have_pointers): ... here. For arrays use the element type.
10188 (create_variable_info_for): Initialize may_have_pointers.
10189 (new_var_info): Likewise.
10190 (handle_lhs_call): Make the HEAP variable unknown-sized.
10191 (intra_create_variable_infos): Use a type with pointers for
10192 PARM_NOALIAS, make it unknown-sized.
10193
fd7b2603
L
101942009-02-18 H.J. Lu <hongjiu.lu@intel.com>
10195
10196 PR target/39224
6b67572e 10197 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
fd7b2603 10198
98b80692
JM
101992009-02-18 Jason Merrill <jason@redhat.com>
10200
10201 PR target/39179
10202 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
10203 value if DECL_EXTERNAL.
10204 * tree-sra.c (sra_walk_gimple_assign): Likewise.
10205 * target.h (gcc_target::binds_local_p): Clarify "module".
10206 * tree.h (TREE_PUBLIC): Clarify "module".
10207
0705d3f4
L
102082009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
10209
10210 PR target/38891
10211 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
10212 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
10213
bce08d50
L
102142009-02-17 H.J. Lu <hongjiu.lu@intel.com>
10215
10216 PR target/39082
10217 * c.opt (Wabi): Support C and ObjC.
10218 (Wpsabi): New.
10219
10220 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
10221
10222 * config/i386/i386.c (classify_argument): Warn once about the ABI
10223 change when passing union with long double.
10224
10225 * doc/invoke.texi: Update -Wabi for warning psABI changes.
10226
5600f233
JM
102272009-02-18 Joseph Myers <joseph@codesourcery.com>
10228
10229 PR c/35447
10230 * c-parser.c (c_parser_compound_statement): Always enter and leave
10231 a scope.
10232
8cd01fe6
JDA
102332009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10234
10235 PR target/34587
10236 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
10237
418df9d7
JJ
102382009-02-18 Jakub Jelinek <jakub@redhat.com>
10239
10240 PR tree-optimization/36922
10241 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
10242 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
10243 Likewise.
10244
082d2ebb
RS
102452009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
10246
10247 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
10248 to 0 for EABI64.
10249
17de576c
RS
102502009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
10251
10252 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
10253
6d8d5435
RS
102542009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
10255
10256 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
10257 tree sharing.
10258
e69ff910
RB
102592009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
10260 Richard Sandiford <rdsandiford@googlemail.com>
10261
10262 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
10263 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
10264 (loongson_biadd): ...this.
10265
6b24ee26
RG
102662009-02-17 Richard Guenther <rguenther@suse.de>
10267
10268 PR tree-optimization/39202
10269 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
10270 a var make sure to follow existing collapses.
10271
91ab2c86
RG
102722009-02-17 Richard Guenther <rguenther@suse.de>
10273
10274 PR middle-end/39214
10275 * langhooks.c (lhd_print_error_function): Check for NULL block.
10276
73a63870
RG
102772009-02-17 Richard Guenther <rguenther@suse.de>
10278
10279 PR tree-optimization/39204
10280 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
10281 of the PHI arg.
10282
0e08f686
UB
102832009-02-17 Uros Bizjak <ubizjak@gmail.com>
10284
10285 * config/soft-fp/double.h: Update from glibc CVS.
10286
a60b7ddb
RG
102872009-02-17 Richard Guenther <rguenther@suse.de>
10288
10289 PR tree-optimization/39207
10290 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
10291 strict-aliasing warnings for pointers pointing to NULL.
10292
a47e20fd
JM
102932009-02-16 Joseph Myers <joseph@codesourcery.com>
10294
10295 PR c/35446
10296 * c-parser.c (c_parser_braced_init): Call pop_init_level when
10297 skipping until next close brace.
10298
50aab7dc
L
102992009-02-16 H.J. Lu <hongjiu.lu@intel.com>
10300
10301 PR target/37049
10302 * config/i386/i386.c (ix86_expand_push): Set memory alignment
10303 to function argument boundary.
10304
68e53db0
HS
103052009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
10306
10307 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
10308 in the lea_add. Reload eventually constraints it properly.
0d50d55a 10309 * config/picochip/constraints.md: Remove the target constraint
68e53db0
HS
10310 "b", since it is not needed anymore.
10311
09e361bb
JJ
103122009-02-16 Jakub Jelinek <jakub@redhat.com>
10313
10314 * gthr-dce.h: Uglify function parameter and local variable names.
10315 * gthr-gnat.h: Likewise.
10316 * gthr-mipssde.h: Likewise.
10317 * gthr-nks.h: Likewise.
10318 * gthr-posix95.h: Likewise.
10319 * gthr-posix.h: Likewise.
10320 * gthr-rtems.h: Likewise.
10321 * gthr-single.h: Likewise.
10322 * gthr-solaris.h: Likewise.
10323 * gthr-tpf.h: Likewise.
10324 * gthr-vxworks.h: Likewise.
10325 * gthr-win32.h: Likewise.
10326
47f5a48f
L
103272009-02-15 H.J. Lu <hongjiu.lu@intel.com>
10328
10329 PR target/39196
10330 * config/i386/i386.md: Restrict the new peephole2 to move
10331 between MMX/SSE registers.
10332
68c9ab45
RG
103332009-02-15 Richard Guenther <rguenther@suse.de>
10334
10335 Revert
10336 2009-02-13 Richard Guenther <rguenther@suse.de>
10337
10338 * configure.ac: Enable LFS.
10339 * configure: Re-generate.
10340 * config.in: Likewise.
10341
d7815554
UW
103422009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10343
10344 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
10345 spu_srqwbyte, spu_srqwbytebc): Define.
10346 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
10347 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
10348 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
10349 "shrqby_<mode>"): New insn-and-split patterns.
10350 * config/spu/spu.c (expand_builtin_args): Determine and return
10351 number of operands using spu_builtin_description data.
10352 (spu_expand_builtin_1): Use it.
10353
c208436c
SE
103542009-02-13 Steve Ellcey <sje@cup.hp.com>
10355
10356 PR target/38056
10357 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
10358 TARGET_CONST_GP.
10359
c2e7ba7e
L
103602009-02-13 H.J. Lu <hongjiu.lu@intel.com>
10361
10362 PR target/39149
10363 * config/i386/i386.c (override_options): Correct warning
6c6094f1 10364 messages for -malign-loops, -malign-jumps and -malign-functions.
c2e7ba7e 10365
72f4e3a7
L
103662009-02-13 H.J. Lu <hongjiu.lu@intel.com>
10367
10368 PR target/39152
10369 * config/i386/i386.md: Restrict the new peephole2 to move
10370 between the general purpose registers.
10371
53f648e2
L
103722009-02-13 H.J. Lu <hongjiu.lu@intel.com>
10373
10374 PR target/39162
10375 * config/i386/i386.c (type_natural_mode): Add a new argument.
6b67572e 10376 Return the original mode and warn ABI change if vector size is 32byte.
53f648e2
L
10377 (function_arg_advance): Updated.
10378 (function_arg): Likewise.
10379 (ix86_function_value): Likewise.
10380 (ix86_return_in_memory): Likewise.
10381 (ix86_sol10_return_in_memory): Likewise.
10382 (ix86_gimplify_va_arg): Likewise.
10383 (function_arg_32): Don't warn ABX ABI change here.
10384 (function_arg_64): Likewise.
10385
38432148 103862009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
b1c92d54
BS
10387
10388 * loop-iv.c (implies_p): In the final case, test that operands 0
10389 of the two comparisons match.
10390
dd2139e7
BS
10391 * config/bfin/bfin.c (find_prev_insn_start): New function.
10392 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
10393 (find_next_insn_start): Move.
10394
601b3e1a
RG
103952009-02-13 Richard Guenther <rguenther@suse.de>
10396
10397 * configure.ac: Enable LFS.
10398 * configure: Re-generate.
10399 * config.in: Likewise.
10400
f007042e
JM
104012009-02-13 Joseph Myers <joseph@codesourcery.com>
10402
10403 PR c/35444
10404 * c-parser.c (c_parser_parms_list_declarator): Discard pending
10405 sizes on syntax error after some arguments have been parsed.
10406
3f238e8b
JJ
104072009-02-12 Jakub Jelinek <jakub@redhat.com>
10408
10409 * doc/invoke.texi (-fira): Remove.
10410
328e13b7
L
104112009-02-12 H.J. Lu <hongjiu.lu@intel.com>
10412
10413 * caller-save.c: Replace regclass.c with reginfo.c in comments.
10414 * recog.c: Likewise.
10415 * rtl.h: Likewise.
10416
c252db20
L
104172009-02-12 Uros Bizjak <ubizjak@gmail.com>
10418
10419 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
10420 (umul_ppmm): Likewise.
10421 (count_leading_zeros): Likewise.
10422 (count_trailing_zeros): Likewise.
10423 (UMUL_TIME): Likewise.
10424
104252009-02-12 H.J. Lu <hongjiu.lu@intel.com>
10426
ba181049
UB
10427 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
10428 soft-fp/t-softfp to tmake_file.
c252db20
L
10429
10430 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
ba181049
UB
10431 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
10432 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
10433 IA64_BUILTIN_INFQ]: New.
c252db20
L
10434 (ia64_init_builtins): Initialize __builtin_infq,
10435 __builtin_fabsq and __builtin_copysignq if not HPUX.
10436 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
10437 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
10438
10439 * config/ia64/lib1funcs.asm (__divtf3): Define only if
10440 SHARED is defined.
10441 (__fixtfti): Likewise.
10442 (__fixunstfti): Likewise.
10443 (__floattitf): Likewise.
10444
10445 * config/ia64/libgcc-glibc.ver: New.
10446 * config/ia64/t-fprules-softfp: Likewise.
10447 * config/ia64/sfp-machine.h: Likewise.
10448
10449 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
10450 (LIBGCC2_TF_CEXT): Likewise.
10451 (TF_SIZE): Likewise.
10452 (TARGET_INIT_LIBFUNCS): Likewise.
10453
ba181049 10454 * config/ia64/t-glibc (SHLINB_MAPFILES):
6b67572e 10455 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
c252db20 10456
f13eae6a
L
104572009-02-12 H.J. Lu <hongjiu.lu@intel.com>
10458
10459 * config/i386/i386.c (construct_container): Rewrite processing
10460 BLKmode with X86_64_SSE_CLASS.
10461
12019aec
L
104622009-02-12 Paolo Bonzini <bonzini@gnu.org>
10463
10464 PR target/39152
10465 * config/i386/i386.md: Replace simplify_replace_rtx with
10466 replace_rtx in the new peephole2.
10467
28c11eb3
NS
104682009-02-12 Nathan Sidwell <nathan@codesourcery.com>
10469
10470 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
10471 loop unrolling do not happen at -O2.
10472
c7b94907
MM
104732009-02-12 Michael Matz <matz@suse.de>
10474
10475 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
10476
61e98967
JJ
104772009-02-12 Jakub Jelinek <jakub@redhat.com>
10478
10479 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
10480 for -g3.
10481
a2a237b5
BE
104822009-02-12 Ben Elliston <bje@au.ibm.com>
10483
10484 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
10485 patterns when updating the back chain. Missed in the 2009-02-10
10486 change.
10487
853eda8d
JJ
104882009-02-11 Janis Johnson <janis187@us.ibm.com>
10489
10490 * doc/extend.texi (Decimal Floating Types): Update identifier of
10491 draft TR and list of missing support.
10492
3ad6b266
JJ
104932009-02-11 Jakub Jelinek <jakub@redhat.com>
10494
10495 PR middle-end/39154
10496 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
10497 bit to variable length decl's flags, add it also to its
10498 pointer replacement variable.
10499
b058b753
UB
105002009-02-11 Uros Bizjak <ubizjak@gmail.com>
10501 Jakub Jelinek <jakub@redhat.com>
10502
10503 PR target/39118
10504 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
10505 (memory_blockage): New expander.
10506 (*memory_blockage): New insn pattern.
10507 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
10508 instead of general blockage at the end of function prologue when
10509 frame pointer is used to access red zone area. Do not emit blockage
10510 when profiling, it is emitted in generic code.
10511 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
10512 function epilogue when frame pointer is used to access red zone area.
10513
bab64f23
PB
105142009-02-11 Paolo Bonzini <bonzini@gnu.org>
10515
0ce6dcfa 10516 PR target/38824
bab64f23
PB
10517 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
10518 by arithmetic with memory operands.
10519 * config/i386/predicates.md (commutative_operator): New.
10520
8fd94bda
JJ
105212009-02-10 Janis Johnson <janis187@us.ibm.com>
10522
10523 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
10524 bulleted lists.
10525
794511d2
EB
105262009-02-10 Eric Botcazou <ebotcazou@adacore.com>
10527
10528 * alias.h (record_alias_subset): Declare.
10529 * alias.c (record_alias_subset): Make global.
10530
6da7fc87
NC
105312009-02-10 Nick Clifton <nickc@redhat.com>
10532
10533 * tree-parloops.c: Change license to GPLv3.
10534 * ipa-struct-reorg.c: Change license to GPLv3.
10535 * ipa-struct-reorg.h: Change license to GPLv3.
10536
a03813c8
SE
105372009-02-10 Steve Ellcey <sje@cup.hp.com>
10538
10539 PR c/39084
10540 * c-decl.c (start_struct): Return NULL on error.
10541
fc3103e7
JJ
105422009-02-10 Jakub Jelinek <jakub@redhat.com>
10543
9b43d37b
JJ
10544 PR middle-end/39124
10545 * cfgloopmanip.c (remove_path): Call remove_bbs after
10546 cancel_loop_tree, not before it.
10547
fc3103e7 10548 PR target/39139
b058b753 10549 * function.h (struct function): Add has_local_explicit_reg_vars bit.
fc3103e7
JJ
10550 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
10551 VAR_DECLs were seen.
10552 * tree-ssa-live.c (remove_unused_locals): Recompute
10553 cfun->has_local_explicit_reg_vars.
10554 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
10555 copies or clearings if cfun->has_local_explicit_reg_vars.
10556
dbf9ee15
UB
105572009-02-10 Uros Bizjak <ubizjak@gmail.com>
10558
10559 PR target/39118
10560 * config/i386/i386.c (expand_prologue): Emit blockage at the end
10561 of function prologue when frame pointer is used to access
10562 red zone area.
10563
bdec4dc7
RG
105642009-02-10 Richard Guenther <rguenther@suse.de>
10565
10566 PR middle-end/39127
10567 * gimplify.c (gimple_regimplify_operands): Always look if
10568 we need to create a temporary.
10569
7cae94fc
RG
105702009-02-10 Richard Guenther <rguenther@suse.de>
10571
10572 PR tree-optimization/39132
10573 * tree-loop-distribution.c (todo): New global var.
10574 (generate_memset_zero): Trigger TODO_rebuild_alias.
10575 (tree_loop_distribution): Return todo.
10576
a8800687
L
105772009-02-10 H.J. Lu <hongjiu.lu@intel.com>
10578
10579 PR target/39119
10580 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
10581 (x86_64_reg_class_name): Removed.
10582 (classify_argument): Return 0 if bytes > 32. Return 0 if the
10583 first one isn't X86_64_SSE_CLASS or any other ones aren't
10584 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
10585 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
10586 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
10587 and 3 X86_64_SSEUP_CLASS.
10588 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
10589 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
10590
d4bacef0
BE
105912009-02-10 Ben Elliston <bje@au.ibm.com>
10592
10593 * config/rs6000/rs6000.md (allocate_stack): Always use an update
10594 form instruction to update the stack back chain word, even if the
10595 user has disabled the generation of update instructions.
10596 (movdi_<mode>_update_stack): New.
10597 (movsi_update_stack): Likewise.
10598 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
10599 always use an update form instruction to update the stack back
10600 chain word.
10601
01d7d2f3
SP
106022009-02-09 Sebastian Pop <sebastian.pop@amd.com>
10603
10604 PR middle-end/38953
b058b753
UB
10605 * graphite.c (if_region_set_false_region): After moving a region in
10606 the false branch of a condition, remove the empty dummy basic block.
01d7d2f3
SP
10607 (gloog): Remove wrong fix for PR38953.
10608
e41e2ab4
UW
106092009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10610
10611 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
10612 generation due to implicit sign extension.
10613
4bb07c5d
EB
106142009-02-09 Eric Botcazou <ebotcazou@adacore.com>
10615
10616 PR middle-end/38981
10617 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
10618 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
10619
f060a261
RG
106202009-02-09 Richard Guenther <rguenther@suse.de>
10621
10622 PR middle-end/35202
10623 * convert.c (convert_to_real): Disable (float)fn((double)x)
10624 to fnf(x) conversion if errno differences may occur and
10625 -fmath-errno is set.
10626
5a7e237c
AS
106272009-02-07 Anatoly Sokolov <aesok@post.ru>
10628
10629 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
10630 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
10631 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10632
feab5a67
JM
106332009-02-06 Joseph Myers <joseph@codesourcery.com>
10634
10635 PR c/35434
10636 * c-common.c (handle_alias_attribute): Disallow attribute for
10637 anything not a FUNCTION_DECL or VAR_DECL.
10638
90ef2296
JJ
106392009-02-06 Janis Johnson <janis187@us.ibm.com>
10640
10641 PR c/39035
10642 * real.c (do_compare): Special-case compare of zero against
10643 decimal float value.
10644
1de2c900
JM
106452009-02-06 Joseph Myers <joseph@codesourcery.com>
10646
10647 PR c/36432
10648 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
10649 as indicating flexible array members unless the field itself is
10650 being declarared as the incomplete array.
10651
e901811a
JH
106522009-02-06 Jan Hubicka <jh@suse.cz>
10653
10654 PR tree-optimization/38844
10655 * ipa-inline.c (try_inline): Stop inlining recursion when edge
10656 is already inlined.
10657
3cfa762b
RG
106582009-02-06 Richard Guenther <rguenther@suse.de>
10659
10660 PR middle-end/38977
10661 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
10662 fork because we may expand it as __gcov_fork.
10663
8506528c
NC
106642009-02-06 Nick Clifton <nickc@redhat.com>
10665
dbf9ee15 10666 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
8506528c 10667
85169114
PB
106682009-02-06 Paolo Bonzini <bonzini@gnu.org>
10669
10670 PR tree-optimization/35659
10671 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
10672 vn_phi_eq): Shortcut if hashcode does not match.
10673 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
10674 NULL operands.
10675 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
10676 and avoid iterative_hash_expr.
10677 (FOR_EACH_VALUE_ID_IN_SET): New.
10678 (value_id_compare): Remove.
10679 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
10680 sort expressions by value id.
10681
6d39673d
KK
106822009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
10683
10684 PR target/38991
10685 * config/sh/predicates.md (general_movsrc_operand): Don't check
10686 the subreg of system registers here.
10687
e6e1c050
JJ
106882009-02-05 Jakub Jelinek <jakub@redhat.com>
10689
10690 PR c++/39106
10691 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
10692 on the copied decl.
10693
65a74b5d
PB
106942009-02-05 Paolo Bonzini <bonzini@gnu.org>
10695
10696 PR rtl-optimization/39110
10697 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
10698 addresses, not aligned ones.
10699
08e14b2a
DB
107002009-02-05 Daniel Berlin <dberlin@dberlin.org>
10701 Richard Guenther <rguenther@suse.de>
10702
10703 PR tree-optimization/39100
10704 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
10705 comment says and add edges.
10706
5006381c
JM
107072009-02-05 Joseph Myers <joseph@codesourcery.com>
10708
10709 PR c/35435
10710 * c-common.c (handle_tls_model_attribute): Ignore attribute for
10711 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
10712
2ba9daa7 107132009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
b0789219
TG
10714
10715 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
10716 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
10717 register_bb_in_sese, new_sese, free_sese): Moved.
10718 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
10719 outermost_loop_in_scop, build_scop_iteration_domain,
10720 expand_scalar_variables_ssa_name, get_vdef_before_scop,
10721 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
10722 Use loop_in_sese_p instead of loop_in_scop_p.
10723 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
10724 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
10725 (scopdet_basic_block_info): Fix bug in scop detection.
10726 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
10727 eq_loop_to_cloog_loop): Remove.
10728 (nb_loops_around_loop_in_scop, nb_loop
10729 ref_nb_loops): Moved here...
10730 * graphite.h (ref_nb_loops): ... from here.
10731 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
10732 (loop_domain_dim, loop_iteration_vector_dim): Remove.
10733 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
10734 * testsuite/gcc.dg/graphite/scop-19.c: New
10735
48e8382e
PB
107362009-02-04 Paolo Bonzini <bonzini@gnu.org>
10737 Hans-Peter Nilsson <hp@axis.com>
10738
10739 PR rtl-optimization/37889
10740 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
10741 Move offset handling from PLUS to before the switch. Use new
10742 arguments when considering SYMBOL_REFs too.
10743 (rtx_addr_can_trap_p): Pass dummy offset and size.
10744 (enum may_trap_p_flags): Remove.
10745 (may_trap_p_1): Pass size from MEM_SIZE.
10746
10747 PR rtl-optimization/38921
10748 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
10749 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
10750 * rtlanal.c (may_trap_after_code_motion_p): Delete.
10751 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
10752
69349ea5
L
107532009-02-04 H.J. Lu <hongjiu.lu@intel.com>
10754
10755 AVX Programming Reference (January, 2009)
10756 * config/i386/sse.md (*vpclmulqdq): New.
10757
b545e411
JJ
107582009-02-04 Jakub Jelinek <jakub@redhat.com>
10759
10760 PR tree-optimization/38977
10761 PR gcov-profile/38292
bf9b2cc9 10762 * calls.c (special_function_p): Disregard __builtin_ prefix.
b545e411 10763
5b43bf05
HS
107642009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
10765
10766 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
10767 non-indexable addresses even before reload.
10768
062c4bb3
JM
107692009-02-03 Joseph Myers <joseph@codesourcery.com>
10770
10771 PR c/29129
10772 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
10773 as having variable size. Do not give an error for unnamed
10774 parameters with [*] declarators. Give a warning for type names
10775 with [*] declarators and mark them as variable size.
10776 * c-parser.c (c_parser_sizeof_expression): Do not give an error
10777 for sizeof applied to [*] type names.
10778
6175f578
AP
107792009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
10780
10781 PR C++/36607
10782 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
10783
d4f4bc84
JJ
107842009-02-03 Jakub Jelinek <jakub@redhat.com>
10785
10786 * gcc.c (process_command): Update copyright notice dates.
10787 * gcov.c (print_version): Likewise.
10788 * gcov-dump.c (print_version): Likewise.
10789 * mips-tfile.c (main): Likewise.
10790 * mips-tdump.c (main): Likewise.
10791
f6294de7
JM
107922009-02-03 Joseph Myers <joseph@codesourcery.com>
10793
10794 PR c/35433
10795 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
10796 for composite type involving a zero-length array type.
10797
754ccf7c
JJ
107982009-02-03 Jakub Jelinek <jakub@redhat.com>
10799
70f16287
JJ
10800 PR target/35318
10801 * function.c (match_asm_constraints_1): Skip over
10802 initial optional % in the constraint.
10803
754ccf7c
JJ
10804 PR inline-asm/39059
10805 * c-parser.c (c_parser_postfix_expression): If fixed point is not
10806 supported, don't accept FIXED_CSTs.
10807 * c-decl.c (finish_declspecs): Error if fixed point is not supported
10808 and _Sat is used without _Fract/_Accum. Set specs->type to
10809 integer_type_node for cts_fract/cts_accum if fixed point is not
10810 supported.
10811
965fdadf
CM
108122009-02-02 Catherine Moore <clm@codesourcery.com>
10813
dbf9ee15 10814 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
965fdadf 10815
2e8a796f
RS
108162009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
10817
10818 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
10819 (ABI_HAS_64BIT_SYMBOLS): Use it.
10820 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
10821
e0079468
PB
108222009-02-02 Paul Brook <paul@codesourcery.com>
10823
10824 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
10825
eca72963
JJ
108262009-02-02 Jakub Jelinek <jakub@redhat.com>
10827
10828 PR inline-asm/39058
10829 * recog.h (asm_operand_ok): Add constraints argument.
10830 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
10831 recurse on matching constraint.
10832 (check_asm_operands): Pass constraints as 3rd argument to
10833 asm_operand_ok. Don't look up matching constraint here.
10834 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
10835 to asm_operand_ok.
10836
b5bde9ff
BE
108372009-02-02 Ben Elliston <bje@au.ibm.com>
10838
10839 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
10840 TARGET_NARROW_VOLATILE_BITFIELD macro names.
10841
30f3e427
JDA
108422009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10843
be7659ba
JDA
10844 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
10845 information. Remove some obsolete information. Reorganize.
10846
30f3e427
JDA
10847 * config/pa/fptr.c: Revert license to GPL 2.
10848 * config/pa/milli64.S: Likewise.
10849
3cbfaf98
DK
108502009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
10851
10852 PR target/38904
10853 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
10854 LIBRARY name in, instead of hard-coding it.
10855 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
10856 extra target make frag to tmake_files according to EH model.
10857 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
10858 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
10859 frags that define makefile variable EH_MODEL appropriately.
10860 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
10861 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
10862 to "-sjlj" according to type of EH configured.
10863 (LIBGCC_SONAME): Concatenate it to shared library base name.
10864 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
10865 to "_sjlj" according to type of EH configured.
10866 (LIBGCC_SONAME): Concatenate it to shared library base name.
10867 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
10868 (SHLIB_LINK): Add missing semicolon to if-else construct.
10869 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
10870 string value of "pe_dll" command-line option.
10871 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
10872 (SHLIB_SONAME): Use it when overriding t-cygming default.
10873 (SHLIB_IMPLIB): Override t-cygming default.
10874 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
10875 string value of "pe_dll" command-line option.
10876
8d0b6068
DK
108772009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
10878
10879 PR target/38952
10880 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
bf9b2cc9 10881 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
8d0b6068 10882
14c28276
RG
108832009-01-31 Richard Guenther <rguenther@suse.de>
10884
10885 PR tree-optimization/38937
10886 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
10887 computing the transitive closure.
10888
5f4d82c2
RG
108892009-01-30 Richard Guenther <rguenther@suse.de>
10890
10891 PR tree-optimization/39041
10892 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
10893 Propagate variable indices only if the types match for this stmt.
10894
d0728ae0
JJ
108952009-01-30 Jakub Jelinek <jakub@redhat.com>
10896
10897 PR target/39013
10898 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
10899 inline but never defined.
10900
6b67572e 109012009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
9fec758d
WG
10902
10903 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
10904 (*insv_h_di_reg_extimm): New insn.
10905 (*insv_l<mode>_reg_extimm): New insn.
10906
109072009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
9e8be1e4
HS
10908
10909 * config/picochip/picochip.c (flag_conserve_stack): set
10910 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
10911 fconserve-stack. Reduce call-overhead used by inliner.
10912
9fec758d 109132009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
df9198ab
HS
10914
10915 PR/38157
10916 * common.opt (flag_conserve_stack): Initialised to zero.
10917
7f1c539c
KT
109182009-01-30 Kai Tietz <kai.tietz@onevision.com>
10919
10920 PR/39002
10921 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
10922 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
10923 method.
10924
3631be48
L
109252009-01-29 H.J. Lu <hongjiu.lu@intel.com>
10926
10927 * ira-color.c (allocno_reload_assign): Update comments.
10928 * regmove.c (regmove_optimize): Likewise.
10929
10930 * ra.h: Removed.
10931
416ac4d4
RM
109322009-01-29 Robert Millan <rmh@aybabtu.com>
10933
60839f5d
EB
10934 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
10935 * config/i386/kopensolaris-gnu.h: New file. Undefine
416ac4d4 10936 `MD_UNWIND_SUPPORT'.
60839f5d 10937 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
416ac4d4 10938
d5e54bc1
KH
109392009-01-29 Kazu Hirata <kazu@codesourcery.com>
10940
10941 PR tree-optimization/39007
10942 * tree-loop-distribution.c (generate_builtin): Use
10943 recompute_dominator to compute the immediate dominator of the
10944 basic block just after the loop.
10945
38432148 109462009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
e9e077fa
RO
10947
10948 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
10949 (ASM_OUTPUT_DWARF_PCREL): Define.
10950
38432148 109512009-01-29 Vladimir Makarov <vmakarov@redhat.com>
2af2dbdc
VM
10952
10953 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
10954 * doc/passes.texi: Remove entries about regclass, local-alloc, and
10955 global. Modify entries about regmove and IRA.
10956
10957 * ra-conflict.c: Remove the file.
10958
10959 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
10960
10961 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
10962 (pass_regclass_init): Rename to pass_reginfo_init.
10963
10964 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
10965
10966 * toplev.h (flag_ira): Remove.
10967
10968 * caller-save.c (setup_save_areas): Remove flag_ira.
10969
bf9b2cc9 10970 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
2af2dbdc
VM
10971
10972 * global.c: Remove the file.
10973
ba20e309 10974 * opts.c (decode_options): Remove flag_ira.
2af2dbdc
VM
10975
10976 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
10977
10978 * regmove.c: Modify file description.
10979 (find_use_as_address, try_auto_increment): Define them only if
10980 AUTO_INC_DEC is defined.
10981 (replacement_quality, replace_in_call_usage, fixup_match_1,
10982 stable_and_no_regs_but_for_p): Remove.
10983 (reg_set_in_bb): Make it static.
10984 (regmove_optimize): Remove flag_ira and code which worked for
10985 !flag_ira.
10986
10987 * local-alloc.c: Remove the file.
10988
10989 * common.opt (fira): Remove.
10990
10991 * ira.c: Include except.h.
10992 (eliminable_regset): Move from global.c.
10993 (mark_elimination): Ditto. Remove flag_ira.
10994 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
10995 equiv_mem_modified, validate_equiv_mem_from_store,
10996 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
10997 contains_replace_regs, memref_referenced_p, memref_used_between_p,
10998 no_equiv, recorded_label_ref): Move from local-alloc.c.
10999 (update_equiv_regs): Ditto. Make it static.
11000 (print_insn_chain, print_insn_chains): Move it from global.c.
bf9b2cc9 11001 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
2af2dbdc
VM
11002 (build_insn_chain): Ditto. Make it static.
11003 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
11004 Rename to init_live_subregs.
11005 (gate_ira): Remove flag_ira.
11006
11007 * regclass.c: Rename reginfo.c. Change file description.
11008 (FORBIDDEN_INC_DEC_CLASSES): Remove.
dbf9ee15 11009 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
2af2dbdc
VM
11010 (init_reg_sets_1): Remove code for evaluation of
11011 reg_class_superclasses and losing_caller_save_reg_set.
11012 (init_regs): Remove init_reg_autoinc.
11013 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
11014 ok_for_base_p_nonstrict): Remove.
bf9b2cc9 11015 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
2af2dbdc
VM
11016 (pass_regclass_init): Rename to pass_reginfo_init. Modify
11017 corresponding entries.
11018 (dump_regclass, record_operand_costs, scan_one_insn,
11019 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
11020 record_address_regs, auto_inc_dec_reg_p): Remove.
11021 (gt-regclass.h): Rename to gt-reginfo.h.
11022
11023 * rtl.h (dump_global_regs, retry_global_alloc,
bf9b2cc9 11024 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
2af2dbdc
VM
11025
11026 * Makefile.in (RA_H): Remove.
11027 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
11028 Rename regclass.o to reginfo.o.
11029 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
11030 gt-reginfo.h.
11031 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
11032 (GTFILES): Rename regclass.c to reginfo.c.
11033
11034 * passes.c (init_optimization_passes): Remove pass_local_alloc and
bf9b2cc9 11035 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
2af2dbdc
VM
11036
11037 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
11038 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
11039 Remove flag_ira.
6b67572e 11040 (finish_spills): Ditto. Remove code for !flag_ira.
2ba9daa7 11041
c95b2534 110422009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
00b251a0
KZ
11043
11044 PR middle-end/35854
11045 * doc/invoke.texi (rtl debug options): Complete rewrite.
11046 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
11047 to auto_inc_dec".
11048 * mode-switching.c (pass_mode_switching): Rename pass from
11049 "mode-sw" to "mode_sw".
11050 * except.c (pass_convert_to_eh_ranges): Rename pass from
11051 "eh-ranges" to "eh_ranges".
11052 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
11053 to "subreg1".
2ba9daa7
AS
11054
11055
72a54528
AM
110562009-01-29 Andrey Belevantsev <abel@ispras.ru>
11057 Alexander Monakov <amonakov@ispras.ru>
11058
11059 PR middle-end/38857
11060 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
11061 register.
11062 (move_exprs_to_boundary): Change return type and pass through
11063 should_move from move_op. Relax assert. Update usage ...
11064 (schedule_expr_on_boundary): ... here. Use should_move instead of
11065 cant_move.
11066 (move_op_orig_expr_found): Indicate that insn was disconnected from
11067 stream.
11068 (code_motion_process_successors): Do not call after_merge_succs
11069 callback if original expression was not found when traversing any of
11070 the branches.
11071 (code_motion_path_driver): Change return type. Update prototype.
11072 (move_op): Update comment. Add a new parameter (should_move). Update
11073 prototype. Set *should_move based on indication provided by
11074 move_op_orig_expr_found.
11075
001b9eb6
PH
110762009-01-28 Pat Haugen <pthaugen@us.ibm.com>
11077
11078 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
11079 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
11080 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
11081 * config/rs6000/rs6000.c (rs6000_override_options): Default
11082 avoid-indexed-addresses on for Power6, off for everything else.
11083 (avoiding_indexed_address_p): New function.
11084 (rs6000_legitimize_address): Use it.
11085 (rs6000_legitimate_address): Likewise.
11086 * config/rs6000/rs6000.md (movXX_updateX): Likewise
11087
59dc4898
KH
110882009-01-28 Kazu Hirata <kazu@codesourcery.com>
11089
11090 PR tree-optimization/38997
11091 * tree-loop-distribution.c (generate_memset_zero): Use
11092 POINTER_PLUS_EXPR for a pointer addition.
11093
07da44ab
AK
110942009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
11095
11096 * config/s390/s390.md (bswap<mode>2): New pattern added.
11097
cdc15d23
WG
110982009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
11099
11100 * config/s390/s390.md (*tls_load_31): Added type attribute.
11101
d46f24b6
WG
111022009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
11103
11104 * config/s390/s390.md: Fix a few comments.
11105
729e750f
WG
111062009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
11107
11108 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
11109 (*tm<mode>_full): Fixed z10prop attribute.
11110 (*tst<mode>_extimm): Fixed z10prop attribute.
11111 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
11112 (*tstqiCCT_cconly): Fixed z10prop attribute.
11113 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
11114 (*movsi_larl): Fixed z10prop attribute.
11115 (*movsi_zarch): Fixed z10prop attribute.
11116 (*movsi_eas): Fixed z10prop attribute.
11117 (*movhi): Fixed z10prop attribute.
11118 (*movqi): Fixed z10prop attribute.
11119 (*movstrictqi): Fixed z10prop attribute.
11120 (*mov<mode>): Fixed z10prop attribute.
11121 (*movcc): Fixed z10prop attribute.
11122 (*sethighpartdi_64): Fixed z10prop attribute.
11123 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
11124 (*negdi2_sign_cc): Fixed z10prop attribute.
11125 (*negdi2_sign): Fixed z10prop attribute.
11126 (*absdi2_sign_cc): Fixed z10prop attribute.
11127 (*absdi2_sign): Fixed z10prop attribute.
11128 (*negabsdi2_sign_cc): Fixed z10prop attribute.
11129 (*negabsdi2_sign): Fixed z10prop attribute.
11130 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
11131 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
11132 (doloop_si64): Fixed z10prop attribute.
11133 (doloop_si31): Fixed z10prop attribute.
11134 (doloop_long): Fixed z10prop attribute.
11135 (indirect_jump): Fixed z10prop attribute.
11136 (nop): Fixed z10prop attribute.
11137 (main_base_64): Fixed z10prop attribute.
11138 (reload_base_64): Fixed z10prop attribute.
11139
c7789bfb
JJ
111402009-01-28 Jakub Jelinek <jakub@redhat.com>
11141
11142 PR rtl-optimization/38740
6b67572e
UB
11143 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
11144 if !optimize.
c7789bfb
JJ
11145 * config/mips/mips.c (mips_reorg): Likewise.
11146
de081cfd
RG
111472009-01-28 Richard Guenther <rguenther@suse.de>
11148
11149 PR tree-optimization/38926
11150 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
11151 with the correct value id to a value.
11152 (do_regular_insertion): Use the value number of edoubleprime
11153 for the value number of the expr.
11154
11155 Revert
11156 2008-08-21 Richard Guenther <rguenther@suse.de>
bf9b2cc9 11157
d748c406
UB
11158 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
11159 a PHI ask VN if it is already available.
11160 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
11161 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
de081cfd 11162
a9d386a1
JJ
111632009-01-28 Jakub Jelinek <jakub@redhat.com>
11164
11165 PR middle-end/38934
11166 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
11167 set to varying whenever max has TREE_OVERFLOW set, similarly
11168 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
11169
97a170cd
RG
111702009-01-28 Richard Guenther <rguenther@suse.de>
11171
11172 PR middle-end/38908
11173 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
11174 uninitialized aggregate uses in call arguments.
11175
89ebafc6
PB
111762009-01-28 Paolo Bonzini <bonzini@gnu.org>
11177
11178 PR tree-optimization/38984
11179 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
11180 the nothing_id variable if -fno-delete-null-pointer-checks.
11181
bef3c57b
UB
111822009-01-28 Uros Bizjak <ubizjak@gmail.com>
11183
11184 PR target/38988
11185 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
11186 (set_got_offset_rex64): Ditto.
11187
0c6390fa
L
111882009-01-27 H.J. Lu <hongjiu.lu@intel.com>
11189
11190 PR target/38941
11191 * doc/extend.texi: Improve local variable with asm reg.
11192
bee6fa6d
AN
111932009-01-27 Adam Nemet <anemet@caviumnetworks.com>
11194
11195 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
11196 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
11197 was not supplied then set warn_packed_bitfield_compat to the
11198 default value of 1.
11199 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
11200 against 1.
11201
b5c3dfbb
RG
112022009-01-27 Richard Guenther <rguenther@suse.de>
11203
11204 PR tree-optimization/38503
11205 * cfgexpand.c (expand_gimple_basic_block): Ignore
11206 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
11207 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
11208 variables that cannot have TBAA applied.
11209 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
11210 statements.
11211
d748c406 112122009-01-27 Uros Bizjak <ubizjak@gmail.com>
576de5cb
UB
11213
11214 PR middle-end/38969
11215 * calls.c (initialize_argument_information): Do not wrap complex
11216 arguments in SAVE_EXPR.
11217
9112bb38
AT
112182009-01-26 Andreas Tobler <a.tobler@schweiz.org>
11219
11220 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
5efb79fc 11221 (INSTALL_LIBGCC): Revert typo commit.
9112bb38 11222
4757704f
RG
112232009-01-26 Richard Guenther <rguenther@suse.de>
11224
11225 PR tree-optimization/38745
11226 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
11227 from special handling.
11228
e3e6cff4
RG
112292009-01-26 Richard Guenther <rguenther@suse.de>
11230
11231 PR tree-optimization/38745
11232 * tree-ssa.c (execute_update_addresses_taken): Do not include
11233 variables that cannot possibly be a register in not_reg_needs.
11234 Do not clear TREE_ADDRESSABLE on vars that may not become
11235 registers.
11236 * tree-ssa.c (update_alias_info_1): Include those in the set
11237 of addressable vars.
11238
dc874b53
RG
112392009-01-26 Richard Guenther <rguenther@suse.de>
11240
11241 PR middle-end/38851
11242 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
11243 * tree-ssa-dse.c: Include langhooks.h
11244 (execute_simple_dse): Remove stores with zero size.
11245
849421a3
JJ
112462009-01-24 Jakub Jelinek <jakub@redhat.com>
11247
11248 PR c/38957
11249 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
11250 as PLUS_EXPR.
11251
82f70421
JB
112522009-01-24 Julian Brown <julian@codesourcery.com>
11253
11254 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
11255 config/arm/linux-atomic.c.
11256 * config/arm/linux-atomic.c: New.
11257
863412d6
EB
112582009-01-24 Eric Botcazou <ebotcazou@adacore.com>
11259
11260 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
11261 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
11262 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
11263
8c684300
L
112642009-01-24 H.J. Lu <hongjiu.lu@intel.com>
11265
11266 PR c/38938
93f1527a 11267 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
8c684300
L
11268 properly.
11269
b840fb02
SP
112702009-01-24 Sebastian Pop <sebastian.pop@amd.com>
11271
11272 PR tree-optimization/38953
11273 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
11274 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
11275 (gloog): Split the exit of the scop when the scop exit is a loop exit.
11276 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
11277 changed the CFG.
11278
ecee559f
PB
112792009-01-24 Paul Brook <paul@codesourcery.com>
11280
11281 * config/arm/neon.md (neon_type): Move to arm.md.
11282 (neon_mov<VSTRUCT>): Add neon_type attribute.
11283 * config/arm/arm.md (neon_type): Move to here.
11284 (conds): Add "unconditioal" and use as default for NEON insns.
11285
61ad0914
BE
112862009-01-24 Ben Elliston <bje@au.ibm.com>
11287
11288 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
11289 void *' warning from -Wc++-compat.
11290 * Makefile.in (dominance.o-warn): Remove.
11291
38432148 112922009-01-23 Paolo Bonzini <bonzini@gnu.org>
9bacafeb
PB
11293
11294 PR tree-optimization/38932
11295 * fold-const.c (fold_unary_ignore_overflow): New.
11296 * tree.h (fold_unary_ignore_overflow): Declare.
11297 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
11298 * tree-ssa-sccvn.c (visit_reference_op_load,
11299 simplify_unary_expression): Likewise.
11300
2cd36c22
AN
113012009-01-22 Adam Nemet <anemet@caviumnetworks.com>
11302
11303 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
11304 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
11305 regardless of their type.
11306 * c-common.c (handle_packed_attribute): Don't ignore packed on
11307 bitfields.
11308 * c.opt (Wpacked-bitfield-compat): New warning option.
11309 * stor-layout.c (place_field): Warn if offset of a field changed.
11310 * doc/extend.texi (packed): Mention the ABI change.
11311 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
11312 (Warning Options): Add it to the list.
11313
e4e624ab
L
113142009-01-22 H.J. Lu <hongjiu.lu@intel.com>
11315
11316 * c-opts.c (c_common_post_options): Fix a typo in comments.
11317
d0ea0759
SE
113182009-01-22 Steve Ellcey <sje@cup.hp.com>
11319
11320 PR middle-end/38615
11321 * gimplify.c (gimplify_init_constructor): Fix promotion of const
11322 variables to static.
11323 * doc/invoke.texi (-fmerge-all-constants): Update description.
11324
87673f84
UB
113252009-01-22 Uros Bizjak <ubizjak@gmail.com>
11326
11327 PR target/38931
11328 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
11329 (*movdi_1_rex64): Use type "mmx" for alternative 5.
11330
96339268
RE
113312009-01-22 Richard Earnshaw <rearnsha@arm.com>
11332
11333 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
11334 a word boundary.
11335 (LOCAL_ALIGNMENT): Similarly.
11336
442dc742 113372009-01-22 Mark Shinwell <shinwell@codesourcery.com>
87673f84 11338 Joseph Myers <joseph@codesourcery.com>
442dc742
MS
11339
11340 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
11341 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
11342 * config/arm/arm-tune.md: Regenerate.
11343 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
11344 -march=iwmmxt2.
11345
9b34732e
MS
113462009-01-22 Mark Shinwell <shinwell@codesourcery.com>
11347
11348 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
11349 version number to five.
11350
03c2a308
DS
113512009-01-22 Dodji Seketeli <dodji@redhat.com>
11352
11353 PR c++/38930
ba20e309 11354 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
03c2a308
DS
11355 * c-common.c (set_underlying_type): Likewise.
11356 (is_typedef_decl ): Likewise
11357 * tree.h: Likewise
11358 (set_underlying_type): Likewise.
11359 (is_typedef_type): Likewise.
11360
1240d76e
VM
113612009-01-21 Vladimir Makarov <vmakarov@redhat.com>
11362
11363 PR middle-end/38587
11364 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
11365 crossing setjmps.
11366
b8a1087d
DK
113672009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
11368
11369 PR bootstrap/37660
11370 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
11371 (LIBGCC_SPEC): Don't define.
11372 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
11373
435da628
UB
113742009-01-21 Uros Bizjak <ubizjak@gmail.com>
11375
11376 PR rtl-optimization/38879
11377 * alias.c (base_alias_check): Unaligned access via AND address can
11378 alias all surrounding object types except those with sizes equal
11379 or wider than the size of unaligned access.
11380
d597b3ce
DS
113812009-01-21 Dodji Seketeli <dodji@redhat.com>
11382
11383 PR c++/26693
ba20e309 11384 * c-decl.c (clone_underlying_type): Move this ...
d597b3ce 11385 * c-common.c (set_underlying_type): ... here.
435da628 11386 Also, make sure the function properly sets TYPE_STUB_DECL() on
d597b3ce
DS
11387 the newly created typedef variant type.
11388 (is_typedef_decl ): New entry point.
11389 * tree.h: Added a new member member_types_needing_access_check to
11390 struct tree_decl_non_common.
11391 (set_underlying_type): New entry point.
11392 (is_typedef_type): Likewise.
11393
71a6fe66
BM
113942009-01-21 Bingfeng Mei <bmei@broadcom.com>
11395
11396 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
11397 Check whether two instructions have memory references that
11398 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
11399 are helper functions for traversing.
11400 * alias.h (insn_alias_sets_confilict_p): New prototypes.
11401 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
11402 not to draw dependency edge for instructions with non-conflicting
11403 alias sets.
11404
5a248274
JM
114052009-01-20 Joseph Myers <joseph@codesourcery.com>
11406
11407 PR other/38758
6b67572e
UB
11408 * longlong.h: Update copyright years. Use soft-fp license notice.
11409 Sync __clz_tab declaration with glibc.
5a248274 11410
4b84f3de
SE
114112009-01-20 Steve Ellcey <sje@cup.hp.com>
11412
11413 PR target/30687
11414 * doc/extend.texi (syscall_linkage): New.
11415 (version_id): Modify.
11416
37348bf1 114172009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
435da628 11418 Richard Guenther <rguenther@suse.de>
37348bf1
AP
11419
11420 PR tree-optimization/38747
11421 PR tree-optimization/38748
11422 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
11423 conversion if the base address is an indirect reference and the
11424 aliasing sets could cause issues.
11425
d0a58904
SP
114262009-01-20 Sebastian Pop <sebastian.pop@amd.com>
11427
2ba9daa7 11428 * common.opt (fgraphite, fgraphite-identity): Add comment for
d0a58904
SP
11429 explaining why these options are not documented.
11430
71e7afb2
SP
114312009-01-20 Sebastian Pop <sebastian.pop@amd.com>
11432
11433 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
11434 gimple_call_lhs is NULL.
11435
38432148 114362009-01-20 Paolo Bonzini <bonzini@gnu.org>
09efeca1
PB
11437
11438 PR target/38868
11439 * emit-rtl.c (adjust_address_1): Make sure memref is never
11440 overwritten.
11441
cbb8dee3
BE
114422009-01-20 Ben Elliston <bje@au.ibm.com>
11443
11444 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
435da628 11445 const qualifier from arg parameter. Remove unnecessary cast to char *.
cbb8dee3
BE
11446 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
11447 const qualifier from arg 2.
11448
72c66596
IS
114492009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11450
435da628 11451 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
72c66596 11452
f68211cd
VM
114532009-01-19 Vladimir Makarov <vmakarov@redhat.com>
11454
11455 PR c/38869
11456 * rtl.h (reinit_regs): New prototype.
11457 * regclass.c: Include ira.h.
11458 (reinit_regs): New.
11459 * Makefile.in (regclass.o): Add ira.h.
11460 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
11461
6e4f1168
L
114622009-01-18 H.J. Lu <hongjiu.lu@intel.com>
11463
11464 PR target/38736
11465 * c-common.c (handle_aligned_attribute): Use
11466 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
11467 default alignment value.
11468
11469 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
11470
11471 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
11472 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
11473
11474 * doc/extend.texi: Update __attribute__ ((aligned)). Document
11475 __BIGGEST_ALIGNMENT__.
11476
11477 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
11478
890065bf
RG
114792009-01-18 Richard Guenther <rguenther@suse.de>
11480
11481 PR tree-optimization/38819
11482 * tree-flow.h (operation_could_trap_helper_p): Declare.
11483 * tree-eh.c (operation_could_trap_helper_p): Export.
11484 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
11485 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
11486 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
11487 are about to insert a possibly trapping instruction and fail
11488 in this case.
11489
a729d731
AS
114902009-01-18 Andreas Schwab <schwab@suse.de>
11491
11492 * doc/install.texi (Configuration): Remove obsolete paragraph
11493 about use of --with-gnu-ld with --with-gnu-as.
11494
a640c13b
KH
114952009-01-18 Kazu Hirata <kazu@codesourcery.com>
11496
11497 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
11498 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
11499 Follow spelling conventions.
11500
dba2cc0c
BE
115012009-01-18 Ben Elliston <bje@au.ibm.com>
11502
11503 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
11504 C++ warning about implicit conversion from void * to struct
11505 bitmap_head_def *.
11506 (bitmap_obstack_free): Likewise for bitmap_element *.
bc127c63 11507 * Makefile.in (bitmap.o-warn): Remove.
dba2cc0c 11508
2207a498
DK
115092009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
11510
11511 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
11512
8137e465
SP
115132009-01-17 Sebastian Pop <sebastian.pop@amd.com>
11514 Tobias Grosser <tobi.grosser@amd.com>
11515
11516 * graphite.c (graphite_trans_scop_block): Do not block single
11517 nested loops.
11518
5be1c58c
AO
115192009-01-16 Alexandre Oliva <aoliva@redhat.com>
11520
11521 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
11522 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
11523 test with assertion.
11524
786ce82d
RG
115252009-01-16 Richard Guenther <rguenther@suse.de>
11526
11527 PR tree-optimization/38835
11528 PR middle-end/36227
11529 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
11530 and INT + PTR -> (INT)(PTR p+ INT) folding.
11531 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
11532
c1cb09ad
AN
115332009-01-16 Adam Nemet <anemet@caviumnetworks.com>
11534
11535 PR target/38554
11536 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
11537 the subreg from a lowpart subreg if it is also casting the value.
11538
bcab4e19
SP
115392009-01-16 Sebastian Pop <sebastian.pop@amd.com>
11540 Tobias Grosser <tobi.grosser@amd.com>
11541
11542 * graphite.c (compare_prefix_loops): New.
11543 (build_scop_canonical_schedules): Rewritten.
11544 (graphite_transform_loops): Move build_scop_canonical_schedules
11545 after build_scop_iteration_domain.
11546
0b040072
SP
115472009-01-16 Sebastian Pop <sebastian.pop@amd.com>
11548 Tobias Grosser <tobi.grosser@amd.com>
11549
2ba9daa7 11550 * graphite.c (add_conditions_to_domain): Add the loops to
0b040072
SP
11551 the dimension of the iteration domain. Do copy the domain
11552 only when it exists.
11553 (build_scop_conditions_1): Do not call add_conditions_to_domain.
11554 (add_conditions_to_constraints): New.
11555 (can_generate_code_stmt, can_generate_code): Removed.
11556 (gloog): Do not call can_generate_code.
11557 (graphite_transform_loops): Call add_conditions_to_constraints
11558 after building the iteration domain.
11559
56c6a499
JJ
115602009-01-16 Jakub Jelinek <jakub@redhat.com>
11561
11562 PR tree-optimization/38789
11563 * tree-ssa-threadedge.c
11564 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
11565 __builtin_constant_p.
11566
c95b2534 115672009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
cd3f1729
KZ
11568
11569 * dce.c (delete_unmarked_insns): Reversed the order that insns are
11570 examined before deleting them.
2ba9daa7 11571
c433cb14
RE
115722009-01-16 Richard Earnshaw <rearnsha@arm.com>
11573
11574 * function.c (aggregate_value_p): Correctly extract the function
11575 type from CALL_EXPR_FN lookup.
11576
c95b2534 115772009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
27d62fa4
HS
11578
11579 * config/picochip/picochip.c (picochip_override_options): Revert
11580 CFI asm flag disable commited previously.
11581
c77bb78f
SP
115822009-01-15 Sebastian Pop <sebastian.pop@amd.com>
11583 Tobias Grosser <tobi.grosser@amd.com>
11584 Jan Sjodin <jan.sjodin@amd.com>
11585
11586 * graphite.c (scan_tree_for_params): On substractions negate
11587 all the coefficients of the term.
11588 (clast_to_gcc_expression_red): New. Handle reduction expressions
11589 of more than two operands.
11590 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
11591 (get_vdef_before_scop): Handle also the case of default definitions.
11592
574af2d6
RS
115932009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
11594
11595 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
11596 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
11597 Also use them when walking CALL_INSN_FUNCTION_USAGE.
11598
e939805b
L
115992009-01-15 H.J. Lu <hongjiu.lu@intel.com>
11600 Joey Ye <joey.ye@intel.com>
11601
11602 PR middle-end/37843
11603 * cfgexpand.c (expand_stack_alignment): Don't update stack
11604 boundary nor check incoming stack boundary here.
11605 (gimple_expand_cfg): Update stack boundary and check incoming
11606 stack boundary here.
11607
c95b2534 116082009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
750900db 11609
435da628 11610 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
2ba9daa7 11611
0196c95e
JJ
116122009-01-14 Jakub Jelinek <jakub@redhat.com>
11613
11614 PR rtl-optimization/38245
11615 * calls.c (expand_call): Add stack arguments to
11616 CALL_INSN_FUNCTION_USAGE even for pure calls (when
11617 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
11618 in regs and partially in memory or BLKmode arguments.
11619 (emit_library_call_value_1): Add stack arguments to
11620 CALL_INSN_FUNCTION_USAGE even for pure calls (when
11621 ACCUMULATE_OUTGOING_ARGS).
11622 * dce.c: Include tm_p.h.
11623 (find_call_stack_args): New function.
11624 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
11625 argument.
11626 (mark_insn): Call find_call_stack_args for CALL_Ps.
11627 (prescan_insns_for_dce): Walk insns backwards in bb rather than
11628 forwards. Allocate and free arg_stores bitmap if needed, pass it
11629 down to deletable_insn_p, don't mark stores set in arg_stores
11630 bitmap, clear the bitmap at the beginning of each bb.
11631 * Makefile.in (dce.o): Depend on $(TM_P_H).
11632
6df6bcfa
MM
116332009-01-14 Michael Meissner <gnu@the-meissners.org>
11634
11635 PR target/22599
435da628
UB
11636 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
11637 to make sure the insn is a conditional test (bug 22599). Reformat a
11638 few long lines.
6df6bcfa 11639
765ec70c
SP
116402009-01-14 Sebastian Pop <sebastian.pop@amd.com>
11641
11642 PR middle-end/38431
11643 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
11644 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
11645 (gloog): Do not call cleanup_tree_cfg.
2ba9daa7 11646 (graphite_transform_loops): Call cleanup_tree_cfg after all
765ec70c
SP
11647 scops have been code generated.
11648
7de2b688
BS
116492009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
11650 * doc/gty.texi (Invoking the garbage collector): Added new node
11651 and section documenting ggc_collect.
11652
10bd6c5c
RG
116532009-01-14 Richard Guenther <rguenther@suse.de>
11654
11655 PR tree-optimization/38826
11656 PR middle-end/38477
11657 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
11658 initialization notes only if we actually emitted a warning.
11659 (intra_create_variable_infos): Add constraints for a result decl
11660 that is passed by hidden reference.
11661 (build_pred_graph): Mark all related variables non-direct on
11662 address-taking.
11663
9c7c70ee
NC
116642009-01-14 Nick Clifton <nickc@redhat.com>
11665
11666 * ira-conflicts.c: Include addresses.h for the definition of
11667 base_reg_class.
435da628
UB
11668 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
11669 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
9c7c70ee 11670
cf0c2a60
VM
116712009-01-13 Vladimir Makarov <vmakarov@redhat.com>
11672
11673 PR target/38811
11674 * Makefile.in (ira-lives.o): Add except.h.
11675
11676 * ira-lives.c: Include except.h.
11677 (process_bb_node_lives): Process can_throw_internal.
11678
d3302fd3
JJ
116792009-01-13 Jakub Jelinek <jakub@redhat.com>
11680
11681 PR rtl-optimization/38774
11682 * combine.c (simplify_set): When undoing cc_use change, don't do
11683 PUT_CODE on the newly created comparison, but instead put back the
11684 old comparison.
11685
7ab23fd0
JM
116862009-01-13 Joseph Myers <joseph@codesourcery.com>
11687
11688 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
11689 values. Remove duplicate arm8 entry.
11690
f9344488
SP
116912009-01-13 Sebastian Pop <sebastian.pop@amd.com>
11692
11693 PR tree-optimization/38786
11694 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
11695 the SSA_NAME case of expand_scalar_variables_expr.
11696 Set the type of an expression to the type of its assign statement.
11697 (expand_scalar_variables_expr): Also gather the scalar computation
11698 used to index the memory access. Do not pass loop_p.
11699 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
11700 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
bef3c57b
UB
11701 the gimple_stmt_iterator where it inserts new code.
11702 Do not pass loop_p.
f9344488
SP
11703 (copy_bb_and_scalar_dependences): Do not pass loop_p.
11704 (translate_clast): Update call to copy_bb_and_scalar_dependences.
11705
2d8bb84d
SP
117062009-01-13 Sebastian Pop <sebastian.pop@amd.com>
11707
11708 * graphite.h (debug_value): Removed.
11709 * graphite.c (debug_value): Removed.
11710
ff128632
RE
117112009-01-13 Richard Earnshaw <rearnsha@arm.com>
11712
435da628
UB
11713 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
11714 ldrd/strd with two 32-bit instructions.
ff128632 11715
d5a0a47b
RE
117162009-01-13 Richard Earnshaw <rearnsha@arm.com>
11717
435da628
UB
11718 * config/arm/arm.c (struct processors): Pass for speed down into
11719 cost helper functions.
d5a0a47b
RE
11720 (const_ok_for_op): Handle COMPARE and inequality nodes.
11721 (arm_rtx_costs_1): Rewrite.
11722 (arm_size_rtx_costs): Update prototype.
11723 (arm_rtx_costs): Pass speed down to helper functions.
11724 (arm_slowmul_rtx_costs): Rework cost calculations.
11725 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
11726 (arm_9e_rtx_costs): Likewise.
11727
26d5bf5b
UB
117282009-01-13 Uros Bizjak <ubizjak@gmail.com>
11729
11730 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
435da628 11731 relocations of local symbols wider than UNITS_PER_WORD are not valid.
26d5bf5b
UB
11732 (alpha_legitimize_address): Do not split local symbols wider than
11733 UNITS_PER_WORD into HIGH/LO_SUM parts.
11734
5d14e3d5
DS
117352009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
11736
11737 PR bootstrap/38580
11738 * gcc.c (process_command): Replace call to execvp with calls
11739 to pex_one and exit.
11740
33faafca
AS
117412009-01-03 Anatoly Sokolov <aesok@post.ru>
11742
11743 PR target/29141
11744 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
11745 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
11746 variant for devices with 3-byte PC.
ba20e309 11747 (__tablejump_elpm__): New.
33faafca 11748
634b5df5
JJ
117492009-01-12 Jakub Jelinek <jakub@redhat.com>
11750
11751 PR c/32041
11752 * c-parser.c (c_parser_postfix_expression): Allow `->' in
11753 offsetof member-designator, handle it as `[0].'.
11754
2842bb86
JDA
117552009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11756
11757 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
11758 function when not using named sections on targets with named sections
11759 if branch distance is less than 262132.
11760
76ee70f6
RE
117612009-01-12 Richard Earnshaw <rearnsha@arm.com>
11762
11763 * combine.c (combine_instructions): Recompute
11764 optimize_this_for_speed_p for each BB in the main combine loop.
11765
f56e675d
TB
117662009-01-12 Tomas Bily <tbily@suse.cz>
11767
11768 PR middlend/38385
26d5bf5b
UB
11769 * tree-loop-distribution.c (prop_phis): New function.
11770 (generate_builtin): Call prop_phis.
11771 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
f56e675d 11772
c2152239
JJ
117732009-01-12 Jakub Jelinek <jakub@redhat.com>
11774
11775 PR tree-optimization/38807
11776 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
11777 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
11778
0e510b3e
AN
117792009-01-11 Adam Nemet <anemet@caviumnetworks.com>
11780
11781 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
11782 subreg of op0 to the original op0.
11783
c95b2534 117842009-01-11 Laurent GUERBY <laurent@guerby.net>
10270471
LG
11785
11786 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
2ba9daa7 11787
53a7ff9a
MS
117882009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
11789
11790 PR debug/7055
60839f5d 11791 * mips-tfile.c (parse_def): Fix parsing of def strings
53a7ff9a
MS
11792 starting with digits.
11793
b3a796bc
JJ
117942009-01-10 Jakub Jelinek <jakub@redhat.com>
11795
11796 PR target/38695
11797 * config/arm/arm.c (arm_is_long_call_p): Don't call
11798 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
11799
b21b850e
SB
118002009-01-09 Steven Bosscher <steven@gcc.gnu.org>
11801
11802 * regrename.c (regrename_optimize): Fix dumping.
11803 (find_oldest_value_reg): Preserve REG_POINTER.
11804 (copy_hardreg_forward_1): Likewise.
11805
e0e10d3a
DN
118062009-01-09 Diego Novillo <dnovillo@google.com>
11807
bf9b2cc9 11808 * gimple.h (struct gimple_statement_base) <uid>: Document
e0e10d3a
DN
11809 the restrictions on its use.
11810 (gimple_uid): Tidy.
11811 (gimple_set_uid): Tidy.
11812
c9da2ae8
JJ
118132009-01-09 Jakub Jelinek <jakub@redhat.com>
11814
11815 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
11816 zero guard even if align_bytes != 0 and count is smaller than
11817 size_needed.
11818
38432148 118192009-01-09 Vladimir Makarov <vmakarov@redhat.com>
a174c19c
VM
11820
11821 PR rtl-optimization/38495
26d5bf5b 11822 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
a174c19c
VM
11823 (add_range_and_copies_from_move_list): Print all added ranges.
11824 Add ranges to memory optimized destination.
11825
260fda3d
JJ
118262009-01-09 Jakub Jelinek <jakub@redhat.com>
11827
6f6278ad
JJ
11828 PR target/38686
11829 PR target/38708
11830 * config/i386/i386.c (override_options): Reject
11831 -mstringop-strategy=rep_8byte with -m32.
11832 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
11833 to 1. Do count comparison against epilogue_size_needed at compile
11834 time even when count_exp was constant forced into register. For
11835 size_needed don't jump to epilogue, instead just avoid aligning
11836 and invoke the body algorithm. If need_zero_guard, add zero guard
11837 even if count is non-zero, but smaller than size_needed + number of
11838 bytes that could be stored for alignment.
11839 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
11840 to 1. If need_zero_guard, add zero guard even if count is non-zero,
11841 but smaller than size_needed + number of bytes that could be stored
11842 for alignment. Compare size_needed with epilogue_size_needed instead
11843 of desired_align - align, don't adjust size_needed, pass
11844 epilogue_size_needed to the epilogue expanders.
11845
260fda3d 11846 PR c/35742
26d5bf5b 11847 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
260fda3d 11848
67b846fa
JDA
118492009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11850
11851 * pa.c (last_address): Change to unsigned.
11852 (update_total_code_bytes): Change argument to unsigned. Don't
11853 check if insn addresses are set.
11854 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
11855 addresses are not set.
11856 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
11857
91c82473
NC
118582009-01-09 Nick Clifton <nickc@redhat.com>
11859
11860 * config/sh/symbian.c: Replace uses of DECL_INLINE with
11861 DECL_DECLARED_INLINE_P.
11862
4017e262
JJ
118632009-01-09 Jakub Jelinek <jakub@redhat.com>
11864
0a49e5c2
JJ
11865 PR middle-end/38347
11866 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
11867 GET_MODE (op0) in operand_subword_force calls.
11868
4017e262
JJ
11869 PR middle-end/38771
11870 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
11871 fold_convert arg0 operands to TREE_TYPE (op0) first.
11872
7cd06356
VM
118732009-01-08 Vladimir Makarov <vmakarov@redhat.com>
11874
11875 * params.def (ira-max-conflict-table-size): Decrease default value
11876 to 1000.
11877
96867bbd
JJ
118782009-01-08 Jakub Jelinek <jakub@redhat.com>
11879
11880 PR tree-optimization/37031
11881 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
11882 on parameter_set.
11883 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
11884 allocate it using gc instead of heap, use VEC_quick_push instead of
11885 VEC_safe_push.
11886 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
11887 instead of heap, use VEC_quick_push instead of VEC_safe_push.
11888 * tree-data-ref.h (struct access_matrix): Change matrix to gc
11889 allocated vector from heap allocated.
11890 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
11891 * tree-loop-linear.c (linear_transform_loops): Allocate nest
11892 vector only after perfect_loop_nest_depth call.
11893
68f61c3d
SP
118942009-01-08 Sebastian Pop <sebastian.pop@amd.com>
11895 Jan Sjodin <jan.sjodin@amd.com>
11896
11897 PR tree-optimization/38559
11898 * graphite.c (debug_value, copy_constraint,
11899 swap_constraint_variables, scale_constraint_variable, ): New.
11900 (get_lower_bound, get_upper_bound): Removed.
11901 (graphite_trans_bb_strip_mine): Clean up this code that works
11902 only for constant number of iterations. Fully copy upper and
11903 lower bound constraints, not only the constant part of them.
11904 * graphite.h (debug_value): Declared.
11905
82567e33
IR
119062009-01-08 Ira Rosen <irar@il.ibm.com>
11907
11908 PR tree-optimization/37194
11909 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
2ba9daa7 11910 Don't add the cost of cost model guard in prologue to scalar
82567e33
IR
11911 outside cost in case of known number of iterations.
11912
7da13f1d
NF
119132009-01-07 Nathan Froyd <froydnj@codesourcery.com>
11914 Alan Modra <amodra@bigpond.net.au>
11915
11916 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
11917 non-word-aligned REG+CONST addressing.
11918
c0f64575
UB
119192009-01-07 Uros Bizjak <ubizjak@gmail.com>
11920
11921 PR target/38706
11922 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
11923 free_after_compilation when outputting a thunk.
11924 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
11925 Do not call free_after_compilation here.
11926
301b6a4e
UB
119272009-01-07 Uros Bizjak <ubizjak@gmail.com>
11928
11929 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
301b6a4e
UB
11930 (ix86_valid_target_attribute_inner_p): Ditto.
11931
6a114766
JS
119322009-01-07 Jan Sjodin <jan.sjodin@amd.com>
11933
11934 PR tree-optimization/38492
11935 PR tree-optimization/38498
11936 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
11937 * tree-chrec.h (scev_is_linear_expression): Declared.
11938 * graphite.c (graphite_cannot_represent_loop_niter): New.
11939 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
11940 (graphite_loop_normal_form): Use gcc_assert.
11941 (scan_tree_for_params): Use CASE_CONVERT.
11942 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
11943 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
11944 Use gcc_assert. Discard scops that contain unhandled cases.
11945 (build_scop_conditions): Return a boolean status for unhandled cases.
11946 (strip_mine_profitable_p): Print the loop number, not its depth.
11947 (is_interchange_valid): Pass the depth of the loop nest, don't
11948 recompute it wrongly.
11949 (graphite_trans_bb_block): Same.
11950 (graphite_trans_bb_block): Print tentative of loop blocking.
11951 (graphite_trans_scop_block): Do not print that the loop has been
11952 blocked.
11953 (graphite_transform_loops): Do not handle scops that contain condition
11954 scalar phi nodes.
11955
65b82caa
L
119562009-01-07 H.J. Lu <hongjiu.lu@intel.com>
11957
11958 AVX Programming Reference (December, 2008)
11959 * config/i386/avxintrin.h (_mm256_stream_si256): New.
11960 (_mm256_stream_pd): Likewise.
11961 (_mm256_stream_ps): Likewise.
11962
11963 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
11964 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
11965 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
11966 (bdesc_special_args): Add __builtin_ia32_movntdq256,
11967 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
11968 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
11969 (ix86_expand_special_args_builtin): Likewise.
11970
11971 * config/i386/sse.md (AVXMODEDI): New.
11972 (avx_movnt<mode>): Likewise.
11973 (avx_movnt<mode>): Likewise.
11974 (<sse>_movnt<mode>): Remove AVX support.
11975 (sse2_movntv2di): Likewise.
11976
cef158f9
RG
119772009-01-07 Richard Guenther <rguenther@suse.de>
11978
11979 PR middle-end/38751
11980 * fold-const.c (extract_muldiv): Remove obsolete comment.
11981 (fold_plusminus_mult_expr): Undo MINUS_EXPR
11982 to PLUS_EXPR canonicalization for the canonicalization.
11983
246cb5be
GP
119842009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
11985
11986 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
11987 hosted cross-compilers generating less efficient code.
11988
84b9b872
RS
119892009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11990
11991 * function.h (rtl_data): Add a dbr_scheduled_p field.
11992 * reorg.c (dbr_schedule): Set it.
11993 (gate_handle_delay_slots): Check it.
11994 * config/mips/mips.c (mips_base_delayed_branch): Delete.
11995 (mips_reorg): Check flag_delayed_branch instead of
11996 mips_base_delayed_branch.
11997 (mips_override_options): Don't set mips_base_delayed_branch
11998 or flag_delayed_branch.
11999
ace984c8
RS
120002009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
12001
12002 PR rtl-optimization/38426.
12003 * ira.c (ira): Set current_function_is_leaf earlier.
12004
7ad7809b
JJ
120052009-01-06 Jakub Jelinek <jakub@redhat.com>
12006
12007 PR rtl-optimization/38722
12008 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
12009 too early, only set a flag and modify after last possible
12010 undo_all point.
12011
c52ec948
JJ
120122009-01-06 Janis Johnson <janis187@us.ibm.com>
12013
12014 PR c/34252
12015 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
12016 * real.c (decimal_single_format): Correct values of emin and emax.
12017 (decimal_double_format): Ditto.
12018 (decimal_quad_format): Ditto.
12019 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
12020 computation of DECnn_MIN and DECnn_MAX for corrected values of
12021 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
12022 __DECnn_MIN__, and adjust its computation for the corrected value
12023 of emin.
12024
300240e1
JH
120252009-01-06 Jan Hubicka <jh@suse.cz>
12026
12027 PR target/38744
435da628 12028 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
300240e1 12029
271c069e
GP
120302009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
12031
12032 * doc/contrib.texi (Contributors): Slightly adjust the end note.
12033 Add Robert Clark to the list of testers.
12034
64e4c301 120352009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 12036 Kai Tietz <kai.tietz@onevision.com>
64e4c301 12037
435da628
UB
12038 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
12039 * config/i386/i386.c (ix86_expand_call): Add clobbers.
64e4c301 12040
7650b83e 120412009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 12042 Kai Tietz <kai.tietz@onevision.com>
7650b83e 12043
435da628
UB
12044 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
12045 for w64 ABI.
12046 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
7650b83e
JH
12047 (ix86_nsaved_regs): Count only general purpose regs.
12048 (ix86_nsaved_sseregs): New.
12049 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
12050 to 16 for w64; compute padding and size of sse reg save area.
301b6a4e
UB
12051 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
12052 general purpose regs.
7650b83e
JH
12053 (ix86_emit_save_sse_regs_using_mov): New.
12054 (ix86_expand_prologue): Save SSE regs if needed.
12055 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
12056 (ix86_emit_restore_sse_regs_using_mov): New.
12057 (ix86_expand_epilogue): Save SSE regs if needed.
12058
9aa5c1b2 120592009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 12060 Kai Tietz <kai.tietz@onevision.com>
9aa5c1b2 12061
435da628
UB
12062 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
12063 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
12064 functions when accumulate outgoing args is off.
9aa5c1b2 12065
f7556aae
L
120662009-01-06 H.J. Lu <hongjiu.lu@intel.com>
12067
12068 PR bootstrap/38742
12069 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
12070 before using pseudos_have_intersected_live_ranges_p.
12071
12072 * ira-int.h (ira_assert): Always define.
12073
e47b7d04
L
120742009-01-06 H.J. Lu <hongjiu.lu@intel.com>
12075
12076 AVX Programming Reference (December, 2008)
12077 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
12078 (_mm256_permute2_pd): Likewise.
12079 (_mm_permute2_ps): Likewise.
12080 (_mm256_permute2_ps): Likewise.
12081 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
12082 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
12083
12084 * config/i386/i386.c (ix86_builtins): Remove
12085 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
12086 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
12087 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
12088 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
12089 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
12090 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
12091 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
12092 __builtin_ia32_vpermil2ps256.
12093 (ix86_init_mmx_sse_builtins): Updated.
12094 (ix86_expand_args_builtin): Likewise.
12095
44b86471
JDA
120962009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12097
e47b7d04
L
12098 * pa.c (output_call): Relocate non-jump insns in the delay slot of
12099 long absolute calls when generating PA 2.0 code.
44b86471 12100
311aab06
VM
121012009-01-05 Vladimir Makarov <vmakarov@redhat.com>
12102
12103 PR rtl-optimization/38583
12104 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
12105
12106 * params.def (ira-max-conflict-table-size): New.
12107
12108 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
2ba9daa7 12109
311aab06 12110 * ira.h (ira_conflicts_p): New external definition.
2ba9daa7 12111
311aab06
VM
12112 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
12113 table. Report this. Return result of building.
12114 (ira_build_conflicts): Use ira_conflicts_p. Check result of
12115 building conflict table.
12116
301b6a4e 12117 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
311aab06 12118 (ira_color): Use ira_conflicts_p.
2ba9daa7 12119
311aab06
VM
12120 * global.c: Include ira.h.
12121 (pseudo_for_reload_consideration_p, build_insn_chain): Use
12122 ira_conflicts_p.
12123
12124 * Makefile.in (global.o): Add ira.h.
2ba9daa7 12125
311aab06
VM
12126 * ira-build.c (mark_all_loops_for_removal,
12127 propagate_some_info_from_allocno): New.
12128 (remove_unnecessary_allocnos): Call
12129 propagate_some_info_from_allocno.
12130 (remove_low_level_allocnos): New.
12131 (remove_unnecessary_regions): Add parameter. Call
12132 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
12133 parameter to remove_unnecessary_regions.
12134 (ira_build): Remove all regions but root if the conflict table was
12135 not built. Update conflict hard regs for allocnos crossing calls.
12136
12137 * ira.c (ira_conflicts_p): New global.
12138 (ira): Define and use ira_conflicts_p.
12139
12140 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
12141 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
301b6a4e 12142 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
2ba9daa7 12143
5641785f
BE
121442009-01-06 Ben Elliston <bje@au.ibm.com>
12145
12146 * gengtype-lex.l (YY_NO_INPUT): Define.
12147
e4e5261f
AP
121482009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
12149
12150 PR c/34911
5641785f
BE
12151 * c-common.c (handle_vector_size_attribute): Also reject
12152 BOOLEAN_TYPE types.
e4e5261f 12153
7b10257f
SP
121542009-01-05 Sebastian Pop <sebastian.pop@amd.com>
12155
12156 PR tree-optimization/38492
12157 * graphite.c (rename_map_elt, debug_rename_elt,
301b6a4e
UB
12158 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
12159 rename_map_elt_info, eq_rename_map_elts,
12160 get_new_name_from_old_name, bb_in_sese_p): Moved around.
7b10257f
SP
12161 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
12162 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
12163 (sese_build_livein_liveouts): New.
12164 (new_sese, free_sese): New.
12165 (new_scop): Call new_sese.
12166 (free_scop): Call free_sese.
12167 (rename_variables_from_edge, rename_phis_end_scop): Removed.
12168 (register_old_new_names): Renamed register_old_and_new_names.
12169 (register_scop_liveout_renames, add_loop_exit_phis,
12170 insert_loop_close_phis, struct igp,
12171 default_liveout_before_guard, add_guard_exit_phis,
12172 insert_guard_phis, copy_renames): New.
12173 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
12174 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
12175 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
12176 (scop_adjust_phis_for_liveouts): New.
12177 (gloog): Call scop_adjust_phis_for_liveouts.
12178
12179 * graphite.h (struct sese): Documented. Added fields liveout,
301b6a4e 12180 num_ver and livein.
7b10257f
SP
12181 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
12182 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
12183 (struct scop): Added field liveout_renames.
12184 (SCOP_LIVEOUT_RENAMES): New.
12185
9761fcc7
HJ
121862009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
12187
12188 PR tree-optimization/38510
12189 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
12190 (translate_clast): Call recompute_all_dominators before
12191 graphite_verify.
12192 (gloog): Call recompute_all_dominators before graphite_verify.
12193
121942009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
c95b2534 12195 Jan Sjodin <jan.sjodin@amd.com>
9761fcc7
HJ
12196
12197 PR tree-optimization/38500
12198 * graphite.c (create_sese_edges): Call fix_loop_structure after
12199 splitting blocks.
12200
c95b2534 122012009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
48a01864
JS
12202
12203 * config.gcc: Add m32r*-*-rtems*.
12204 * config/m32r/rtems.h: New file.
12205
fc0cd180
BE
122062009-01-05 Ben Elliston <bje@au.ibm.com>
12207
12208 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
12209 (.po.pox): Likewise.
12210 (po/gcc.pot): Likewise.
12211
3106d8e5
DM
122122009-01-04 David S. Miller <davem@davemloft.net>
12213
12214 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
12215 (STARTING_FRAME_OFFSET): Always set to zero.
12216
0009b473
RS
122172009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
12218
12219 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
12220 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
12221 fixed-point types, and vectors of the same.
12222
4f24c6d6
RS
122232009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
12224
12225 * config/mips/sync.md (*mb_barrier): Rename to...
12226 (*memory_barrier): ...this.
12227
1df48f5c
JW
122282009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
12229
12230 * doc/extend.texi (Function Attributes): Move @cindex after @item
eefe5da0 12231 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
1df48f5c
JW
12232 and put in alphabetical order. Fix 'target' name and put in order.
12233 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
12234 typos.
12235
1a8c13b3
UB
122362009-01-04 Uros Bizjak <ubizjak@gmail.com>
12237
12238 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
12239 (memory_barrier): Expand as unspec instead of unspec_volatile.
12240 Remove mem:BLK from insn operands. Use Pmode scratch register.
12241 (*memory_barrier): Define as unspec instead of unspec_volatile.
12242 Use (match_dup 0) as input operand.
12243
12244 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
12245 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
12246 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
12247 scratch register. Remove operand 1.
12248 (*stbar): Define as unspec instead of unspec_volatile.
12249 Use (match_dup 0) as input operand, remove (const_int 8).
12250 (*membar): Define as unspec instead of unspec_volatile.
12251 Use (match_dup 0) as input operand, remove input operand 2.
12252
12253 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
12254 (memory_barrier): Expand as unspec instead of unspec_volatile.
12255 Remove mem:BLK from insn operands. Use Pmode scratch register.
12256 (*memory_barrier): Define as unspec instead of unspec_volatile.
12257 Use (match_dup 0) as input operand.
12258
12259 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
12260 Remove mem:BLK from insn operands. Use Pmode scratch register.
12261 Set volatile flag on operand 0.
12262 (*memory_barrier): New insn pattern.
12263
12264 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
12265 insn operands.
12266 (*memory_barrier): Use (match_dup 0) as input operand.
12267
12268 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
12269 Remove mem:BLK from insn operands. Use Pmode scratch register.
12270 Set volatile flag on operand 0.
301b6a4e 12271 (*mb_internal): New insn pattern.
1a8c13b3
UB
12272
12273 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
12274
fb0703f7
SB
122752009-01-04 Steven Bosscher <steven@gcc.gnu.org>
12276
12277 PR middle-end/38586
12278 * function.c (struct temp_slot): Move to the section of the file
12279 that deals with temp slots. Remove field 'address'.
12280 (temp_slot_address_table): New hash table of address -> temp slot.
12281 (struct temp_slot_address_entry): New struct, items for the table.
12282 (temp_slot_address_compute_hash, temp_slot_address_hash,
12283 temp_slot_address_eq, insert_temp_slot_address): Support functions
12284 for the new table.
12285 (find_temp_slot_from_address): Rewrite to use the new hash table.
12286 (remove_unused_temp_slot_addresses): Remove addresses of temp
12287 slots that have been made available.
12288 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
12289 worker function for remove_unused_temp_slot_addresses.
12290 (assign_stack_temp_for_type): Don't clear the temp slot address list.
12291 Add the temp slot address to the address -> temp slot map.
12292 (update_temp_slot_address): Update via insert_temp_slot_address.
12293 (free_temp_slots): Call remove_unused_temp_slot_addresses.
12294 (pop_temp_slots): Likewise.
12295 (init_temp_slots): Allocate the address -> temp slot map, or empty
12296 the map if it is already allocated.
12297 (prepare_function_start): Initialize temp slot processing.
12298
b5a430f3
SB
122992009-01-04 Steven Bosscher <steven@gcc.gnu.org>
12300
12301 PR middle-end/38584
12302 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
12303 Calculate the size of all stack vars assuming no packing of stack
12304 vars will happen, replacing a quadratic algorithm with a linear one.
12305
5d560619
JJ
123062009-01-03 Jakub Jelinek <jakub@redhat.com>
12307
12308 PR target/38707
12309 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
12310 can't be used.
12311
953a7caa
DN
123122009-01-03 Diego Novillo <dnovillo@google.com>
12313
12314 * doc/contrib.texi: Update contributions.
12315
5f26a230
JJ
123162009-01-03 Jakub Jelinek <jakub@redhat.com>
12317
493aa551
JJ
12318 PR c++/38705
12319 * builtins.c (fold_builtin_memory_op): Give up if either operand
12320 is volatile. Set srctype or desttype to non-qualified version
12321 of the other type.
12322
5f26a230
JJ
12323 PR c/38700
12324 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
12325 and FUNCTION_DECLs.
12326
c95b2534 123272009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
fafe34f9
KZ
12328
12329 PR rtl-optimization/35805
12330 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
12331 problem if fast dce is able to remove any instructions.
12332 * dce.c (dce_process_block): Fix dump message.
2ba9daa7 12333
0b355794
MM
123342009-01-02 Mark Mitchell <mark@codesourcery.com>
12335
12336 PR 33649
12337 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
12338
0cf0d02b
JJ
123392009-01-02 Jakub Jelinek <jakub@redhat.com>
12340
12341 PR middle-end/38690
12342 * tree-flow.h (op_code_prio, op_prio): New prototypes.
12343 * tree-pretty-print.c (op_code_prio): New function.
12344 (op_prio): No longer static. Use op_code_prio.
12345 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
12346 Use op_prio and op_code_prio to determine if () should be
12347 printed around operand(s) or not.
12348
12349 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
12350 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
12351 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
12352 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
12353 pp_character instead of pp_string for single letter printing.
12354
e3606f3b
RS
123552009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12356
12357 * doc/extend.texi: Fix '#pragma GCC option' typo.
12358
c95b2534 123592009-01-02 Richard Guenther <rguenther@suse.de>
00f39bd5 12360
a5f061dc
RG
12361 * doc/install.texi (--enable-checking): Mention different
12362 default for stage1.
12363 (--enable-stage1-checking): Document.
00f39bd5 12364
26de0bcb
AP
123652009-01-01 Andrew Pinski <pinskia@gmail.com>
12366
12367 PR middle-end/30142
12368 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
12369 case to be an error.
12370
7a7d8fab
BE
123712009-01-02 Ben Elliston <bje@au.ibm.com>
12372
12373 * config/fp-bit.h (pack_d): Constify argument.
12374 * config/fp-bit.c (makenan): Constify return type. Remove casts.
12375 (isnan): Constify argument.
12376 (isinf): Likewise.
12377 (iszero): Likewise.
12378 (pack_d): Likewise.
12379 (_fpadd_parts): Constify return type.
12380 (_fpmul_parts): Likewise.
12381 (_fpdiv_parts): Likewise.
12382
b295aee2
JJ
123832009-01-01 Jakub Jelinek <jakub@redhat.com>
12384
12385 PR c/36489
12386 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
12387 warn about overwriting initializer with side-effects or
12388 -Woverride-init if !IMPLICIT.
12389 (output_init_element): Likewise. Pass IMPLICIT down to
12390 add_pending_init.
12391 (process_init_element): Add IMPLICIT argument. Pass it down
12392 to output_init_element.
12393 (push_init_element, pop_init_level, set_designator): Adjust
12394 process_init_element callers.
12395 (set_nonincremental_init, set_nonincremental_init_from_string):
12396 Adjust add_pending_init callers.
12397 (output_pending_init_elements): Adjust output_init_element callers.
12398 * c-tree.h (process_init_element): Adjust prototype.
12399 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
12400 process_init_element callers.
ad41bd84
JM
12401
12402\f
12403Copyright (C) 2009 Free Software Foundation, Inc.
12404
12405Copying and distribution of this file, with or without modification,
12406are permitted in any medium without royalty provided the copyright
12407notice and this notice are preserved.