1 2009-04-25 Jan Hubicka <jh@suse.cz>
3 * tree.c (list_equal_p): New function.
4 * tree.h (list_equal_p): Declare.
5 * coretypes.h (edge_def, edge, const_edge, basic_block_def
6 basic_block_def, basic_block, const_basic_block): New.
7 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
8 (redirect_eh_edge): New function.
9 (make_eh_edge_update_phi): EH edges are not abnormal.
10 * except.c: Include tree-flow.h.
11 (list_match): New function.
12 (eh_region_replaceable_by_p): New function.
13 (replace_region): New function.
14 (hash_type_list): New function.
15 (hash_eh_region): New function.
16 (eh_regions_equal_p): New function.
17 (merge_peers): New function.
18 (remove_unreachable_regions): Verify EH tree when checking;
20 (copy_eh_region_1): New function.
21 (copy_eh_region): New function.
22 (push_reachable_handler): New function.
23 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
24 regions without label but with live RESX.
25 * except.h (redirect_eh_edge_to_label): New.
26 * tree-flow.h (redirect_eh_edge): New.
27 * coretypes.h (edge_def, edge, const_edge, basic_block_def
28 basic_block_def, basic_block, const_basic_block): Remove.
29 * Makefile.in (except.o): Add dependency on tree-flow.h
30 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
31 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
34 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
37 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
38 on the destination of memcpy.
40 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
42 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
43 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
44 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
46 2009-04-25 Jan Hubicka <jh@suse.cz>
48 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
49 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
50 to be reached by different label than left.
51 (update_eh_edges): Update comment; remove edge_to_remove if possible
52 and return true if suceeded.
53 (cleanup_empty_eh): Accept sharing map; handle shared regions.
54 (cleanup_eh): Compute sharing map.
55 * except.c (remove_eh_handler_and_replace): Add argument if we should
57 (remove_unreachable_regions): Update for label sharing.
58 (label_to_region_map): Likewise.
59 (get_next_region_sharing_label): New function.
60 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
62 (remove_eh_handler): Update.
63 (remove_eh_region_and_replace_by_outer_of): New function.
64 * except.h (struct eh_region): Add next_region_sharing_label.
65 (remove_eh_region_and_replace_by_outer_of,
66 get_next_region_sharing_label): Declare.
67 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
69 2009-04-25 Jan Hubicka <jh@suse.cz>
71 * tree-cfg.c (split_critical_edges): Split also edges where we can't
72 insert code even if they are not critical.
74 2009-04-25 Jan Hubicka <jh@suse.cz>
76 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
77 (gimple_can_remove_branch_p): EH edges won't remove branch by
79 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
80 updating of non-abnormal EH edges.
81 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
82 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
83 (split_critical_edges): Split also edges where emitting code on them
84 will lead to splitting later.
86 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
87 H.J. Lu <hongjiu.lu@intel.com>
90 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
91 the configured assembler supports fildq and fistpq mnemonics.
92 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
93 * configure: Regenerated.
96 * config/i386/i386.c (print_operand): Handle 'Z'.
97 ['z']: Remove handling of special fild/fist suffixes.
98 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
99 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
101 (*floatsi<mode>2_vector_mixed): Ditto.
102 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
103 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
104 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
105 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
106 * config/i386/gas.h (GAS_MNEMONICS): Remove.
108 2009-04-25 Ben Elliston <bje@au.ibm.com>
110 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
111 the source of a set operation.
113 2009-04-25 Anatoly Sokolov <aesok@post.ru>
115 * target.h (struct gcc_target): Add case_values_threshold field.
116 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
117 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
118 * targhooks.c (default_case_values_threshold): New function.
119 * targhooks.h (default_case_values_threshold): Declare function.
120 * stmt.c (expand_case): Use case_values_threshold target hook.
121 * expr.h (case_values_threshold): Remove declartation.
122 * expr.c (case_values_threshold): Remove function.
123 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
125 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
126 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
127 (avr_case_values_threshold): Declare as static.
128 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
130 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
131 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
132 (mn10300_case_values_threshold): New function.
134 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
136 * ira.c (setup_cover_and_important_classes): Add enum cast.
138 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
140 * genpreds.c (write_enum_constraint_num): Output definition of
141 CONSTRAINT_NUM_DEFINED_P macro.
142 * ira.c (setup_cover_and_important_classes): Use
143 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
145 2009-04-24 DJ Delorie <dj@redhat.com>
147 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
148 __SH2A_SINGLE_ONLY__ also.
150 2009-04-24 Steve Ellcey <sje@cup.hp.com>
152 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
153 (movdf_internal): Ditto.
154 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
155 SFmode and DFmode constants.
156 (ia64_print_operand): Add 'G' format for printing
157 floating point constants.
159 2009-04-24 Richard Guenther <rguenther@suse.de>
161 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
162 from unsigned additions.
164 2009-04-24 Joseph Myers <joseph@codesourcery.com>
166 * c-typeck.c (set_init_index): Allow array designators that are
167 not integer constant expressions with a pedwarn if pedantic.
169 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
171 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
172 zero if no overlap in nonzero bits between the operands.
174 2009-04-24 Ian Lance Taylor <iant@google.com>
176 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
177 (record_dead_and_set_regs): Likewise.
178 * df.h (struct df_mw_hardreg): Change flags field to int.
179 (struct df_base_ref): Likewise.
180 (struct df): Change changeable_flags field to int.
181 * df-scan.c (df_defs_record): Change clobber_flags to int.
182 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
183 constants rather than #define macros.
184 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
185 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
186 (enum dwarf_calling_convention): Likewise.
187 (enum dwarf_line_number_x_ops): Likewise.
188 (enum dwarf_call_frame_info): Likewise.
189 (enum dwarf_source_language): Likewise.
190 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
191 (add_calling_convention_attribute): Likewise.
192 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
193 (combine_comparisons): Change compcode to int. Add cast to enum type.
194 * genrecog.c (maybe_both_true_2): Change c to int.
195 (write_switch): Likewise. Add cast to enum type.
196 * gimplify.c (gimplify_omp_for): Handle return values from
197 gimplify_expr using MIN rather than bitwise or.
198 (gimplify_expr): Add cast to enum type.
199 * ipa-prop.c (update_jump_functions_after_inlining): Change
200 IPA_BOTTOM to IPA_JF_UNKNOWN.
201 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
202 Add casts to enum type.
203 (setup_cover_and_important_classes): Change cl to int. Add casts
205 (setup_class_translate): Change cl and mode to int.
206 (ira_init_once): Change mode to int.
207 (free_register_move_costs): Likewise.
208 (setup_prohibited_mode_move_regs): Add casts to enum type.
209 * langhooks.c (add_builtin_function_common): Rework assertion that
211 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
212 * omega.c (omega_do_elimination): Avoid math on enum types.
213 * optabs.c (expand_vec_shift_expr): Remove casts to int.
214 * opts.c (set_debug_level): Change 2 to enum constant. Use new
215 int local to handle integral_argment value.
216 * regmove.c (try_auto_increment): Change PUT_MODE to
218 * reload.c (push_secondary_reload): Add casts to enum type.
219 (secondary_reload_class, find_valid_class): Likewise.
220 * reload1.c (emit_input_reload_insns): Likewise.
221 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
222 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
223 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
225 * tree.c (build_common_builtin_nodes): Add casts to enum type.
226 * tree-complex.c (complex_lattice_t): Typedef to int rather than
228 (expand_complex_libcall): Add casts to enum type.
229 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
230 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
231 with ERROR_MARK, not NUM_TREE_CODES.
232 (vect_create_epilog_for_reduction): Likewise.
233 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
234 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
235 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
237 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
238 vect_unused_in_loop. Change 0 to loop_vect.
239 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
240 * var-tracking.c (get_init_value): Change return type to enum
242 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
243 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
245 (arm_override_options): Add casts to enum type.
246 (arm_emit_tls_decoration): Likewise.
247 * config/i386/i386.c (ix86_function_specific_restore): Add casts
249 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
250 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
251 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
253 * config/s390/s390.c (code_for_builtin_64): Change to array of
255 (code_for_builtin_31): Likewise.
256 (s390_expand_builtin): Change code_for_builtin to enum insn_code
258 * config/sparc/sparc.c (sparc_override_options): Change value
259 field in struct code_model to enum cmodel. In initializer change
260 0 to NULL and add cast to enum type.
262 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
263 Change all callers. Issue a -Wc++-compat warning using
264 lhs_origtype if necessary.
265 (convert_for_assignment): Issue -Wc++-compat warnings about
266 invalid conversions to enum type on assignment.
267 * c-common.h (build_modify_expr): Update declaration.
269 2009-04-24 Nick Clifton <nickc@redhat.com>
271 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
272 (function_arg_advance): Likewise.
273 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
276 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
278 * config/s390/constraints.md ('I', 'J'): Fix condition.
280 2009-04-24 Diego Novillo <dnovillo@google.com>
282 * gengtype-parse.c (parse_error): Add newline after message.
284 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
286 * config/i386/sse.md (avxmodesuffixs): Removed.
287 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
288 (*avx_pinsr<ssevecsize>): This.
290 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
292 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
293 follow chains of regs with a single definition, and allow expressions
294 that are function_invariant_p.
295 (simple_rhs_p): Allow expressions that are function_invariant_p.
297 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
300 * fold-const.c (fold_cond_expr_with_comparison): When folding
301 > and >= to MAX, make sure the MAX uses the same type as the
302 comparison's operands.
304 2009-04-24 Nick Clifton <nickc@redhat.com>
306 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
307 addressing for DImode accesses.
308 (frv_print_operand_address): Handle PLUS case.
309 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
311 2009-04-24 Jakub Jelinek <jakub@redhat.com>
313 PR rtl-optimization/39794
314 * alias.c (canon_true_dependence): Add x_addr argument.
315 * rtl.h (canon_true_dependence): Adjust prototype.
316 * cse.c (check_dependence): Adjust canon_true_dependence callers.
317 * cselib.c (cselib_invalidate_mem): Likewise.
318 * gcse.c (compute_transp): Likewise.
319 * dse.c (scan_reads_nospill): Likewise.
320 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
321 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
322 canon_base_addr of the group, plus optional offset.
323 (struct group_info): Rename canon_base_mem to
325 (get_group_info): Set canon_base_addr to canon_rtx of base, not
326 canon_rtx of base_mem.
328 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
330 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
331 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
333 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
335 * config/spu/spu-builtins.h: Delete file.
337 * config/spu/spu.h (enum spu_builtin_type): Move here from
339 (struct spu_builtin_description): Likewise. Add GTY marker.
340 Do not use enum spu_function_code or enum insn_code.
341 (spu_builtins): Add extern declaration.
343 * config/spu/spu.c: Do not include "spu-builtins.h".
344 (enum spu_function_code, enum spu_builtin_type_index,
345 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
346 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
347 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
348 unsigned_V2DI_type_node): Move here from spu-builtins.h.
349 (spu_builtin_types): Make static. Add GTY marker.
350 (spu_builtins): Add extern declaration with GTY marker.
353 * config/spu/spu-c.c: Do not include "spu-builtins.h".
354 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
355 Check programmatically whether all parameters are scalar.
357 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
359 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
361 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
362 assignment from the constructor either if the target is volatile.
364 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
366 * config/arm/arm.md (insv): Do not share operands[0].
368 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
370 * config/vxlib-tls.c (active_tls_threads): Delete.
371 (delete_hook_installed): New.
372 (tls_delete_hook): Don't delete the delete hook.
373 (tls_destructor): Delete it here.
374 (__gthread_set_specific): Adjust installing the delete hook.
375 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
376 __gthread_leave_tsd_dtor_context.
378 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
380 * c-format.c (gcc_tdiag_char_table): Add support for %E.
382 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
384 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
386 (alpha_rtx_costs): Ditto.
387 (emit_unlikely_jump): Use add_reg_note.
388 (emit_frame_store_1): Ditto.
389 (alpha_expand_prologue): Ditto.
390 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
391 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
393 2009-04-23 Nick Clifton <nickc@redhat.com>
395 * config/v850/v850.md (epilogue): Remove suppressed code.
396 (return): Rename to return_simple and remove test of frame size.
397 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
398 to gen_return_simple.
400 2009-04-22 Jing Yu <jingyu@google.com>
403 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
405 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
408 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
409 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
410 value is a VECTOR_CST, the element type is the element type of the
413 2009-04-22 DJ Delorie <dj@redhat.com>
415 * config/m32c/m32c.h: Update GTY annotations to new syntax.
417 2009-04-22 Jakub Jelinek <jakub@redhat.com>
419 * alias.c (find_base_term): Move around LO_SUM case, so that
420 CONST falls through into PLUS/MINUS handling.
423 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
424 into 0, use omit_one_operand.
426 2009-04-23 Ben Elliston <bje@au.ibm.com>
428 * config/rs6000/linux-unwind.h (get_regs): Remove type
429 puns. Change the type of `pc' to an array of unsigned ints and
430 update all users. Constify frame24.
432 2009-04-22 DJ Delorie <dj@redhat.com>
434 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
435 declarations before code.
436 (current_function_special_page_vector): Likewise.
437 (m32c_expand_insv): Silence a warning.
439 2009-04-21 Taras Glek <tglek@mozilla.com>
441 * alias.c: Update GTY annotations to new syntax.
442 * basic-block.h: Likewise.
443 * bitmap.h: Likewise.
444 * c-common.h: Likewise.
445 * c-decl.c: Likewise.
446 * c-parser.c: Likewise.
447 * c-pragma.c: Likewise.
448 * c-tree.h: Likewise.
449 * cfgloop.h: Likewise.
450 * cgraph.h: Likewise.
451 * config/alpha/alpha.c: Likewise.
452 * config/arm/arm.h: Likewise.
453 * config/avr/avr.h: Likewise.
454 * config/bfin/bfin.c: Likewise.
455 * config/cris/cris.c: Likewise.
456 * config/darwin.c: Likewise.
457 * config/frv/frv.c: Likewise.
458 * config/i386/i386.c: Likewise.
459 * config/i386/i386.h: Likewise.
460 * config/i386/winnt.c: Likewise.
461 * config/ia64/ia64.h: Likewise.
462 * config/iq2000/iq2000.c: Likewise.
463 * config/mips/mips.c: Likewise.
464 * config/mmix/mmix.h: Likewise.
465 * config/pa/pa.c: Likewise.
466 * config/pa/pa.h: Likewise.
467 * config/rs6000/rs6000.c: Likewise.
468 * config/s390/s390.c: Likewise.
469 * config/sparc/sparc.c: Likewise.
470 * config/xtensa/xtensa.c: Likewise.
471 * cselib.h: Likewise.
472 * dbxout.c: Likewise.
473 * dwarf2out.c: Likewise.
474 * except.c: Likewise.
475 * except.h: Likewise.
476 * fixed-value.h: Likewise.
477 * function.c: Likewise.
478 * function.h: Likewise.
479 * gimple.h: Likewise.
480 * integrate.c: Likewise.
481 * optabs.c: Likewise.
482 * output.h: Likewise.
485 * stringpool.c: Likewise.
486 * tree-data-ref.c: Likewise.
487 * tree-flow.h: Likewise.
488 * tree-scalar-evolution.c: Likewise.
489 * tree-ssa-address.c: Likewise.
490 * tree-ssa-alias.h: Likewise.
491 * tree-ssa-operands.h: Likewise.
494 * varasm.c: Likewise.
495 * varray.h: Likewise.
497 * coretypes.h: Do not define GTY macro if it is already defined.
498 * doc/gty.texi: Update GTY documentation to new syntax.
499 * gengtype-lex.l: Enforce attribute-like syntax for GTY
500 annotations on structs.
501 * gengtype-parse.c: Likewise.
503 2009-04-22 Mark Heffernan <meheff@google.com>
505 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
507 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
509 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
512 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
514 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
515 the same as a PLUS without a shift. Increase the cost of a
518 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
520 * Makefile.in: Update dependencies.
521 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
522 * errors.h: Remove bogus comment about compatibility.
523 (warning): Update declaration.
524 * genautomata.c: Update all calls to warning.
525 * gimple.c: Do not include errors.h. Include toplev.h.
526 * tree-ssa-structalias.c: Do not include errors.h.
528 * tree-ssa-reassoc.c: Likewise.
529 * config/spu/spu-c.c: Likewise.
530 * config/spu/t-spu-elf: Update dependencies.
532 2009-04-22 Richard Guenther <rguenther@suse.de>
534 PR tree-optimization/39824
535 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
536 make sure the types are compatible.
538 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
541 * c-common.c (c_parse_error): Take a token_flags parameter.
542 Use token_type for the token type instead.
543 Pass token_flags to cpp_type2name.
544 * c-common.h (c_parse_error): Update declaration.
545 * c-parser.c (c_parser_error): Pass 0 as token flags.
547 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
549 PR rtl-optimization/39580
550 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
552 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
554 * function.c (expand_function_end): Do not emit a jump to the "naked"
555 return label for fall-through returns.
556 * except.c (sjlj_emit_function_exit): Always place the call to the
557 unregister function at the location installed by expand_function_end.
559 2009-04-22 Richard Guenther <rguenther@suse.de>
561 PR tree-optimization/39845
562 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
563 (gen_inbound_check): Likewise.
565 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
567 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
569 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
570 * config/vxlib.c (__gthread_once): Add race guard for PPC.
572 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
574 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
575 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
576 shift counts to avoid out-of-bounds array accesses.
578 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
580 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
583 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
585 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
586 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
587 GET_CODE macro. Use IN_RANGE macro where appropriate.
588 * config/alpha/alpha.h: Ditto.
589 * config/alpha/alpha.md: Ditto.
590 * config/alpha/constraints.md: Ditto.
591 * config/alpha/predicates.md: Ditto.
593 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
595 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
596 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
597 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
598 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
599 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
600 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
601 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
602 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
603 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
604 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
605 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
606 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
607 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
608 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
609 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
610 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
611 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
612 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
613 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
614 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
615 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
616 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
617 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
618 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
619 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
620 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
621 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
623 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
625 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
626 references from comments.
627 * cfgbuild.c: (count_basic_blocks): Delete.
628 (find_basic_blocks_1): Delete.
629 (find_basic_blocks): Delete.
630 * except.c (finish_eh_generation): Make static. Move comment from
631 except.h here. Remove find_basic_blocks references from comments.
632 * except.h (finish_eh_generation): Delete.
633 * basic-block.h (find_basic_blocks): Delete.
634 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
636 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
638 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
639 (sdbout_parms): Likewise.
641 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
643 * config/sh/sh.c (prepare_cbranch_operands): Use
644 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
645 (expand_cbranchdi4): Likewise.
646 (from_compare): Add cast to enum type.
647 (expand_cbranchsi4): Use add_reg_note.
648 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
649 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
650 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
651 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
652 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
653 instead of CODE_FOR_nothing.
654 (cbranchdi4): Likewise. Fix the order of arguments for
656 (push_fpscr): Use add_reg_note.
657 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
658 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
660 2009-04-21 Joseph Myers <joseph@codesourcery.com>
662 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
663 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
664 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
665 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
666 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
667 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
668 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
669 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
670 config/alpha/x-vms, config/arc/t-arc,
671 config/arm/README-interworking, config/arm/arm-c.c,
672 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
673 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
674 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
675 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
676 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
677 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
678 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
679 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
680 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
681 config/cris/t-elfmulti, config/crx/t-crx,
682 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
683 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
684 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
685 config/h8300/t-h8300, config/i386/athlon.md,
686 config/i386/darwin-libgcc.10.4.ver,
687 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
688 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
689 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
690 config/i386/t-linux64, config/i386/t-nwld,
691 config/i386/t-rtems-i386, config/i386/t-sol2-10,
692 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
693 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
694 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
695 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
696 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
697 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
698 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
699 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
700 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
701 config/m68k/t-uclinux, config/mcore/t-mcore,
702 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
703 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
704 config/mips/crtn.asm, config/mips/irix-crti.asm,
705 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
706 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
707 config/mips/mips-fixed.md, config/mips/sb1.md,
708 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
709 config/mips/t-iris6, config/mips/t-isa3264,
710 config/mips/t-libgcc-mips16, config/mips/t-linux64,
711 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
712 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
713 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
714 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
715 config/mn10300/t-linux, config/mn10300/t-mn10300,
716 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
717 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
718 config/picochip/libgccExtras/clzsi2.asm,
719 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
720 config/rs6000/darwin-libgcc.10.4.ver,
721 config/rs6000/darwin-libgcc.10.5.ver,
722 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
723 config/rs6000/t-aix43, config/rs6000/t-aix52,
724 config/rs6000/t-darwin, config/rs6000/t-fprules,
725 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
726 config/rs6000/t-lynx, config/rs6000/t-netbsd,
727 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
728 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
729 config/rs6000/t-rtems, config/rs6000/t-spe,
730 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
731 config/score/t-score-elf, config/sh/divcost-analysis,
732 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
733 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
734 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
735 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
736 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
737 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
738 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
739 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
740 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
741 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
742 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
743 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
744 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
745 limitx.h, version.c, xcoff.h: Add copyright and license notices.
746 * config/h8300/genmova.sh: Include copyright and license notices
748 * config/h8300/mova.md: Regenerate.
749 * doc/install.texi2html: Include word "Copyright" in copyright
750 notice and use name "Free Software Foundation, Inc.".
751 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
752 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
753 ChangeLog-2007, ChangeLog-2008: Correct dates.
755 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
757 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
758 NE_EXPR operations as well.
759 * c-parser.c (c_parser_condition): Do not set location information on
761 (c_parser_conditional_expression): Likewise.
762 (c_parser_binary_expression): Set location information on operators.
763 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
764 TRUTH_NOT_EXPR has been folded.
765 * fold-const.c (fold_truth_not_expr): Copy location information from
766 the incoming expression to the outgoing one.
767 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
768 recursive calls on the LHS of the operator but pass that of the
769 operator to recursive calls on the RHS of the operator. Set it
771 (shortcut_cond_expr): Set the locus of the operator on the second
772 COND_EXPR and that of the expression on the first in degenerate cases.
773 Pass the locus of the expression to calls to shortcut_cond_r.
774 Set the locus of the 'then' block on the associated jump, if any.
775 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
776 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
777 expression to call to gimplify_boolean_expr.
779 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
781 * config.gcc: Add additional configuration for
782 i686-w64-mingw* and x86_64-w64-mingw* triplet.
783 * config/i386/mingw-w64.h: New mingw-w64 specific header.
784 (CPP_SPEC): Redefine for allowing -municode option.
785 (STARTFILE_SPEC): Likewise.
786 * config/i386/t-mingw-w64: New.
787 * config/i386/mingw-w64.opt: New.
788 (municode): Add new target option.
789 * doc/invoke.texi (municode): Add documentation for new option.
791 2009-04-21 Ian Lance Taylor <iant@google.com>
793 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
794 Correct test for number of arguments.
795 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
797 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
799 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
800 argument of emit_library_call.
802 2009-04-21 Richard Guenther <rguenther@suse.de>
805 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
806 inside VIEW_CONVERT_EXPRs.
808 2009-04-21 Martin Jambor <mjambor@suse.cz>
810 * tree-switch-conversion.c (build_constructors): Split a long line.
811 (constructor_contains_same_values_p): New function.
812 (build_one_array): Create assigns of constants if possible, do not
813 call mark_sym_for_renaming, call update_stmt.
814 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
815 make_rename_temp. Do not call mark_symbols_for_renaming, call
817 (gen_def_assigns): Do not call mark_symbols_for_renaming or
818 find_new_referenced_vars, call update_stmt.
819 (gen_inbound_check): Use create_tmp_var and create ssa names manually
820 instead of calling make_rename_temp. Do not call
821 find_new_referenced_vars or mark_symbols_for_renaming, call
824 2009-04-21 Richard Guenther <rguenther@suse.de>
826 PR tree-optimization/39827
827 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
828 (tree_ssa_phiprop): Pass the correct array size.
830 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
832 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
834 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
837 * c-typeck.c (lvalue_p): Move declaration ...
838 * c-common.h (lvalue_p): ... to here.
839 * c-common.c (candidate_equal_p): New.
841 (merge_tlist): Use it.
842 (warn_for_collisions_1): Likewise.
843 (warning_candidate_p): Accept more candidates.
844 (verify_tree): A warning candidate can be an expression. Use
847 2009-04-21 Ben Elliston <bje@au.ibm.com>
850 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
851 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
852 options. Remove -mcall-solaris documentation.
854 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
857 * doc/invoke.texi (-Wlong-long): Update description.
858 * c-lex (interpret_integer): Only warn if there was no previous
859 overflow and -Wlong-long is enabled.
860 * c-decl.c (declspecs_add_type): Drop redundant flags.
861 * c.opt (Wlong-long): Init to -1.
862 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
863 and front-end warn_long_long. Wlong-long only depends on other
864 flags if it is uninitialized.
865 * c-parser.c (disable_extension_diagnostics): warn_long_long is
866 the same for CPP and FE.
867 (restore_extension_diagnostics): Likewise.
869 2009-04-20 Ian Lance Taylor <iant@google.com>
871 Fix enum conversions which are invalid in C++:
872 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
873 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
874 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
875 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
876 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
877 (dbxout_parms): Likewise.
878 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
879 (df_clear_flags): Likewise.
880 * df-problems.c (df_rd_bb_local_compute_process_def): Change
881 top_flag parameter to int.
882 (df_chain_create_bb_process_use): Likewise.
883 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
885 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
886 (df_ref_create_structure, df_def_record_1): Likewise.
887 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
888 (df_notes_rescan): Change 0 to VOIDmode in function call.
889 (df_get_call_refs, df_insn_refs_collect): Likewise.
890 (df_bb_regs_collect): Likewise.
891 (df_entry_block_defs_collect): Likewise.
892 (df_exit_block_uses_collect): Likewise.
893 * df.h: Update declarations.
894 * double-int.c (double_int_divmod): Add cast to enum type.
895 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
896 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
897 (based_loc_descr): Likewise.
898 (loc_descriptor_from_tree_1): Change first_op and second_op to
899 enum dwarf_location_atom. Add cast to enum type.
900 * expmed.c (init_expmed): Change 0 to SET in function call.
901 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
902 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
903 (do_store_flag): Likewise.
904 * fixed-value.h (struct fixed_value): Change mode to enum
906 * function.c (assign_parms): Change 0 to VOIDmode in function call.
907 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
909 (insert_insn_decl, insert_decl, insert_state): Likewise.
910 (automata_list_finish): Likewise.
911 * genrecog.c (process_define_predicate): Add cast to enum type.
912 * gensupport.c (init_predicate_table): Add cast to enum type.
913 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
915 (gimple_build_call_1, gimple_build_label): Likewise.
916 (gimple_build_goto, gimple_build_asm_1): Likewise.
917 (gimple_build_switch_1, gimple_build_cdt): Likewise.
918 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
919 (enum fallback): Rename from enum fallback_t.
920 (fallback_t): Typedef as int.
921 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
922 GSI_SAME_STMT in function call.
923 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
925 (setup_reg_class_relations): Likewise.
926 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
927 (setup_prohibited_class_mode_regs): Add cast to enum type.
928 (setup_prohibited_mode_move_regs): Likewise.
929 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
930 (record_address_regs): Change i to enum reg_class.
931 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
932 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
933 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
934 (GET_MODE_2XWIDER_MODE): Likewise.
935 (GET_CLASS_NARROWEST_MODE): Likewise.
936 * omp-low.c (expand_omp_for): Add cast to enum type.
937 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
938 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
939 * postreload.c (reload_cse_simplify_operands): Change rclass local
941 * predict.c (combine_predictions_for_insn): Change best_predictor
942 and predictor to enum br_predictor.
943 (combine_predictions_for_bb): Likewise.
944 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
945 use SET_PREDICT_EXPR_OUTCOME.
946 * real.c (real_arithmetic): Change icode to code in function call.
947 * reginfo.c (init_move_cost): Add casts to enum type.
948 (init_reg_sets_1, init_fake_stack_mems): Likewise.
949 * regmove.c (regclass_compatible_p): Change class0 and class1 to
951 * reload.c (find_valid_class): Add casts to enum type.
952 (push_reload): Change 0 to NO_REGS in function call.
953 (find_reloads): Change this_alternative to array of enum
954 reg_class. Remove some now-unnecessary casts.
955 (make_memloc): Change 0 to VOIDmode in function call.
956 * reload1.c (reload): Change 0 to VOIDmode in function call.
957 (eliminate_regs_1, elimination_effects): Likewise.
958 (eliminate_regs_in_insn): Likewise.
959 (emit_input_reload_insns): Add cast to enum type.
960 (delete_output_reload): Change 0 to VOIDmode in function call.
961 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
962 to enum type in function call.
963 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
964 (SET_PREDICT_EXPR_OUTCOME): Define.
965 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
966 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
967 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
968 (dump_function): Likewise.
969 * tree-dump.h: Update declarations.
970 * tree-pass.h: Update declarations.
971 * varasm.c (assemble_integer): Change mclass to enum mode_class.
972 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
974 (arm_rtx_costs_1): Correct parenthesization.
975 (arm_rtx_costs): Add casts to enum type.
976 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
977 (vfp_emit_fstmd): Use add_rg_note.
978 (emit_multi_reg_push, emit_sfm): Likewise.
979 (thumb_set_frame_pointer): Likewise.
980 (arm_expand_prologue): Likewise.
981 (arm_regno_class): Change return type to enum reg_class.
982 (thumb1_expand_prologue): Use add_reg_note.
983 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
984 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
986 * config/arm/gentune.sh: Add cast to enum type.
987 * config/arm/arm-tune.md: Rebuild.
988 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
989 (ix86_split_fp_branch, predict_jump): Likewise.
990 (ix86_expand_multi_arg_builtin): Change sub_code from enum
991 insn_code to enum rtx_code.
992 (ix86_builtin_vectorized_function): Add cast to enum type.
993 * config/i386/i386.md (truncdfsf2): Change slot to enum
995 (truncxf<mode>2, isinf<mode>2): Likewise.
996 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
998 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
999 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
1000 (insert_bundle_state): Change 1 to INSERT in function call.
1001 (ia64_add_bundle_selector_before): Likewise.
1002 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
1003 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
1004 (restore_stack_nonlocal): Likewise.
1005 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
1007 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
1009 (mips_rtx_costs): Likewise.
1010 (mips_override_options): Add casts to enum type.
1011 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
1013 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
1014 (store_reg, set_reg_plus_d): Likewise.
1015 (hppa_expand_prologue, hppa_profile_hook): Likewise.
1016 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1018 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
1020 (emit_unlikely_jump): Use add_reg_note.
1021 (rs6000_emit_allocate_stack): Likewise.
1022 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
1023 (output_toc): Change 1 to INSERT in function call.
1024 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
1025 (rs6000_initialize_trampoline): Likewise.
1026 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
1028 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
1029 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
1030 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
1031 (save_gprs): Use add_reg_note.
1032 (s390_emit_prologue): Likewise.
1033 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
1034 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
1035 (sparc_fold_builtin): Add cast to enum type.
1036 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
1038 (spu_expand_prologue): Use add_reg_note.
1039 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
1041 2009-04-20 Ian Lance Taylor <iant@google.com>
1043 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
1044 (c_parser_postfix_expression_after_primary): Get VEC for list of
1045 arguments. Get original types of arguments. Call
1046 build_function_call_vec.
1047 (cached_expr_list_1, cached_expr_list_2): New static variables.
1048 (c_parser_expr_list): Change return type to VEC *. Add
1049 p_orig_types parameter. Change all callers.
1050 (c_parser_release_expr): New static function.
1051 (c_parser_vec_to_tree_list): New static function.
1052 * c-typeck.c (build_function_call): Rewrite to build a VEC and
1053 call build_function_call_vec.
1054 (build_function_call_vec): New function, based on old
1055 build_function_call.
1056 (convert_arguments): Remove nargs and argarray parameters. Change
1057 values to a VEC. Add origtypes parameter.
1058 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
1059 (convert_for_assignment): Add origtype parameter. Change all
1060 callers. If warn_cxx_compat, check for conversion to an enum
1061 type when calling a function.
1062 (store_init_value): Add origtype parameter. Change all callers.
1063 (digest_init): Likewise.
1064 (struct init_node): Add origtype field.
1065 (add_pending_init): Add origtype parameter. Change all callers.
1066 (output_init_element): Likewise.
1067 (output_pending_init_elements): Pass origtype from init_node to
1068 output_init_element.
1069 (process_init_element): Pass origtype from c_expr to
1070 output_init_element.
1071 (c_finish_return): Add origtype parameter. Change all callers.
1072 * c-common.c (sync_resolve_size): Change params to VEC *. Change
1074 (sync_resolve_params): Likewise.
1075 (sync_resolve_return): Change params to first_param. Change caller.
1076 (resolve_overloaded_builtins): Change params to VEC *. Change
1077 callers. Save first parameter around call to build_function_call_vec.
1078 * c-decl.c (finish_decl): Add origtype parameter. Change all
1079 callers. Call build_function_call_vec rather than
1080 build_function_call for cleanup.
1081 * c-tree.h: Update declarations.
1082 * c-common.h: Update declarations.
1083 * stub-objc.c (objc_rewrite_function_call): Change parameter from
1084 params to first_param.
1085 * target.h (struct gcc_target): Change resolve_overloaded_builtin
1086 params parameter from tree to void *.
1087 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1088 Change arglist parameter to have type void *, and to be a pointer
1090 * config/rs6000/rs6000-protos.h
1091 (altivec_resolve_overloaded_builtin): Update declaration.
1092 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
1093 fnargs parameter to have type void *, and to be a pointer to a
1094 VEC. Call build_function_call_vec instead of
1095 build_function_call.
1096 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
1098 2009-04-20 Joey Ye <joey.ye@intel.com>
1099 Xuepeng Guo <xuepeng.guo@intel.com>
1100 H.J. Lu <hongjiu.lu@intel.com>
1102 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
1104 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
1105 (IX86_LEA_PRIORITY): Likewise.
1106 (distance_non_agu_define): New function.
1107 (distance_agu_use): Likewise.
1108 (ix86_lea_for_add_ok): Likewise.
1109 (ix86_dep_by_shift_count): Likewise.
1111 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
1112 should split for LEA.
1114 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
1116 (ix86_dep_by_shift_count): Likewise.
1118 2009-04-20 Richard Guenther <rguenther@suse.de>
1120 * expr.c (handled_component_p): Move ...
1121 * tree.h (handled_component_p): ... here.
1122 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
1123 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
1124 and REALPART_EXPR to be in one group.
1126 2009-04-20 Richard Guenther <rguenther@suse.de>
1128 * basic-block.h (get_all_dominated_blocks): Declare.
1129 * dominance.c (get_all_dominated_blocks): New function.
1130 * tree-cfg.c (get_all_dominated_blocks): Remove.
1131 (remove_edge_and_dominated_blocks): Adjust.
1132 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
1133 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
1134 instead of recursing.
1136 2009-04-20 Doug Kwan <dougkwan@google.com>
1138 * cgraph.h (cgraph_node_ptr): New type for vector functions.
1139 (struct cgraph_node_set_def): New type.
1140 (cgraph_node_set) New type. Also declare vector functions.
1141 (struct cgraph_node_set_element_def): New type.
1142 (cgraph_node_set_element): Ditto.
1143 (cgraph_node_set_iterator): New iterator type.
1144 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
1145 cgraph_node_set_remove, dump_cgraph_node_set,
1146 debug_cgraph_node_set): New prototypes.
1147 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
1148 cgraph_node_set_size): New inlines.
1149 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
1151 (struct ipa_opt_pass): Add struct cgraph_node_set_def
1152 argument to function 'write_summary'.
1153 * ipa.c: Include ggc.h.
1154 (hash_cgraph_node_set_element,
1155 eq_cgraph_node_set_element, cgraph_node_set_new,
1156 cgraph_node_set_add, cgraph_node_set_remove,
1157 cgraph_node_set_find, dump_cgraph_node_set,
1158 debug_cgraph_node_set): New functions.
1159 * Makefile.in (ipa.o): Add dependency on GGC_H.
1161 2009-04-20 Ira Rosen <irar@il.ibm.com>
1163 PR tree-optimization/39675
1164 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
1165 check of the return code of vect_schedule_slp. Check that
1166 stmt_vec_info still exists for the statement, before checking its
1169 2009-04-20 Michael Matz <matz@suse.de>
1171 * Makefile.in (generated_files): Take out $(simple_generated_c).
1173 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
1175 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
1176 (UINTPTR_TYPE): Likewise.
1178 2009-04-19 Joseph Myers <joseph@codesourcery.com>
1181 * c-typeck.c (digest_init): Check for initializing an array with a
1184 2009-04-19 Joseph Myers <joseph@codesourcery.com>
1187 * c-semantics.c (pop_stmt_list): Propagate
1188 STATEMENT_LIST_HAS_LABEL to parent statement list.
1190 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
1192 * config/mips/mips.h (mips_tune_attr): New macro.
1193 * config/mips/mips.md (cpu): Use it.
1195 2009-04-19 Joseph Myers <joseph@codesourcery.com>
1198 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
1201 2009-04-19 Diego Novillo <dnovillo@google.com>
1203 * toplev.c (compile_file): Move call to coverage_finish ...
1204 * cgraphunit.c (ipa_passes): ... here.
1205 Call cgraph_process_new_functions.
1206 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
1207 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
1209 2009-04-19 Jan Hubicka <jh@suse.cz>
1211 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
1213 (dump_cgraph_node): Dump can throw external flag.
1214 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
1216 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1220 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
1221 * common.opt (Wlogical-op): Move from here...
1222 * c.opt (Wlogical-op): ... to here.
1223 * c-typeck.c (parser_build_binary_op): Update call to
1224 warn_logical_operator.
1225 * c-opts.c (c_common_post_options): Enable warn_logical_op with
1227 * c-common.c (warn_logical_op): Update.
1228 * c-common.h (warn_logical_op): Update declaration.
1230 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
1232 * tree.c (protected_set_expr_location): Fix formatting.
1234 2009-04-18 Joseph Myers <joseph@codesourcery.com>
1237 * c-typeck.c (readonly_warning): new.
1238 (build_unary_op, build_modify_expr): Use readonly_warning for
1239 storing into something readonly but not const-qualified.
1241 2009-04-18 Joseph Myers <joseph@codesourcery.com>
1244 * c-typeck.c (build_unary_op): Check for taking address of
1245 expression of type void.
1247 2009-04-18 Joseph Myers <joseph@codesourcery.com>
1250 * c-typeck.c (build_function_call): Check for calling a function
1251 with qualified void return types. Call require_complete_type when
1254 2009-04-18 Jan Hubicka <jh@suse.cz>
1256 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
1258 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
1259 can_throw_external flag.
1260 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
1261 * ipa-pure-const.c (ignore_edge): New function.
1262 (propagate): Compute order for NOTHROW computation; set NOTHROWs
1263 only over can_throw_external edges.
1264 (local_pure_const): Add nothrow flag.
1265 * ipa-utils.c (searchc): Add ignore_edge callback.
1266 (ipa_utils_reduced_inorder): Add ignore_edge callback.
1267 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
1268 (set_nothrow_function_flags): Update cgraph.
1269 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
1271 2009-04-18 Richard Guenther <rguenther@suse.de>
1274 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
1275 (fold_stmt): ... this and ...
1276 (fold_stmt_inplace): ... this.
1277 (fold_stmt_1): Fold references in calls and asms.
1278 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
1280 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
1282 * tree-vrp.c (ssa_name_nonzero_p): Remove.
1283 * tree.h: Remove the prototype for ssa_name_nonzero_p.
1285 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
1287 * tree.c (function_args_count): Remove.
1288 * tree.h: Remove the prototype for function_args_count.
1290 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
1292 * tree-iterator.c (expr_only): Remove.
1293 * tree.h: Remove the prototype for expr_only.
1295 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
1297 * reginfo.c (cannot_change_mode_set_regs): Remove.
1298 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
1300 2009-04-08 Anatoly Sokolov <aesok@post.ru>
1302 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
1303 whether operands 0 and 1 overlaps.
1305 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1308 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
1309 pointer. Use warning_at instead of warning.
1310 (search_for_addr_array): Likewise.
1311 (check_array_bounds): Likewise.
1312 (check_all_array_refs): Check that the incoming edge is not in the
1313 list of edges to be removed.
1314 (check_all_array_refs): Avoid the temporal pointer.
1315 (vrp_visit_cond_stmt): Fix typo.
1316 (simplify_switch_using_ranges): Handle the case where the switch
1317 index is an integer constant.
1319 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
1321 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
1323 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
1325 * doc/extend.texi, doc/invoke.texi: Fix typos.
1327 2009-04-17 Cary Coutant <ccoutant@google.com>
1329 * tree-flow-inline.h (get_lineno): Fix inverted test.
1331 2009-04-17 Diego Novillo <dnovillo@google.com>
1333 * tree-ssa-pre.c (create_expression_by_pieces): Remove
1334 assertion for AVAIL_OUT.
1336 2009-04-17 Mike Frysinger <vapier@gentoo.org>
1339 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
1340 * config/sh/linux-atomic.asm: Likewise.
1342 2009-04-17 Diego Novillo <dnovillo@google.com>
1344 * except.c (debug_eh_tree): New.
1345 (struct eh_region, struct eh_status): Move ...
1346 * except.h: ... here.
1347 (add_type_for_runtime): Declare extern.
1348 (lookup_type_for_runtime): Likewise.
1349 (debug_eh_tree): Declare.
1350 * Makefile.in (GTFILES): List except.h before except.c
1352 2009-04-17 Diego Novillo <dnovillo@google.com>
1354 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
1355 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
1356 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
1357 (find_vars_r): ... here.
1358 * tree-flow.h (find_referenced_vars_in): Declare.
1359 * tree-ssa-pre.c (create_expression_by_pieces): Assert
1360 that AVAIL_OUT exists for BLOCK.
1361 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
1362 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
1363 (tree-parloops.o): Likewise.
1365 2009-04-17 Simon Baldwin <simonb@google.com>
1367 * toplev.c (default_tree_printer): Add handling for %E format.
1369 2009-04-17 Diego Novillo <dnovillo@google.com>
1371 * tree-pretty-print.c (dump_generic_node): Add break after
1372 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
1373 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
1374 FUNCTION_TYPE together. Call print_struct_decl when printing
1375 structures and TDF_SLIM is not given.
1376 (print_struct_decl): Fix logic for detecting recursion.
1378 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
1381 * gcc.c (create_at_file): New.
1382 (compile_input_file_p): New.
1383 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
1384 * main.c (main): Update call to toplev_main.
1385 * toplev.c (toplev_main): Change signature. Call expandargv.
1386 * toplev.h (toplev_main): Change signature.
1388 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
1390 * dwarf2out.c (field_byte_offset): Use the type size as the field size
1391 if the latter is not constant.
1393 2009-04-17 David Edelsohn <edelsohn@gnu.org>
1395 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
1397 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
1399 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
1400 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
1402 2009-04-17 Richard Guenther <rguenther@suse.de>
1404 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1405 Handle component references view-converting an invariant address.
1407 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
1409 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
1410 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
1411 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
1412 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
1413 Use @deftypevr rather than @deftypevar.
1415 2009-04-17 Richard Guenther <rguenther@suse.de>
1417 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
1418 (get_prop_source_stmt): Likewise.
1419 (can_propagate_from): Likewise.
1421 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
1423 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
1424 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
1425 (--with-multilib-list): Add default value.
1426 * configure: Regenerate.
1427 * Makefile.in (TM_ENDIAN_CONFIG): Define.
1428 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
1429 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
1430 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
1431 Don't add default cpu to multilib list unnecessarily, but do enable
1432 the relevant compiler option..
1433 Add support for --with-multilib-list=<blank> and
1434 --with-multilib-list=!<somelib> to supress unwanted multilibs.
1435 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
1436 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
1437 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
1439 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
1440 (MULTILIB_OSDIRNAMES): New variable.
1441 * config/sh/t-1e: Delete file.
1442 * config/sh/t-mlib-sh1: Delete file.
1443 * config/sh/t-mlib-sh2: Delete file.
1444 * config/sh/t-mlib-sh2a: Delete file.
1445 * config/sh/t-mlib-sh2a-nofpu: Delete file.
1446 * config/sh/t-mlib-sh2a-single: Delete file.
1447 * config/sh/t-mlib-sh2a-single-only: Delete file.
1448 * config/sh/t-mlib-sh2e: Delete file.
1449 * config/sh/t-mlib-sh3e: Delete file.
1450 * config/sh/t-mlib-sh4: Delete file.
1451 * config/sh/t-mlib-sh4-nofpu: Delete file.
1452 * config/sh/t-mlib-sh4-single: Delete file.
1453 * config/sh/t-mlib-sh4-single-only: Delete file.
1454 * config/sh/t-mlib-sh4a: Delete file.
1455 * config/sh/t-mlib-sh4a-nofpu: Delete file.
1456 * config/sh/t-mlib-sh4a-single: Delete file.
1457 * config/sh/t-mlib-sh4a-single-only: Delete file.
1458 * config/sh/t-mlib-sh4al: Delete file.
1459 * config/sh/t-mlib-sh5-32media: Delete file.
1460 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
1461 * config/sh/t-mlib-sh5-64media: Delete file.
1462 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
1463 * config/sh/t-mlib-sh5-compact: Delete file.
1464 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
1465 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
1466 * doc/install.texi (Options specification): Add
1467 --with-multilib-list and --with-endian.
1469 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
1471 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
1473 (OBJS-common): Add plugin-version.o.
1474 (plugin-version.o): New.
1475 * gcc-plugin.h (plugin_gcc_version): New.
1476 (plugin_default_version_check): New.
1477 (plugin_init_func, plugin_init): Add version argument.
1478 * plugin-version.c: New.
1479 * plugin.c (str_plugin_gcc_version_name): New.
1480 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
1481 pass it to the init function.
1482 (plugin_default_version_check): New.
1484 2009-04-17 Richard Guenther <rguenther@suse.de>
1486 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
1487 for decl-vs-decl disambiguation.
1489 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
1491 * config/s390/s390.h (s390_tune_attr): New macro definition.
1492 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
1494 2009-04-17 Richard Guenther <rguenther@suse.de>
1496 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
1497 (fold_stmt_r): Likewise.
1498 (maybe_fold_reference): New function.
1499 (fold_gimple_assign): Handle cases fold_stmt_r did.
1500 (fold_stmt): Do not use fold_stmt_r.
1501 (fold_stmt_inplace): Likewise.
1503 2009-04-17 Richard Guenther <rguenther@suse.de>
1505 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
1506 (record_equivalences_from_stmt): Remove useless checks and
1508 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
1509 the type is already suitable.
1511 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
1513 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
1515 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
1517 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
1518 (CMPtype): Define as __gcc_CMPtype.
1520 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
1522 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
1523 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
1525 2009-04-17 Richard Guenther <rguenther@suse.de>
1527 PR tree-optimization/39746
1528 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
1529 special-casing for builtins and static variable use/def.
1530 (call_may_clobber_ref_p_1): Likewise.
1532 2009-04-16 Ian Lance Taylor <iant@google.com>
1534 * df.h: Include "timevar.h".
1535 (struct df_problem): Change tv_id field to timevar_id_t.
1536 * tree-pass.h: Include "timevar.h".
1537 (struct opt_pass): Change tv_id field to timevar_id_t.
1538 * timevar.h (timevar_id_t): Define TV_NONE.
1539 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
1540 TV_NONE rather than tv_id != 0.
1541 (execute_one_pass): Likewise.
1542 * Makefile.in (DF_H): Add $(TIMEVAR_H).
1543 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
1544 dependencies to $(TREE_PASS_H).
1545 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
1547 (pass_branch_target_load_optimize2): Likewise.
1548 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
1549 (pass_outof_cfg_layout_mode): Likewise.
1550 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
1551 (pass_rebuild_cgraph_edges): Likewise.
1552 (pass_remove_cgraph_callee_edges): Likewise.
1553 * df-core.c (pass_df_initialize_opt): Likewise.
1554 (pass_df_initialize_no_opt): Likewise.
1555 (pass_df_finish): Likewise.
1556 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
1557 * except.c (pass_set_nothrow_function_flags): Likewise.
1558 (pass_convert_to_eh_region_ranges): Likewise.
1559 * final.c (pass_compute_alignments): Likewise.
1560 * function.c (pass_instantiate_virtual_regs): Likewise.
1561 (pass_init_function): Likewise.
1562 (pass_leaf_regs): Likewise.
1563 (pass_match_asm_constraints): Likewise.
1564 * gimple-low.c (pass_lower_cf): Likewise.
1565 (pass_mark_used_blocks): Likewise.
1566 * init-regs.c (pass_initialize_regs): Likewise.
1567 * integrate.c (pass_initial_value_sets): Likewise.
1568 * ira.c (pass_ira): Likewise.
1569 * jump.c (pass_cleanup_barriers): Likewise.
1570 * omp-low.c (pass_expand_omp): Likewise.
1571 (pass_lower_omp): Likewise.
1572 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
1573 * recog.c (pass_split_all_insns): Likewise.
1574 (pass_split_after_reload): Likewise.
1575 (pass_split_before_regstack): Likewise.
1576 (pass_split_before_sched2): Likewise.
1577 (pass_split_for_shorten_branches): Likewise.
1578 * reginfo.c (pass_reginfo_init): Likewise.
1579 (pass_subregs_of_mode_init): Likewise.
1580 (pass_subregs_of_mode_finish): Likewise.
1581 * passes.c (pass_postreload): Likewise.
1582 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
1583 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
1584 (pass_warn_function_return): Likewise.
1585 (pass_warn_function_noreturn): Likewise.
1586 * tree-complex.c (pass_lower_complex): Likewise.
1587 (pass_lower_complex_O0): Likewise.
1588 * tree-if-conv.c (pass_if_conversion): Likewise.
1589 * tree-into-ssa.c (pass_build_ssa): Likewise.
1590 * tree-mudflap.c (pass_mudflap_1): Likewise.
1591 (pass_mudflap_2): Likewise.
1592 * tree-nomudflap.c (pass_mudflap_1): Likewise.
1593 (pass_mudflap_2): Likewise.
1594 * tree-nrv.c (pass_return_slot): Likewise.
1595 * tree-object-size.c (pass_object_sizes): Likewise.
1596 * tree-optimize.c (pass_all_optimizations): Likewise.
1597 (pass_early_local_passes): Likewise.
1598 (pass_all_early_optimizations): Likewise.
1599 (pass_cleanup_cfg): Likewise.
1600 (pass_cleanup_cfg_post_optimizing): Likewise.
1601 (pass_free_datastructures): Likewise.
1602 (pass_free_cfg_annotations): Likewise.
1603 (pass_fixup_cfg): Likewise.
1604 (pass_init_datastructures): Likewise.
1605 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
1606 (pass_late_warn_uninitialized): Likewise.
1607 (pass_update_address_taken): Likewise.
1608 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
1609 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
1610 (pass_cse_sincos): Likewise.
1611 (pass_convert_to_rsqrt): Likewise.
1612 * tree-ssa-structalias.c (pass_build_alias): Likewise.
1613 * tree-stdarg.c (pass_stdarg): Likewise.
1614 * tree-tailcall.c (pass_tail_recursion): Likewise.
1615 (pass_tail_calls): Likewise.
1616 * tree-vect-generic.c (pass_lower_vector): Likewise.
1617 (pass_lower_vector_ssa): Likewise.
1618 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
1620 2009-04-16 Joseph Myers <joseph@codesourcery.com>
1622 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
1624 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
1626 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
1627 logical and signext.
1629 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
1632 * config/sh/predicates.md (arith_operand): Check if the operand
1633 of TRUNCATE is a REG.
1635 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1637 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
1638 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
1640 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1642 * tree-iterator.c (tsi_split_statement_list_after,
1643 tsi_split_statement_list_before): Remove.
1644 * tree-iterator.h: Remove the prototypes for
1645 tsi_split_statement_list_after and tsi_split_statement_list_before.
1647 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1649 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
1650 * tree-ssa-propagate.h: Remove the prototype for
1651 stmt_makes_single_load.
1653 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1655 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
1656 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
1658 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1660 * tree-iterator.c (EXPR_LAST_BODY): Remove.
1662 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1664 * except.c (eh_region_outer_p): Remove.
1665 * except.h: Remove the prototype for eh_region_outer_p.
1667 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1669 * function.c (current_function_assembler_name): Remove.
1670 * function.h: Remove the prototype for
1671 current_function_assembler_name.
1673 2009-04-16 Ian Lance Taylor <iant@google.com>
1675 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
1676 (add_reg_note): Call alloc_reg_note.
1677 * rtl.h (alloc_reg_note): Declare.
1678 * combine.c (try_combine): Use alloc_reg_note.
1679 (recog_for_combine, move_deaths): Likewise.
1680 (distribute_notes): Use alloc_reg_note and add_reg_note.
1681 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
1682 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
1683 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
1685 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
1687 PR rtl-optimization/39762
1688 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
1689 ira_may_move_out_cost): Add comments about way of their usage.
1690 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
1692 * ira-conflicts.c (process_regs_for_copy): Use function
1693 ira_get_register_move_cost instead of global
1694 ira_register_move_cost.
1696 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
1697 color_pass, move_spill_restore, update_curr_costs): Ditto.
1699 * ira-lives.c (process_single_reg_class_operands): Ditto.
1701 * ira-emit.c (emit_move_list): Ditto.
1703 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
1704 (record_reg_classes): Ditto. Use functions
1705 ira_get_register_move_cost and ira_get_may_move_cost instead of
1706 global vars ira_register_move_cost, ira_may_move_out_cost and
1707 ira_may_move_in_cost.
1708 (record_address_regs): Don't call ira_init_register_move_cost.
1709 Use function ira_get_may_move_cost instead of global
1710 ira_may_move_in_cost.
1711 (process_bb_node_for_hard_reg_moves): Use function
1712 ira_get_register_move_cost instead of global ira_register_move_cost.
1713 (ira_costs): Don't call ira_init_register_move_cost.
1715 2009-04-16 Richard Guenther <rguenther@suse.de>
1717 * tree-cfg.c (verify_gimple_assign_binary):
1718 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
1719 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
1720 (create_general_new_stmt): Note that this function is broken.
1722 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
1724 * common.opt (fhelp): Add Var(help_flag).
1725 * gcc-plugin.h (plugin_info): Add help.
1726 * plugin.c (plugin_name_args): Add help.
1727 (register_plugin_info): Set plugin->help.
1728 (print_help_one_plugin): New.
1729 (print_plugins_help): New.
1730 * plugin.h (print_plugins_help): New.
1731 * toplev.c (toplev_main): Call print_plugins_help if needed.
1733 2009-04-16 Richard Guenther <rguenther@suse.de>
1735 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
1736 (gimple_ior_addresses_taken_1): New function.
1737 (gimple_ior_addresses_taken): Likewise.
1738 * gimple.h (struct gimple_statement_with_ops_base): Remove
1739 addresses_taken member.
1740 (gimple_ior_addresses_taken): Declare.
1741 (gimple_addresses_taken, gimple_addresses_taken_ptr,
1742 gimple_set_addresses_taken): Remove.
1743 * ipa-reference.c (mark_address): New function.
1744 (scan_stmt_for_static_refs): Use it for marking addresses taken.
1745 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
1746 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
1747 (gimple_add_to_addresses_taken): Remove.
1748 (get_tmr_operands): Call mark_address_taken.
1749 (get_asm_expr_operands): Likewise.
1750 (get_expr_operands): Likewise.
1751 (build_ssa_operands): Do not clear the addresses_taken bitmap.
1752 (free_stmt_operands): Do not free it.
1753 * tree-ssa.c (delete_tree_ssa): Likewise.
1754 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
1756 2009-04-16 Richard Guenther <rguenther@suse.de>
1758 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
1759 (walk_stmt_load_store_ops): Likewise.
1760 * gimple.c (get_base_loadstore): New function.
1761 (walk_stmt_load_store_addr_ops): Likewise.
1762 (walk_stmt_load_store_ops): Likewise.
1763 * ipa-pure-const.c (check_op): Simplify.
1764 (check_load, check_store): New functions.
1765 (check_stmt): Use walk_stmt_load_store_ops.
1766 * ipa-reference.c (mark_load): Adjust signature.
1767 (mark_store): Likewise.
1768 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
1770 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
1772 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
1774 * opts.c (common_handle_option): Don't call print_version.
1775 * plugin.c (plugin_name_args): Add version.
1776 (register_plugin_info): New.
1777 (register_callback): Handle PLUGIN_INFO.
1778 (try_init_one_plugin): New.
1779 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
1781 (finalize_one_plugin): New.
1782 (finalize_plugins): New.
1783 (print_one_plugin): New.
1784 (print_plugins_versions): New.
1785 * plugin.h (print_plugins_versions): New.
1786 (finalize_plugins): New.
1787 * toplev.c (compile_file): Don't call initialize_plugins.
1788 (print_version): Call print_plugins_versions.
1789 (toplev_main): Call initialize_plugins. Print version if needed.
1790 Call finalize_plugins.
1792 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
1794 * common.opt (fversion): New.
1795 * gcc.c (print_version): New.
1796 (process_command): Don't print the version. Just set print_version.
1797 (main): Print version. Call subprocesses if print_version and
1798 verbose_flag are set.
1799 * opts.c (common_handle_option): Handle OPT_fversion.
1801 2009-04-16 Richard Guenther <rguenther@suse.de>
1802 Ira Rosen <irar@il.ibm.com>
1804 PR tree-optimization/39698
1805 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
1806 type of the reduction variable. Only generate the def if
1809 * omp-low.c (expand_omp_for_generic): When converting to a pointer
1810 make sure to first convert to an integer of the same precision.
1811 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
1812 the type of the evolution correctly in computing the new
1813 induction variable base.
1815 2009-04-16 Richard Guenther <rguenther@suse.de>
1818 * tree-cfg.c (make_blocks): Split statements with to-be
1819 abnormal SSA names on the lhs.
1821 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
1823 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
1824 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
1825 * c-typeck.c (really_start_incremental_init): Likewise.
1826 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
1827 (TARGET_INITIALIZER): Remove it.
1828 * target.h (struct target): Remove vector_opaque_p.
1829 * tree.c (build_opaque_vector_type): New.
1830 * tree.h (TYPE_VECTOR_OPAQUE): New.
1831 (build_opaque_vector_type): Declare.
1832 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
1833 * config/rs6000/rs6000.c (build_opaque_vector_type,
1834 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
1835 (rs6000_init_builtins): Use build_opaque_vector_type for
1836 opaque_V4SI_type_node.
1838 2009-04-15 Catherine Moore <clm@codesourcery.com>
1840 * debug.h (set_name): Declare.
1841 * dwarf2out.c (dwarf2out_set_name): Declare.
1842 (dwarf2_debug_hooks): Add set_name.
1843 (find_AT_string): New.
1844 (add_AT_string): Call find_AT_string.
1845 (dwarf2out_set_name): New.
1846 * cp/decl.c (grokdeclarator): Call set_name.
1847 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
1848 * debug.c (do_nothing_debug_hooks): Likewise.
1849 * dbxout.c (dbx_debug_hooks): Likewise.
1850 * sdbout.c (sdb_debug_hooks): Likewise.
1852 2009-04-15 Michael Eager <eager@eagercon.com>
1854 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
1855 reg for single-precision FPU.
1856 * config/rs6000/rs6000.md (movsi_internal1): Only for
1858 (movsi_internal1_single): New. Add pattern to move SI values to/from
1859 single-precision FP regs.
1861 2009-04-15 Richard Guenther <rguenther@suse.de>
1863 * omp-low.c (lower_rec_input_clauses): Build correct address
1865 (expand_omp_for_generic): Fix multiplication type.
1866 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
1867 (generate_memset_zero): Fix types.
1868 * tree-profile.c (prepare_instrumented_value): Correctly
1871 2009-04-15 Ian Lance Taylor <iant@google.com>
1873 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
1874 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
1875 for -Wall and for -Wc++-compat.
1876 (c_common_post_options): For C++, set warn_enum_compare if not
1878 * c-tree.h (struct c_expr): Add field original_type.
1879 (build_external_ref): Update declaration.
1880 * c-parser.c (c_parser_braced_init): Set original_type.
1881 (c_parser_initelt): Likewise.
1882 (c_parser_expr_no_commas): Likewise.
1883 (c_parser_conditional_expression): Likewise.
1884 (c_parser_cast_expression): Likewise.
1885 (c_parser_unary_expression): Likewise. Pull setting of
1886 original_code to top of function.
1887 (c_parser_sizeof_expression): Set original_type.
1888 (c_parser_alignof_expression): Likewise.
1889 (c_parser_postfix_expression): Likewise. Pull setting of
1890 original_code to top of function.
1891 (c_parser_postfix_expression_after_paren_type): Set original_type.
1892 (c_parser_postfix_expression_after_primary): Likewise.
1893 (c_parser_expression): Likewise.
1894 * c-typeck.c (build_external_ref): Add type parameter. Change all
1896 (c_expr_sizeof_expr): Set original_type field.
1897 (parser_build_unary_op): Likewise.
1898 (parser_build_binary_op): Likewise. Optionally warn about
1899 comparisons of enums of different types.
1900 (digest_init): Set original_type field.
1901 (really_start_incremental_init): Likewise.
1902 (push_init_level, pop_init_level): Likewise.
1903 * doc/invoke.texi (Warning Options): -Wenum-compare now
1906 2009-04-15 Richard Guenther <rguenther@suse.de>
1908 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
1909 out a necessary conversion.
1910 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
1911 names we didn't value number.
1912 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
1914 2009-04-15 Richard Guenther <rguenther@suse.de>
1916 PR tree-optimization/39764
1917 * tree-ssa-ccp.c (get_value): Canonicalize value with
1918 canonicalize_float_value.
1920 2009-04-15 Jan Hubicka <jh@suse.cz>
1922 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
1923 Wrong version of patch.
1925 2009-04-15 Jan Hubicka <jh@suse.cz>
1927 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
1929 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
1931 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
1932 our distinct integral and vector types.
1934 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
1936 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
1937 * init.c (build_vtbl_address): Remove call to assemble_external.
1939 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1941 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
1942 output for other floating point modes.
1944 2009-04-14 Diego Novillo <dnovillo@google.com>
1946 * diagnostic.c (diagnostic_report_diagnostic): Do not
1947 warn about loaded plugins for DK_ERROR and DK_WARNING.
1948 * c-decl.c (declspecs_add_type): Move call to
1949 invoke_plugin_callbacks ...
1950 * c-parser.c (c_parser_declspecs): ... here.
1951 * plugin.c (dump_active_plugins): Tidy output.
1953 2009-04-14 Diego Novillo <dnovillo@google.com>
1954 Le-Chun Wu <lcwu@google.com>
1956 * configure.ac: Add --enable-plugin support.
1957 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
1958 * Makefile.in (PLUGIN_H): Define.
1959 Export ENABLE_PLUGIN and GMPINC to site.exp.
1960 Add PLUGINLIBS to link command.
1961 Add/modify dependencies for plugin.o and files including plugin.h.
1963 * config.in: Regenerate.
1965 * opts.c (common_handle_option): Handle OPT_fplugin_ and
1968 2009-04-14 Le-Chun Wu <lcwu@google.com>
1970 * tree-pass.h (register_one_dump_file): Add a prototype for
1971 register_one_dump_file.
1972 * toplev.c (compile_file): Call initialize_plugins.
1973 (do_compile): Call invoke_plugin_callbacks.
1974 (toplev_main): Call invoke_plugin_callbacks.
1975 * common.opt: Add -fplugin= and -fplugin-arg-.
1976 * gcc-plugin.h: New public header file for plugins to include.
1977 * plugin.c: New source file.
1978 * plugin.h: New internal header file.
1979 * passes.c (register_one_dump_file): Make it external.
1981 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
1983 2009-04-14 Diego Novillo <dnovillo@google.com>
1985 * doc/plugins.texi: New.
1986 * doc/gccint.texi: Add reference to Plugins chapter.
1987 * doc/invoke.texi: Document -fplugin and -fplugin-arg
1988 * diagnostic.c (diagnostic_report_diagnostic): Warn about
1989 loaded plugins, if any.
1990 * timevar.def (TV_PLUGIN_INIT): Define.
1991 (TV_PLUGIN_RUN): Define.
1992 * plugin.c: Include timevar.h
1993 (plugins_active_p): New.
1994 (dump_active_plugins): New.
1995 (debug_active_plugins): New.
1997 2009-04-14 Joseph Myers <joseph@codesourcery.com>
1999 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
2001 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
2003 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
2005 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
2006 the same as a minus without a shift.
2008 2009-04-14 Nick Clifton <nickc@redhat.com>
2010 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
2011 comparisons with small integers will always produce a short
2014 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
2017 2008-12-19 Diego Novillo <dnovillo@google.com>
2019 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
2021 2009-04-14 Richard Guenther <rguenther@suse.de>
2023 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
2025 (verify_gimple_assign_binary): Likewise. Handle shifts and
2027 (verify_gimple_phi): Print the mismatched argument position.
2028 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
2030 (vect_update_init_of_dr): Likewise.
2031 * matrix-reorg.c (transform_access_sites): Do what the
2033 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
2035 2009-04-13 Michael Eager <eager@eagercon.com>
2037 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
2038 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
2039 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
2040 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
2041 remove duplicate config
2043 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2045 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
2046 file_name:line_number type locator of the call site.
2048 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
2050 * genautomata.c: Put blank after comma.
2051 (automaton_decls): New.
2052 (struct unit_usage): Add comments to member next.
2053 (store_alt_unit_usage): Keep the list ordered.
2054 (unit_present_on_list_p, equal_alternatives_p): New.
2055 (check_regexp_units_distribution): Check units distribution
2056 correctness correctly.
2057 (main): Don't write automata if error is found. Return correct
2060 * config/m68k/cf.md (cfv4_ds): Remove.
2061 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
2062 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
2064 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
2065 power4-load-ext, power4-store, power4-store-update,
2066 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
2067 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
2068 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
2069 power4-sqrt, power4-isync): Modify reservation to make correct
2070 unit distribution to automata.
2072 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
2073 power5-store-update, power5-two, power5-three, power5-lmul,
2074 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
2076 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
2078 * except.c (pass_set_nothrow_function_flags): Set name and add
2080 (set_nothrow_function_flags): Mention in the dump file when
2081 changing a function to nothrow.
2083 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
2086 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
2087 instead of unsigned long.
2089 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2091 * config/arm/arm.c (return_used_this_function): Remove.
2092 (arm_output_function_prologue): Remove use of
2093 return_used_this_function.
2094 (output_return_instruction): Replace use of
2095 return_used_this_function
2096 by cfun->machine->return_used_this_function.
2097 (arm_output_epilogue): Likewise.
2098 (arm_output_function_epilogue): Likewise.
2099 (thumb_unexpanded_epilogue): Likewise.
2100 * config/arm/arm.h (struct machine_function):
2101 New member return_used_this_function.
2103 2009-04-12 Mark Mitchell <mark@codesourcery.com>
2105 * doc/install.texi: Correct description of default directory for
2106 --with-gxx-include-dir.
2108 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
2110 * fold-const.c (build_range_check): Properly deal with enumeral and
2113 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
2115 * doc/invoke.texi (max_gcse_passes): Remove documentation.
2116 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
2117 * params.h (MAX_GCSE_PASSES): Remove.
2118 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
2119 in sequence. Remove ability to run multiple passes.
2120 (bypass_jumps): Report run as third CPROP pass.
2122 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
2125 * except.c (can_throw_external): Look at each insn in a SEQUENCE
2126 when deciding whether the whole SEQUENCE can throw.
2128 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
2131 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
2132 offseted label references.
2134 2009-04-11 Jan Hubicka <jh@suse.cz>
2136 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
2138 2009-04-11 Richard Guenther <rguenther@suse.de>
2141 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
2142 return variables as TREE_ADDRESSABLE.
2144 2009-04-11 Richard Guenther <rguenther@suse.de>
2146 PR tree-optimization/39713
2147 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
2148 reference trees have SSA_NAME operands.
2150 2009-04-11 Richard Guenther <rguenther@suse.de>
2153 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
2154 address expressions.
2156 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
2158 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
2159 match changes in Cygwin 1.7
2160 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
2161 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
2163 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
2165 PR tree-optimization/39701
2166 * doc/invoke.texi (Optimization Options): Document change in
2167 meaning and initialization of -fdelete-null-pointer-checks.
2169 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
2172 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
2174 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
2177 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
2179 2009-04-10 Chao-ying Fu <fu@mips.com>
2181 * doc/tm.texi (Instruction Output): Document
2182 TARGET_ASM_FINAL_POSTSCAN_INSN.
2183 * target.h (final_postscan_insn): New field in asm_out.
2184 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
2185 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
2186 * final.c (final_scan_insn): Call
2187 targetm.asm_out.final_postscan_insn after outputting
2188 an asm macro and a normal instruction.
2190 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
2191 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
2192 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
2193 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
2194 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
2196 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
2199 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
2200 variables as non-NULL even with -fdelete-null-pointer-checks.
2202 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
2204 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
2206 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
2209 * config/i386/i386.c (classify_argument): Handle SCmode with
2210 (bit_offset % 64) != 0.
2212 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
2214 * doc/invoke.texi (Optimize Options): Add cross-reference to
2215 -Q --help=optimizers examples.
2217 2009-04-10 Ben Elliston <bje@au.ibm.com>
2220 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
2221 regalign for the reg == fpr and TDmode case.
2223 2009-04-09 David Ayers <ayers@fsfe.org>
2226 * objc/objc-act.c (warn_with_method): Remove helper function.
2227 (check_duplicates): Call warning and inform directly.
2228 (really_start_method): Likewise.
2230 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
2232 * expmed.c (expand_divmod): Always use a comparison for a division
2233 by a large unsigned integer.
2235 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
2236 for things others than variables or functions as nonzero.
2238 2009-04-09 Nick Clifton <nickc@redhat.com>
2240 * unwind-compat.c: Change copyright header to refer to version
2241 3 of the GNU General Public License with version 3.1 of the
2242 GCC Runtime Library Exception and to point readers at the
2243 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
2244 * config/alpha/crtfastmath.c: Likewise.
2245 * config/alpha/linux-unwind.h: Likewise.
2246 * config/alpha/qrnnd.asm: Likewise.
2247 * config/alpha/vms-crt0-64.c: Likewise.
2248 * config/alpha/vms-crt0.c: Likewise.
2249 * config/alpha/vms-dwarf2.asm: Likewise.
2250 * config/alpha/vms-dwarf2eh.asm: Likewise.
2251 * config/alpha/vms-psxcrt0-64.c: Likewise.
2252 * config/alpha/vms-psxcrt0.c: Likewise.
2253 * config/alpha/vms_tramp.asm: Likewise.
2254 * config/arc/initfini.c: Likewise.
2255 * config/arc/lib1funcs.asm: Likewise.
2256 * config/arm/bpabi-v6m.S: Likewise.
2257 * config/arm/bpabi.S: Likewise.
2258 * config/arm/bpabi.c: Likewise.
2259 * config/arm/crti.asm: Likewise.
2260 * config/arm/crtn.asm: Likewise.
2261 * config/arm/ieee754-df.S: Likewise.
2262 * config/arm/ieee754-sf.S: Likewise.
2263 * config/arm/lib1funcs.asm: Likewise.
2264 * config/arm/libunwind.S: Likewise.
2265 * config/arm/linux-atomic.c: Likewise.
2266 * config/arm/mmintrin.h: Likewise.
2267 * config/arm/pr-support.c: Likewise.
2268 * config/arm/unaligned-funcs.c: Likewise.
2269 * config/arm/unwind-arm.c: Likewise.
2270 * config/arm/unwind-arm.h: Likewise.
2271 * config/avr/libgcc.S: Likewise.
2272 * config/bfin/crti.s: Likewise.
2273 * config/bfin/crtlibid.s: Likewise.
2274 * config/bfin/crtn.s: Likewise.
2275 * config/bfin/lib1funcs.asm: Likewise.
2276 * config/bfin/linux-unwind.h: Likewise.
2277 * config/cris/arit.c: Likewise.
2278 * config/cris/cris_abi_symbol.c: Likewise.
2279 * config/darwin-64.c: Likewise.
2280 * config/darwin-crt2.c: Likewise.
2281 * config/darwin-crt3.c: Likewise.
2282 * config/darwin.h: Likewise.
2283 * config/dbxelf.h: Likewise.
2284 * config/dfp-bit.c: Likewise.
2285 * config/dfp-bit.h: Likewise.
2286 * config/elfos.h: Likewise.
2287 * config/fixed-bit.c: Likewise.
2288 * config/fixed-bit.h: Likewise.
2289 * config/fp-bit.c: Likewise.
2290 * config/fp-bit.h: Likewise.
2291 * config/fr30/crti.asm: Likewise.
2292 * config/fr30/crtn.asm: Likewise.
2293 * config/fr30/lib1funcs.asm: Likewise.
2294 * config/freebsd-spec.h: Likewise.
2295 * config/frv/cmovd.c: Likewise.
2296 * config/frv/cmovh.c: Likewise.
2297 * config/frv/cmovw.c: Likewise.
2298 * config/frv/frvbegin.c: Likewise.
2299 * config/frv/frvend.c: Likewise.
2300 * config/frv/lib1funcs.asm: Likewise.
2301 * config/glibc-stdint.h: Likewise.
2302 * config/h8300/clzhi2.c: Likewise.
2303 * config/h8300/crti.asm: Likewise.
2304 * config/h8300/crtn.asm: Likewise.
2305 * config/h8300/ctzhi2.c: Likewise.
2306 * config/h8300/fixunssfsi.c: Likewise.
2307 * config/h8300/lib1funcs.asm: Likewise.
2308 * config/h8300/parityhi2.c: Likewise.
2309 * config/h8300/popcounthi2.c: Likewise.
2310 * config/i386/ammintrin.h: Likewise.
2311 * config/i386/att.h: Likewise.
2312 * config/i386/avxintrin.h: Likewise.
2313 * config/i386/biarch64.h: Likewise.
2314 * config/i386/bmmintrin.h: Likewise.
2315 * config/i386/cpuid.h: Likewise.
2316 * config/i386/cross-stdarg.h: Likewise.
2317 * config/i386/crtfastmath.c: Likewise.
2318 * config/i386/crtprec.c: Likewise.
2319 * config/i386/cygming-crtbegin.c: Likewise.
2320 * config/i386/cygming-crtend.c: Likewise.
2321 * config/i386/cygwin.asm: Likewise.
2322 * config/i386/emmintrin.h: Likewise.
2323 * config/i386/gmm_malloc.h: Likewise.
2324 * config/i386/gthr-win32.c: Likewise.
2325 * config/i386/i386.h: Likewise.
2326 * config/i386/immintrin.h: Likewise.
2327 * config/i386/linux-unwind.h: Likewise.
2328 * config/i386/linux64.h: Likewise.
2329 * config/i386/mm3dnow.h: Likewise.
2330 * config/i386/mmintrin-common.h: Likewise.
2331 * config/i386/mmintrin.h: Likewise.
2332 * config/i386/nmmintrin.h: Likewise.
2333 * config/i386/pmm_malloc.h: Likewise.
2334 * config/i386/pmmintrin.h: Likewise.
2335 * config/i386/smmintrin.h: Likewise.
2336 * config/i386/sol2-c1.asm: Likewise.
2337 * config/i386/sol2-ci.asm: Likewise.
2338 * config/i386/sol2-cn.asm: Likewise.
2339 * config/i386/sol2-gc1.asm: Likewise.
2340 * config/i386/tmmintrin.h: Likewise.
2341 * config/i386/unix.h: Likewise.
2342 * config/i386/w32-unwind.h: Likewise.
2343 * config/i386/wmmintrin.h: Likewise.
2344 * config/i386/x86-64.h: Likewise.
2345 * config/i386/x86intrin.h: Likewise.
2346 * config/i386/xmmintrin.h: Likewise.
2347 * config/ia64/crtbegin.asm: Likewise.
2348 * config/ia64/crtend.asm: Likewise.
2349 * config/ia64/crtfastmath.c: Likewise.
2350 * config/ia64/crti.asm: Likewise.
2351 * config/ia64/crtn.asm: Likewise.
2352 * config/ia64/fde-glibc.c: Likewise.
2353 * config/ia64/lib1funcs.asm: Likewise.
2354 * config/ia64/linux-unwind.h: Likewise.
2355 * config/ia64/quadlib.c: Likewise.
2356 * config/ia64/unwind-ia64.c: Likewise.
2357 * config/linux.h: Likewise.
2358 * config/m32c/m32c-lib1.S: Likewise.
2359 * config/m32c/m32c-lib2-trapv.c: Likewise.
2360 * config/m32c/m32c-lib2.c: Likewise.
2361 * config/m32r/initfini.c: Likewise.
2362 * config/m68hc11/larith.asm: Likewise.
2363 * config/m68hc11/m68hc11-crt0.S: Likewise.
2364 * config/m68k/cf.md: Likewise.
2365 * config/m68k/crti.s: Likewise.
2366 * config/m68k/crtn.s: Likewise.
2367 * config/m68k/lb1sf68.asm: Likewise.
2368 * config/m68k/linux-unwind.h: Likewise.
2369 * config/mcore/crti.asm: Likewise.
2370 * config/mcore/crtn.asm: Likewise.
2371 * config/mcore/lib1.asm: Likewise.
2372 * config/mips/linux-unwind.h: Likewise.
2373 * config/mips/loongson.h: Likewise.
2374 * config/mips/mips16.S: Likewise.
2375 * config/mmix/crti.asm: Likewise.
2376 * config/mmix/crtn.asm: Likewise.
2377 * config/pa/fptr.c: Likewise.
2378 * config/pa/hpux-unwind.h: Likewise.
2379 * config/pa/lib2funcs.asm: Likewise.
2380 * config/pa/linux-atomic.c: Likewise.
2381 * config/pa/linux-unwind.h: Likewise.
2382 * config/pa/milli64.S: Likewise.
2383 * config/pa/quadlib.c: Likewise.
2384 * config/pa/stublib.c: Likewise.
2385 * config/picochip/libgccExtras/adddi3.asm: Likewise.
2386 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
2387 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
2388 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
2389 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
2390 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
2391 * config/picochip/libgccExtras/divmod15.asm: Likewise.
2392 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
2393 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
2394 * config/picochip/libgccExtras/longjmp.asm: Likewise.
2395 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
2396 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
2397 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
2398 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
2399 * config/picochip/libgccExtras/setjmp.asm: Likewise.
2400 * config/picochip/libgccExtras/subdi3.asm: Likewise.
2401 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
2402 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
2403 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
2404 * config/rs6000/750cl.h: Likewise.
2405 * config/rs6000/altivec.h: Likewise.
2406 * config/rs6000/biarch64.h: Likewise.
2407 * config/rs6000/crtresfpr.asm: Likewise.
2408 * config/rs6000/crtresgpr.asm: Likewise.
2409 * config/rs6000/crtresxfpr.asm: Likewise.
2410 * config/rs6000/crtresxgpr.asm: Likewise.
2411 * config/rs6000/crtsavfpr.asm: Likewise.
2412 * config/rs6000/crtsavgpr.asm: Likewise.
2413 * config/rs6000/darwin-asm.h: Likewise.
2414 * config/rs6000/darwin-fallback.c: Likewise.
2415 * config/rs6000/darwin-fpsave.asm: Likewise.
2416 * config/rs6000/darwin-ldouble.c: Likewise.
2417 * config/rs6000/darwin-tramp.asm: Likewise.
2418 * config/rs6000/darwin-unwind.h: Likewise.
2419 * config/rs6000/darwin-vecsave.asm: Likewise.
2420 * config/rs6000/darwin-world.asm: Likewise.
2421 * config/rs6000/e500crtres32gpr.asm: Likewise.
2422 * config/rs6000/e500crtres64gpr.asm: Likewise.
2423 * config/rs6000/e500crtres64gprctr.asm: Likewise.
2424 * config/rs6000/e500crtrest32gpr.asm: Likewise.
2425 * config/rs6000/e500crtrest64gpr.asm: Likewise.
2426 * config/rs6000/e500crtresx32gpr.asm: Likewise.
2427 * config/rs6000/e500crtresx64gpr.asm: Likewise.
2428 * config/rs6000/e500crtsav32gpr.asm: Likewise.
2429 * config/rs6000/e500crtsav64gpr.asm: Likewise.
2430 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
2431 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
2432 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
2433 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
2434 * config/rs6000/eabi-ci.asm: Likewise.
2435 * config/rs6000/eabi-cn.asm: Likewise.
2436 * config/rs6000/eabi.asm: Likewise.
2437 * config/rs6000/linux-unwind.h: Likewise.
2438 * config/rs6000/linux64.h: Likewise.
2439 * config/rs6000/paired.h: Likewise.
2440 * config/rs6000/paired.md: Likewise.
2441 * config/rs6000/ppc64-fp.c: Likewise.
2442 * config/rs6000/ppu_intrinsics.h: Likewise.
2443 * config/rs6000/rs6000.h: Likewise.
2444 * config/rs6000/si2vmx.h: Likewise.
2445 * config/rs6000/sol-ci.asm: Likewise.
2446 * config/rs6000/sol-cn.asm: Likewise.
2447 * config/rs6000/spe.h: Likewise.
2448 * config/rs6000/spu2vmx.h: Likewise.
2449 * config/rs6000/sysv4.h: Likewise.
2450 * config/rs6000/tramp.asm: Likewise.
2451 * config/rs6000/vec_types.h: Likewise.
2452 * config/s390/linux-unwind.h: Likewise.
2453 * config/s390/tpf-unwind.h: Likewise.
2454 * config/score/crti.asm: Likewise.
2455 * config/score/crtn.asm: Likewise.
2456 * config/sh/crt1.asm: Likewise.
2457 * config/sh/crti.asm: Likewise.
2458 * config/sh/crtn.asm: Likewise.
2459 * config/sh/divtab-sh4-300.c: Likewise.
2460 * config/sh/divtab-sh4.c: Likewise.
2461 * config/sh/divtab.c: Likewise.
2462 * config/sh/lib1funcs-4-300.asm: Likewise.
2463 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
2464 * config/sh/lib1funcs.asm: Likewise.
2465 * config/sh/lib1funcs.h: Likewise.
2466 * config/sh/linux-atomic.asm: Likewise.
2467 * config/sh/linux-unwind.h: Likewise.
2468 * config/sh/shmedia.h: Likewise.
2469 * config/sh/sshmedia.h: Likewise.
2470 * config/sh/ushmedia.h: Likewise.
2471 * config/sparc/crtfastmath.c: Likewise.
2472 * config/sparc/linux-unwind.h: Likewise.
2473 * config/sparc/sol2-c1.asm: Likewise.
2474 * config/sparc/sol2-ci.asm: Likewise.
2475 * config/sparc/sol2-cn.asm: Likewise.
2476 * config/spu/divmodti4.c: Likewise.
2477 * config/spu/divv2df3.c: Likewise.
2478 * config/spu/float_disf.c: Likewise.
2479 * config/spu/float_unsdidf.c: Likewise.
2480 * config/spu/float_unsdisf.c: Likewise.
2481 * config/spu/float_unssidf.c: Likewise.
2482 * config/spu/mfc_multi_tag_release.c: Likewise.
2483 * config/spu/mfc_multi_tag_reserve.c: Likewise.
2484 * config/spu/mfc_tag_release.c: Likewise.
2485 * config/spu/mfc_tag_reserve.c: Likewise.
2486 * config/spu/mfc_tag_table.c: Likewise.
2487 * config/spu/multi3.c: Likewise.
2488 * config/spu/spu_internals.h: Likewise.
2489 * config/spu/spu_intrinsics.h: Likewise.
2490 * config/spu/spu_mfcio.h: Likewise.
2491 * config/spu/vec_types.h: Likewise.
2492 * config/spu/vmx2spu.h: Likewise.
2493 * config/stormy16/stormy16-lib2.c: Likewise.
2494 * config/svr4.h: Likewise.
2495 * config/sync.c: Likewise.
2496 * config/v850/lib1funcs.asm: Likewise.
2497 * config/vxlib-tls.c: Likewise.
2498 * config/vxlib.c: Likewise.
2499 * config/vxworks-dummy.h: Likewise.
2500 * config/xtensa/crti.asm: Likewise.
2501 * config/xtensa/crtn.asm: Likewise.
2502 * config/xtensa/ieee754-df.S: Likewise.
2503 * config/xtensa/ieee754-sf.S: Likewise.
2504 * config/xtensa/lib1funcs.asm: Likewise.
2505 * config/xtensa/lib2funcs.S: Likewise.
2506 * config/xtensa/linux-unwind.h: Likewise.
2507 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2508 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
2509 * coretypes.h: Likewise.
2510 * crtstuff.c: Likewise.
2511 * defaults.h: Likewise.
2512 * dwarf2.h: Likewise.
2513 * emutls.c: Likewise.
2514 * gbl-ctors.h: Likewise.
2515 * gcov-io.h: Likewise.
2516 * ginclude/float.h: Likewise.
2517 * ginclude/iso646.h: Likewise.
2518 * ginclude/stdarg.h: Likewise.
2519 * ginclude/stdbool.h: Likewise.
2520 * ginclude/stddef.h: Likewise.
2521 * ginclude/stdfix.h: Likewise.
2522 * ginclude/stdint-gcc.h: Likewise.
2523 * ginclude/tgmath.h: Likewise.
2524 * gthr-aix.h: Likewise.
2525 * gthr-dce.h: Likewise.
2526 * gthr-gnat.c: Likewise.
2527 * gthr-gnat.h: Likewise.
2528 * gthr-lynx.h: Likewise.
2529 * gthr-mipssde.h: Likewise.
2530 * gthr-nks.h: Likewise.
2531 * gthr-posix.c: Likewise.
2532 * gthr-posix.h: Likewise.
2533 * gthr-posix95.h: Likewise.
2534 * gthr-rtems.h: Likewise.
2535 * gthr-single.h: Likewise.
2536 * gthr-solaris.h: Likewise.
2537 * gthr-tpf.h: Likewise.
2538 * gthr-vxworks.h: Likewise.
2539 * gthr-win32.h: Likewise.
2541 * libgcc2.c: Likewise.
2542 * libgcc2.h: Likewise.
2543 * libgcov.c: Likewise.
2544 * tsystem.h: Likewise.
2545 * typeclass.h: Likewise.
2546 * unwind-c.c: Likewise.
2547 * unwind-compat.h: Likewise.
2548 * unwind-dw2-fde-compat.c: Likewise.
2549 * unwind-dw2-fde-darwin.c: Likewise.
2550 * unwind-dw2-fde-glibc.c: Likewise.
2551 * unwind-dw2-fde.c: Likewise.
2552 * unwind-dw2-fde.h: Likewise.
2553 * unwind-dw2.c: Likewise.
2554 * unwind-dw2.h: Likewise.
2555 * unwind-generic.h: Likewise.
2556 * unwind-pe.h: Likewise.
2557 * unwind-sjlj.c: Likewise.
2558 * unwind.inc: Likewise.
2559 * config/arm/neon-gen.ml: Change generated copyright header to
2560 refer to version 3 of the GNU General Public License with
2561 version 3.1 of the GCC Runtime Library Exception and to point
2562 readers at the COPYING3 and COPYING3.RUNTIME files and the
2563 FSF's license web page.
2564 * config/arm/arm_neon.h: Regenerate.
2566 2009-04-09 Jakub Jelinek <jakub@redhat.com>
2568 * config/cris/cris.md: Change copyright header to refer to version
2569 3 of the GNU General Public License.
2570 * doc/install.texi2html: Change copyright header to refer to version
2571 3 of the GNU General Public License and to point readers at the
2572 COPYING3 file and the FSF's license web page.
2573 * config/vax/linux.h: Likewise.
2575 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
2577 * config/i386/i386.md (cmpcc): New.
2578 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
2579 (sync_compare_and_swap_cc*): Delete.
2581 * config/s390/s390.c (s390_compare_emitted): Remove.
2582 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
2583 s390_compare_emitted used to be handled. Assert that modes match.
2584 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
2585 refer to sync_compare_and_swap_ccsi.
2586 * config/s390/s390.h (s390_compare_emitted): Remove.
2587 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
2588 instead of s390_compare_emitted.
2589 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
2590 instead of s390_compare_emitted.
2591 * config/s390/s390.md (cmpcc): New.
2592 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
2593 CC_REGNUM, do not pretend it's set.
2594 (sync_compare_and_swap_cc*): Delete.
2595 * config/s390/predicates.md (cc_reg_operand): New.
2597 * expr.c (sync_compare_and_swap_cc): Delete.
2598 * optabs.h (sync_compare_and_swap_cc): Delete.
2599 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
2600 is being used with can_compare_p.
2601 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
2603 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
2604 look for a MODE_CC set instead. Use emit_store_flag.
2605 (expand_compare_and_swap_loop): Likewise, with some additional
2606 complication to avoid a force_reg when useless. Use
2607 emit_cmp_and_jump_insns.
2608 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
2609 * doc/md.texi (sync_compare_and_swap_cc): Merge with
2610 sync_compare_and_swap documentation.
2612 2009-04-09 Jan Hubicka <jh@suse.cz>
2614 * except.c (find_prev_try): Break out from ....
2615 (duplicate_eh_regions): ... here; properly update prev_try pointers
2616 when duplication part of tree.
2617 (dump_eh_tree): Improve dumping.
2618 (verify_eh_region): New.
2619 (verify_eh_tree): Use it.
2621 2009-04-06 Richard Guenther <rguenther@suse.de>
2623 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
2624 &ARRAY addresses by adjusting their types and prepending
2626 * tree-cfg.c (verify_gimple_assign_single): Verify that
2627 addresses are correct.
2629 2009-04-09 Richard Guenther <rguenther@suse.de>
2631 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
2632 indices into an array reference if possible.
2633 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
2634 Fold POINTER_PLUS_EXPR statements with invariant address.
2636 2009-04-09 Alan Modra <amodra@bigpond.net.au>
2639 * config.gcc (powerpc64-*-linux*): Always build biarch.
2641 2009-04-09 Joseph Myers <joseph@codesourcery.com>
2644 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
2645 it and pedwarn if this results in an INTEGER_CST.
2647 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2649 * doc/install.texi: Update minimum GMP version. Remove obsolete
2650 text in MPFR section.
2652 2009-04-08 Jakub Jelinek <jakub@redhat.com>
2654 * dwarf2out.c (class_scope_p): New static inline.
2655 (class_or_namespace_scope_p): Use it.
2656 (gen_variable_die): Use DW_TAG_member tag for static data member
2657 declarations instead of DW_TAG_variable.
2660 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
2663 2009-04-08 Richard Guenther <rguenther@suse.de>
2665 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
2666 valueize random data.
2668 2009-04-08 David Edelsohn <edelsohn@gnu.org>
2670 * config.gcc (aix tm_file): Add aix-stdint.h.
2671 (aix tm clause use_gcc_stdint): Set to wrap.
2672 * config/rs6000/aix-stdint.h: New file.
2674 2009-04-08 Richard Guenther <rguenther@suse.de>
2677 * tree-dfa.c (add_referenced_var): Do not recurse into
2678 global initializers.
2679 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
2681 (fold_const_aggregate_ref): Likewise.
2683 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
2685 * recog.c (ordered_comparison_operator): New.
2686 * gensupport.c (std_preds): Add it.
2687 * doc/md.texi (Machine-Independent Predicates): Document it.
2689 2009-04-08 Jan Hubicka <jh@suse.cz>
2691 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
2692 * function.h (rtl_eh): Remove exception_handler_label_map.
2693 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
2694 remove_exception_handler_label, for_each_eh_label_1): Remove.
2695 (rtl_remove_unreachable_regions): Remove.
2696 (convert_from_eh_region_ranges): Do not remove unreachable regions.
2697 (find_exception_handler_labels): Don't build the hashtable.
2698 (maybe_remove_eh_handler): Remove.
2699 (for_each_eh_label): Rewrite to walk the tree.
2700 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
2701 * except.h (maybe_remove_eh_handler): Remove.
2702 * passes.c (init_optimization_passes): Schedule second EH cleanup
2704 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
2705 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
2707 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
2709 * genoutput.c (validate_optab_operands): New.
2710 (gen_insn, gen_expand): Call it.
2712 * genflags.c (gen_insn): Detect misused iterators.
2713 (main): Pass line_no to gen_insn, exit with status 1 on error.
2715 * genextract.c (line_no): Make global.
2716 (VEC_safe_set_locstr): Change assertion to error message.
2717 (main): Exit with status 1 on error.
2719 2009-04-08 Joseph Myers <joseph@codesourcery.com>
2723 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
2724 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
2725 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
2726 * c-convert.c (convert): Do not call fold on results of conversion
2727 functions when the result is a C_MAYBE_CONST_EXPR.
2728 * c-parser.c (c_parser_postfix_expression): Do not fold condition
2729 of __builtin_choose_expr.
2730 * c-typeck.c (remove_c_maybe_const_expr): New.
2731 (build_unary_op, build_conditional_expr, build_compound_expr,
2732 build_binary_op, c_objc_common_truthvalue_conversion): Call
2733 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
2736 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
2738 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
2739 CODE to produce a new one. Add a prototype to use fold_convert_const
2741 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
2744 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
2745 mix declarations and code.
2747 2009-04-08 Ben Elliston <bje@au.ibm.com>
2749 * gcc.c: Replace `CC' with `GCC' throughout.
2751 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
2753 * doc/invoke.texi: Document Atom support.
2755 2009-04-07 Jason Merrill <jason@redhat.com>
2758 * c-common.h, c-common.c: Add flag_pretty_templates.
2759 * c-opts.c (c_common_handle_option): Set it.
2760 * c.opt: Add -fno-pretty-templates.
2761 * doc/invoke.texi (C++ Dialect Options): Likewise.
2763 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
2765 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
2766 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
2767 (ia64_expand_builtin): Likewise.
2769 2009-04-07 Martin Jambor <mjambor@suse.cz>
2771 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
2772 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
2773 ADDR_EXPRS are include too.
2775 2009-04-07 Richard Guenther <rguenther@suse.de>
2777 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
2778 decls are only used if passes as parameters or if they are
2779 local statics and the call is not to a builtin.
2780 (call_may_clobber_ref_p_1): Likewise.
2782 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
2784 * expr.c (do_store_flag): Remove last argument. Simplify code
2785 to avoid duplication of tests already done by can_compare_p.
2786 (expand_expr_real_1): Adjust caller.
2788 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
2790 * optabs.c (can_compare_p): Test the predicate of a
2791 cbranch and cstore pattern.
2793 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
2795 * expr.c (convert_move): Use emit_store_flag instead of
2798 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
2800 * config/i386/i386.c (ix86_compare_emitted): Remove.
2801 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
2802 ix86_compare_op0 like ix86_compare_emitted used to be handled.
2803 * config/i386/i386.h (ix86_compare_emitted): Remove.
2804 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
2805 instead of ix86_compare_emitted.
2806 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
2808 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
2810 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
2811 Add t-sysroot-suffix to tmake_file.
2812 * config/print-sysroot-suffix.sh: New file.
2813 * config/t-sysroot-suffix: New file.
2815 2009-04-07 Ben Elliston <bje@au.ibm.com>
2817 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
2818 as the latter produces a warning when the target does not support
2821 2009-04-07 Ben Elliston <bje@au.ibm.com>
2823 * dfp.c: Replace type punning assignments with memcpy throughout.
2824 * Makefile.in (dfp.o-warn): Remove.
2826 2009-04-07 Alan Modra <amodra@bigpond.net.au>
2829 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
2830 Include soft-fp/t-softfp after rs6000/t-linux64.
2832 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
2834 * stor-layout.c (set_sizetype): Use the full precision of their
2835 machine mode for bitsize types.
2837 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
2839 * config/i386/i386.md: Revert 2 accidental checkins.
2841 2009-04-06 Joey Ye <joey.ye@intel.com>
2842 Xuepeng Guo <xuepeng.guo@intel.com>
2843 H.J. Lu <hongjiu.lu@intel.com>
2845 Atom pipeline model, tuning and insn selection.
2846 * config.gcc (atom): Add atom config options and target.
2848 * config/i386/atom.md: New.
2850 * config/i386/i386.c (atom_cost): New cost.
2851 (m_ATOM): New macro flag.
2852 (initial_ix86_tune_features): Set m_ATOM.
2853 (x86_accumulate_outgoing_args): Likewise.
2854 (x86_arch_always_fancy_math_387): Likewise.
2855 (processor_target): Add Atom cost.
2856 (cpu_names): Add Atom cpu name.
2857 (override_options): Set Atom ISA.
2858 (ix86_issue_rate): New case PROCESSOR_ATOM.
2859 (ix86_adjust_cost): Likewise.
2861 * config/i386/i386.h (TARGET_ATOM): New target macro.
2862 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
2863 (TARGET_OPT_AGU): New target option.
2864 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
2865 (processor_type): Add PROCESSOR_ATOM.
2867 * config/i386/i386.md (cpu): Add new value "atom".
2868 (use_carry, movu): New attr.
2869 (atom.md): Include atom.md.
2870 (adddi3_carry_rex64): Set attr "use_carry".
2871 (addqi3_carry): Likewise.
2872 (addhi3_carry): Likewise.
2873 (addsi3_carry): Likewise.
2874 (*addsi3_carry_zext): Likewise.
2875 (subdi3_carry_rex64): Likewise.
2876 (subqi3_carry): Likewise.
2877 (subhi3_carry): Likewise.
2878 (subsi3_carry): Likewise.
2879 (x86_movdicc_0_m1_rex64): Likewise.
2880 (*x86_movdicc_0_m1_se): Likewise.
2881 (x86_movsicc_0_m1): Likewise.
2882 (*x86_movsicc_0_m1_se): Likewise.
2883 (*adddi_1_rex64): Emit add insn as much as possible.
2884 (*addsi_1): Likewise.
2885 (return_internal): Set atom_unit.
2886 (return_internal_long): Likewise.
2887 (return_pop_internal): Likewise.
2888 (*rcpsf2_sse): Set atom_sse_attr attr.
2889 (*qrt<mode>2_sse): Likewise.
2890 (*prefetch_sse): Likewise.
2892 * config/i386/i386-c.c (ix86_target_macros_internal): New case
2894 (ix86_target_macros_internal): Likewise.
2896 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
2897 (*prefetch_sse_rex): Likewise.
2898 (sse_rcpv4sf2): Likewise.
2899 (sse_vmrcpv4sf2): Likewise.
2900 (sse_sqrtv4sf2): Likewise.
2901 (<sse>_vmsqrt<mode>2): Likewise.
2902 (sse_ldmxcsr): Likewise.
2903 (sse_stmxcsr): Likewise.
2904 (*sse_sfence): Likewise.
2905 (sse2_clflush): Likewise.
2906 (*sse2_mfence): Likewise.
2907 (*sse2_lfence): Likewise.
2908 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
2909 (<sse>_movup<ssemodesuffixf2c>): Likewise.
2910 (avx_movdqu<avxmodesuffix>): Likewise.
2911 (avx_lddqu<avxmodesuffix>): Likewise.
2912 (sse2_movntv2di): Change attr "type" to "ssemov".
2913 (sse2_movntsi): Likewise.
2914 (rsqrtv8sf2): Change attr "type" to "sseadd".
2915 (sse3_addsubv2df3): Set attr "atom_unit".
2916 (sse3_h<plusminus_insn>v4sf3): Likewise.
2917 (*sse2_pmaddwd): Likewise.
2918 (*vec_extractv2di_1_rex64): Likewise.
2919 (*vec_extractv2di_1_avx): Likewise.
2920 (sse2_psadbw): Likewise.
2921 (ssse3_phaddwv8hi3): Likewise.
2922 (ssse3_phaddwv4hi3): Likewise.
2923 (ssse3_phadddv4si3): Likewise.
2924 (ssse3_phadddv2si3): Likewise.
2925 (ssse3_phaddswv8hi3): Likewise.
2926 (ssse3_phaddswv4hi3): Likewise.
2927 (ssse3_phsubwv8hi3): Likewise.
2928 (ssse3_phsubwv4hi3): Likewise.
2929 (ssse3_phsubdv4si3): Likewise.
2930 (ssse3_phsubdv2si3): Likewise.
2931 (ssse3_phsubswv8hi3): Likewise.
2932 (ssse3_phsubswv4hi3): Likewise.
2933 (ssse3_pmaddubsw128): Likewise.
2934 (sse3_pmaddubsw: Likewise.
2935 (ssse3_palignrti): Likewise.
2936 (ssse3_palignrdi): Likewise.
2938 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
2940 * doc/install.texi (Specific): Fix two cross-references to MinGW.
2942 2009-04-06 Richard Guenther <rguenther@suse.de>
2944 PR tree-optimization/28868
2945 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
2946 of which PHI results we inserted.
2947 (insert_into_preds_of_block): Record inserted PHIs.
2948 (eliminate): Eliminate redundant PHI nodes.
2949 (init_pre): Init inserted_phi_names.
2951 2009-04-06 Richard Guenther <rguenther@suse.de>
2953 PR tree-optimization/39643
2954 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
2955 IMAGPART_EXPRs of complex constants.
2956 (execute_fold_all_builtins): If we folded a call queue
2957 TODO_update_address_taken.
2959 2009-04-06 Jan Hubicka <jh@suse.cz>
2962 * except.c (remove_unreachable_regions): Propagate may_contain_throw
2965 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
2967 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
2969 (ic_invalidate_array): Likewise.
2971 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
2973 * calls.c (emit_library_call_value_1): Fix a problem with parameter
2974 alignment for library calls.
2976 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
2978 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
2979 (mingw32 tm clause use_gcc_stdint): Set to wrap.
2980 * config/i386/mingw-stdint.h: New file.
2982 2009-04-05 Richard Guenther <rguenther@suse.de>
2984 PR tree-optimization/39648
2985 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
2986 our &A vs. &A[0] IL deficiencies.
2988 2009-04-04 Jan Hubicka <jh@suse.cz>
2990 * except.c (sjlj_find_directly_reachable_regions): Be ready for
2991 removed toplevel regions.
2992 (sjlj_mark_call_sites): Likewise.
2994 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
2996 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
2997 (cygwin tm clause use_gcc_stdint): Set to wrap.
2998 * config/i386/cygwin-stdint.h: New file.
3000 2009-04-04 Richard Guenther <rguenther@suse.de>
3002 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
3003 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
3004 single-argument PHIs if we are in loop-closed SSA form.
3005 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
3006 for the pre-condition.
3007 (slpeel_tree_peel_loop_to_edge): Likewise.
3008 (vect_build_loop_niters): Take an optional sequence to append stmts.
3009 (vect_generate_tmps_on_preheader): Likewise.
3010 (vect_do_peeling_for_loop_bound): Take extra guards for the
3012 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
3013 the cost model check.
3014 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
3015 guards if we are going to peel. Do not apply versioning in that case.
3016 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
3017 (vect_do_peeling_for_loop_bound): Likewise.
3018 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
3019 loop bound only record extra pre-conditions, do not apply loop
3022 2009-04-04 Richard Guenther <rguenther@suse.de>
3024 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
3027 2009-04-04 Jan Hubicka <jh@suse.cz>
3029 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
3030 last_basic_block for size of bb->index indexed array.
3031 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
3032 compute_out, link_btr_uses, build_btr_def_use_webs,
3033 build_btr_def_use_webs, migrate_btr_defs): Likewise.
3035 2009-04-04 Jan Hubicka <jh@suse.cz>
3037 * except.c (remove_eh_handler_and_replace): Break out from ...
3038 (remove_eh_handler): ... here.
3039 (bring_to_root): New function.
3040 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
3041 handled ones, bring others to root of tree.
3043 2009-04-04 Jan Hubicka <jh@suse.cz>
3045 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
3046 (all_phis_safe_to_merge): New function.
3047 (update_info): New structure.
3048 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
3049 (cleanup_empty_eh): Update SSA if possible.
3051 2009-04-04 Richard Guenther <rguenther@suse.de>
3053 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
3054 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
3055 (append_vuse): Likewise.
3057 2009-04-04 Jakub Jelinek <jakub@redhat.com>
3059 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
3060 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
3061 instead of REG_UNSAVED for DW_CFA_undefined.
3062 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
3063 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
3066 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
3069 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
3070 * testsuite/gcc.c-torture/execute/pr39501.c: New file.
3071 * testsuite/gcc.c-torture/execute/pr39501.x: New file.
3073 2009-04-04 Richard Guenther <rguenther@suse.de>
3075 PR tree-optimization/8781
3076 PR tree-optimization/37892
3077 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
3078 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
3079 (valueize_refs): Call it for *& valueizations.
3080 (shared_reference_ops_from_ref): Rename to ...
3081 (valueize_shared_reference_ops_from_ref): ... this and valueize.
3082 (shared_reference_ops_from_call): Rename to ...
3083 (valueize_shared_reference_ops_from_call): ... this and valueize.
3084 (vn_reference_lookup): Update.
3085 (visit_reference_op_call): Likewise.
3086 * tree-ssa-pre.c (phi_translate_1): Fold *&.
3087 (eliminate): Value-replace the call address in call statements.
3089 2009-04-04 Richard Guenther <rguenther@suse.de>
3091 PR tree-optimization/39636
3092 * tree-ssa-forwprop.c
3093 (forward_propagate_addr_into_variable_array_index): Check for
3094 GIMPLE_ASSIGN before accessing the rhs code.
3096 2009-04-03 Jason Merrill <jason@redhat.com>
3098 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
3100 2009-04-03 Steve Ellcey <sje@cup.hp.com>
3102 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
3103 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
3104 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
3105 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
3106 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
3107 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
3108 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
3109 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
3110 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
3111 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
3112 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
3113 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
3114 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
3115 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
3116 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
3117 Use fr_reg_or_fp01_operand instead of fr_register_operand
3119 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
3120 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
3121 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
3123 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
3125 PR rtl-optimization/39607
3126 PR rtl-optimization/39631
3130 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
3131 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
3132 instead of DF_LR_OUT.
3133 * ira-lives.c (process_bb_node_lives): Ditto.
3134 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
3135 instead of DF_LR_{OUT,IN}.
3136 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
3137 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
3139 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
3141 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
3142 (execute_lower_omp): Always run but take the short way out if -fopenmp
3144 (gate_lower_omp): Remove, forcing the pass manager to always run the
3145 pass and always set PROP_gimple_lomp.
3146 (pass_lower_omp): Remove gate function.
3147 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
3148 PROP_trees. Instead, require it.
3149 * ipa-cp.c (pass_ipa_cp): Likewise.
3150 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
3151 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
3152 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
3153 and PROP_gimple_leh.
3155 2009-04-03 Richard Guenther <rguenther@suse.de>
3158 PR tree-optimization/23940
3159 PR tree-optimization/33237
3162 PR tree-optimization/36201
3163 PR tree-optimization/36230
3164 PR tree-optimization/38049
3165 PR tree-optimization/38207
3166 PR tree-optimization/38230
3167 PR tree-optimization/38301
3168 PR tree-optimization/38585
3170 PR tree-optimization/38985
3171 PR tree-optimization/39299
3172 * tree-ssa-structalias.h: Remove.
3173 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
3174 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
3175 (struct vuse_element_d): Remove.
3176 (struct vuse_vec_d): Likewise.
3177 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
3178 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
3179 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
3180 VUSE_ELEMENT_VAR): Likewise.
3181 (struct voptype_d): Likewise.
3182 (NUM_VOP_FREE_BUCKETS): Likewise.
3183 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
3184 (struct stmt_operands_d): Remove.
3185 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
3186 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
3187 VDEF_NUM, VDEF_VECT): Likewise.
3188 (copy_virtual_operands): Remove.
3189 (operand_build_cmp): Likewise.
3190 (create_ssa_artificial_load_stmt): Likewise.
3191 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
3192 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
3193 vuse_index and mayuse_index members. Pack and move done and iter_type
3194 members to the front.
3195 (SSA_OP_VMAYUSE): Remove.
3196 (SSA_OP_VIRTUAL_USES): Adjust.
3197 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
3198 (unlink_stmt_vdef): Declare.
3199 (add_to_addressable_set): Remove.
3200 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
3201 (vrp_visit_stmt): Likewise.
3202 * doc/tree-ssa.texi (Alias analysis): Update.
3203 * doc/invoke.texi (max-aliased-vops): Remove docs.
3204 (avg-aliased-vops): Likewise.
3205 * tree-into-ssa.c (syms_to_rename): Remove.
3206 (need_to_update_vops_p): Likewise.
3207 (need_to_initialize_update_ssa_p): Rename to ...
3208 (update_ssa_initialized_fn): ... this. Track function we are
3210 (symbol_marked_for_renaming): Simplify.
3211 (add_new_name_mapping): Do not set need_to_update_vops_p.
3212 (dump_currdefs): Use SYMS_TO_RENAME.
3213 (rewrite_update_stmt): Always walk all uses/defs.
3214 (dump_update_ssa): Adjust.
3215 (init_update_ssa): Take function argument. Track what we are
3217 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
3218 (create_new_def_for): Initialize for cfun, assert we are initialized
3220 (mark_sym_for_renaming): Simplify.
3221 (mark_set_for_renaming): Do not initialize update-ssa.
3222 (need_ssa_update_p): Simplify. Take function argument.
3223 (name_mappings_registered_p): Assert we ask for the correct function.
3224 (name_registered_for_update_p): Likewise.
3225 (ssa_names_to_replace): Likewise.
3226 (release_ssa_name_after_update_ssa): Likewise.
3227 (update_ssa): Likewise. Use SYMS_TO_RENAME.
3228 (dump_decl_set): Do not print a newline.
3229 (debug_decl_set): Do it here.
3230 (dump_update_ssa): And here.
3231 * tree-ssa-loop-im.c (move_computations): Adjust.
3232 (movement_possibility): Likewise.
3233 (determine_max_movement): Likewise.
3234 (gather_mem_refs_stmt): Likewise.
3235 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
3237 * tree-complex.c (update_all_vops): Remove.
3238 (expand_complex_move): Adjust.
3239 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
3240 Simplify test for memory referencing statement. Exclude
3241 non-invariant ADDR_EXPRs.
3242 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
3243 * tree-loop-distribution.c (generate_memset_zero): Adjust.
3244 (rdg_flag_uses): Likewise.
3245 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
3247 (tree_optimize_tail_calls_1): Also split the
3248 edge from the entry block if we have degenerate PHI nodes in
3249 the first basic block.
3250 * tree.c (init_ttree): Remove memory-tag related code.
3251 (tree_code_size): Likewise.
3252 (tree_node_structure): Likewise.
3253 (build7_stat): Re-write to be build6_stat.
3254 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
3255 (SSA_VAR_P): Adjust.
3256 (struct tree_memory_tag): Remove.
3257 (struct tree_memory_partition_tag): Likewise.
3258 (union tree_node): Adjust.
3259 (build7): Re-write to be build6.
3260 * tree-pass.h (pass_reset_cc_flags): Remove.
3261 (TODO_update_address_taken): New flag.
3262 (pass_simple_dse): Remove.
3263 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
3264 * params.h (MAX_ALIASED_VOPS): Remove.
3265 (AVG_ALIASED_VOPS): Likewise.
3266 * omp-low.c (expand_omp_taskreg): Update SSA form.
3267 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
3268 aliases the lhs in a copy stmt.
3269 * tree-ssa-dse.c (struct address_walk_data): Remove.
3270 (memory_ssa_name_same): Likewise.
3271 (memory_address_same): Likewise.
3272 (get_kill_of_stmt_lhs): Likewise.
3273 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
3274 unused stores. Look through PHI nodes into post-dominated regions.
3275 (dse_optimize_stmt): Simplify. Properly remove stores.
3276 (tree_ssa_dse): Compute dominators.
3277 (execute_simple_dse): Remove.
3278 (pass_simple_dse): Likewise.
3279 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
3280 gimple_loaded_syms and gimple_stored_syms computation.
3281 * toplev.c (dump_memory_report): Dump alias and pta stats.
3282 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
3283 (vn_reference_eq): Likewise.
3284 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
3285 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
3286 valueize_vuses): Remove.
3287 (get_def_ref_stmt_vuses): Simplify. Rename to ...
3288 (get_def_ref_stmt_vuse): ... this.
3289 (vn_reference_lookup_2): New function.
3290 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
3291 walking equivalent vuses. Simplify.
3292 (vn_reference_lookup): Likewise.
3293 (vn_reference_insert): Likewise.
3294 (vn_reference_insert_pieces): Likewise.
3295 (visit_reference_op_call): Simplify.
3296 (visit_reference_op_load): Likewise.
3297 (visit_reference_op_store): Likewise.
3298 (init_scc_vn): Remove shared_lookup_vuses initialization.
3299 (free_scc_vn): Remove shared_lookup_vuses freeing.
3300 (sort_vuses, sort_vuses_heap): Remove.
3301 (get_ref_from_reference_ops): Export.
3302 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
3303 vector with single vuse pointer.
3304 (vn_reference_lookup_pieces, vn_reference_lookup,
3305 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
3306 (shared_vuses_from_stmt): Remove.
3307 (get_ref_from_reference_ops): Declare.
3308 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
3309 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
3310 memory-tag related code.
3311 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
3312 (likely_value): Add comment, skip static-chain of call statements.
3313 (surely_varying_stmt_p): Adjust.
3314 (gimplify_and_update_call_from_tree): Likewise.
3315 (execute_fold_all_builtins): Do not rebuild alias info.
3316 (gimplify_and_update_call_from_tree): Properly update VOPs.
3317 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
3318 (copy_ref_info): Remove memory-tag related code.
3319 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
3320 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
3321 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
3323 * tree-ssa-dom.c (gimple_p): Remove typedef.
3324 (eliminate_redundant_computations): Adjust.
3325 (record_equivalences_from_stmt): Likewise.
3326 (avail_expr_hash): Likewise.
3327 (avail_expr_eq): Likewise.
3328 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
3329 (stmt_makes_single_load): Likewise.
3330 (stmt_makes_single_store): Likewise.
3331 * tree-ssa-alias.c: Rewrite completely.
3332 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
3333 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
3334 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
3335 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
3336 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
3337 Remove public functions.
3338 (pass_reset_cc_flags): Remove.
3339 (pass_build_alias): Move ...
3340 * tree-ssa-structalias.c (pass_build_alias): ... here.
3341 * tree-ssa-alias.c (may_be_aliased): Move ...
3342 * tree-flow-inline.h (may_be_aliased): ... here.
3343 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
3344 count_uses_and_derefs): Move ...
3345 * gimple.c: ... here.
3346 * gimple.h (count_uses_and_derefs): Declare.
3347 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
3348 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
3349 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
3350 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
3351 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
3352 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
3353 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
3355 * tree-dfa.c (refs_may_alias_p): Move ...
3356 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
3357 * tree-ssa-alias.h: New file.
3358 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
3359 (statement_sink_location): Likewise.
3360 * opts.c (decode_options): Do not adjust max-aliased-vops or
3361 avg-aliased-vops values.
3362 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
3363 (TV_CALL_CLOBBER): Likewise.
3364 (TV_FLOW_SENSITIVE): Likewise.
3365 (TV_FLOW_INSENSITIVE): Likewise.
3366 (TV_MEMORY_PARTITIONING): Likewise.
3367 (TV_ALIAS_STMT_WALK): New timevar.
3368 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
3369 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
3370 (get_address_description): Remove memory-tag related code.
3371 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
3372 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
3373 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
3374 and immediate uses in statements. Document.
3375 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
3376 (dump_symbols): Remove.
3377 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
3378 * alias.c (get_deref_alias_set): New function split out from ...
3379 (get_alias_set): ... here.
3380 * alias.h (get_deref_alias_set): Declare.
3381 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
3382 type parameter. Remove restrict pointer handling. Create a
3383 ref-all pointer in case type-based alias sets do not conflict.
3384 (vect_analyze_data_refs): Remove SMT related code.
3385 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
3386 (vectorizable_load): Likewise.
3387 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
3388 (DR_SYMBOL_TAG, DR_VOPS): Remove.
3389 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
3390 Ignore vops and SMTs.
3391 (dr_analyze_alias): Likewise..
3392 (free_data_ref): Likewise.
3393 (create_data_ref): Likewise.
3394 (analyze_all_data_dependences): Likewise.
3395 (get_references_in_stmt): Adjust.
3396 * tree-flow-inline.h (gimple_aliases_computed_p,
3397 gimple_addressable_vars, gimple_call_clobbered_vars,
3398 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
3399 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
3400 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
3401 gimple_mem_ref_stats): Remove.
3402 (gimple_vop): New function.
3403 (op_iter_next_use): Remove vuses and mayuses cases.
3404 (op_iter_next_def): Remove vdefs case.
3405 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
3406 (clear_and_done_ssa_iter): Do not set removed fields.
3407 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
3408 Assert we are not iterating over vuses or vdefs if not also
3409 iterating over uses or defs.
3410 (op_iter_init_use): Likewise.
3411 (op_iter_init_def): Likewise.
3412 (op_iter_next_vdef): Remove.
3413 (op_iter_next_mustdef): Likewise.
3414 (op_iter_init_vdef): Likewise.
3415 (compare_ssa_operands_equal): Likewise.
3416 (link_use_stmts_after): Handle vuse operand.
3417 (is_call_used): Use is_call_clobbered.
3418 (is_call_clobbered): Global variables are always call clobbered,
3419 query the call-clobbers bitmap.
3420 (mark_call_clobbered): Ignore global variables.
3421 (clear_call_clobbered): Likewise.
3422 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
3423 virtual operands sanity check.
3424 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
3426 (TARGET_MEM_REF): Remove TMR_TAG operand.
3427 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
3428 Remove call-clobber related code.
3429 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
3430 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
3431 partitions or escape reason.
3432 (get_single_def_stmt, get_single_def_stmt_from_phi,
3433 get_single_def_stmt_with_phi): Remove.
3434 (dump_referenced_vars): Tidy.
3435 (get_ref_base_and_extent): Allow bare decls.
3436 (collect_dfa_stats): Adjust.
3437 * graphite.c (rename_variables_in_stmt): Adjust.
3438 (graphite_copy_stmts_from_block): Likewise.
3439 (translate_clast): Likewise.
3440 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
3442 (translate_vuse_through_block): Use the oracle.
3443 (phi_translate_1): Adjust.
3444 (value_dies_in_block_x): Use the oracle. Cache the outcome
3446 (valid_in_sets): Check if the VUSE for
3447 a REFERENCE is available.
3448 (eliminate): Do not remove stmts during elimination,
3449 instead queue and remove them afterwards.
3450 (do_pre): Do not rebuild alias info.
3451 (pass_pre): Run TODO_rebuild_alias before PRE.
3452 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
3453 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
3454 (mark_all_v_defs_stmt): Remove.
3455 (mark_all_v_defs_seq): Adjust.
3456 (sra_replace): Likewise.
3457 (scalarize_use): Likewise.
3458 (scalarize_copy): Likewise.
3459 (scalarize_init): Likewise.
3460 (scalarize_ldst): Likewise.
3461 (todoflags): Remove.
3462 (tree_sra): Do not rebuild alias info.
3463 (tree_sra_early): Adjust.
3464 (pass_sra): Run TODO_update_address_taken before SRA.
3465 * tree-predcom.c (set_alias_info): Remove.
3466 (prepare_initializers_chain): Do not call it.
3467 (mark_virtual_ops_for_renaming): Adjust.
3468 (mark_virtual_ops_for_renaming_list): Remove.
3469 (initialize_root_vars): Adjust.
3470 (initialize_root_vars_lm): Likewise.
3471 (prepare_initializers_chain): Likewise.
3472 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
3473 (may_propagate_copy_into_stmt): Likewise.
3474 (merge_alias_info): Do nothing for now.
3475 (propagate_tree_value_into_stmt): Adjust.
3476 (stmt_may_generate_copy): Likewise.
3477 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
3478 not mark symbols for renaming.
3479 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
3480 with the same statement, make sure to update the new pointed-to one.
3481 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
3482 call statements, do not mark symbols for renaming.
3483 (mark_operand_necessary): Dump something.
3484 (ref_may_be_aliased): New function.
3485 (mark_aliased_reaching_defs_necessary_1): New helper function.
3486 (mark_aliased_reaching_defs_necessary): Likewise.
3487 (mark_all_reaching_defs_necessary_1): Likewise.
3488 (mark_all_reaching_defs_necessary): Likewise.
3489 (propagate_necessity): Do not process virtual PHIs. For
3490 non-aliased loads mark all reaching definitions as necessary.
3491 For aliased loads and stores mark the immediate dominating
3492 aliased clobbers as necessary.
3493 (visited): New global static.
3494 (perform_tree_ssa_dce): Free visited bitmap after propagating
3496 (remove_dead_phis): Perform simple dead virtual PHI removal.
3497 (remove_dead_stmt): Properly unlink virtual operands when
3499 (eliminate_unnecessary_stmts): Schedule PHI removal after
3501 * tree-ssa-ter.c (is_replaceable_p): Adjust.
3502 (process_replaceable): Likewise.
3503 (find_replaceable_in_bb): Likewise.
3504 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
3505 based on the single gimple vop.
3506 (verify_flow_insensitive_alias_info): Remove.
3507 (verify_flow_sensitive_alias_info): Likewise.
3508 (verify_call_clobbering): Likewise.
3509 (verify_memory_partitions): Likewise.
3510 (verify_alias_info): Likewise.
3511 (verify_ssa): Adjust..
3512 (execute_update_addresses_taken): Export. Update SSA
3513 manually. Optimize only when optimizing. Use a local bitmap.
3514 (pass_update_address_taken): Remove TODO_update_ssa, add
3516 (pass_update_address_taken): Just use TODO_update_address_taken.
3517 (init_tree_ssa): Do not initialize addressable_vars.
3518 (verify_ssa): Verify new VUSE / VDEF properties.
3519 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
3520 Do not call verify_alias_info.
3521 (delete_tree_ssa): Clear the VUSE, VDEF operands.
3522 Do not free the loaded and stored syms bitmaps. Reset the escaped
3523 and callused solutions. Do not free addressable_vars.
3524 Remove memory-tag related code.
3525 (warn_uninitialized_var): Aliases are always available.
3526 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
3527 * lambda-code.c (can_put_in_inner_loop): Adjust.
3528 (can_put_after_inner_loop): Likewise.
3529 (perfect_nestify): Likewise.
3530 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
3531 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
3532 (vectorizable_conversion): Do not mark symbols for renaming.
3533 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
3534 (expand_call_inline): Unlink the calls virtual operands before
3536 (tree_function_versioning): Do not call update_ssa if we are not
3537 updating clones. Simplify.
3538 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
3539 (propagate_with_phi): Likewise..
3540 * tree-outof-ssa.c (create_temp): Remove memory tag and call
3541 clobber code. Assert we are not aliased or global.
3542 * tree-flow.h: Include tree-ssa-alias.h
3543 (enum escape_type): Remove.
3544 (struct mem_sym_stats_d): Likewise.
3545 (struct mem_ref_stats_d): Likewise.
3546 (struct gimple_df): Add vop member. Remove global_var,
3547 call_clobbered_vars, call_used_vars, addressable_vars,
3548 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
3549 escaped and callused members.
3550 (struct ptr_info_def): Remove all members, add points-to solution
3552 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
3553 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
3554 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
3555 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
3556 (tree-ssa-alias.o): Likewise.
3557 (toplev.o): Add tree-ssa-alias.h
3558 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
3559 * gimple.c (gimple_set_bb): Fix off-by-one error.
3560 (is_gimple_reg): Do not handle memory tags.
3561 (gimple_copy): Also copy virtual operands.
3562 Delay updating the statement. Do not reset loaded and stored syms.
3563 (gimple_set_stored_syms): Remove.
3564 (gimple_set_loaded_syms): Likewise.
3565 (gimple_call_copy_skip_args): Copy the virtual operands
3566 and mark the new statement modified.
3567 * tree-ssa-structalias.c (may_alias_p): Remove.
3568 (set_uids_in_ptset): Take the alias set to prune with as
3569 parameter. Fold in the alias test of may_alias_p.
3570 (compute_points_to_sets): Compute whether a ptr is dereferenced
3572 (process_constraint): Deal with &ANYTHING on the lhs, reject all
3573 other ADDRESSOF constraints on the lhs.
3574 (get_constraint_for_component_ref): Assert that we don't get
3575 ADDRESSOF constraints from the base of the reference.
3576 Properly generate UNKNOWN_OFFSET for DEREF if needed.
3577 (struct variable_info): Remove collapsed_to member.
3578 (get_varinfo_fc): Remove.
3579 (new_var_info): Do not set collapsed_to.
3580 (dump_constraint): Do not follow cycles.
3581 (dump_constraint_graph): Likewise.
3582 (build_pred_graph): Likewise.
3583 (build_succ_graph): Likewise.
3584 (rewrite_constraints): Likewise.
3585 (do_simple_structure_copy): Remove.
3586 (do_rhs_deref_structure_copy): Remove.
3587 (do_lhs_deref_structure_copy): Remove.
3588 (collapse_rest_of_var): Remove.
3589 (do_structure_copy): Re-implement.
3590 (pta_stats): New global variable.
3591 (dump_pta_stats): New function.
3592 (struct constraint_expr): Make offset signed.
3593 (UNKNOWN_OFFSET): Define special value.
3594 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
3595 (solution_set_expand): New helper function split out from ...
3596 (do_sd_constraint): ... here.
3597 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
3598 (do_ds_constraint): Likewise.
3599 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
3600 and CALLUSED = *CALLUSED.
3601 (set_union_with_increment): Make inc argument signed.
3602 (type_safe): Remove.
3603 (get_constraint_for_ptr_offset): Handle unknown and negative
3605 (first_vi_for_offset): Handle offsets before start. Bail
3606 out early for offsets beyond the variable extent.
3607 (first_or_preceding_vi_for_offset): New function.
3608 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
3609 Together with ESCAPED = *ESCAPED this properly computes reachability.
3610 (find_what_var_points_to): New function.
3611 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
3612 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
3613 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
3614 pt_solutions_intersect): New functions.
3615 (compute_call_used_vars): Remove.
3616 (compute_may_aliases): New main entry into PTA computation.
3617 * gimple.h (gimple_p): New typedef.
3618 (struct gimple_statement_base): Remove references_memory_p.
3619 (struct gimple_statement_with_memory_ops_base): Remove
3620 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
3622 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
3623 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
3624 gimple_set_references_memory): Remove.
3625 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
3626 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
3628 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
3629 (verify_expr): Allow RESULT_DECL.
3630 (gimple_duplicate_bb): Do not copy virtual operands.
3631 (gimple_duplicate_sese_region): Adjust.
3632 (gimple_duplicate_sese_tail): Likewise.
3633 (mark_virtual_ops_in_region): Remove.
3634 (move_sese_region_to_fn): Do not call it.
3635 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
3636 and pass_simple_dse.
3637 (execute_function_todo): Handle TODO_update_address_taken,
3638 call execute_update_addresses_taken for TODO_rebuild_alias.
3639 (execute_todo): Adjust.
3640 (execute_one_pass): Init dump files early.
3641 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
3643 (create_general_new_stmt): Clear vops.
3644 * tree-ssa-reassoc.c (get_rank): Adjust.
3645 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
3646 symbols for renaming.
3647 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
3648 (PARAM_AVG_ALIASED_VOPS): Likewise.
3649 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
3650 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
3651 * tree-ssa-operands.c: Simplify for new virtual operand representation.
3652 (operand_build_cmp, copy_virtual_operands,
3653 create_ssa_artificial_load_stmt, add_to_addressable_set,
3654 gimple_add_to_addresses_taken): Remove public functions.
3655 (unlink_stmt_vdef): New function.
3657 2009-04-03 Alan Modra <amodra@bigpond.net.au>
3659 * config.gcc (powerpc-*-linux*): Merge variants.
3661 2009-04-02 Chao-ying Fu <fu@mips.com>
3662 James Grosbach <james.grosbach@microchip.com>
3664 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
3665 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
3667 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
3668 keep_interrupts_masked_p, use_debug_exception_return_p.
3669 (mips_attribute_table): Add interrupt, use_shadow_register_set,
3670 keep_interrupts_masked, use_debug_exception_return.
3671 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
3672 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
3674 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
3675 (mips_print_operand): Process COP0 registers to print $0 .. $31
3676 correctly for GAS to process.
3677 (mips_interrupt_extra_call_saved_reg_p): New function.
3678 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
3680 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
3681 (mips_compute_frame_info): Add supports for interrupt context that
3682 includes doubleword accumulators and COP0 registers.
3683 (mips_for_each_saved_acc): New function.
3684 (mips_for_each_saved_gpr_and_fpr): Change the function name from
3685 mips_for_each_saved_reg.
3686 (mips_save_reg): Save accumulators.
3687 (mips_kernel_reg_p): A new for_each_rtx callback.
3688 (mips_expand_prologue): Support interrupt handlers.
3689 (mips_restore_reg): Restore accumulators.
3690 (mips_expand_epilogue): Support interrupt handlers.
3691 (mips_can_use_return_insn): Return false for interrupt handlers.
3692 (mips_epilogue_uses): New function.
3693 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
3694 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
3695 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
3696 cop0_move): New instructions.
3697 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
3698 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
3700 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
3702 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
3703 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
3704 interrupt handlers, we use K0 as the temporary register.
3705 (EPILOGUE_USES): Change to a function call.
3706 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
3707 handlers, we use K0 as the temporary register.
3709 * doc/extend.texi (Function Attributes): Document interrupt,
3710 use_shadow_register_set, keep_interrupts_masked,
3711 use_debug_exception_return for MIPS attributes.
3713 2009-04-03 Alan Modra <amodra@bigpond.net.au>
3715 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
3716 Remove a number of t-files from tmake_file.
3717 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
3718 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
3719 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3720 target_prototype, not TARGET_PROTOTYPE.
3721 (LINK_OS_GNU_SPEC): Define.
3722 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
3723 and darwin-ldoubdle.c.
3725 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3728 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
3729 (cpp_options): Ditto.
3730 (default_compilers): Ditto.
3731 (display_help): Ditto.
3732 (process_command): Ditto.
3734 (set_input): Use lbasename instead of duplicate code.
3735 (save_temps_prefix): New static for -save-temps=obj.
3736 (save_temps_length): Ditto.
3738 * doc/invoke.texi (-save-temps=obj): Document new variant to
3741 2009-04-02 Jeff Law <law@redhat.com>
3743 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
3746 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
3748 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
3749 * configure: Regenerated.
3751 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
3753 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
3754 share the argument list.
3756 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
3760 2009-02-12 Diego Novillo <dnovillo@google.com>
3762 * varpool.c (debug_varpool): New.
3763 * cgraph.h (debug_varpool): Declare.
3765 2009-04-02 Jan Hubicka <jh@suse.cz>
3767 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
3770 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
3772 * config/i386/i386.c (ix86_abi): Move initialization to ...
3773 (override_options): Here.
3775 2009-04-02 Christian Bruel <christian.bruel@st.com>
3777 * config/sh/sh.c (sh_dwarf_register_span): New function.
3778 (TARGET_DWARF_REGISTER_SPAN): Define.
3779 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
3781 2009-04-02 Ira Rosen <irar@il.ibm.com>
3783 PR tree-optimization/39595
3784 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
3785 interleaved loads group is not greater than the SLP group size.
3787 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
3789 * builtins.c (is_builtin_name): New.
3790 (called_as_built_in): Use is_builtin_name.
3791 * tree.h (is_builtin_name): New.
3792 * varasm.c (incorporeal_function_p): Use is_builtin_name
3794 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
3796 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
3798 2009-04-02 Dodji Seketeli <dodji@redhat.com>
3801 * c-decl.c (clone_underlying_type): Move this ...
3802 * c-common.c (set_underlying_type): ... here.
3803 Also, make sure the function properly sets TYPE_STUB_DECL() on
3804 the newly created typedef variant type.
3805 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
3806 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
3809 2009-04-02 Richard Guenther <rguenther@suse.de>
3811 PR tree-optimization/37221
3812 * tree-flow.h (degenerate_phi_result): Declare.
3813 * tree-ssa-dom.c (degenerate_phi_result): Export.
3814 * tree-scalar-evolution.c (analyze_initial_condition): If
3815 the initial condition is defined by a degenerate PHI node
3816 use the degenerate value.
3818 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
3820 PR rtl-optimization/39588
3821 * combine.c (merge_outer_ops): Do not set the constant when this
3823 (simplify_shift_const_1): Do not modify it either in this case.
3825 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
3827 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
3828 tuning is deprecated if -mtune value is set to an Itanium1 variant.
3830 2009-04-01 Janis Johnson <janis187@us.ibm.com>
3833 * c-lex.c (interpret_float): Default (no suffix) is double.
3835 2009-04-1 Xinliang David Li <davidxl@google.com>
3837 * config/i386/i386.c (legitimate_constant_p): Recognize
3838 all one vector constant.
3840 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3842 * gcc/config/vax/vax.c: Add #includes to silence warnings.
3843 Change #include order to silence two warnings.
3845 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3847 * gcc/config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
3848 (ASM_SPEC): Pass -k to the assembler for PIC code.
3850 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3852 * gcc/config.gcc: Add vax-*-linux* to the switch.
3853 * gcc/config/vax/linux.h: New file. (TARGET_VERSION,
3854 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
3856 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3858 * gcc/config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
3859 Use predicate macros instead of GET_CODE() == foo.
3860 * gcc/config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
3861 ashlsi3, rotrsi3, <unnamed>): Likewise.
3863 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3865 * gcc/config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
3866 jbbccihi, jbbccisi): Remova trailing whitespace.
3867 * gcc/config/vax/constraints.md: Likewise.
3868 * gcc/config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
3869 * gcc/config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
3870 * gcc/config/vax/predicates.md: Likewise.
3871 * gcc/config/vax/vax.c (print_operand_address, vax_output_int_move,
3872 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
3873 * gcc/config/vax/vax.h: Likewise.
3874 * gcc/config/vax/vax.md (nonlocal_goto): Likewise.
3876 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3878 * gcc/config/vax/vax.c (vax_float_literal, vax_output_int_move)
3879 (indirectable_address_p, adjacent_operands_p): Add spaces around
3881 * gcc/config/vax/vax-protos.h (adjacent_operands_p): Likewise.
3883 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3885 * gcc/config/vax/vax.c (legitimate_constant_address_p,
3886 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
3887 index_term_p, reg_plus_index_p, legitimate_address_p,
3888 vax_mode_dependent_address_p): Update comments to match functions
3889 modified by the recent int->bool conversion.
3891 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3893 * gcc/config/vax/builtins.md: Update copyright message.
3894 * gcc/config/vax/constraints.md: Likewise.
3895 * gcc/config/vax/netbsd-elf.h: Likewise.
3896 * gcc/config/vax/predicates.md: Likewise.
3897 * gcc/config/vax/vax-protos.h: Likewise.
3898 * gcc/config/vax/vax.c: Likewise.
3899 * gcc/config/vax/vax.h: Likewise.
3900 * gcc/config/vax/vax.md: Likewise.
3901 * gcc/config/vax/vax.opt: Likewise.
3903 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3905 * gcc/config/vax/builtins.md (ffssi2, ffssi2_internal,
3906 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
3907 * gcc/config/vax/constraints.md (B, R): Likewise.
3908 * gcc/config/vax/predicates.md (external_memory_operand,
3909 nonimmediate_addsub_di_operand): Likewise.
3910 * gcc/config/vax/vax.c (vax_output_int_add): Likewise.
3911 * gcc/config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
3912 untyped_call): Likewise.
3914 2009-04-01 Matt Thomas <matt@3am-software.com>
3916 * config/vax/predicates.md: New file.
3917 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
3918 external_const_operand, nonsymbolic_operand, external_memory_operand,
3919 indirect_memory_operand, indexed_memory_operand,
3920 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
3921 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
3923 * config/vax/constraints.md: New file.
3924 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
3926 * config/vax/builtins.md: New file.
3927 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
3928 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
3930 * config/vax/vax.opt (mqmath): Add option.
3931 * config/vax/vax.md (isfx): Extend with DI.
3932 (VAXintQH, VAXintQHSD): Define.
3933 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
3934 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
3935 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
3936 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
3937 (movdi): Update constraints and use vax_output_int_move().
3938 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
3939 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
3940 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
3941 nonlocal_goto): New.
3942 (mov<mode>): Extend accepted operand types.
3943 (subdi3_old): Rename from subdi3, change update constraints and use
3944 a new implementation.
3945 * gcc/config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
3946 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
3947 MOVE_RATIO, CLEAR_RATIO): Define.
3948 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
3949 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
3950 (PRINT_OPERAND): Redefine using a function instead of inlined code.
3951 * gcc/config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3952 (split_quadword_operands): Make static and really allow variable
3954 (print_operand_address): Update for PIC generation.
3955 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
3956 indexable_address_p, fixup_mathdi_operand,
3957 vax_expand_addsub_di_operands, adjacent_operands_p): New.
3958 (vax_float_literal, legitimate_constant_p,
3959 indirectable_constant_address_p, index_term_p,
3960 reg_plus_index_p): Return bool instead of int.
3961 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
3963 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
3965 (vax_output_conditional_branch): Indent.
3966 (legitimate_constant_address_p, indirectable_constant_address_p,
3967 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
3968 vax_mode_dependent_address_p): Return bool instead of int, update for
3970 * config/vax/vax-protos.h (legitimate_constant_address_p,
3971 legitimate_constant_p, legitimate_address_p,
3972 vax_mode_dependent_address_p): Change declaration to bool.
3973 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
3974 vax_expand_addsub_di_operands, vax_output_int_subtract,
3975 vax_output_movmemsi): Declare.
3976 (split_quadword_operands, vax_float_literal): Delete declaration.
3977 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
3978 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
3979 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
3980 ASM_OUTPUT_DWARF_PCREL): Define.
3981 (ASM_SPEC): Change definition to allow PIC generation.
3983 2009-04-01 Steve Ellcey <sje@cup.hp.com>
3985 * doc/sourcebuild.texi: Update front-end requirements.
3987 2009-04-01 Jakub Jelinek <jakub@redhat.com>
3990 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
3991 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
3992 (booldi3_internal3): Use boolean_or_operator instead of
3995 2009-04-01 Joseph Myers <joseph@codesourcery.com>
3998 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
3999 declarator whose size is not an integer constant expression but
4000 folds to an integer constant, then treat it as a constant
4003 2009-04-01 Richard Guenther <rguenther@suse.de>
4005 * fold-const.c (fold_plusminus_mult_expr): Do not fold
4006 i * 4 + 2 to (i * 2 + 1) * 2.
4008 2009-04-01 Jakub Jelinek <jakub@redhat.com>
4011 * c-parser.c (c_parser_asm_statement): Skip until close paren and
4012 return if c_parser_asm_string_literal returned NULL.
4014 2009-04-01 Nick Clifton <nickc@redhat.com>
4016 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
4018 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
4019 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
4020 other typedefs to avoid conflicts with libgcc2.c. Define labels
4021 to gain 16-bit bit-manipulation functions from libgcc2.c and then
4023 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
4024 to gain 16-bit trapping arithmetic functions from libgcc2.c and
4027 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
4029 * varasm.c (default_function_rodata_section): Declare DOT as
4032 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
4033 Andrey Galkin <agalkin@hypercom.com>
4036 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
4037 Make object_name unique for each process.
4039 2009-04-01 Jakub Jelinek <jakub@redhat.com>
4042 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
4043 addressable variables in the parallel that could go out of scope while
4044 running queued tasks.
4046 2009-04-01 Anatoly Sokolov <aesok@post.ru>
4048 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
4049 (CASE_VALUES_THRESHOLD): Redefine.
4050 * config/avr/avr.c (avr_override_options): Remove initialization of
4051 avr_case_values_threshold variable.
4052 (avr_case_values_threshold): Remove variable. Add new function.
4053 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
4054 * config/avr/avr.opt (mno-tablejump): Remove option.
4055 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
4057 2009-04-01 DJ Delorie <dj@redhat.com>
4059 * varasm.c (default_function_rodata_section): Don't assume
4060 anything about where the first '.' in the section name is.
4062 2009-04-01 Alan Modra <amodra@bigpond.net.au>
4064 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
4065 rs6000_emit_stack_tie.
4067 2009-03-31 Ian Lance Taylor <iant@google.com>
4069 * tree-eh.c (tree_remove_unreachable_handlers): Compare
4070 gimple_code with GIMPLE_RESX, not RESX.
4072 2009-03-31 Joseph Myers <joseph@codesourcery.com>
4074 * c-common.c (c_get_ident): New.
4075 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
4077 2009-04-01 Ben Elliston <bje@au.ibm.com>
4079 * config/rs6000/sysv4.opt (msdata): Improve option description.
4081 2009-03-31 Steve Ellcey <sje@cup.hp.com>
4083 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
4084 (divdf3_internal_lat): Remove.
4085 (divxf3_internal_lat): Remove.
4086 (divxf3_internal_thr): Remove.
4087 (divxf): Use divxf3_internal.
4088 * config/ia64/div.md (divsf3_internal_lat): New.
4089 (divdf3_internal_lat): New.
4090 (divxf3_internal): New.
4092 2009-03-31 Joseph Myers <joseph@codesourcery.com>
4095 * Makefile.in (USE_GCC_STDINT): Define.
4096 (stmp-int-hdrs): Install stdint.h if applicable.
4097 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
4099 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
4100 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
4101 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
4102 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
4103 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
4104 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
4105 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
4106 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
4107 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
4108 (c_common_nodes_and_builtins): Initialize
4109 underlying_wchar_type_node. Do not initialize
4110 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
4111 nodes for new types.
4112 (c_stddef_cpp_builtins): Define macros for new types.
4113 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
4115 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
4116 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
4117 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
4118 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
4119 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
4120 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
4121 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
4122 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
4123 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
4124 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
4125 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
4126 int16_type_node, int32_type_node, int64_type_node,
4127 uint8_type_node, uint16_type_node, c_uint32_type_node,
4128 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
4129 int_least32_type_node, int_least64_type_node,
4130 uint_least8_type_node, uint_least16_type_node,
4131 uint_least32_type_node, uint_least64_type_node,
4132 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
4133 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
4134 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
4135 uintptr_type_node): Define.
4136 * c-cppbuiltin.c (builtin_define_constants,
4137 builtin_define_type_minmax): New.
4138 (builtin_define_stdint_macros): Define more macros.
4139 (c_cpp_builtins): Define more limit macros.
4141 (builtin_define_type_max): Define in terms of
4142 builtin_define_type_minmax. Remove is_long parameter. All
4144 * config.gcc (use_gcc_stdint): Define.
4145 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
4146 Add newlib-stdint.h for generic targets.
4147 * config/glibc-stdint.h, config/newlib-stdint.h,
4148 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
4149 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
4150 * config/score/score.h (UINTPTR_TYPE): Define.
4151 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
4152 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
4153 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
4154 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
4155 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
4156 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
4157 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
4158 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
4159 * config/spu/spu.h (STDINT_LONG32): Define.
4160 * configure.ac (use_gcc_stdint): Substitute.
4161 * configure: Regenerate.
4162 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
4163 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
4164 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
4165 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
4166 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
4167 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
4168 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
4169 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
4170 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
4171 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
4172 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
4173 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
4174 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
4175 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
4176 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
4177 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
4178 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
4179 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
4180 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
4181 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
4182 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
4183 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
4184 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
4185 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
4186 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
4187 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
4188 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
4189 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
4190 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
4192 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
4194 * loop-iv.c (suitable_set_for_replacement): Renamed from
4195 simplify_using_assignment; changed to return bool and to accept new
4196 args DEST and SRC. Return true iff we find a source/destination pair
4197 that can be used to make a replacement, and fill SRC and DEST if so.
4198 Remove arg ALTERED. Don't deal with altered regs here. All callers
4200 (simplify_using_initial_values): Deal with altered regs here and track
4201 more precisely the effect they have on the validity of our expression.
4203 * loop-iv.c (simplify_using_condition): A condition of the form
4204 (EQ REG CONST) can be used to simply make a substitution.
4205 (simplify_using_initial_values): Keep track of conditions we have seen
4206 and keep using them to simplify new expressions, while applying the
4207 same substitutions to them as to the expression.
4209 * simplify-rtx.c (simplify_relational_operation_1): Simplify
4210 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
4213 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
4214 changed. Use this when trying to improve the upper bound.
4215 Generate the comparison by using simplify_gen_relational.
4217 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
4219 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
4221 (simplify_using_assignment, simplify_using_initial_values): Call
4222 replace_in_expr to make replacements. Call replace_single_def_regs
4223 once on the initial version of the expression.
4225 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4228 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
4230 2009-03-31 Richard Guenther <rguenther@suse.de>
4233 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
4234 equality comparisons. Fold C - X CMP X if C % 2 == 1.
4236 2009-03-31 Richard Guenther <rguenther@suse.de>
4238 * tree.h (div_if_zero_remainder): Declare.
4239 * fold-const.c (div_if_zero_remainder): Export.
4240 * tree-ssa-forwprop.c
4241 (forward_propagate_addr_into_variable_array_index): Handle
4242 constant array index addition outside of the variable index.
4244 2009-03-31 Joseph Myers <joseph@codesourcery.com>
4247 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
4248 define_splits, floatunssi<mode>2): Require x87 conversions from
4249 DImode to be permitted.
4251 2009-03-31 Joseph Myers <joseph@codesourcery.com>
4253 PR preprocessor/15638
4254 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
4256 2009-03-31 Richard Guenther <rguenther@suse.de>
4260 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
4261 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
4262 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
4263 a separate statement.
4264 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
4265 (lookup_tmp_var): Likewise.
4266 (is_gimple_formal_tmp_or_call_rhs): Remove.
4267 (is_gimple_reg_or_call_rhs): Rename to ...
4268 (is_gimple_reg_rhs_or_call): ... this.
4269 (is_gimple_mem_or_call_rhs): Rename to ...
4270 (is_gimple_mem_rhs_or_call): ... this.
4271 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
4272 DECL_GIMPLE_REG_P only if is_formal is true.
4273 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
4274 for non-proper post-modify expression gimplification.
4275 (gimplify_self_mod_expr): For post-modify expressions gimplify
4276 the lvalue to a minimal lvalue.
4277 (rhs_predicate_for): Remove formal temp case.
4278 (gimplify_modify_expr_rhs): Likewise.
4279 (gimplify_addr_expr): Use is_gimple_reg.
4280 (gimplify_expr): Remove formal temp cases.
4281 (gimple_regimplify_operands): Likewise.
4282 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
4283 and FILTER_EXPR like constants.
4284 * gimple.c (walk_gimple_op): Fix val_only initialization, use
4286 (is_gimple_formal_tmp_rhs): Remove.
4287 (is_gimple_reg_rhs): Remove special casing.
4288 (is_gimple_mem_rhs): Fix.
4289 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
4290 (is_gimple_formal_tmp_var): Remove.
4291 (is_gimple_formal_tmp_reg): Likewise.
4292 (is_gimple_min_lval): Allow invariant component ref parts.
4293 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
4294 is_gimple_formal_tmp_reg): Remove declarations.
4295 * tree-cfg.c (verify_expr): Verify that variables with address
4296 taken do not have DECL_GIMPLE_REG_P set.
4297 * tree-mudflap.c (mf_build_check_statement_for): Use
4298 force_gimple_operand instead of gimplify_expr.
4300 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
4302 * modulo-sched.c (sms_schedule_by_order): Pass the actual
4303 schedulable rows to compute_split_row.
4305 2009-03-31 Ben Elliston <bje@au.ibm.com>
4308 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
4311 2009-03-31 Alan Modra <amodra@bigpond.net.au>
4313 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
4314 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
4315 * configure: Regenerate.
4316 * config.in: Regenerate.
4317 * config/rs6000/rs6000.opt (mtls-markers): Add.
4318 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
4319 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
4320 (tls_ld_aix, tls_ld_sysv): Likewise.
4321 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
4322 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
4324 2009-03-31 Alan Modra <amodra@bigpond.net.au>
4326 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
4328 2009-03-30 Jan Hubicka <jh@suse.cz>
4330 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
4332 (tree_remove_unreachable_handlers): Cleanup EH predecestor
4333 detection and label handling.
4335 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
4337 * ira-int.h (ira_allocno): Rename left_conflicts_num to
4338 left_conflicts_size.
4339 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
4340 ALLOCNO_LEFT_CONFLICTS_SIZE.
4342 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
4343 remove_allocno_from_bucket_and_push,
4344 allocno_spill_priority_compare, push_allocnos_to_stack,
4345 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
4346 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
4347 (setup_allocno_left_conflicts_num): Ditto. Rename to
4348 setup_allocno_left_conflicts_size.
4349 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
4350 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
4351 setup_allocno_left_conflicts_size instead of
4352 setup_allocno_left_conflicts_num.
4354 * ira-build.c (ira_create_allocno): Use
4355 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
4356 ALLOCNO_LEFT_CONFLICTS_NUM.
4358 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
4360 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
4361 instead of DF_LR_OUT.
4363 * ira-lives.c (process_bb_node_lives): Ditto.
4365 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
4366 instead of DF_LR_{OUT,IN}.
4368 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
4370 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
4372 2009-03-30 Jan Hubicka <jh@suse.cz>
4374 * except.c (label_to_region_map): Fix thinko.
4376 2009-03-30 Steve Ellcey <sje@cup.hp.com>
4379 * tree.h (tree_find_value): New declaration.
4380 * tree.c (tree_find_value): New function.
4381 * varasm.c (assemble_external): Avoid duplicate entries on lists.
4383 2009-03-30 Jakub Jelinek <jakub@redhat.com>
4386 * c-decl.c (struct c_binding): Add locus field.
4387 (bind): Add locus argument, set locus field from it.
4388 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
4389 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
4390 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
4391 implicitly_declare, undeclared_variable, lookup_label,
4392 declare_label, c_make_fname_decl, c_builtin_function,
4393 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
4396 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
4399 * config/i386/i386.c (classify_argument): Check total size of
4402 2009-03-30 Martin Jambor <mjambor@suse.cz>
4404 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
4405 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
4406 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
4409 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
4410 seen_variable_array_ref while also traversing a union.
4412 * tree-inline.c (optimize_inline_calls): Do not call
4413 cgraph_node_remove_callees.
4414 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
4415 (pass_remove_cgraph_callee_edges): New variable.
4416 * passes.c (init_optimization_passes): Add
4417 pass_remove_cgraph_callee_edges after early inlining and before all
4418 late intraprocedural passes.
4420 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
4422 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4424 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
4427 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4429 * combine.c (simplify_comparison): Use have_insn_for.
4430 * dojump.c (do_jump): Likewise.
4432 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4434 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
4435 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
4436 sparc_compare_op0 like sparc_compare_emitted used to be handled.
4437 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
4438 instead of sparc_compare_emitted.
4439 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
4440 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
4441 instead of sparc_compare_emitted.
4443 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4445 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
4446 enter/exit cfglayout mode.
4447 (pass_partition_block): Require it.
4448 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
4449 (combine_instructions): Track basic blocks instead of labels.
4450 (update_cfg_for_uncondjump): New.
4451 (try_combine): Use it. Update jumps after rescanning.
4452 (pass_combine): Require PROP_cfglayout.
4453 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
4455 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4457 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
4458 Provide/destroy PROP_cfglayout respectively.
4459 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
4460 * tree-pass.h (PROP_cfglayout): New.
4462 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4464 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
4465 fold_convert_const_fixed_from_fixed,
4466 fold_convert_const_fixed_from_int,
4467 fold_convert_const_fixed_from_real, fold_negate_const): Do not
4468 set TREE_CONSTANT_OVERFLOW.
4469 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
4470 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
4472 2009-03-30 Ira Rosen <irar@il.ibm.com>
4474 * tree-vect-loop-manip.c: New file.
4475 * tree-vectorizer.c: Update documentation and included files.
4476 (vect_loop_location): Make extern.
4477 (rename_use_op): Move to tree-vect-loop-manip.c
4478 (rename_variables_in_bb, rename_variables_in_loop,
4479 slpeel_update_phis_for_duplicate_loop,
4480 slpeel_update_phi_nodes_for_guard1,
4481 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
4482 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
4483 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
4484 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
4485 find_loop_location): Likewise.
4486 (new_stmt_vec_info): Move to tree-vect-stmts.c.
4487 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
4488 get_vectype_for_scalar_type, vect_is_simple_use,
4489 supportable_widening_operation, supportable_narrowing_operation):
4491 (bb_in_loop_p): Move to tree-vect-loop.c.
4492 (new_loop_vec_info, destroy_loop_vec_info,
4493 reduction_code_for_scalar_code, report_vect_op,
4494 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
4495 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
4496 (vect_supportable_dr_alignment): Likewise.
4497 * tree-vectorizer.h (tree-data-ref.h): Include.
4498 (vect_loop_location): Declare.
4499 Reorganize function declarations according to the new file structure.
4500 * tree-vect-loop.c: New file.
4501 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
4502 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
4503 * tree-vect-data-refs.c: New file.
4504 * tree-vect-patterns.c (timevar.h): Don't include.
4505 * tree-vect-stmts.c: New file.
4506 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
4507 tree-vect-slp.c, tree-vect-loop.c.
4508 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
4509 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
4510 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
4511 (tree-vect-analyze.o): Remove.
4512 (tree-vect-transform.o): Likewise.
4513 (tree-vect-data-refs.o): Add rule.
4514 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
4515 tree-vect-slp.o): Likewise.
4516 (tree-vect-patterns.o): Remove redundant dependencies.
4517 (tree-vectorizer.o): Likewise.
4518 * tree-vect-slp.c: New file.
4520 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4522 * optc-gen.awk: Warn if an option flag has multiple different
4525 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
4527 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
4528 -floop-block): Document dependences on PPL, CLooG and Graphite.
4530 2009-03-30 Joseph Myers <joseph@codesourcery.com>
4532 PR rtl-optimization/323
4533 * c-common.c (c_fully_fold, convert_and_check,
4534 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
4535 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
4536 * c-common.def (EXCESS_PRECISION_EXPR): New.
4537 * c-cppbuiltin.c (builtin_define_float_constants): Define
4538 constants with enough digits for long double.
4539 * c-lex.c (interpret_float): Interpret constant with excess
4540 precision where appropriate.
4541 * c-opts.c (c_common_post_options): Set
4542 flag_excess_precision_cmdline. Give an error for
4543 -fexcess-precision=standard for C++ for processors where the
4544 option is significant.
4545 * c-parser.c (c_parser_conditional_expression): Handle excess
4546 precision in condition.
4547 * c-typeck.c (convert_arguments): Handle arguments with excess
4549 (build_unary_op): Move excess precision outside operation.
4550 (build_conditional_expr): Likewise.
4551 (build_compound_expr): Likewise.
4552 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
4553 (build_modify_expr): Handle excess precision in RHS.
4554 (convert_for_assignment): Handle excess precision in converted
4556 (digest_init, output_init_element, process_init_element): Handle
4557 excess precision in initializer.
4558 (c_finish_return): Handle excess precision in return value.
4559 (build_binary_op): Handle excess precision in operands and add
4560 excess precision as needed for operation.
4561 * common.opt (-fexcess-precision=): New option.
4562 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
4563 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
4564 For standard excess precision, output explicit conversion to and
4565 truncation from XFmode.
4566 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
4567 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
4568 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
4569 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
4570 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
4571 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
4572 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
4573 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
4574 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
4575 define_splits, sqrt<mode>2): Disable where appropriate for
4576 standard excess precision.
4577 * convert.c (convert_to_real): Do not shorten arithmetic to type
4578 for which excess precision would be used.
4579 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
4580 * doc/invoke.texi (-fexcess-precision=): Document option.
4581 (-mfpmath=): Correct index entry.
4582 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
4583 flag_excess_precision): New.
4584 * langhooks.c (lhd_post_options): Set
4585 flag_excess_precision_cmdline.
4586 * opts.c (common_handle_option): Handle -fexcess-precision=.
4587 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
4588 init_excess_precision): New.
4589 (lang_dependent_init_target): Call init_excess_precision.
4590 * tree.c (excess_precision_type): New.
4591 * tree.h (excess_precision_type): Declare.
4593 2009-03-30 Joseph Myers <joseph@codesourcery.com>
4596 * c-typeck.c (build_component_ref): Do not copy qualifiers from
4597 non-lvalue to component.
4599 2009-03-29 Joseph Myers <joseph@codesourcery.com>
4601 PR preprocessor/34695
4602 * Makefile.in (c-opts.o): Depend on c-tree.h.
4603 * c-common.c: Move down include of diagnostic.h.
4604 (done_lexing, c_cpp_error): New.
4605 * c-common.h (done_lexing): Declare.
4606 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
4608 * c-opts.c: Include c-tree.h.
4609 (c_common_init_options): Set preprocessor error callback.
4610 (c_common_handle_option): Do not set preprocessor
4611 inhibit_warnings, warnings_are_errors, warn_system_headers,
4612 pedantic_errors or inhibit_warnings flags.
4613 (c_common_post_options): Do not check cpp_errors (parse_in).
4614 (c_common_finish): Do not output dependencies if there were
4615 errors. Do not check return value of cpp_finish.
4616 * c-ppoutput.c (pp_file_change): Set input_location.
4617 * c-tree.h (c_cpp_error): Declare.
4618 * diagnostic.c (diagnostic_set_info_translated): Also initialize
4620 (diagnostic_build_prefix): Check override_column.
4621 * diagnostic.h (diagnostic_info): Add override_column field.
4622 (diagnostic_override_column): Define.
4624 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
4626 * c-common.c (c_expand_expr, c_staticp): Remove.
4627 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
4628 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
4629 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
4630 * c-gimplify.c (gimplify_compound_literal_expr,
4631 optimize_compound_literals_in_ctor): Remove.
4632 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
4633 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
4634 * c-semantics.c (emit_local_var): Remove.
4636 * langhooks-def.h (lhd_expand_expr): Remove.
4637 * langhooks.c (lhd_expand_expr): Remove.
4638 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
4640 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
4641 handling from c-semantics.c; don't call into langhook.
4642 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
4643 * gimplify.c (gimplify_compound_literal_expr,
4644 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
4645 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
4646 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
4647 as was done in c-gimplify.c.
4648 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
4649 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
4650 Move from c-common.h.
4651 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
4653 * tree.c (staticp): Do not call langhook.
4654 * langhooks.c (lhd_staticp): Delete.
4655 * langhooks-def.h (lhd_staticp): Delete prototype.
4656 (LANG_HOOKS_STATICP): Delete.
4657 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
4659 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
4660 instead of DECL_STMTs.
4662 2009-03-29 Joseph Myers <joseph@codesourcery.com>
4670 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
4672 (fold_call_expr): Return a NOP_EXPR from folding rather than the
4673 contained expression.
4674 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
4675 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
4676 conditional expressions for C.
4677 (decl_constant_value_for_optimization): Move from
4678 decl_constant_value_for_broken_optimization in c-typeck.c. Check
4679 whether optimizing and that the expression is a VAR_DECL not of
4680 array type instead of doing such checks in the caller. Do not
4681 check pedantic. Call gcc_unreachable for C++.
4682 * c-common.def (C_MAYBE_CONST_EXPR): New.
4683 * c-common.h (c_fully_fold, c_save_expr,
4684 decl_constant_value_for_optimization): New prototypes.
4685 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
4686 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
4687 EXPR_INT_CONST_OPERANDS): Define.
4688 * c-convert.c (convert): Strip nops from expression.
4689 * c-decl.c (groktypename): Take extra parameters expr and
4690 expr_const_operands. Update call to grokdeclarator.
4691 (start_decl): Update call to grokdeclarator. Add statement for
4692 expressions used in type of decl.
4693 (grokparm): Update call to grokdeclarator.
4694 (push_parm_decl): Update call to grokdeclarator.
4695 (build_compound_literal): Add parameter non_const and build a
4696 C_MAYBE_COSNT_EXPR if applicable.
4697 (grokdeclarator): Take extra parameters expr and
4698 expr_const_operands. Track expressions used in declaration
4699 specifiers and declarators. Fold array sizes and track whether
4700 they are constant expressions and whether they are integer
4701 constant expressions.
4702 (parser_xref_tag): Set expr and expr_const_operands fields in
4704 (grokfield): Update call to grokdeclarator.
4705 (start_function): Update call to grokdeclarator.
4706 (build_null_declspecs): Set expr and expr_const_operands fields in
4708 (declspecs_add_type): Handle expressions in typeof specifiers.
4709 * c-parser.c (c_parser_declspecs): Set expr and
4710 expr_const_operands fields for declaration specifiers.
4711 (c_parser_enum_specifier): Likewise.
4712 (c_parser_struct_or_union_specifier): Likewise.
4713 (c_parser_typeof_specifier): Likewise. Update call to
4714 groktypename. Fold expression as needed. Return expressions with
4715 type instead of adding statements.
4716 (c_parser_attributes): Update calls to c_parser_expr_list.
4717 (c_parser_statement_after_labels): Fold expression before passing
4718 to objc_build_throw_stmt.
4719 (c_parser_condition): Fold expression.
4720 (c_parser_asm_operands): Fold expression.
4721 (c_parser_conditional_expression): Use c_save_expr. Update call
4722 to build_conditional_expr.
4723 (c_parser_alignof_expression): Update call to groktypename.
4724 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
4725 original_code. Fold expression argument of va_arg. Create
4726 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
4727 argument to va_arg. Update calls to groktypename. Fold array
4728 index for offsetof. Verify that first argument to
4729 __builtin_choose_expr has integer type.
4730 (c_parser_postfix_expression_after_paren_type): Update calls to
4731 groktypename and build_compound_literal. Handle expressions with
4732 side effects in type name.
4733 (c_parser_postfix_expression_after_primary): Update call to
4734 c_parser_expr_list. Set original_code for calls to
4735 __builtin_constant_p.
4736 (c_parser_expr_list): Take extra parameter fold_p. Fold
4737 expressions if requested.
4738 (c_parser_objc_type_name): Update call to groktypename.
4739 (c_parser_objc_synchronized_statement): Fold expression.
4740 (c_parser_objc_receiver): Fold expression.
4741 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
4742 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
4743 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
4744 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
4745 (struct c_typespec): Add elements expr and expr_const_operands.
4746 (struct c_declspecs): Add elements expr and expr_const_operands.
4747 (groktypename, build_conditional_expr, build_compound_literal):
4749 (in_late_binary_op): Declare.
4750 * c-typeck.c (note_integer_operands): New function.
4751 (in_late_binary_op): New variable.
4752 (decl_constant_value_for_broken_optimization): Move to c-common.c
4753 and rename to decl_constant_value_for_optimization.
4754 (default_function_array_conversion): Do not strip nops.
4755 (default_conversion): Do not call
4756 decl_constant_value_for_broken_optimization.
4757 (build_array_ref): Do not fold result.
4758 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
4759 result when operand is a VLA.
4760 (c_expr_sizeof_type): Update call to groktypename. Handle
4761 expressions included in type name. Use C_MAYBE_CONST_EXPR for
4762 result when operand names a VLA type.
4763 (build_function_call): Update call to build_compound_literal.
4764 Only fold result for calls to __builtin_* functions. Strip
4765 NOP_EXPR from INTEGER_CST returned from such functions. Fold
4766 the function designator.
4767 (convert_arguments): Fold arguments. Update call to
4768 convert_for_assignment.
4769 (build_unary_op): Handle increment and decrement of
4770 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
4771 decrement earlier. Fold operand of increment and decrement.
4772 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
4773 built for integer operand. Wrap returns that are INTEGER_CSTs
4774 without being integer constant expressions or that have integer
4775 constant operands without being INTEGER_CSTs.
4776 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
4777 (build_conditional_expr): Add operand ifexp_bcp. Track whether
4778 result is an integer constant expression or can be used in
4779 unevaluated parts of one and avoid folding and wrap as
4780 appropriate. Fold operands before possibly doing -Wsign-compare
4782 (build_compound_expr): Wrap result for C99 if operands can be used
4783 in integer constant expressions.
4784 (build_c_cast): Update call to digest_init. Do not ignore
4785 overflow from casting floating-point constants to integers. Wrap
4786 results that could be confused with integer constant expressions,
4787 null pointer constants or floating-point constants.
4788 (c_cast_expr): Update call to groktypename. Handle expressions
4789 included in type name.
4790 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
4791 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
4792 Update calls to convert_for_assignment.
4793 (convert_for_assignment): Take new parameter
4794 null_pointer_constant. Do not strip nops or call
4795 decl_constant_value_for_broken_optimization. Set
4796 in_late_binary_op for conversions to boolean.
4797 (store_init_value): Update call to digest_init.
4798 (digest_init): Take new parameter null_pointer_constant. Do not
4799 call decl_constant_value_for_broken_optimization. pedwarn for
4800 initializers not constant expressions. Update calls to
4801 convert_for_assignment.
4802 (constructor_nonconst): New.
4803 (struct constructor_stack): Add nonconst element.
4804 (really_start_incremental_init, push_init_level, pop_init_level):
4805 Handle constructor_nonconst and nonconst element.
4806 (set_init_index): Call constant_expression_warning for array
4808 (output_init_element): Fold value. Set constructor_nonconst as
4809 applicable. pedwarn for initializers not constant expressions.
4810 Update call to digest_init. Call constant_expression_warning
4811 where constant initializers are required.
4812 (process_init_element): Use c_save_expr.
4813 (c_finish_goto_ptr): Fold expression.
4814 (c_finish_return): Fold return value. Update call to
4815 convert_for_assignment.
4816 (c_start_case): Fold switch expression.
4817 (c_process_expr_stmt): Fold expression.
4818 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
4819 ensure statement expression is not evaluated in constant expression.
4820 (build_binary_op): Track whether results are integer constant
4821 expressions or may occur in such, disable folding and wrap results
4822 as applicable. Fold operands for -Wsign-compare warnings unless
4824 (c_objc_common_truthvalue_conversion): Handle results folded to
4825 integer constants that are not integer constant expressions.
4826 * doc/extend.texi: Document when typeof operands are evaluated,
4827 that condition of __builtin_choose_expr is an integer constant
4828 expression, and more about use of __builtin_constant_p in
4831 2009-03-29 Richard Guenther <rguenther@suse.de>
4833 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
4834 propagate addresses of array references.
4836 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
4838 * regmove.c (perhaps_ends_bb_p): Remove.
4839 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
4840 from INSN and check that the main loop stays within that basic block.
4841 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
4842 (regmove_forward_pass): Split out from regmove_optimize. Use
4843 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
4844 (regmove_backward_pass): Split out from regmove_optimize. Use
4845 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
4846 (regmove_optimize): Simplify.
4848 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
4851 * config/i386/i386.c (classify_argument): Ignore flexible array
4852 member in struct and warn ABI change.
4854 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
4856 * config/i386/i386-protos.h (ix86_agi_dependent): New.
4858 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
4859 (ix86_adjust_cost): Updated.
4861 2009-03-29 Jan Hubicka <jh@suse.cz>
4864 * tree-pass.h (pass_cleanup_eh): New function.
4865 (remove_unreachable_regions): Break code handling RTL
4866 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
4867 that can not be reached by runtime.
4868 (can_be_reached_by_runtime): New function.
4869 (label_to_region_map): New function.
4870 (num_eh_regions): New function.
4871 (rtl_remove_unreachable_regions): New function.
4872 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
4873 (remove_eh_region): New function.
4874 * except.h: Include sbitmap and vecprim.
4875 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
4876 num_eh_regions): Declare.
4877 * passes.c (init_optimization_passes): Schedule cleanup_eh.
4878 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
4879 * tree-eh.c (tree_remove_unreachable_handlers): New function.
4880 (tree_empty_eh_handler_p): New function.
4881 (cleanup_empty_eh): New function.
4882 (cleanup_eh): New function.
4883 (pass_cleanup_eh): New function.
4885 2009-03-29 Jan Hubicka <jh@suse.cz>
4887 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
4888 for removed regions.
4890 2009-03-29 Jan Hubicka <jh@suse.cz>
4892 * except.c (dump_eh_tree): Dump all datastructures.
4894 2009-03-29 Jan Hubicka <jh@suse.cz>
4896 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
4897 (duplicate_eh_regions_1): Likewise.
4898 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
4899 vector; call EH verification.
4900 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
4901 Be ready for region being removed.
4903 2009-03-29 Jan Hubicka <jh@suse.cz>
4905 * bitmap.c (bitmap_last_set_bit): New function.
4906 * bitmap.h (bitmap_last_set_bit): Declare.
4908 2009-03-29 David Ayers <ayers@fsfe.org>
4911 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
4912 by calling objc_compare_types and surpress warnings about
4913 incompatible C pointers that are compatible ObjC pointers.
4915 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
4917 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
4918 call initialize_inline_failed.
4919 (initialize_inline_failed): Move it from here ...
4920 * cgraph.c (initialize_inline_failed): ... to here.
4921 (cgraph_create_edge): Call initialize_inline_failed rather than
4922 setting inline_failed directly.
4924 2009-03-29 Ben Elliston <bje@au.ibm.com>
4927 * sysv4.opt (msdata): Improve comment.
4928 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
4929 * sysv4.h (SVR4_ASM_SPEC): Likewise.
4931 2009-03-29 Ben Elliston <bje@au.ibm.com>
4934 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
4935 load and store attributes.
4937 2009-03-29 Ben Elliston <bje@au.ibm.com>
4939 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
4940 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
4941 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
4942 * doc/extend.texi (X86 Built-in Functions): Add index entries for
4943 __builtin_infq and __builtin_huge_valq.
4945 2009-03-28 Anatoly Sokolov <aesok@post.ru>
4947 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
4949 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
4950 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
4952 2009-03-28 Xinliang David Li <davidxl@google.com>
4954 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
4955 (do_dbg_cnt): New function.
4957 2009-03-28 Jan Hubicka <jh@suse.cz>
4959 Merge from pretty-ipa:
4961 2009-03-27 Jan Hubicka <jh@suse.cz>
4963 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
4964 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
4965 * passes.c (function_called_by_processed_nodes_p): New.
4966 * ipa-pure-const.c (check_call): Fix handling of operands.
4967 (analyze_function): Dump debug output for skipped bodies.
4968 (local_pure_const): Use function_called_by_processed_nodes_p.
4969 * dwarf2out.c (reference_to_unused): Use output.
4970 * passes.c (do_per_function_toporder): Likewise.
4972 2008-11-12 Jan Hubicka <jh@suse.cz>
4974 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
4975 * ipa-pure-const.c (funct_state_d): Add can throw field; make
4976 state_set_in_source enum
4977 (check_decl): Ignore memory tags; do not set fake looping flags;
4979 (check_operand, check_tree, check_rhs_var, check_lhs_var,
4980 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
4981 (check_call, analyze_function): Rewrite.
4983 (add_new_function): Update call of analyze_function.
4984 (generate_summary): Add call of analyze_function.
4985 (propagate): Propagate can_throw; handle state_set_in_source correctly.
4986 (local_pure_const): New function.
4987 (pass_local_pure_const): New pass.
4988 * ipa-inline.c (inline_transform): Set after_inlining.
4989 * tree-eh.c (stmt_can_throw_external): New.
4990 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
4991 work with aliasing built.
4992 * tree-flow.h (stmt_can_throw_external): New.
4993 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
4994 and local pure/const pass in early and late optimization queue.
4996 2009-03-28 Martin Jambor <mjambor@suse.cz>
4998 * fold-const.c (get_pointer_modulus_and_residue): New parameter
5000 (fold_binary): Allow function decl aligment consideration is the
5001 second argument is integer constant one.
5002 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
5003 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
5004 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
5006 2009-03-28 Jan Hubicka <jh@suse.cz>
5008 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
5009 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
5010 * function.h (rtl_data): Add nothrow flag.
5011 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
5012 set DECL_NOTHROW for AVAILABLE functions.
5014 2009-03-28 Jakub Jelinek <jakub@redhat.com>
5016 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
5017 following vector keyword has expansion starting with pixel or bool
5018 keyword, expand vector to __vector and pixel or bool to __pixel or
5022 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
5023 warn_if_disallowed_function_p): Removed.
5024 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
5025 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
5026 warning_if_disallowed_function_p.
5027 * flags.h (warn_if_disallowed_function_p,
5028 warn_disallowed_functions): Removed.
5029 * common.opt (Wdisallowed-function-list=): Removed.
5030 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
5032 2009-03-28 Richard Guenther <rguenther@suse.de>
5034 PR tree-optimization/38723
5035 * tree-ssa-pre.c (compute_avail): Add all default definitions to
5038 2009-03-28 Jan Hubicka <jh@suse.cz>
5040 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
5041 test introduced by my previous patch.
5043 2009-03-28 Richard Guenther <rguenther@suse.de>
5045 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
5046 the PHIs value undefined.
5048 2009-03-28 Jan Hubicka <jh@suse.cz>
5050 * tree-pass.h (pass_fixup_cfg): New pass.
5051 * ipa-inline.c (inline_transform): Set
5052 always_inline_functions_inlined/after_inlining.
5053 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
5054 (pass_fixup_cfg): New pass.
5055 * passes.c (init_optimization_passes): Add fixup_cfg.
5057 2009-03-28 Richard Guenther <rguenther@suse.de>
5059 PR tree-optimization/38458
5060 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
5061 argument use the arguments copy-of value.
5063 2009-03-28 Richard Guenther <rguenther@suse.de>
5065 PR tree-optimization/38180
5066 * tree-ssa-ccp.c (get_default_value): Simplify.
5067 (likely_value): Likewise.
5068 (surely_varying_stmt_p): Properly handle VOP case.
5069 (ccp_initialize): Likewise.
5070 (ccp_fold): Handle propagating through *&.
5071 (fold_const_aggregate_ref): Also handle decls.
5073 2009-03-28 Jan Hubicka <jh@suse.cz>
5075 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
5076 * cgraph.h (cgraph_node): Likewise.
5077 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
5078 (cgraph_reset_node): Use process flag.
5079 (cgraph_mark_functions_to_output): Likewise.
5080 (cgraph_expand_function): Likewise.
5081 (cgraph_expand_all_functions): Likewise.
5082 (cgraph_output_in_order): Likewise.
5083 * dwarf2out.c (reference_to_unused): Likewise.
5084 * passes.c do_per_function_toporder): Likewise.
5086 2009-03-28 Jan Hubicka <jh@suse.cz>
5088 Bring from lto-branch:
5090 2008-09-03 Doug Kwan <dougkwan@google.com>
5092 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
5093 enums instead of reason strings.
5094 * cgraph.c (cgraph_create_edge): Same.
5095 (cgraph_inline_failed_string): New function.
5096 * cgraph.h (cgraph_inline_failed_t): New enum type.
5097 (cgraph_inline_failed_string): New prototype.
5098 (struct cgraph_edge): Change type of INLINED_FAILED from constant
5099 char pointer to cgraph_inline_failed_t.
5100 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
5101 (cgraph_default_inline_p): Ditto.
5102 * gcc/cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
5103 to cgraph_inline_failed_t pointer.
5104 * cif-code.def: New file.
5105 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
5107 (cgraph_check_inline_limits): Change type of REASON to pointer to
5108 cgraph_inline_failed_t. Replace reason strings with enums.
5109 (cgraph_default_inline_p): Ditto.
5110 (cgraph_recursive_inlining_p): Ditto.
5111 (update_caller_keys): Change type of FAILED_REASON to
5112 cgraph_inline_failed_t.
5113 (cgraph_set_inline_failed): Change type of REASON to pointer to
5114 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
5115 convert enums to strings for text output.
5116 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
5117 to be of type cgraph_inline_failed_t. Replace reason strings with
5118 enums. Call cgraph_inline_failed_string to covert enums
5119 to strings for text output.
5120 (cgraph_decide_inlining): Replace reason strings with enums.
5121 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
5122 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
5124 * tree-inline.c (expand_call_inline): Change type of REASON
5125 to cgraph_inline_failed_t. Replace reason strings with enums.
5126 Call cgraph_inline_failed_string for text output.
5127 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
5130 2009-03-28 Jan Hubicka <jh@suse.cz>
5132 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
5133 cgraph_clone_node): Remove master clone handling.
5134 (cgraph_is_master_clone, cgraph_master_clone): Remove.
5135 * cgraph.h (master_clone): Remove.
5136 (cgraph_is_master_clone, cgraph_master_clone): Remove.
5137 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
5138 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
5140 2009-03-28 Jan Hubicka <jh@suse.cz>
5142 * cgraph.c (cgraph_function_body_availability): Functions declared
5143 inline are always safe to assume that it is not going to be replaced.
5145 2009-03-28 Richard Guenther <rguenther@suse.de>
5147 PR tree-optimization/38513
5148 * tree-ssa-pre.c (eliminate): Remove redundant stores.
5149 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5150 EXC_PTR_EXPR and FILTER_EXPR.
5151 (get_ref_from_reference_ops): Likewise.
5153 2009-03-28 Richard Guenther <rguenther@suse.de>
5155 PR tree-optimization/38968
5156 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
5157 Use FLOOR_MOD_EXPR to compute misalignment.
5159 2009-03-28 Richard Guenther <rguenther@suse.de>
5161 PR tree-optimization/37795
5162 * tree.h (combine_comparisons): Declare.
5163 * fold-const.c (combine_comparisons): Export.
5164 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
5166 (ifcombine_iforif): Use combine_comparisons.
5168 2009-03-28 Jan Hubicka <jh@suse.cz>
5170 * tree-eh.c (inlinable_call_p): New function.
5171 (make_eh_edges): Use it.
5172 (verify_eh_edges): Use it.
5173 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
5174 * except.c (reachable_next_level): Add inlinable_function argument
5175 (sjlj_find_directly_reachable_regions): Update.
5176 (add_reachable_handler): Do not set saw_any_handlers.
5177 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
5178 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
5179 Add new inlinable call parameter.
5180 (can_throw_internal, can_throw_external): Update.
5181 * except.h (can_throw_internal_1, can_throw_external_1,
5182 foreach_reachable_handler): Update declaration.
5184 2009-03-28 Joseph Myers <joseph@codesourcery.com>
5186 * config/arm/t-arm-coff, config/h8300/coff.h,
5187 config/i386/i386-aout.h, config/i386/i386-coff.h,
5188 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
5189 config/pdp11/2bsd.h, config/rs6000/aix41.h,
5190 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
5191 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
5192 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
5193 sys-types.h: Remove.
5194 * Makefile.in: Remove protoize and fixproto support and references
5196 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
5197 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
5199 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
5200 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
5201 unprotoize$(exeext).
5202 (rest.encap): Don't depend on $(STMP_FIXPROTO)
5203 (.PHONY): Don't depend on proto.
5204 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
5205 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
5206 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
5207 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
5208 build/gen-protos.o, build/scan.o, xsys-protos.h,
5209 build/fix-header$(build_exeext), build/fix-header.o,
5210 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
5211 stmp-install-fixproto): Remove.
5212 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
5213 SYSCALLS.c or fixproto files.
5214 (install-common): Don't install protoize.
5215 (install-headers-tar, install-headers-cpio, install-headers-cp):
5216 Don't depend on $(STMP_FIXPROTO).
5217 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
5218 install fixproto files or write out fixproto settings.
5219 (uninstall): Don't uninstall protoize.
5220 * config.gcc (use_fixproto): Remove.
5221 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
5222 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
5223 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
5224 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
5225 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
5226 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
5227 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
5228 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
5229 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
5230 * config/t-vxworks (STMP_FIXPROTO): Remove.
5231 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
5232 STMP_FIXPROTO): Remove.
5233 * config.in, configure: Regenerate.
5234 * crtstuff.c (gid_t, uid_t): Don't undefine.
5235 * doc/install.texi: Change m68k-coff to m68k-elf in example.
5236 (arm-*-coff, arm-*-aout: Remove target entries.
5237 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
5238 Remove mention of AIX 4.1.
5239 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
5240 * doc/invoke.texi (Running Protoize): Remove.
5241 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
5242 (Protoize Caveats): Remove.
5243 * tsystem.h: Update comments on headers assumed to exist.
5245 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
5247 * genautomata.c: Add a new year to the copyright. Add a new
5249 (struct insn_reserv_decl): Add comments for member bypass_list.
5250 (find_bypass): Remove.
5251 (insert_bypass): New.
5252 (process_decls): Use insert_bypass.
5253 (output_internal_insn_latency_func): Output all bypasses with the
5254 same input insn in one switch case.
5256 * rtl.def (define_bypass): Describe bypass choice.
5257 * doc/md.texi (define_bypass): Ditto.
5259 2009-03-27 Richard Guenther <rguenther@suse.de>
5261 * gimplify.c (mark_addressable): Export.
5262 * tree-flow.h (mark_addressable): Declare.
5263 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
5264 * tree-ssa.c (verify_phi_args): Verify that address taken
5265 variables have TREE_ADDRESSABLE set.
5267 2009-03-27 Richard Guenther <rguenther@suse.de>
5269 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
5270 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
5271 Do not mark decls TREE_ADDRESSABLE.
5272 (build_fold_addr_expr): Adjust.
5273 (fold_addr_expr): Remove.
5274 (fold_unary): Use build_fold_addr_expr.
5275 (fold_comparison): Likewise.
5276 (split_address_to_core_and_offset): Likewise.
5277 * coverage.c (tree_coverage_counter_addr): Mark the array decl
5279 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
5280 (gimplify_modify_expr_to_memcpy): Mark source and destination
5282 * omp-low.c (create_omp_child_function): Mark the object decl
5284 (lower_rec_input_clauses): Mark the var we take the address of
5286 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
5288 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5291 * cfgexpand.c (expand_one_stack_var_at): Change alignment
5292 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
5294 2009-03-27 Richard Guenther <rguenther@suse.de>
5296 PR tree-optimization/39120
5297 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
5299 (handle_lhs_call): Process return constraints. Add escape
5300 constraints if necessary.
5301 (handle_const_call): Fill out return constraints. Make nested
5302 case more precise. Avoid consttmp if possible.
5303 (handle_pure_call): Fill out return constraints. Avoid
5304 callused if possible.
5305 (find_func_aliases): Simplify call handling.
5307 2009-03-27 Richard Guenther <rguenther@suse.de>
5309 PR tree-optimization/39120
5310 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
5311 as a representative.
5312 (solve_graph): Do propagate CALLUSED.
5313 (handle_pure_call): Use a scalar constraint from CALLUSED for
5315 (find_what_p_points_to): CALLUSED shall not appear in poins-to
5318 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5321 * c-common.c (handle_aligned_attribute): Properly check alignment
5322 overflow. Use (1U << i) instead of (1 << i).
5324 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
5326 * expr.h (get_mem_align_offset): Updated.
5328 * tree.h (tree_decl_common): Change align to "unsigned int" and
5329 move it before pointer_alias_set.
5331 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5332 Jakub Jelinek <jakub@redhat.com>
5335 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
5336 gr_register_operand with gr_reg_or_0_operand.
5337 (cmpxchg_rel_di): Likewise.
5338 (sync_lock_test_and_set<mode>): Likewise.
5340 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5342 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
5343 (true_regnum): Likewise.
5345 * rtlanal.c (subreg_info): Moved to ...
5346 * rtl.h (subreg_info): Here. New.
5347 (subreg_get_info): New.
5349 * rtlanal.c (subreg_get_info): Make it extern.
5351 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5354 * config/i386/i386.c (ix86_abi): New.
5355 (override_options): Handle -mabi=.
5356 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
5357 (ix86_call_abi_override): Likewise.
5358 (init_cumulative_args): Likewise.
5359 (function_arg_advance): Likewise.
5360 (function_arg_64): Likewise.
5361 (function_arg): Likewise.
5362 (ix86_pass_by_reference): Likewise.
5363 (ix86_function_value_regno_p): Likewise.
5364 (ix86_build_builtin_va_list_abi): Likewise.
5365 (setup_incoming_varargs_64): Likewise.
5366 (is_va_list_char_pointer): Likewise.
5367 (ix86_init_machine_status): Likewise.
5368 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
5369 (ix86_function_type_abi): Return enum calling_abi. Rewrite
5370 for 64bit. Replace DEFAULT_ABI with ix86_abi.
5371 (ix86_function_abi): Make it static and return enum calling_abi.
5372 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
5374 (ix86_fn_abi_va_list): Updated.
5376 * config/i386/i386.h (ix86_abi): New.
5377 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
5378 (CONDITIONAL_REGISTER_USAGE): Likewise.
5379 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
5380 (machine_function): Likewise.
5382 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
5384 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
5385 (STACK_BOUNDARY): Likewise.
5386 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
5388 * config/i386/i386.opt (mabi=): New.
5390 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
5391 return enum calling_abi.
5392 (ix86_function_type_abi): Likewise.
5393 (ix86_function_abi): Removed.
5395 * doc/invoke.texi: Document -mabi= option for x86.
5397 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5399 * builtins.c (real_dconstp): Delete.
5400 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
5402 2009-03-27 Dodji Seketeli <dodji@redhat.com>
5403 Jakub Jelinek <jakub@redhat.com>
5406 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
5407 (gen_subprogram_die): When a function is explicit, generate the
5408 DW_AT_explicit attribute.
5409 * langhooks.h (struct lang_hooks_for_decls): Add
5410 function_decl_explicit_p langhook.
5411 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
5412 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
5414 2009-03-27 Jakub Jelinek <jakub@redhat.com>
5416 * builtins.c (fold_builtin_memory_op): Optimize memmove
5417 into memcpy if we can prove source and destination don't overlap.
5419 * tree-inline.c: Include gt-tree-inline.h.
5420 (clone_fn_id_num): New variable.
5421 (clone_function_name): New function.
5422 (tree_function_versioning): Use it.
5423 * Makefile.in (GTFILES): Add tree-inline.c.
5425 2009-03-27 Mark Mitchell <mark@codesourcery.com>
5427 * BASE-VER: Change to 4.5.0.
5429 2009-03-27 Xinliang David Li <davidxl@google.com>
5431 PR tree-optimization/39557
5432 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
5434 2009-03-27 Xinliang David Li <davidxl@google.com>
5436 PR tree-optimization/39548
5437 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
5440 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5442 * c-common.c (pointer_int_sum): Use %wd on return from
5445 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5447 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
5448 on return from tree_low_cst.
5450 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
5453 * ginclude/stdarg.h (va_copy): Define also for
5454 __GXX_EXPERIMENTAL_CXX0X__.
5456 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5459 * builtins.h (c_strlen): Do not warn here.
5460 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
5461 * c-common.c (pointer_int_sum): Take an explicit location.
5462 Warn about offsets out of bounds.
5463 * c-common.h (pointer_int_sum): Adjust declaration.
5465 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5467 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
5470 2009-03-26 Jakub Jelinek <jakub@redhat.com>
5473 * opts.c (warn_if_disallowed_function_p): Don't assume
5474 get_callee_fndecl must return non-NULL.
5476 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
5478 PR rtl-optimization/39522
5479 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
5480 when reg_reloaded_valid is set.
5482 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5484 * config/spu/divv2df3.c: New file.
5485 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
5486 (DPBIT_FUNCS): Filter out _div_df.
5488 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
5490 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
5491 a jump insn, count that jump in the distance to the loop start.
5493 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
5496 * config/sh/sh.c (calc_live_regs): Fix condition for global
5497 registers except PIC_OFFSET_TABLE_REGNUM.
5499 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
5502 * doc/invoke.texi (-mconsole): New.
5506 (-mnop-fun-dllimport): New.
5510 (sub section "i386 and x86-64 Windows Options"): New.
5512 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
5514 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
5515 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
5517 2009-03-25 Richard Guenther <rguenther@suse.de>
5520 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
5523 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
5525 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
5526 neither of haifa/selective schedulers are working.
5528 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5530 * doc/invoke.texi (Debugging Options): Fix description of
5531 -fno-merge-debug-strings.
5533 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
5535 * config/cris/libgcc.ver: New version-script.
5536 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
5538 * configure.ac <GAS features, nop mnemonic>: Add pattern
5539 crisv32-*-* for "nop".
5540 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
5541 * configure: Regenerate.
5543 2009-03-24 Ira Rosen <irar@il.ibm.com>
5545 PR tree-optimization/39529
5546 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
5547 mark_sym_for_renaming for the tag copied to the new vector
5550 2009-03-24 Arthur Loiret <aloiret@debian.org>
5552 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
5553 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
5554 EXTRA_SPEC_FUNCTIONS.
5555 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
5556 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
5557 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
5558 -march and -mtune options.
5560 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
5562 * config/m68k/t-rtems: Add m5329 multilib.
5564 2009-03-24 Dodji Seketeli <dodji@redhat.com>
5565 Jakub Jelinek <jakub@redhat.com>
5568 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
5571 2009-03-23 Jakub Jelinek <jakub@redhat.com>
5574 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
5575 instead of c_parser_expression_conv, if original_code isn't one of the
5576 4 allowed comparison codes, fail.
5578 2009-03-23 Richard Guenther <rguenther@suse.de>
5580 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
5581 * tree.h (struct tree_type): Likewise.
5582 * reload.h (struct insn_chain): Likewise.
5583 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
5584 * function.h (struct function): Likewise.
5585 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
5587 2009-03-23 Jakub Jelinek <jakub@redhat.com>
5589 PR tree-optimization/39516
5590 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
5592 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
5594 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
5595 should be set true if BITS_PER_WORD of target is bigger than 32
5597 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
5599 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
5600 Translate -B-options to -rpath-link. Correct existing
5601 rpath-link and conditionalize on !nostdlib.
5603 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5605 * doc/extend.texi (Function Attributes, Variable Attributes):
5607 * doc/invoke.texi (Debugging Options, Optimize Options)
5608 (i386 and x86-64 Options, MCore Options): Likewise.
5610 2009-03-20 Jakub Jelinek <jakub@redhat.com>
5613 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
5614 it for block local namespace aliases.
5615 (gen_decl_die): Pass context_die to gen_namespace_die.
5617 2009-03-19 Jakub Jelinek <jakub@redhat.com>
5620 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
5621 minimum or maximum value.
5623 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
5625 * reginfo.c (globalize_reg): Recompute derived reg sets.
5627 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
5630 * libgcc2.c (mprotect): Do not use signed arguments for
5631 VirtualProtect, use DWORD arguments. Also fix the 'may
5632 be used uninitialized' warning for the np variable.
5634 2009-03-19 Jakub Jelinek <jakub@redhat.com>
5637 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
5638 functions using regparm calling conventions when not optimizing.
5639 (ix86_function_sseregparm): Similarly for sseregparm calling
5642 2009-03-19 Li Feng <nemokingdom@gmail.com>
5645 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
5646 dependence if the first conflict is after niter iterations.
5648 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
5651 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
5652 functions with dynamic stack-pointer adjustments.
5654 2009-03-19 Ben Elliston <bje@au.ibm.com>
5656 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
5657 option; change to -msdata=data.
5659 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5661 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
5664 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
5667 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
5669 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
5671 * doc/invoke.texi (Code Gen Options): Expand discussion of
5674 2009-03-18 Jakub Jelinek <jakub@redhat.com>
5676 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
5677 * matrix-reorg.c (struct matrix_info): Likewise.
5678 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
5679 * rtl.h (struct mem_attrs): Likewise.
5680 * df.h (struct df): Likewise.
5681 * tree-data-ref.h (struct data_dependence_relation): Likewise.
5682 * ira-int.h (struct ira_allocno): Likewise.
5683 * df-scan.c (struct df_collection_rec): Likewise.
5684 * ira.c (struct equivalence): Likewise.
5685 * function.c (struct temp_slot): Likewise.
5686 * cfgloop.h (struct loop): Likewise.
5689 * function.c (use_register_for_decl): When not optimizing, disregard
5690 register keyword for variables with types containing methods.
5692 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
5695 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
5696 (is_simple_operand): Call contains_component_ref_p before calling data
5697 reference analysis that would fail on COMPONENT_REFs.
5699 * tree-vrp.c (search_for_addr_array): Fix formatting.
5701 2009-03-18 Richard Guenther <rguenther@suse.de>
5703 * tree-vect-transform.c (vect_loop_versioning): Fold the
5704 generated comparisons.
5705 * tree-vectorizer.c (set_prologue_iterations): Likewise.
5706 (slpeel_tree_peel_loop_to_edge): Likewise.
5708 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5711 * opts.c (print_specific_help): In addition to `undocumented',
5712 accept `separate' and `joined' flags if passed alone. Describe
5713 output by the first matched one of those.
5714 (common_handle_option): Skip over empty strings.
5715 * gcc.c (display_help): Fix help string for `--help='.
5716 * doc/invoke.texi (Option Summary, Overall Options): With
5717 `--help=', classes and qualifiers can both be repeated, but
5718 only the latter can be negated. One should not pass only
5719 negated qualifiers. Fix markup and examples.
5722 2008-10-14 Jakub Jelinek <jakub@redhat.com>
5724 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
5725 and -fhelp=separate.
5727 2009-03-17 Jing Yu <jingyu@google.com>
5730 * function.h (struct rtl_data): Move is_thunk from here...
5731 (struct function): ...to here.
5732 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
5733 * varasm.c (assemble_start_function): Change is_thunk from crtl to
5735 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
5737 (alpha_does_function_need_gp, alpha_start_function): Likewise.
5738 (alpha_output_function_end_prologue): Likewise.
5739 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
5740 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
5741 (rs6000_output_function_epilogue): Likewise.
5742 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
5744 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
5747 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
5748 from different units in a single alternative.
5749 (*truncdfsf_i387): Ditto.
5750 (*truncxfsf2_mixed): Ditto.
5751 (*truncxfdf2_mixed): Ditto.
5753 2009-03-17 Jakub Jelinek <jakub@redhat.com>
5755 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
5756 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
5759 * tree-ssa-live.c (remove_unused_locals): Don't remove local
5760 unused non-artificial variables when not optimizing.
5763 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
5764 DW_TAG_imported_module even if decl is IMPORTED_DECL with
5765 NAMESPACE_DECL in its DECL_INITIAL.
5768 * optabs.c (set_user_assembler_libfunc): New function.
5769 * expr.h (set_user_assembler_libfunc): New prototype.
5770 * c-common.c: Include libfuncs.h.
5771 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
5772 for memcmp, memset, memcpy, memmove and abort.
5773 * Makefile.in (c-common.o): Depend on libfuncs.h.
5776 * dwarf2out.c (gen_inlined_enumeration_type_die,
5777 gen_inlined_structure_type_die, gen_inlined_union_type_die,
5778 gen_tagged_type_instantiation_die): Removed.
5779 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
5782 2009-03-17 Janis Johnson <janis187@us.ibm.com>
5785 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
5787 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
5788 (check-parallel-%): Ditto.
5789 (check-consistency): Ditto.
5791 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
5793 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
5794 local variable rhs by NULL_TREE.
5796 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
5799 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
5801 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
5804 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
5806 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
5809 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
5810 for ms->sysv ABI calls only in 64bit mode.
5812 * config/i386/i386.md (untyped_call): Support 32bit.
5814 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
5816 * doc/extend.texi: Replace x86_65 with x86_64.
5818 2009-03-16 Jakub Jelinek <jakub@redhat.com>
5820 PR tree-optimization/39455
5821 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
5822 mismatches for POINTER_TYPE_P (type).
5823 (number_of_iterations_le): Likewise.
5825 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
5827 * config/picochip/picochip.c: Removed profiling support.
5828 * config/picochip/picochip.md: Removed profiling instruction.
5829 * config/picochip/picochip.h: Removed profiling builtin.
5831 2009-03-16 Joseph Myers <joseph@codesourcery.com>
5833 * doc/install.texi (--with-host-libstdcxx): Document.
5835 2009-03-14 Anatoly Sokolov <aesok@post.ru>
5838 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
5839 generate a warning if the function name does not begin with
5840 "__vector" and the function has either the 'signal' or 'interrupt'
5841 attribute, from here to ...
5842 (avr_declare_function_name): ...here. New function.
5843 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
5844 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
5846 2009-03-14 Jakub Jelinek <jakub@redhat.com>
5849 * cse.c (fold_rtx): Don't modify original const_arg1 when
5850 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
5851 separate variable instead.
5852 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
5853 from out of range shift counts.
5854 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
5856 2009-03-13 Catherine Moore <clm@codesourcery.com>
5858 * gcc/config/i386/x-mingw32 (host-mingw32.o): Replace
5859 diagnostic.h with $(DIAGNOSTIC_H).
5861 2009-03-12 Jakub Jelinek <jakub@redhat.com>
5864 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
5866 * config/i386/sync.md (sync_compare_and_swap<mode>,
5867 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
5868 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
5870 (sync_double_compare_and_swapdi_pic,
5871 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
5872 cmpxchg8b_pic_memory_operand instead of just memory_operand.
5874 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
5877 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
5879 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
5882 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
5883 (avx_addsubv4df3): Likewise.
5884 (*avx_addsubv4sf3): Likewise.
5885 (sse3_addsubv4sf3): Likewise.
5887 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
5890 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
5892 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
5895 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
5896 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
5897 registers for allocnos created from user-defined variables.
5899 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5902 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
5903 of non-integer mode as well.
5905 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
5907 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
5908 for functions for which the parameter types are unknown.
5910 2009-03-11 Jakub Jelinek <jakub@redhat.com>
5913 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
5914 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
5915 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
5916 * config/i386/i386.c (ix86_local_alignment): For
5917 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
5918 long long variables on the stack to avoid dynamic realignment.
5919 Allow the first argument to be a decl rather than type.
5920 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
5922 2009-03-11 Nick Clifton <nickc@redhat.com>
5925 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
5927 Add description to mno-lsim option.
5928 * config/mcore/mcore.h: Remove comment about deprecated m4align
5930 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
5931 * doc/invoke.texi: Add description of mno-lsim and
5932 mstack-increment options.
5934 * config/fr30/fr30.opt: Document the -mno-lsim option.
5935 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
5936 and -mno-lsim options.
5938 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5940 * fold-const.c (fold_comparison): Only call fold_inf_compare
5941 if the mode supports infinities.
5943 2009-03-11 Jason Merrill <jason@redhat.com>
5946 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
5947 end already did. Notice GIMPLE_CALL modifications of the result.
5948 Don't copy debug information from an ignored decl or a decl from
5951 2009-03-10 Richard Guenther <rguenther@suse.de>
5952 Nathan Froyd <froydnj@codesourcery.com>
5955 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
5956 (__divMODE3): Likewise.
5958 2009-03-09 Jakub Jelinek <jakub@redhat.com>
5960 PR tree-optimization/39394
5961 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
5962 DECL_SIZE_UNIT of variable length FIELD_DECLs.
5964 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5966 * recog.c (verfiy_changes): Disallow renaming of hard regs in
5967 inline asms for register asm ("") declarations.
5969 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
5971 * fold-const.c (fold_unary): Fix comment.
5973 2009-03-07 Jan Hubicka <jh@suse.cz>
5976 * tree-inline.c (setup_one_parameter): Do replacement of const
5977 argument by constant in SSA form.
5979 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5982 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
5983 determine alignment passed to assign_stack_local.
5984 (assign_parms_unsplit_complex): Likewise.
5985 * except.c (sjlj_build_landing_pads): Likewise.
5987 2009-03-06 Jakub Jelinek <jakub@redhat.com>
5990 * tree-flow.h (add_referenced_var): Return bool instead of void.
5991 * tree-dfa.c (add_referenced_var): Return result of
5992 referenced_var_check_and_insert call.
5993 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
5994 of referenced_var_check_and_insert.
5997 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
5998 (gen_variable_die): Emit DW_AT_location on abstract static variable's
5999 DIE, don't emit it if abstract origin already has it.
6000 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
6001 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
6003 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6005 * genpreds.c (needs_variable): Fix parentheses at variable name
6007 (write_tm_constrs_h): Indent generated code.
6009 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6011 * doc/extend.texi (Function Attributes): Add documentation
6014 2009-03-06 Jakub Jelinek <jakub@redhat.com>
6017 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
6018 take locus from its DECL_SOURCE_LOCATION instead of input_location.
6020 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
6022 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
6025 2009-03-05 Jakub Jelinek <jakub@redhat.com>
6028 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
6029 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
6031 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
6033 * config/i386/i386.md (R8_REG, R9_REG): New constants.
6034 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
6035 constants instead of magic numbers.
6036 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
6038 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
6039 (x86_64_ms_abi_int_parameter_registers): Ditto.
6040 (x86_64_int_return_registers): Ditto.
6041 (ix86_maybe_switch_abi): Ditto.
6042 (ix86_expand_call): Ditto for clobbered_registers array.
6043 (ix86_hard_regno_mode_ok): Ditto.
6044 (x86_extended_QIreg_mentioned_p): Ditto.
6046 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
6048 PR tree-optimization/39349
6049 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
6051 * combine.c (gen_lowpart_for_combine): Use omode when generating
6054 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
6056 PR rtl-optimization/39235
6057 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
6059 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
6061 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
6063 2009-03-04 Richard Guenther <rguenther@suse.de>
6065 PR tree-optimization/39362
6066 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
6067 that occur in abnormal PHIs should be varying.
6069 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
6071 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
6073 (simple_iv): Take loop as an argument instead of statement.
6074 * tree-scalar-evolution.h (simple_iv): Declaration changed.
6075 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
6077 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
6079 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
6080 * matrix-reorg.c (analyze_transpose): Ditto.
6081 * tree-data-ref.c (dr_analyze_innermost): Ditto.
6082 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
6083 * tree-predcom.c (ref_at_iteration): Ditto.
6084 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
6086 2009-03-04 Richard Guenther <rguenther@suse.de>
6088 PR tree-optimization/39358
6089 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
6090 escaped_id and callused_id.
6091 (solve_graph): Likewise.
6093 2009-03-04 Richard Guenther <rguenther@suse.de>
6095 PR tree-optimization/39339
6096 * tree-sra.c (try_instantiate_multiple_fields): Make it
6097 no longer ICE on the above.
6099 2009-03-03 Joseph Myers <joseph@codesourcery.com>
6101 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
6102 that fits within Pmode.
6104 2009-03-03 Steve Ellcey <sje@cup.hp.com>
6107 * tm.texi (LIBCALL_VALUE): Update description.
6109 2009-03-03 Steve Ellcey <sje@cup.hp.com>
6112 * doc/extend.texi (section): Update description.
6114 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
6117 * tree-inline.c (remapped_type): New.
6118 (can_be_nonlocal): Call remapped_type instead of remap_type.
6120 2009-03-03 Jakub Jelinek <jakub@redhat.com>
6123 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
6124 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
6126 2009-03-03 Richard Guenther <rguenther@suse.de>
6129 * tree.c (tree_nonartificial_location): New function.
6130 * tree.h (tree_nonartificial_location): Declare.
6131 * builtins.c (expand_builtin_memory_chk): Provide location
6132 of the call location for artificial function pieces.
6133 (maybe_emit_chk_warning): Likewise.
6134 (maybe_emit_sprintf_chk_warning): Likewise.
6135 (maybe_emit_free_warning): Likewise.
6136 * expr.c (expand_expr_real_1): Likewise.
6138 2009-03-03 Jakub Jelinek <jakub@redhat.com>
6140 PR tree-optimization/39343
6141 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
6142 COMPONENT_REF t has ARRAY_TYPE.
6144 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
6147 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
6148 when the type precision of the induction variable should be
6149 larger than the type precision of nit.
6150 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
6151 * graphite.c (graphite_loop_normal_form): Same.
6152 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
6154 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
6156 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
6157 (*call_1_rex64_ms_sysv): Use named constants instead of magic
6158 numbers to describe clobbered registers.
6159 (*call_value_0_rex64_ms_sysv): Ditto.
6160 * config/i386/mmx.md (mmx_emms): Ditto.
6163 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
6165 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
6168 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6170 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
6171 (spu_section_type_flags): New function.
6173 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
6175 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
6176 reg_class_contents of FLOAT_REGS into a temporary.
6178 2009-03-02 Richard Guenther <rguenther@suse.de>
6179 Ira Rosen <irar@il.ibm.com>
6181 PR tree-optimization/39318
6182 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
6183 information to the vectorized statement.
6185 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
6187 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
6188 variable. Use defined names instead of magic constants for REX SSE
6191 2009-03-01 Richard Guenther <rguenther@suse.de>
6193 PR tree-optimization/39331
6194 * omp-low.c (lower_send_shared_vars): Do not receive new
6195 values for the reference of DECL_BY_REFERENCE parms or results.
6197 2009-03-01 Jan Hubicka <jh@suse.cz>
6200 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
6201 BLOCK_NONLOCALIZED_VAR): New macros.
6202 (tree_block): Add nonlocalized_vars.
6203 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
6204 gen_decl_die): Add origin argument. Allow generation of die with
6205 origin at hand only.
6206 (gen_member_die, gen_type_die_with_usage, force_decl_die,
6207 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
6209 (gen_block_die): Fix checking for unused blocks.
6210 (process_scope_var): Break out from .... ; work with origins only.
6211 (decls_for_scope) ... here; process nonlocalized list.
6212 (dwarf2out_ignore_block): Look for nonlocalized vars.
6213 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
6215 (dump_scope_block): Dump them.
6216 * tree-inline.c (remap_decls): Handle nonlocalized vars.
6217 (remap_block): Likewise.
6218 (can_be_nonlocal): New predicate.
6219 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
6221 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6223 * configure: Regenerate.
6225 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6227 * optc-gen.awk: No need to duplicate option flags twice.
6228 Reuse help texts for duplicate options which do not have any.
6230 * gcc.c (display_help): Document --version.
6232 * gcc.c (main): If print_help_list and verbose_flag, ensure
6233 driver output comes before subprocess output.
6235 * optc-gen.awk: Assign all remaining fields to help string,
6236 space-separated, for multi-line help in *.opt.
6238 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
6239 -Wno-pedantic-ms-format is for MinGW targets only.
6241 * doc/options.texi (Option file format): Fix bad indentation,
6242 restoring dropped sentence.
6244 2009-02-28 Jan Hubicka <jh@suse.cz>
6246 * tree-inline.c (tree_function_versioning): Output debug info.
6248 2009-02-28 Jan Hubicka <jh@suse.cz>
6251 * tree-inline.c (setup_one_parameter): Do not copy propagate
6252 arguments when not optimizing.
6254 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
6257 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
6258 (avx_addsubv4df3): Likewise.
6259 (*avx_addsubv4sf3): Likewise.
6260 (sse3_addsubv4sf3): Likewise.
6261 (*avx_addsubv2df3): Likewise.
6262 (sse3_addsubv2df3): Likewise.
6263 (avx_unpckhps256): Correct item selectors.
6264 (avx_unpcklps256): Likewise.
6265 (avx_unpckhpd256): Likewise.
6266 (avx_unpcklpd256): Likewise.
6268 2009-02-28 Jan Hubicka <jh@suse.cz>
6270 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
6272 (copy_arguments_for_versioning): If var is declared don't declare it.
6273 (tree_function_versioning): First setup substitutions and then copy
6276 2009-02-27 Jan Hubicka <jh@suse.cz>
6279 * cgraph.h (varpool_output_debug_info): Remove.
6280 * cgraphunit.c (varpool_output_debug_info): Remove.
6281 * dwarf2out.c (deferred_locations_struct): New struct
6282 (deferred_locations): New type.
6283 (deferred_locations_list): New static var.
6284 (deffer_location): New function.
6285 (gen_variable_die): Use it.
6286 (decls_for_scope): Output info on local static vars.
6287 (dwarf2out_finish): Process deferred locations.
6288 * varpool.c (varpool_output_debug_info): Remove.
6290 2009-02-27 Jan Hubicka <jh@suse.cz>
6293 * tree.h (TREE_PROTECTED): Fix comment.
6294 (BLOCK_HANDLER_BLOCK): Remove.
6295 (struct tree_block): Remove handler_block add body_block.
6296 (inlined_function_outer_scope_p): New.
6297 (is_body_block): Remove.
6298 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
6299 * dwarf2out.c (is_inlined_entry_point): Remove.
6300 (add_high_low_attributes): Use inlined_function_outer_scope_p.
6301 (gen_block_die): Use is_inlined_entry_point check. Remove body block
6303 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
6304 * gimplify.c (gimplify_expr): Gimplify body blocks.
6305 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
6306 block with multiple subblocks.
6307 (dump_scope_block): Prettier output; dump more flags and info.
6308 (dump_scope_blocks): New.
6309 (remove_unused_locals): Use dump_scope_blocks.
6310 * tree-flow.h (dump_scope_blocks): Declare.
6311 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
6312 * stmt.c (is_body_block): Remove.
6313 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
6314 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
6316 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
6319 * graphite.c (graphite_loop_normal_form): Do not call
6320 number_of_iterations_exit from a gcc_assert.
6322 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6324 * gcc/config/s390/s390.c (s390_swap_cmp): Look for conditional
6325 jumps if COND is NULL.
6326 (find_cond_jump): New function.
6327 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
6328 * gcc/config/s390/s390.md: Remove z10_cobra attribute value.
6330 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
6332 * config/alpha/alpha.h (alpha_expand_mov): Return false if
6333 force_const_mem returns NULL_RTX.
6335 2009-02-26 Jan Hubicka <jh@suse.cz>
6338 * cgraph.h (varpool_output_debug_info): Remove.
6339 * cgraphunit.c (varpool_output_debug_info): Remove.
6340 * dwarf2out.c (deferred_locations_struct): New struct
6341 (deferred_locations): New type.
6342 (deferred_locations_list): New static var.
6343 (deffer_location): New function.
6344 (gen_variable_die): Use it.
6345 (decls_for_scope): Output info on local static vars.
6346 (dwarf2out_finish): Process deferred locations.
6347 * varpool.c (varpool_output_debug_info): Remove.
6349 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
6351 PR rtl-optimization/39241
6352 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
6353 to subreg_offset_representable_p.
6355 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
6357 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
6358 execute function prototype. Get f and nregs from max_reg_num
6359 and get_insns. Remove the first backward pass as it's dead,
6360 guard the forward pass by flag_expensive_optimizations.
6361 (rest_of_handle_regmove): Delete.
6362 (pass_regmove): Replace it with regmove_optimize.
6364 2009-02-25 Martin Jambor <mjambor@suse.cz>
6366 PR tree-optimization/39259
6367 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
6368 calls_alloca function flags.
6369 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
6372 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
6374 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
6375 flags_set_1_rtx, flags_set_1_set): Delete.
6376 (regmove_optimize): Do not call mark_flags_life_zones.
6378 2009-02-24 Julian Brown <julian@codesourcery.com>
6381 * config/arm/arm.c (require_pic_register): Only set
6382 cfun->machine->pic_reg once per function.
6384 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
6386 * doc/invoke.texi (Link Options): Document an easier way to pass
6387 options that take arguments to the GNU linker using -Xlinker and -Wl.
6389 2009-02-24 Steve Ellcey <sje@cup.hp.com>
6392 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
6394 2009-02-24 Richard Guenther <rguenther@suse.de>
6397 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
6399 2009-02-24 Richard Guenther <rguenther@suse.de>
6400 Zdenek Dvorak <ook@ucw.cz>
6402 PR tree-optimization/39233
6403 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
6404 from converting them to a generic type.
6406 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
6408 PR tree-optimization/39260
6409 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
6410 contains a condition with a real type.
6411 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
6413 2009-02-23 Jason Merrill <jason@redhat.com>
6416 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
6417 narrowing_initializer_constant_valid_p.
6418 (narrowing_initializer_constant_valid_p): Don't return
6419 null_pointer_node for adding a pointer to itself.
6421 2009-02-23 Jan Hubicka <jh@suse.cz>
6424 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
6427 2009-02-23 Jan Hubicka <jh@suse.cz>
6429 PR tree-optimization/37709
6430 * tree.c (block_ultimate_origin): Move here from dwarf2out.
6431 * tree.h (block_ultimate_origin): Declare.
6432 * dwarf2out.c (block_ultimate_origin): Move to tree.c
6433 * tree-ssa-live.c (remove_unused_scope_block_p):
6434 Eliminate blocks containig no instructions nor live variables nor
6436 (dump_scope_block): New function.
6437 (remove_unused_locals): Enable removal of dead blocks by default;
6438 enable dumping at TDF_DETAILS.
6440 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
6442 * config/i386/i386.c (classify_argument): Don't allow COImode
6444 (function_arg_advance_32): Don't allow OImode.
6445 (function_arg_32): Likewise.
6446 (function_value_32): Likewise.
6447 (return_in_memory_32): Likewise.
6448 (function_arg_64): Remove OImode comment.
6450 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
6453 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
6454 ix86_expand_vector_set for V4DImode in 64bit mode only.
6455 (ix86_expand_vector_init_one_var): Likewise.
6457 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
6459 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
6461 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
6464 * loop-iv.c: Revert last change.
6465 * emit-rtl.c: Likewise.
6467 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
6470 * config/i386/i386.c (type_natural_mode): Remove an extra
6471 space in the warning message.
6472 (function_value_32): Handle 32-byte vector modes.
6473 (return_in_memory_32): Likewise.
6475 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
6477 * loop-iv.c (truncate_value): New function.
6478 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
6480 (lowpart_subreg): Move to...
6481 * emit-rtl.c: ...here.
6483 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
6485 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
6486 accidental and undocumented change at revision 140860.
6488 2009-02-21 Joseph Myers <joseph@codesourcery.com>
6490 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
6491 take gimple_seq * arguments.
6492 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
6493 types_compatible_p langhook.
6495 2009-02-20 Mark Mitchell <mark@codesourcery.com>
6496 Joseph Myers <joseph@codesourcery.com>
6498 * config/arm/arm.c (arm_builtin_va_list): New function.
6499 (arm_expand_builtin_va_start): Likewise.
6500 (arm_gimplify_va_arg_expr): Likewise.
6501 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
6502 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
6503 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
6504 (va_list_type): New variable.
6505 (arm_mangle_type): Mangle va_list_type appropriately.
6507 2009-02-20 Jakub Jelinek <jakub@redhat.com>
6510 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
6511 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
6512 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
6513 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
6514 parameter to 1000 for -O1 by default.
6515 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
6517 * loop-invariant.c: Include params.h.
6518 (move_loop_invariants): Don't call move_single_loop_invariants on
6521 2009-02-20 Jaka Mocnik <jaka@xlab.si>
6523 * calls.c (emit_library_call_value_1): Use slot_offset instead of
6524 offset when calculating bounds for indexing stack_usage_map. Fixes
6525 a buffer overflow with certain target setups.
6527 2009-02-20 Jakub Jelinek <jakub@redhat.com>
6530 * calls.c (expand_call): Clear try_tail_call if caller and callee
6531 disagree in promotion of function return value.
6533 2009-02-19 Jakub Jelinek <jakub@redhat.com>
6536 * c-common.c (c_determine_visibility): If visibility changed and
6537 DECL_RTL has been already set, call make_decl_rtl to update symbol
6540 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
6543 * varasm.c (assemble_variable): Don't check DECL_NAME when
6544 globalizing a variable.
6546 2009-02-19 Joseph Myers <joseph@codesourcery.com>
6549 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
6550 expression before any __builtin_trap call.
6551 * c-typeck.c (build_function_call): Convert and check function
6552 arguments before generating a call to a trap. Evaluate the
6553 function arguments before the trap.
6555 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
6558 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
6559 (UNSPEC_FXAM_MEM): New unspec.
6560 (fxam<mode>2_i387_with_temp): New insn and split pattern.
6561 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
6562 memory using fxam<mode>2_i387_with_temp to remove excess precision.
6564 2009-02-19 Richard Guenther <rguenther@suse.de>
6566 PR tree-optimization/39207
6567 PR tree-optimization/39074
6568 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
6569 storedanything_tree): New.
6570 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
6571 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
6572 (build_succ_graph): Add edges from STOREDANYTHING to all
6574 (init_base_vars): Initialize STOREDANYTHING.
6575 (compute_points_to_sets): Free substitution info after
6576 building the succ graph.
6577 (ipa_pta_execute): Likewise.
6579 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
6581 (do_ds_constraint): Do not add to special var or non-pointer
6583 (type_could_have_pointers): Split out from ...
6584 (could_have_pointers): ... here. For arrays use the element type.
6585 (create_variable_info_for): Initialize may_have_pointers.
6586 (new_var_info): Likewise.
6587 (handle_lhs_call): Make the HEAP variable unknown-sized.
6588 (intra_create_variable_infos): Use a type with pointers for
6589 PARM_NOALIAS, make it unknown-sized.
6591 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
6594 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
6596 2009-02-18 Jason Merrill <jason@redhat.com>
6599 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
6600 value if DECL_EXTERNAL.
6601 * tree-sra.c (sra_walk_gimple_assign): Likewise.
6602 * target.h (gcc_target::binds_local_p): Clarify "module".
6603 * tree.h (TREE_PUBLIC): Clarify "module".
6605 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
6608 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
6609 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
6611 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
6614 * c.opt (Wabi): Support C and ObjC.
6617 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
6619 * config/i386/i386.c (classify_argument): Warn once about the ABI
6620 change when passing union with long double.
6622 * doc/invoke.texi: Update -Wabi for warning psABI changes.
6624 2009-02-18 Joseph Myers <joseph@codesourcery.com>
6627 * c-parser.c (c_parser_compound_statement): Always enter and leave
6630 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6633 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
6635 2009-02-18 Jakub Jelinek <jakub@redhat.com>
6637 PR tree-optimization/36922
6638 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
6639 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
6642 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
6644 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
6647 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
6649 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
6651 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
6653 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
6656 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
6657 Richard Sandiford <rdsandiford@googlemail.com>
6659 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
6660 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
6661 (loongson_biadd): ...this.
6663 2009-02-17 Richard Guenther <rguenther@suse.de>
6665 PR tree-optimization/39202
6666 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
6667 a var make sure to follow existing collapses.
6669 2009-02-17 Richard Guenther <rguenther@suse.de>
6672 * langhooks.c (lhd_print_error_function): Check for NULL block.
6674 2009-02-17 Richard Guenther <rguenther@suse.de>
6676 PR tree-optimization/39204
6677 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
6680 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
6682 * config/soft-fp/double.h: Update from glibc CVS.
6684 2009-02-17 Richard Guenther <rguenther@suse.de>
6686 PR tree-optimization/39207
6687 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
6688 strict-aliasing warnings for pointers pointing to NULL.
6690 2009-02-16 Joseph Myers <joseph@codesourcery.com>
6693 * c-parser.c (c_parser_braced_init): Call pop_init_level when
6694 skipping until next close brace.
6696 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
6699 * config/i386/i386.c (ix86_expand_push): Set memory alignment
6700 to function argument boundary.
6702 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
6704 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
6705 in the lea_add. Reload eventually constraints it properly.
6706 * config/picochip/constraints.md : Remove the target constraint
6707 "b", since it is not needed anymore.
6709 2009-02-16 Jakub Jelinek <jakub@redhat.com>
6711 * gthr-dce.h: Uglify function parameter and local variable names.
6712 * gthr-gnat.h: Likewise.
6713 * gthr-mipssde.h: Likewise.
6714 * gthr-nks.h: Likewise.
6715 * gthr-posix95.h: Likewise.
6716 * gthr-posix.h: Likewise.
6717 * gthr-rtems.h: Likewise.
6718 * gthr-single.h: Likewise.
6719 * gthr-solaris.h: Likewise.
6720 * gthr-tpf.h: Likewise.
6721 * gthr-vxworks.h: Likewise.
6722 * gthr-win32.h: Likewise.
6724 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
6727 * config/i386/i386.md: Restrict the new peephole2 to move
6728 between MMX/SSE registers.
6730 2009-02-15 Richard Guenther <rguenther@suse.de>
6733 2009-02-13 Richard Guenther <rguenther@suse.de>
6735 * configure.ac: Enable LFS.
6736 * configure: Re-generate.
6737 * config.in: Likewise.
6739 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6741 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
6742 spu_srqwbyte, spu_srqwbytebc): Define.
6743 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
6744 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
6745 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
6746 "shrqby_<mode>"): New insn-and-split patterns.
6747 * config/spu/spu.c (expand_builtin_args): Determine and return
6748 number of operands using spu_builtin_description data.
6749 (spu_expand_builtin_1): Use it.
6751 2009-02-13 Steve Ellcey <sje@cup.hp.com>
6754 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
6757 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
6760 * config/i386/i386.c (override_options): Correct warning
6761 messages for -malign-loops, -malign-jumps and -malign-functions.
6763 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
6766 * config/i386/i386.md: Restrict the new peephole2 to move
6767 between the general purpose registers.
6769 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
6772 * config/i386/i386.c (type_natural_mode): Add a new argument.
6773 Return the original mode and warn ABI change if vector size is 32byte.
6774 (function_arg_advance): Updated.
6775 (function_arg): Likewise.
6776 (ix86_function_value): Likewise.
6777 (ix86_return_in_memory): Likewise.
6778 (ix86_sol10_return_in_memory): Likewise.
6779 (ix86_gimplify_va_arg): Likewise.
6780 (function_arg_32): Don't warn ABX ABI change here.
6781 (function_arg_64): Likewise.
6783 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
6785 * loop-iv.c (implies_p): In the final case, test that operands 0
6786 of the two comparisons match.
6788 * config/bfin/bfin.c (find_prev_insn_start): New function.
6789 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
6790 (find_next_insn_start): Move.
6792 2009-02-13 Richard Guenther <rguenther@suse.de>
6794 * configure.ac: Enable LFS.
6795 * configure: Re-generate.
6796 * config.in: Likewise.
6798 2009-02-13 Joseph Myers <joseph@codesourcery.com>
6801 * c-parser.c (c_parser_parms_list_declarator): Discard pending
6802 sizes on syntax error after some arguments have been parsed.
6804 2009-02-12 Jakub Jelinek <jakub@redhat.com>
6806 * doc/invoke.texi (-fira): Remove.
6808 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
6810 * caller-save.c: Replace regclass.c with reginfo.c in comments.
6811 * recog.c: Likewise.
6814 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
6816 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
6817 (umul_ppmm): Likewise.
6818 (count_leading_zeros): Likewise.
6819 (count_trailing_zeros): Likewise.
6820 (UMUL_TIME): Likewise.
6822 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
6824 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
6825 soft-fp/t-softfp to tmake_file.
6827 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
6828 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
6829 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
6830 IA64_BUILTIN_INFQ]: New.
6831 (ia64_init_builtins): Initialize __builtin_infq,
6832 __builtin_fabsq and __builtin_copysignq if not HPUX.
6833 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
6834 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
6836 * config/ia64/lib1funcs.asm (__divtf3): Define only if
6838 (__fixtfti): Likewise.
6839 (__fixunstfti): Likewise.
6840 (__floattitf): Likewise.
6842 * config/ia64/libgcc-glibc.ver: New.
6843 * config/ia64/t-fprules-softfp: Likewise.
6844 * config/ia64/sfp-machine.h: Likewise.
6846 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
6847 (LIBGCC2_TF_CEXT): Likewise.
6848 (TF_SIZE): Likewise.
6849 (TARGET_INIT_LIBFUNCS): Likewise.
6851 * config/ia64/t-glibc (SHLINB_MAPFILES):
6852 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
6854 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
6856 * config/i386/i386.c (construct_container): Rewrite processing
6857 BLKmode with X86_64_SSE_CLASS.
6859 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
6862 * config/i386/i386.md: Replace simplify_replace_rtx with
6863 replace_rtx in the new peephole2.
6865 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
6867 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
6868 loop unrolling do not happen at -O2.
6870 2009-02-12 Michael Matz <matz@suse.de>
6872 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
6874 2009-02-12 Jakub Jelinek <jakub@redhat.com>
6876 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
6879 2009-02-12 Ben Elliston <bje@au.ibm.com>
6881 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
6882 patterns when updating the back chain. Missed in the 2009-02-10
6885 2009-02-11 Janis Johnson <janis187@us.ibm.com>
6887 * doc/extend.texi (Decimal Floating Types): Update identifier of
6888 draft TR and list of missing support.
6890 2009-02-11 Jakub Jelinek <jakub@redhat.com>
6893 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
6894 bit to variable length decl's flags, add it also to its
6895 pointer replacement variable.
6897 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
6898 Jakub Jelinek <jakub@redhat.com>
6901 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
6902 (memory_blockage): New expander.
6903 (*memory_blockage): New insn pattern.
6904 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
6905 instead of general blockage at the end of function prologue when
6906 frame pointer is used to access red zone area. Do not emit blockage
6907 when profiling, it is emitted in generic code.
6908 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
6909 function epilogue when frame pointer is used to access red zone area.
6911 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
6914 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
6915 by arithmetic with memory operands.
6916 * config/i386/predicates.md (commutative_operator): New.
6918 2009-02-10 Janis Johnson <janis187@us.ibm.com>
6920 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
6923 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
6925 * alias.h (record_alias_subset): Declare.
6926 * alias.c (record_alias_subset): Make global.
6928 2009-02-10 Nick Clifton <nickc@redhat.com>
6930 * tree-parloops.c: Change license to GPLv3.
6931 * ipa-struct-reorg.c: Change license to GPLv3.
6932 * ipa-struct-reorg.h: Change license to GPLv3.
6934 2009-02-10 Steve Ellcey <sje@cup.hp.com>
6937 * c-decl.c (start_struct): Return NULL on error.
6939 2009-02-10 Jakub Jelinek <jakub@redhat.com>
6942 * cfgloopmanip.c (remove_path): Call remove_bbs after
6943 cancel_loop_tree, not before it.
6946 * function.h (struct function): Add has_local_explicit_reg_vars bit.
6947 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
6948 VAR_DECLs were seen.
6949 * tree-ssa-live.c (remove_unused_locals): Recompute
6950 cfun->has_local_explicit_reg_vars.
6951 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
6952 copies or clearings if cfun->has_local_explicit_reg_vars.
6954 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
6957 * config/i386/i386.c (expand_prologue): Emit blockage at the end
6958 of function prologue when frame pointer is used to access
6961 2009-02-10 Richard Guenther <rguenther@suse.de>
6964 * gimplify.c (gimple_regimplify_operands): Always look if
6965 we need to create a temporary.
6967 2009-02-10 Richard Guenther <rguenther@suse.de>
6969 PR tree-optimization/39132
6970 * tree-loop-distribution.c (todo): New global var.
6971 (generate_memset_zero): Trigger TODO_rebuild_alias.
6972 (tree_loop_distribution): Return todo.
6974 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
6977 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
6978 (x86_64_reg_class_name): Removed.
6979 (classify_argument): Return 0 if bytes > 32. Return 0 if the
6980 first one isn't X86_64_SSE_CLASS or any other ones aren't
6981 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
6982 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
6983 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
6984 and 3 X86_64_SSEUP_CLASS.
6985 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
6986 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
6988 2009-02-10 Ben Elliston <bje@au.ibm.com>
6990 * config/rs6000/rs6000.md (allocate_stack): Always use an update
6991 form instruction to update the stack back chain word, even if the
6992 user has disabled the generation of update instructions.
6993 (movdi_<mode>_update_stack): New.
6994 (movsi_update_stack): Likewise.
6995 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
6996 always use an update form instruction to update the stack back
6999 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
7002 * graphite.c (if_region_set_false_region): After moving a region in
7003 the false branch of a condition, remove the empty dummy basic block.
7004 (gloog): Remove wrong fix for PR38953.
7006 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7008 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
7009 generation due to implicit sign extension.
7011 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
7014 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
7015 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
7017 2009-02-09 Richard Guenther <rguenther@suse.de>
7020 * convert.c (convert_to_real): Disable (float)fn((double)x)
7021 to fnf(x) conversion if errno differences may occur and
7022 -fmath-errno is set.
7024 2009-02-07 Anatoly Sokolov <aesok@post.ru>
7026 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
7027 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
7028 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
7030 2009-02-06 Joseph Myers <joseph@codesourcery.com>
7033 * c-common.c (handle_alias_attribute): Disallow attribute for
7034 anything not a FUNCTION_DECL or VAR_DECL.
7036 2009-02-06 Janis Johnson <janis187@us.ibm.com>
7039 * real.c (do_compare): Special-case compare of zero against
7040 decimal float value.
7042 2009-02-06 Joseph Myers <joseph@codesourcery.com>
7045 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
7046 as indicating flexible array members unless the field itself is
7047 being declarared as the incomplete array.
7049 2009-02-06 Jan Hubicka <jh@suse.cz>
7051 PR tree-optimization/38844
7052 * ipa-inline.c (try_inline): Stop inlining recursion when edge
7055 2009-02-06 Richard Guenther <rguenther@suse.de>
7058 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
7059 fork because we may expand it as __gcov_fork.
7061 2009-02-06 Nick Clifton <nickc@redhat.com>
7063 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
7065 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
7067 PR tree-optimization/35659
7068 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
7069 vn_phi_eq): Shortcut if hashcode does not match.
7070 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
7072 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
7073 and avoid iterative_hash_expr.
7074 (FOR_EACH_VALUE_ID_IN_SET): New.
7075 (value_id_compare): Remove.
7076 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
7077 sort expressions by value id.
7079 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
7082 * config/sh/predicates.md (general_movsrc_operand): Don't check
7083 the subreg of system registers here.
7085 2009-02-05 Jakub Jelinek <jakub@redhat.com>
7088 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
7091 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
7093 PR rtl-optimization/39110
7094 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
7095 addresses, not aligned ones.
7097 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
7098 Richard Guenther <rguenther@suse.de>
7100 PR tree-optimization/39100
7101 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
7102 comment says and add edges.
7104 2009-02-05 Joseph Myers <joseph@codesourcery.com>
7107 * c-common.c (handle_tls_model_attribute): Ignore attribute for
7108 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
7110 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
7112 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
7113 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
7114 register_bb_in_sese, new_sese, free_sese): Moved.
7115 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
7116 outermost_loop_in_scop, build_scop_iteration_domain,
7117 expand_scalar_variables_ssa_name, get_vdef_before_scop,
7118 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
7119 Use loop_in_sese_p instead of loop_in_scop_p.
7120 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
7121 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
7122 (scopdet_basic_block_info): Fix bug in scop detection.
7123 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
7124 eq_loop_to_cloog_loop): Remove.
7125 (nb_loops_around_loop_in_scop, nb_loop
7126 ref_nb_loops): Moved here...
7127 * graphite.h (ref_nb_loops): ... from here.
7128 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
7129 (loop_domain_dim, loop_iteration_vector_dim): Remove.
7130 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
7131 * testsuite/gcc.dg/graphite/scop-19.c: New
7133 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
7134 Hans-Peter Nilsson <hp@axis.com>
7136 PR rtl-optimization/37889
7137 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
7138 Move offset handling from PLUS to before the switch. Use new
7139 arguments when considering SYMBOL_REFs too.
7140 (rtx_addr_can_trap_p): Pass dummy offset and size.
7141 (enum may_trap_p_flags): Remove.
7142 (may_trap_p_1): Pass size from MEM_SIZE.
7144 PR rtl-optimization/38921
7145 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
7146 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
7147 * rtlanal.c (may_trap_after_code_motion_p): Delete.
7148 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
7150 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
7152 AVX Programming Reference (January, 2009)
7153 * config/i386/sse.md (*vpclmulqdq): New.
7155 2009-02-04 Jakub Jelinek <jakub@redhat.com>
7157 PR tree-optimization/38977
7158 PR gcov-profile/38292
7159 * calls.c (special_function_p): Disregard __builtin_ prefix.
7161 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
7163 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
7164 non-indexable addresses even before reload.
7166 2009-02-03 Joseph Myers <joseph@codesourcery.com>
7169 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
7170 as having variable size. Do not give an error for unnamed
7171 parameters with [*] declarators. Give a warning for type names
7172 with [*] declarators and mark them as variable size.
7173 * c-parser.c (c_parser_sizeof_expression): Do not give an error
7174 for sizeof applied to [*] type names.
7176 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
7179 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
7181 2009-02-03 Jakub Jelinek <jakub@redhat.com>
7183 * gcc.c (process_command): Update copyright notice dates.
7184 * gcov.c (print_version): Likewise.
7185 * gcov-dump.c (print_version): Likewise.
7186 * mips-tfile.c (main): Likewise.
7187 * mips-tdump.c (main): Likewise.
7189 2009-02-03 Joseph Myers <joseph@codesourcery.com>
7192 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
7193 for composite type involving a zero-length array type.
7195 2009-02-03 Jakub Jelinek <jakub@redhat.com>
7198 * function.c (match_asm_constraints_1): Skip over
7199 initial optional % in the constraint.
7202 * c-parser.c (c_parser_postfix_expression): If fixed point is not
7203 supported, don't accept FIXED_CSTs.
7204 * c-decl.c (finish_declspecs): Error if fixed point is not supported
7205 and _Sat is used without _Fract/_Accum. Set specs->type to
7206 integer_type_node for cts_fract/cts_accum if fixed point is not
7209 2009-02-02 Catherine Moore <clm@codesourcery.com>
7211 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
7213 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
7215 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
7216 (ABI_HAS_64BIT_SYMBOLS): Use it.
7217 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
7219 2009-02-02 Paul Brook <paul@codesourcery.com>
7221 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
7223 2009-02-02 Jakub Jelinek <jakub@redhat.com>
7226 * recog.h (asm_operand_ok): Add constraints argument.
7227 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
7228 recurse on matching constraint.
7229 (check_asm_operands): Pass constraints as 3rd argument to
7230 asm_operand_ok. Don't look up matching constraint here.
7231 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
7234 2009-02-02 Ben Elliston <bje@au.ibm.com>
7236 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
7237 TARGET_NARROW_VOLATILE_BITFIELD macro names.
7239 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7241 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
7242 information. Remove some obsolete information. Reorganize.
7244 * config/pa/fptr.c: Revert license to GPL 2.
7245 * config/pa/milli64.S: Likewise.
7247 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
7250 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
7251 LIBRARY name in, instead of hard-coding it.
7252 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
7253 extra target make frag to tmake_files according to EH model.
7254 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
7255 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
7256 frags that define makefile variable EH_MODEL appropriately.
7257 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
7258 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
7259 to "-sjlj" according to type of EH configured.
7260 (LIBGCC_SONAME): Concatenate it to shared library base name.
7261 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
7262 to "_sjlj" according to type of EH configured.
7263 (LIBGCC_SONAME): Concatenate it to shared library base name.
7264 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
7265 (SHLIB_LINK): Add missing semicolon to if-else construct.
7266 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
7267 string value of "pe_dll" command-line option.
7268 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
7269 (SHLIB_SONAME): Use it when overriding t-cygming default.
7270 (SHLIB_IMPLIB): Override t-cygming default.
7271 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
7272 string value of "pe_dll" command-line option.
7274 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
7277 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
7278 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
7280 2009-01-31 Richard Guenther <rguenther@suse.de>
7282 PR tree-optimization/38937
7283 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
7284 computing the transitive closure.
7286 2009-01-30 Richard Guenther <rguenther@suse.de>
7288 PR tree-optimization/39041
7289 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
7290 Propagate variable indices only if the types match for this stmt.
7292 2009-01-30 Jakub Jelinek <jakub@redhat.com>
7295 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
7296 inline but never defined.
7298 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
7300 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
7301 (*insv_h_di_reg_extimm): New insn.
7302 (*insv_l<mode>_reg_extimm): New insn.
7304 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
7306 * config/picochip/picochip.c (flag_conserve_stack): set
7307 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
7308 fconserve-stack. Reduce call-overhead used by inliner.
7310 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
7313 * common.opt (flag_conserve_stack): Initialised to zero.
7315 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
7318 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
7319 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
7322 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
7324 * ira-color.c (allocno_reload_assign): Update comments.
7325 * regmove.c (regmove_optimize): Likewise.
7329 2009-01-29 Robert Millan <rmh@aybabtu.com>
7331 * gcc/config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
7332 * gcc/config/i386/kopensolaris-gnu.h: New file. Undefine
7333 `MD_UNWIND_SUPPORT'.
7334 * gcc/config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
7336 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
7338 PR tree-optimization/39007
7339 * tree-loop-distribution.c (generate_builtin): Use
7340 recompute_dominator to compute the immediate dominator of the
7341 basic block just after the loop.
7343 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7345 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
7346 (ASM_OUTPUT_DWARF_PCREL): Define.
7348 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
7350 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
7351 * doc/passes.texi: Remove entries about regclass, local-alloc, and
7352 global. Modify entries about regmove and IRA.
7354 * ra-conflict.c: Remove the file.
7356 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
7358 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
7359 (pass_regclass_init): Rename to pass_reginfo_init.
7361 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
7363 * toplev.h (flag_ira): Remove.
7365 * caller-save.c (setup_save_areas): Remove flag_ira.
7367 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
7369 * global.c: Remove the file.
7371 * opts.c (decode_options): Remove flag_ira.
7373 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
7375 * regmove.c: Modify file description.
7376 (find_use_as_address, try_auto_increment): Define them only if
7377 AUTO_INC_DEC is defined.
7378 (replacement_quality, replace_in_call_usage, fixup_match_1,
7379 stable_and_no_regs_but_for_p): Remove.
7380 (reg_set_in_bb): Make it static.
7381 (regmove_optimize): Remove flag_ira and code which worked for
7384 * local-alloc.c: Remove the file.
7386 * common.opt (fira): Remove.
7388 * ira.c: Include except.h.
7389 (eliminable_regset): Move from global.c.
7390 (mark_elimination): Ditto. Remove flag_ira.
7391 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
7392 equiv_mem_modified, validate_equiv_mem_from_store,
7393 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
7394 contains_replace_regs, memref_referenced_p, memref_used_between_p,
7395 no_equiv, recorded_label_ref): Move from local-alloc.c.
7396 (update_equiv_regs): Ditto. Make it static.
7397 (print_insn_chain, print_insn_chains): Move it from global.c.
7398 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
7399 (build_insn_chain): Ditto. Make it static.
7400 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
7401 Rename to init_live_subregs.
7402 (gate_ira): Remove flag_ira.
7404 * regclass.c: Rename reginfo.c. Change file description.
7405 (FORBIDDEN_INC_DEC_CLASSES): Remove.
7406 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
7407 (init_reg_sets_1): Remove code for evaluation of
7408 reg_class_superclasses and losing_caller_save_reg_set.
7409 (init_regs): Remove init_reg_autoinc.
7410 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
7411 ok_for_base_p_nonstrict): Remove.
7412 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
7413 (pass_regclass_init): Rename to pass_reginfo_init. Modify
7414 corresponding entries.
7415 (dump_regclass, record_operand_costs, scan_one_insn,
7416 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
7417 record_address_regs, auto_inc_dec_reg_p): Remove.
7418 (gt-regclass.h): Rename to gt-reginfo.h.
7420 * rtl.h (dump_global_regs, retry_global_alloc,
7421 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
7423 * Makefile.in (RA_H): Remove.
7424 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
7425 Rename regclass.o to reginfo.o.
7426 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
7428 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
7429 (GTFILES): Rename regclass.c to reginfo.c.
7431 * passes.c (init_optimization_passes): Remove pass_local_alloc and
7432 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
7434 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
7435 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
7437 (finish_spills): Ditto. Remove code for !flag_ira.
7439 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
7442 * doc/invoke.texi (rtl debug options): Complete rewrite.
7443 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
7445 * mode-switching.c (pass_mode_switching): Rename pass from
7446 "mode-sw" to "mode_sw".
7447 * except.c (pass_convert_to_eh_ranges): Rename pass from
7448 "eh-ranges" to "eh_ranges".
7449 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
7453 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
7454 Alexander Monakov <amonakov@ispras.ru>
7457 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
7459 (move_exprs_to_boundary): Change return type and pass through
7460 should_move from move_op. Relax assert. Update usage ...
7461 (schedule_expr_on_boundary): ... here. Use should_move instead of
7463 (move_op_orig_expr_found): Indicate that insn was disconnected from
7465 (code_motion_process_successors): Do not call after_merge_succs
7466 callback if original expression was not found when traversing any of
7468 (code_motion_path_driver): Change return type. Update prototype.
7469 (move_op): Update comment. Add a new parameter (should_move). Update
7470 prototype. Set *should_move based on indication provided by
7471 move_op_orig_expr_found.
7473 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
7475 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
7476 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
7477 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
7478 * config/rs6000/rs6000.c (rs6000_override_options): Default
7479 avoid-indexed-addresses on for Power6, off for everything else.
7480 (avoiding_indexed_address_p): New function.
7481 (rs6000_legitimize_address): Use it.
7482 (rs6000_legitimate_address): Likewise.
7483 * config/rs6000/rs6000.md (movXX_updateX): Likewise
7485 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
7487 PR tree-optimization/38997
7488 * tree-loop-distribution.c (generate_memset_zero): Use
7489 POINTER_PLUS_EXPR for a pointer addition.
7491 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
7493 * config/s390/s390.md (bswap<mode>2): New pattern added.
7495 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
7497 * config/s390/s390.md (*tls_load_31): Added type attribute.
7499 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
7501 * config/s390/s390.md: Fix a few comments.
7503 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
7505 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
7506 (*tm<mode>_full): Fixed z10prop attribute.
7507 (*tst<mode>_extimm): Fixed z10prop attribute.
7508 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
7509 (*tstqiCCT_cconly): Fixed z10prop attribute.
7510 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
7511 (*movsi_larl): Fixed z10prop attribute.
7512 (*movsi_zarch): Fixed z10prop attribute.
7513 (*movsi_eas): Fixed z10prop attribute.
7514 (*movhi): Fixed z10prop attribute.
7515 (*movqi): Fixed z10prop attribute.
7516 (*movstrictqi): Fixed z10prop attribute.
7517 (*mov<mode>): Fixed z10prop attribute.
7518 (*movcc): Fixed z10prop attribute.
7519 (*sethighpartdi_64): Fixed z10prop attribute.
7520 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
7521 (*negdi2_sign_cc): Fixed z10prop attribute.
7522 (*negdi2_sign): Fixed z10prop attribute.
7523 (*absdi2_sign_cc): Fixed z10prop attribute.
7524 (*absdi2_sign): Fixed z10prop attribute.
7525 (*negabsdi2_sign_cc): Fixed z10prop attribute.
7526 (*negabsdi2_sign): Fixed z10prop attribute.
7527 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
7528 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
7529 (doloop_si64): Fixed z10prop attribute.
7530 (doloop_si31): Fixed z10prop attribute.
7531 (doloop_long): Fixed z10prop attribute.
7532 (indirect_jump): Fixed z10prop attribute.
7533 (nop): Fixed z10prop attribute.
7534 (main_base_64): Fixed z10prop attribute.
7535 (reload_base_64): Fixed z10prop attribute.
7537 2009-01-28 Jakub Jelinek <jakub@redhat.com>
7539 PR rtl-optimization/38740
7540 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
7542 * config/mips/mips.c (mips_reorg): Likewise.
7544 2009-01-28 Richard Guenther <rguenther@suse.de>
7546 PR tree-optimization/38926
7547 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
7548 with the correct value id to a value.
7549 (do_regular_insertion): Use the value number of edoubleprime
7550 for the value number of the expr.
7553 2008-08-21 Richard Guenther <rguenther@suse.de>
7555 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
7556 a PHI ask VN if it is already available.
7557 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
7558 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
7560 2009-01-28 Jakub Jelinek <jakub@redhat.com>
7563 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
7564 set to varying whenever max has TREE_OVERFLOW set, similarly
7565 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
7567 2009-01-28 Richard Guenther <rguenther@suse.de>
7570 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
7571 uninitialized aggregate uses in call arguments.
7573 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
7575 PR tree-optimization/38984
7576 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
7577 the nothing_id variable if -fno-delete-null-pointer-checks.
7579 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
7582 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
7583 (set_got_offset_rex64): Ditto.
7585 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
7588 * doc/extend.texi: Improve local variable with asm reg.
7590 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
7592 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
7593 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
7594 was not supplied then set warn_packed_bitfield_compat to the
7596 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
7599 2009-01-27 Richard Guenther <rguenther@suse.de>
7601 PR tree-optimization/38503
7602 * cfgexpand.c (expand_gimple_basic_block): Ignore
7603 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
7604 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
7605 variables that cannot have TBAA applied.
7606 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
7609 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
7612 * calls.c (initialize_argument_information): Do not wrap complex
7613 arguments in SAVE_EXPR.
7615 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
7617 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
7618 (INSTALL_LIBGCC): Revert typo commit.
7620 2009-01-26 Richard Guenther <rguenther@suse.de>
7622 PR tree-optimization/38745
7623 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
7624 from special handling.
7626 2009-01-26 Richard Guenther <rguenther@suse.de>
7628 PR tree-optimization/38745
7629 * tree-ssa.c (execute_update_addresses_taken): Do not include
7630 variables that cannot possibly be a register in not_reg_needs.
7631 Do not clear TREE_ADDRESSABLE on vars that may not become
7633 * tree-ssa.c (update_alias_info_1): Include those in the set
7634 of addressable vars.
7636 2009-01-26 Richard Guenther <rguenther@suse.de>
7639 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
7640 * tree-ssa-dse.c: Include langhooks.h
7641 (execute_simple_dse): Remove stores with zero size.
7643 2009-01-24 Jakub Jelinek <jakub@redhat.com>
7646 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
7649 2009-01-24 Julian Brown <julian@codesourcery.com>
7651 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
7652 config/arm/linux-atomic.c.
7653 * config/arm/linux-atomic.c: New.
7655 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
7657 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
7658 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
7659 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
7661 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
7664 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
7667 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
7669 PR tree-optimization/38953
7670 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
7671 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
7672 (gloog): Split the exit of the scop when the scop exit is a loop exit.
7673 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
7676 2009-01-24 Paul Brook <paul@codesourcery.com>
7678 * config/arm/neon.md (neon_type): Move to arm.md.
7679 (neon_mov<VSTRUCT>): Add neon_type attribute.
7680 * config/arm/arm.md (neon_type): Move to here.
7681 (conds): Add "unconditioal" and use as default for NEON insns.
7683 2009-01-24 Ben Elliston <bje@au.ibm.com>
7685 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
7686 void *' warning from -Wc++-compat.
7687 * Makefile.in (dominance.o-warn): Remove.
7689 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
7691 PR tree-optimization/38932
7692 * fold-const.c (fold_unary_ignore_overflow): New.
7693 * tree.h (fold_unary_ignore_overflow): Declare.
7694 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
7695 * tree-ssa-sccvn.c (visit_reference_op_load,
7696 simplify_unary_expression): Likewise.
7698 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
7700 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
7701 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
7702 regardless of their type.
7703 * c-common.c (handle_packed_attribute): Don't ignore packed on
7705 * c.opt (Wpacked-bitfield-compat): New warning option.
7706 * stor-layout.c (place_field): Warn if offset of a field changed.
7707 * doc/extend.texi (packed): Mention the ABI change.
7708 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
7709 (Warning Options): Add it to the list.
7711 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
7713 * c-opts.c (c_common_post_options): Fix a typo in comments.
7715 2009-01-22 Steve Ellcey <sje@cup.hp.com>
7718 * gimplify.c (gimplify_init_constructor): Fix promotion of const
7719 variables to static.
7720 * doc/invoke.texi (-fmerge-all-constants): Update description.
7722 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
7725 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
7726 (*movdi_1_rex64): Use type "mmx" for alternative 5.
7728 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
7730 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
7732 (LOCAL_ALIGNMENT): Similarly.
7734 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
7735 Joseph Myers <joseph@codesourcery.com>
7737 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
7738 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
7739 * config/arm/arm-tune.md: Regenerate.
7740 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
7743 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
7745 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
7746 version number to five.
7748 2009-01-22 Dodji Seketeli <dodji@redhat.com>
7751 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
7752 * c-common.c (set_underlying_type): Likewise.
7753 (is_typedef_decl ): Likewise
7755 (set_underlying_type): Likewise.
7756 (is_typedef_type): Likewise.
7758 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
7761 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
7764 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
7767 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
7768 (LIBGCC_SPEC): Don't define.
7769 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
7771 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
7773 PR rtl-optimization/38879
7774 * alias.c (base_alias_check): Unaligned access via AND address can
7775 alias all surrounding object types except those with sizes equal
7776 or wider than the size of unaligned access.
7778 2009-01-21 Dodji Seketeli <dodji@redhat.com>
7781 * c-decl.c (clone_underlying_type): Move this ...
7782 * c-common.c (set_underlying_type): ... here.
7783 Also, make sure the function properly sets TYPE_STUB_DECL() on
7784 the newly created typedef variant type.
7785 (is_typedef_decl ): New entry point.
7786 * tree.h: Added a new member member_types_needing_access_check to
7787 struct tree_decl_non_common.
7788 (set_underlying_type): New entry point.
7789 (is_typedef_type): Likewise.
7791 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
7793 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
7794 Check whether two instructions have memory references that
7795 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
7796 are helper functions for traversing.
7797 * alias.h (insn_alias_sets_confilict_p): New prototypes.
7798 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
7799 not to draw dependency edge for instructions with non-conflicting
7802 2009-01-20 Joseph Myers <joseph@codesourcery.com>
7805 * longlong.h: Update copyright years. Use soft-fp license notice.
7806 Sync __clz_tab declaration with glibc.
7808 2009-01-20 Steve Ellcey <sje@cup.hp.com>
7811 * doc/extend.texi (syscall_linkage): New.
7812 (version_id): Modify.
7814 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
7815 Richard Guenther <rguenther@suse.de>
7817 PR tree-optimization/38747
7818 PR tree-optimization/38748
7819 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
7820 conversion if the base address is an indirect reference and the
7821 aliasing sets could cause issues.
7823 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
7825 * common.opt (fgraphite, fgraphite-identity): Add comment for
7826 explaining why these options are not documented.
7828 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
7830 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
7831 gimple_call_lhs is NULL.
7833 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
7836 * emit-rtl.c (adjust_address_1): Make sure memref is never
7839 2009-01-20 Ben Elliston <bje@au.ibm.com>
7841 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
7842 const qualifier from arg parameter. Remove unnecessary cast to char *.
7843 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
7844 const qualifier from arg 2.
7846 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
7848 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
7850 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
7853 * rtl.h (reinit_regs): New prototype.
7854 * regclass.c: Include ira.h.
7856 * Makefile.in (regclass.o): Add ira.h.
7857 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
7859 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
7862 * c-common.c (handle_aligned_attribute): Use
7863 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
7864 default alignment value.
7866 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
7868 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
7869 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
7871 * doc/extend.texi: Update __attribute__ ((aligned)). Document
7872 __BIGGEST_ALIGNMENT__.
7874 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
7876 2009-01-18 Richard Guenther <rguenther@suse.de>
7878 PR tree-optimization/38819
7879 * tree-flow.h (operation_could_trap_helper_p): Declare.
7880 * tree-eh.c (operation_could_trap_helper_p): Export.
7881 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
7882 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
7883 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
7884 are about to insert a possibly trapping instruction and fail
7887 2009-01-18 Andreas Schwab <schwab@suse.de>
7889 * doc/install.texi (Configuration): Remove obsolete paragraph
7890 about use of --with-gnu-ld with --with-gnu-as.
7892 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
7894 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
7895 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
7896 Follow spelling conventions.
7898 2009-01-18 Ben Elliston <bje@au.ibm.com>
7900 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
7901 C++ warning about implicit conversion from void * to struct
7903 (bitmap_obstack_free): Likewise for bitmap_element *.
7904 * Makefile.in (bitmap.o-warn): Remove.
7906 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
7908 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
7910 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
7911 Tobias Grosser <tobi.grosser@amd.com>
7913 * graphite.c (graphite_trans_scop_block): Do not block single
7916 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
7918 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
7919 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
7920 test with assertion.
7922 2009-01-16 Richard Guenther <rguenther@suse.de>
7924 PR tree-optimization/38835
7926 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
7927 and INT + PTR -> (INT)(PTR p+ INT) folding.
7928 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
7930 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
7933 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
7934 the subreg from a lowpart subreg if it is also casting the value.
7936 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
7937 Tobias Grosser <tobi.grosser@amd.com>
7939 * graphite.c (compare_prefix_loops): New.
7940 (build_scop_canonical_schedules): Rewritten.
7941 (graphite_transform_loops): Move build_scop_canonical_schedules
7942 after build_scop_iteration_domain.
7944 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
7945 Tobias Grosser <tobi.grosser@amd.com>
7947 * graphite.c (add_conditions_to_domain): Add the loops to
7948 the dimension of the iteration domain. Do copy the domain
7949 only when it exists.
7950 (build_scop_conditions_1): Do not call add_conditions_to_domain.
7951 (add_conditions_to_constraints): New.
7952 (can_generate_code_stmt, can_generate_code): Removed.
7953 (gloog): Do not call can_generate_code.
7954 (graphite_transform_loops): Call add_conditions_to_constraints
7955 after building the iteration domain.
7957 2009-01-16 Jakub Jelinek <jakub@redhat.com>
7959 PR tree-optimization/38789
7960 * tree-ssa-threadedge.c
7961 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
7962 __builtin_constant_p.
7964 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7966 * dce.c (delete_unmarked_insns): Reversed the order that insns are
7967 examined before deleting them.
7969 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
7971 * function.c (aggregate_value_p): Correctly extract the function
7972 type from CALL_EXPR_FN lookup.
7974 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
7976 * config/picochip/picochip.c (picochip_override_options): Revert
7977 CFI asm flag disable commited previously.
7979 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
7980 Tobias Grosser <tobi.grosser@amd.com>
7981 Jan Sjodin <jan.sjodin@amd.com>
7983 * graphite.c (scan_tree_for_params): On substractions negate
7984 all the coefficients of the term.
7985 (clast_to_gcc_expression_red): New. Handle reduction expressions
7986 of more than two operands.
7987 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
7988 (get_vdef_before_scop): Handle also the case of default definitions.
7990 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
7992 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
7993 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
7994 Also use them when walking CALL_INSN_FUNCTION_USAGE.
7996 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
7997 Joey Ye <joey.ye@intel.com>
8000 * cfgexpand.c (expand_stack_alignment): Don't update stack
8001 boundary nor check incoming stack boundary here.
8002 (gimple_expand_cfg): Update stack boundary and check incoming
8003 stack boundary here.
8005 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
8007 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
8009 2009-01-14 Jakub Jelinek <jakub@redhat.com>
8011 PR rtl-optimization/38245
8012 * calls.c (expand_call): Add stack arguments to
8013 CALL_INSN_FUNCTION_USAGE even for pure calls (when
8014 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
8015 in regs and partially in memory or BLKmode arguments.
8016 (emit_library_call_value_1): Add stack arguments to
8017 CALL_INSN_FUNCTION_USAGE even for pure calls (when
8018 ACCUMULATE_OUTGOING_ARGS).
8019 * dce.c: Include tm_p.h.
8020 (find_call_stack_args): New function.
8021 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
8023 (mark_insn): Call find_call_stack_args for CALL_Ps.
8024 (prescan_insns_for_dce): Walk insns backwards in bb rather than
8025 forwards. Allocate and free arg_stores bitmap if needed, pass it
8026 down to deletable_insn_p, don't mark stores set in arg_stores
8027 bitmap, clear the bitmap at the beginning of each bb.
8028 * Makefile.in (dce.o): Depend on $(TM_P_H).
8030 2009-01-14 Michael Meissner <gnu@the-meissners.org>
8033 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
8034 to make sure the insn is a conditional test (bug 22599). Reformat a
8037 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
8040 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
8041 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
8042 (gloog): Do not call cleanup_tree_cfg.
8043 (graphite_transform_loops): Call cleanup_tree_cfg after all
8044 scops have been code generated.
8046 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
8047 * doc/gty.texi (Invoking the garbage collector): Added new node
8048 and section documenting ggc_collect.
8050 2009-01-14 Richard Guenther <rguenther@suse.de>
8052 PR tree-optimization/38826
8054 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
8055 initialization notes only if we actually emitted a warning.
8056 (intra_create_variable_infos): Add constraints for a result decl
8057 that is passed by hidden reference.
8058 (build_pred_graph): Mark all related variables non-direct on
8061 2009-01-14 Nick Clifton <nickc@redhat.com>
8063 * ira-conflicts.c: Include addresses.h for the definition of
8065 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
8066 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
8068 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
8071 * Makefile.in (ira-lives.o): Add except.h.
8073 * ira-lives.c: Include except.h.
8074 (process_bb_node_lives): Process can_throw_internal.
8076 2009-01-13 Jakub Jelinek <jakub@redhat.com>
8078 PR rtl-optimization/38774
8079 * combine.c (simplify_set): When undoing cc_use change, don't do
8080 PUT_CODE on the newly created comparison, but instead put back the
8083 2009-01-13 Joseph Myers <joseph@codesourcery.com>
8085 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
8086 values. Remove duplicate arm8 entry.
8088 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
8090 PR tree-optimization/38786
8091 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
8092 the SSA_NAME case of expand_scalar_variables_expr.
8093 Set the type of an expression to the type of its assign statement.
8094 (expand_scalar_variables_expr): Also gather the scalar computation
8095 used to index the memory access. Do not pass loop_p.
8096 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
8097 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
8098 the gimple_stmt_iterator where it inserts new code.
8100 (copy_bb_and_scalar_dependences): Do not pass loop_p.
8101 (translate_clast): Update call to copy_bb_and_scalar_dependences.
8103 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
8105 * graphite.h (debug_value): Removed.
8106 * graphite.c (debug_value): Removed.
8108 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
8110 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
8111 ldrd/strd with two 32-bit instructions.
8113 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
8115 * config/arm/arm.c (struct processors): Pass for speed down into
8116 cost helper functions.
8117 (const_ok_for_op): Handle COMPARE and inequality nodes.
8118 (arm_rtx_costs_1): Rewrite.
8119 (arm_size_rtx_costs): Update prototype.
8120 (arm_rtx_costs): Pass speed down to helper functions.
8121 (arm_slowmul_rtx_costs): Rework cost calculations.
8122 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
8123 (arm_9e_rtx_costs): Likewise.
8125 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
8127 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
8128 relocations of local symbols wider than UNITS_PER_WORD are not valid.
8129 (alpha_legitimize_address): Do not split local symbols wider than
8130 UNITS_PER_WORD into HIGH/LO_SUM parts.
8132 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
8135 * gcc.c (process_command): Replace call to execvp with calls
8136 to pex_one and exit.
8138 2009-01-03 Anatoly Sokolov <aesok@post.ru>
8141 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
8142 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
8143 variant for devices with 3-byte PC.
8144 (__tablejump_elpm__): New.
8146 2009-01-12 Jakub Jelinek <jakub@redhat.com>
8149 * c-parser.c (c_parser_postfix_expression): Allow `->' in
8150 offsetof member-designator, handle it as `[0].'.
8152 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8154 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
8155 function when not using named sections on targets with named sections
8156 if branch distance is less than 262132.
8158 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
8160 * combine.c (combine_instructions): Recompute
8161 optimize_this_for_speed_p for each BB in the main combine loop.
8163 2009-01-12 Tomas Bily <tbily@suse.cz>
8166 * tree-loop-distribution.c (prop_phis): New function.
8167 (generate_builtin): Call prop_phis.
8168 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
8170 2009-01-12 Jakub Jelinek <jakub@redhat.com>
8172 PR tree-optimization/38807
8173 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
8174 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
8176 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
8178 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
8179 subreg of op0 to the original op0.
8181 2009-01-11 Laurent GUERBY <laurent@guerby.net>
8183 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
8185 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
8188 * gcc/mips-tfile.c (parse_def): Fix parsing of def strings
8189 starting with digits.
8191 2009-01-10 Jakub Jelinek <jakub@redhat.com>
8194 * config/arm/arm.c (arm_is_long_call_p): Don't call
8195 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
8197 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
8199 * regrename.c (regrename_optimize): Fix dumping.
8200 (find_oldest_value_reg): Preserve REG_POINTER.
8201 (copy_hardreg_forward_1): Likewise.
8203 2009-01-09 Diego Novillo <dnovillo@google.com>
8205 * gimple.h (struct gimple_statement_base) <uid>: Document
8206 the restrictions on its use.
8208 (gimple_set_uid): Tidy.
8210 2009-01-09 Jakub Jelinek <jakub@redhat.com>
8212 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
8213 zero guard even if align_bytes != 0 and count is smaller than
8216 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
8218 PR rtl-optimization/38495
8219 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
8220 (add_range_and_copies_from_move_list): Print all added ranges.
8221 Add ranges to memory optimized destination.
8223 2009-01-09 Jakub Jelinek <jakub@redhat.com>
8227 * config/i386/i386.c (override_options): Reject
8228 -mstringop-strategy=rep_8byte with -m32.
8229 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
8230 to 1. Do count comparison against epilogue_size_needed at compile
8231 time even when count_exp was constant forced into register. For
8232 size_needed don't jump to epilogue, instead just avoid aligning
8233 and invoke the body algorithm. If need_zero_guard, add zero guard
8234 even if count is non-zero, but smaller than size_needed + number of
8235 bytes that could be stored for alignment.
8236 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
8237 to 1. If need_zero_guard, add zero guard even if count is non-zero,
8238 but smaller than size_needed + number of bytes that could be stored
8239 for alignment. Compare size_needed with epilogue_size_needed instead
8240 of desired_align - align, don't adjust size_needed, pass
8241 epilogue_size_needed to the epilogue expanders.
8244 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
8246 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8248 * pa.c (last_address): Change to unsigned.
8249 (update_total_code_bytes): Change argument to unsigned. Don't
8250 check if insn addresses are set.
8251 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
8252 addresses are not set.
8253 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
8255 2009-01-09 Nick Clifton <nickc@redhat.com>
8257 * config/sh/symbian.c: Replace uses of DECL_INLINE with
8258 DECL_DECLARED_INLINE_P.
8260 2009-01-09 Jakub Jelinek <jakub@redhat.com>
8263 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
8264 GET_MODE (op0) in operand_subword_force calls.
8267 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
8268 fold_convert arg0 operands to TREE_TYPE (op0) first.
8270 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
8272 * params.def (ira-max-conflict-table-size): Decrease default value
8275 2009-01-08 Jakub Jelinek <jakub@redhat.com>
8277 PR tree-optimization/37031
8278 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
8280 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
8281 allocate it using gc instead of heap, use VEC_quick_push instead of
8283 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
8284 instead of heap, use VEC_quick_push instead of VEC_safe_push.
8285 * tree-data-ref.h (struct access_matrix): Change matrix to gc
8286 allocated vector from heap allocated.
8287 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
8288 * tree-loop-linear.c (linear_transform_loops): Allocate nest
8289 vector only after perfect_loop_nest_depth call.
8291 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
8292 Jan Sjodin <jan.sjodin@amd.com>
8294 PR tree-optimization/38559
8295 * graphite.c (debug_value, copy_constraint,
8296 swap_constraint_variables, scale_constraint_variable, ): New.
8297 (get_lower_bound, get_upper_bound): Removed.
8298 (graphite_trans_bb_strip_mine): Clean up this code that works
8299 only for constant number of iterations. Fully copy upper and
8300 lower bound constraints, not only the constant part of them.
8301 * graphite.h (debug_value): Declared.
8303 2009-01-08 Ira Rosen <irar@il.ibm.com>
8305 PR tree-optimization/37194
8306 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
8307 Don't add the cost of cost model guard in prologue to scalar
8308 outside cost in case of known number of iterations.
8310 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
8311 Alan Modra <amodra@bigpond.net.au>
8313 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
8314 non-word-aligned REG+CONST addressing.
8316 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
8319 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
8320 free_after_compilation when outputting a thunk.
8321 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
8322 Do not call free_after_compilation here.
8324 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
8326 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
8327 (ix86_valid_target_attribute_inner_p): Ditto.
8329 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
8331 PR tree-optimization/38492
8332 PR tree-optimization/38498
8333 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
8334 * tree-chrec.h (scev_is_linear_expression): Declared.
8335 * graphite.c (graphite_cannot_represent_loop_niter): New.
8336 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
8337 (graphite_loop_normal_form): Use gcc_assert.
8338 (scan_tree_for_params): Use CASE_CONVERT.
8339 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
8340 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
8341 Use gcc_assert. Discard scops that contain unhandled cases.
8342 (build_scop_conditions): Return a boolean status for unhandled cases.
8343 (strip_mine_profitable_p): Print the loop number, not its depth.
8344 (is_interchange_valid): Pass the depth of the loop nest, don't
8345 recompute it wrongly.
8346 (graphite_trans_bb_block): Same.
8347 (graphite_trans_bb_block): Print tentative of loop blocking.
8348 (graphite_trans_scop_block): Do not print that the loop has been
8350 (graphite_transform_loops): Do not handle scops that contain condition
8353 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
8355 AVX Programming Reference (December, 2008)
8356 * config/i386/avxintrin.h (_mm256_stream_si256): New.
8357 (_mm256_stream_pd): Likewise.
8358 (_mm256_stream_ps): Likewise.
8360 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
8361 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
8362 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
8363 (bdesc_special_args): Add __builtin_ia32_movntdq256,
8364 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
8365 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
8366 (ix86_expand_special_args_builtin): Likewise.
8368 * config/i386/sse.md (AVXMODEDI): New.
8369 (avx_movnt<mode>): Likewise.
8370 (avx_movnt<mode>): Likewise.
8371 (<sse>_movnt<mode>): Remove AVX support.
8372 (sse2_movntv2di): Likewise.
8374 2009-01-07 Richard Guenther <rguenther@suse.de>
8377 * fold-const.c (extract_muldiv): Remove obsolete comment.
8378 (fold_plusminus_mult_expr): Undo MINUS_EXPR
8379 to PLUS_EXPR canonicalization for the canonicalization.
8381 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
8383 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
8384 hosted cross-compilers generating less efficient code.
8386 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
8388 * function.h (rtl_data): Add a dbr_scheduled_p field.
8389 * reorg.c (dbr_schedule): Set it.
8390 (gate_handle_delay_slots): Check it.
8391 * config/mips/mips.c (mips_base_delayed_branch): Delete.
8392 (mips_reorg): Check flag_delayed_branch instead of
8393 mips_base_delayed_branch.
8394 (mips_override_options): Don't set mips_base_delayed_branch
8395 or flag_delayed_branch.
8397 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
8399 PR rtl-optimization/38426.
8400 * ira.c (ira): Set current_function_is_leaf earlier.
8402 2009-01-06 Jakub Jelinek <jakub@redhat.com>
8404 PR rtl-optimization/38722
8405 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
8406 too early, only set a flag and modify after last possible
8409 2009-01-06 Janis Johnson <janis187@us.ibm.com>
8412 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
8413 * real.c (decimal_single_format): Correct values of emin and emax.
8414 (decimal_double_format): Ditto.
8415 (decimal_quad_format): Ditto.
8416 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
8417 computation of DECnn_MIN and DECnn_MAX for corrected values of
8418 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
8419 __DECnn_MIN__, and adjust its computation for the corrected value
8422 2009-01-06 Jan Hubicka <jh@suse.cz>
8425 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
8427 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
8429 * doc/contrib.texi (Contributors): Slightly adjust the end note.
8430 Add Robert Clark to the list of testers.
8432 2009-01-06 Jan Hubicka <jh@suse.cz>
8433 Kai Tietz <kai.tietz@onevision.com>
8435 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
8436 * config/i386/i386.c (ix86_expand_call): Add clobbers.
8438 2009-01-06 Jan Hubicka <jh@suse.cz>
8439 Kai Tietz <kai.tietz@onevision.com>
8441 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
8443 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
8444 (ix86_nsaved_regs): Count only general purpose regs.
8445 (ix86_nsaved_sseregs): New.
8446 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
8447 to 16 for w64; compute padding and size of sse reg save area.
8448 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
8449 general purpose regs.
8450 (ix86_emit_save_sse_regs_using_mov): New.
8451 (ix86_expand_prologue): Save SSE regs if needed.
8452 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
8453 (ix86_emit_restore_sse_regs_using_mov): New.
8454 (ix86_expand_epilogue): Save SSE regs if needed.
8456 2009-01-06 Jan Hubicka <jh@suse.cz>
8457 Kai Tietz <kai.tietz@onevision.com>
8459 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
8460 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
8461 functions when accumulate outgoing args is off.
8463 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
8466 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
8467 before using pseudos_have_intersected_live_ranges_p.
8469 * ira-int.h (ira_assert): Always define.
8471 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
8473 AVX Programming Reference (December, 2008)
8474 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
8475 (_mm256_permute2_pd): Likewise.
8476 (_mm_permute2_ps): Likewise.
8477 (_mm256_permute2_ps): Likewise.
8478 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
8479 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
8481 * config/i386/i386.c (ix86_builtins): Remove
8482 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
8483 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
8484 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
8485 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
8486 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
8487 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
8488 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
8489 __builtin_ia32_vpermil2ps256.
8490 (ix86_init_mmx_sse_builtins): Updated.
8491 (ix86_expand_args_builtin): Likewise.
8493 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8495 * pa.c (output_call): Relocate non-jump insns in the delay slot of
8496 long absolute calls when generating PA 2.0 code.
8498 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
8500 PR rtl-optimization/38583
8501 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
8503 * params.def (ira-max-conflict-table-size): New.
8505 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
8507 * ira.h (ira_conflicts_p): New external definition.
8509 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
8510 table. Report this. Return result of building.
8511 (ira_build_conflicts): Use ira_conflicts_p. Check result of
8512 building conflict table.
8514 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
8515 (ira_color): Use ira_conflicts_p.
8517 * global.c: Include ira.h.
8518 (pseudo_for_reload_consideration_p, build_insn_chain): Use
8521 * Makefile.in (global.o): Add ira.h.
8523 * ira-build.c (mark_all_loops_for_removal,
8524 propagate_some_info_from_allocno): New.
8525 (remove_unnecessary_allocnos): Call
8526 propagate_some_info_from_allocno.
8527 (remove_low_level_allocnos): New.
8528 (remove_unnecessary_regions): Add parameter. Call
8529 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
8530 parameter to remove_unnecessary_regions.
8531 (ira_build): Remove all regions but root if the conflict table was
8532 not built. Update conflict hard regs for allocnos crossing calls.
8534 * ira.c (ira_conflicts_p): New global.
8535 (ira): Define and use ira_conflicts_p.
8537 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
8538 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
8539 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
8541 2009-01-06 Ben Elliston <bje@au.ibm.com>
8543 * gengtype-lex.l (YY_NO_INPUT): Define.
8545 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
8548 * c-common.c (handle_vector_size_attribute): Also reject
8551 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
8553 PR tree-optimization/38492
8554 * graphite.c (rename_map_elt, debug_rename_elt,
8555 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
8556 rename_map_elt_info, eq_rename_map_elts,
8557 get_new_name_from_old_name, bb_in_sese_p): Moved around.
8558 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
8559 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
8560 (sese_build_livein_liveouts): New.
8561 (new_sese, free_sese): New.
8562 (new_scop): Call new_sese.
8563 (free_scop): Call free_sese.
8564 (rename_variables_from_edge, rename_phis_end_scop): Removed.
8565 (register_old_new_names): Renamed register_old_and_new_names.
8566 (register_scop_liveout_renames, add_loop_exit_phis,
8567 insert_loop_close_phis, struct igp,
8568 default_liveout_before_guard, add_guard_exit_phis,
8569 insert_guard_phis, copy_renames): New.
8570 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
8571 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
8572 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
8573 (scop_adjust_phis_for_liveouts): New.
8574 (gloog): Call scop_adjust_phis_for_liveouts.
8576 * graphite.h (struct sese): Documented. Added fields liveout,
8578 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
8579 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
8580 (struct scop): Added field liveout_renames.
8581 (SCOP_LIVEOUT_RENAMES): New.
8583 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
8585 PR tree-optimization/38510
8586 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
8587 (translate_clast): Call recompute_all_dominators before
8589 (gloog): Call recompute_all_dominators before graphite_verify.
8591 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
8592 Jan Sjodin <jan.sjodin@amd.com>
8594 PR tree-optimization/38500
8595 * graphite.c (create_sese_edges): Call fix_loop_structure after
8598 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
8600 * config.gcc: Add m32r*-*-rtems*.
8601 * config/m32r/rtems.h: New file.
8603 2009-01-05 Ben Elliston <bje@au.ibm.com>
8605 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
8606 (.po.pox): Likewise.
8607 (po/gcc.pot): Likewise.
8609 2009-01-04 David S. Miller <davem@davemloft.net>
8611 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
8612 (STARTING_FRAME_OFFSET): Always set to zero.
8614 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
8616 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
8617 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
8618 fixed-point types, and vectors of the same.
8620 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
8622 * config/mips/sync.md (*mb_barrier): Rename to...
8623 (*memory_barrier): ...this.
8625 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
8627 * doc/extend.texi (Function Attributes): Move @cindex after @item
8628 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
8629 and put in alphabetical order. Fix 'target' name and put in order.
8630 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
8633 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
8635 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
8636 (memory_barrier): Expand as unspec instead of unspec_volatile.
8637 Remove mem:BLK from insn operands. Use Pmode scratch register.
8638 (*memory_barrier): Define as unspec instead of unspec_volatile.
8639 Use (match_dup 0) as input operand.
8641 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
8642 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
8643 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
8644 scratch register. Remove operand 1.
8645 (*stbar): Define as unspec instead of unspec_volatile.
8646 Use (match_dup 0) as input operand, remove (const_int 8).
8647 (*membar): Define as unspec instead of unspec_volatile.
8648 Use (match_dup 0) as input operand, remove input operand 2.
8650 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
8651 (memory_barrier): Expand as unspec instead of unspec_volatile.
8652 Remove mem:BLK from insn operands. Use Pmode scratch register.
8653 (*memory_barrier): Define as unspec instead of unspec_volatile.
8654 Use (match_dup 0) as input operand.
8656 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
8657 Remove mem:BLK from insn operands. Use Pmode scratch register.
8658 Set volatile flag on operand 0.
8659 (*memory_barrier): New insn pattern.
8661 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
8663 (*memory_barrier): Use (match_dup 0) as input operand.
8665 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
8666 Remove mem:BLK from insn operands. Use Pmode scratch register.
8667 Set volatile flag on operand 0.
8668 (*mb_internal): New insn pattern.
8670 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
8672 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
8675 * function.c (struct temp_slot): Move to the section of the file
8676 that deals with temp slots. Remove field 'address'.
8677 (temp_slot_address_table): New hash table of address -> temp slot.
8678 (struct temp_slot_address_entry): New struct, items for the table.
8679 (temp_slot_address_compute_hash, temp_slot_address_hash,
8680 temp_slot_address_eq, insert_temp_slot_address): Support functions
8682 (find_temp_slot_from_address): Rewrite to use the new hash table.
8683 (remove_unused_temp_slot_addresses): Remove addresses of temp
8684 slots that have been made available.
8685 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
8686 worker function for remove_unused_temp_slot_addresses.
8687 (assign_stack_temp_for_type): Don't clear the temp slot address list.
8688 Add the temp slot address to the address -> temp slot map.
8689 (update_temp_slot_address): Update via insert_temp_slot_address.
8690 (free_temp_slots): Call remove_unused_temp_slot_addresses.
8691 (pop_temp_slots): Likewise.
8692 (init_temp_slots): Allocate the address -> temp slot map, or empty
8693 the map if it is already allocated.
8694 (prepare_function_start): Initialize temp slot processing.
8696 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
8699 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
8700 Calculate the size of all stack vars assuming no packing of stack
8701 vars will happen, replacing a quadratic algorithm with a linear one.
8703 2009-01-03 Jakub Jelinek <jakub@redhat.com>
8706 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
8709 2009-01-03 Diego Novillo <dnovillo@google.com>
8711 * doc/contrib.texi: Update contributions.
8713 2009-01-03 Jakub Jelinek <jakub@redhat.com>
8716 * builtins.c (fold_builtin_memory_op): Give up if either operand
8717 is volatile. Set srctype or desttype to non-qualified version
8721 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
8724 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
8726 PR rtl-optimization/35805
8727 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
8728 problem if fast dce is able to remove any instructions.
8729 * dce.c (dce_process_block): Fix dump message.
8731 2009-01-02 Mark Mitchell <mark@codesourcery.com>
8734 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
8736 2009-01-02 Jakub Jelinek <jakub@redhat.com>
8739 * tree-flow.h (op_code_prio, op_prio): New prototypes.
8740 * tree-pretty-print.c (op_code_prio): New function.
8741 (op_prio): No longer static. Use op_code_prio.
8742 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
8743 Use op_prio and op_code_prio to determine if () should be
8744 printed around operand(s) or not.
8746 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
8747 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
8748 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
8749 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
8750 pp_character instead of pp_string for single letter printing.
8752 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8754 * doc/extend.texi: Fix '#pragma GCC option' typo.
8756 2009-01-02 Richard Guenther <rguenther@suse.de>
8758 * doc/install.texi (--enable-checking): Mention different
8760 (--enable-stage1-checking): Document.
8762 2009-01-01 Andrew Pinski <pinskia@gmail.com>
8765 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
8766 case to be an error.
8768 2009-01-02 Ben Elliston <bje@au.ibm.com>
8770 * config/fp-bit.h (pack_d): Constify argument.
8771 * config/fp-bit.c (makenan): Constify return type. Remove casts.
8772 (isnan): Constify argument.
8776 (_fpadd_parts): Constify return type.
8777 (_fpmul_parts): Likewise.
8778 (_fpdiv_parts): Likewise.
8780 2009-01-01 Jakub Jelinek <jakub@redhat.com>
8783 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
8784 warn about overwriting initializer with side-effects or
8785 -Woverride-init if !IMPLICIT.
8786 (output_init_element): Likewise. Pass IMPLICIT down to
8788 (process_init_element): Add IMPLICIT argument. Pass it down
8789 to output_init_element.
8790 (push_init_element, pop_init_level, set_designator): Adjust
8791 process_init_element callers.
8792 (set_nonincremental_init, set_nonincremental_init_from_string):
8793 Adjust add_pending_init callers.
8794 (output_pending_init_elements): Adjust output_init_element callers.
8795 * c-tree.h (process_init_element): Adjust prototype.
8796 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
8797 process_init_element callers.
8800 Copyright (C) 2009 Free Software Foundation, Inc.
8802 Copying and distribution of this file, with or without modification,
8803 are permitted in any medium without royalty provided the copyright
8804 notice and this notice are preserved.