1 2009-04-26 Joseph Myers <joseph@codesourcery.com>
4 * c-decl.c (global_bindings_p): Return negative value.
5 (c_variable_size): New. Based on variable_size from
7 (grokdeclarator): Call c_variable_size not variable_size.
9 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
11 * config/i386/i386.c (print_operand) ['z']: Fix typo.
13 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
15 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
16 Redefine it to just use mingw/include.
17 (ASM_SPEC): Rules for -m32 and -m64.
18 (LINK_SPEC): Use Likewise.
19 (SPEC_32): New define.
21 (SUB_LINK_SPEC): Likewise.
22 (MULTILIB_DEFAULTS): New define.
23 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
25 (MULTILIB_DIRNAMES): Likewise.
26 (MULTILIB_OSDIRNAMES): Likewise.
28 (INSTALL_LIBGCC): Likewise.
30 2009-04-26 Joseph Myers <joseph@codesourcery.com>
33 * c-tree.h (enum c_inline_static_type): New.
34 (record_inline_static): Declare.
35 * c-decl.c (struct c_inline_static, c_inline_statics,
36 record_inline_static, check_inline_statics): New.
37 (pop_file_scope): Call check_inline_statics.
38 (start_decl): Call record_inline_static instead of pedwarning
39 directly for static in inline function.
40 * c-typeck.c (build_external_ref): Call record_inline_static
41 instead of pedwarning directly for static referenced in inline
44 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
46 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
47 not new but only being rescanned.
48 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
49 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
50 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
51 record_set_info, compute_set, grealloc): Remove.
52 (recompute_all_luids): New function.
53 (gcse_main): Don't compute sets, and don't do related memory
54 allocations/free-ing. If something changed before the end of the
55 pass, update LUIDs using recompute_all_luids.
56 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
57 (free_gcse_mem): Don't free it either.
58 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
59 Use the df insn LUIDs.
60 (load_killed_in_block): Likewise.
61 (compute_hash_table_work): Don't compute reg_set_in_block.
62 (compute_transp): Use DF_REG_DEF_CHAINs.
63 (local_cprop_pass): Don't use compute_sets and related functions.
64 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
65 Use get_max_uid() instead of max_cuid.
66 (insert_insn_end_basic_block, pre_insert_copy_insn,
67 update_ld_motion_stores): Don't try to
68 keep reg_set tables up to date.
69 (pre_insert_copies): Use df insn LUIDs.
70 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
71 (reg_set_info): Don't use extra bitmap argument.
72 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
73 information to compute regs_set_in_block.
74 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
75 (bypass_jumps): Don't use compute_sets and friends.
77 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80 * opts.c (undocumented_msg): Do not leave blank even with
83 2009-04-25 Joseph Myers <joseph@codesourcery.com>
85 * c-decl.c (build_enumerator): Allow values folding to integer
86 constants but not integer constant expressions with a pedwarn if
89 2009-04-25 Joseph Myers <joseph@codesourcery.com>
92 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
93 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
94 type is an integer constant.
96 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
99 * config/i386/i386.c (print_operand) ['z']: Revert handling of
102 2009-04-25 Joseph Myers <joseph@codesourcery.com>
105 * c-decl.c (grokdeclarator): Diagnose declarations of functions
106 with variably modified return type and no storage class
107 specifiers, except for the case of nested functions. Distinguish
108 extern declarations of functions with variably modified return
109 types from those of objects with variably modified types.
111 2009-04-25 Jan Hubicka <jh@suse.cz>
113 * tree.c (list_equal_p): New function.
114 * tree.h (list_equal_p): Declare.
115 * coretypes.h (edge_def, edge, const_edge, basic_block_def
116 basic_block_def, basic_block, const_basic_block): New.
117 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
118 (redirect_eh_edge): New function.
119 (make_eh_edge_update_phi): EH edges are not abnormal.
120 * except.c: Include tree-flow.h.
121 (list_match): New function.
122 (eh_region_replaceable_by_p): New function.
123 (replace_region): New function.
124 (hash_type_list): New function.
125 (hash_eh_region): New function.
126 (eh_regions_equal_p): New function.
127 (merge_peers): New function.
128 (remove_unreachable_regions): Verify EH tree when checking;
130 (copy_eh_region_1): New function.
131 (copy_eh_region): New function.
132 (push_reachable_handler): New function.
133 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
134 regions without label but with live RESX.
135 * except.h (redirect_eh_edge_to_label): New.
136 * tree-flow.h (redirect_eh_edge): New.
137 * coretypes.h (edge_def, edge, const_edge, basic_block_def
138 basic_block_def, basic_block, const_basic_block): Remove.
139 * Makefile.in (except.o): Add dependency on tree-flow.h
140 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
141 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
144 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
147 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
148 on the destination of memcpy.
150 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
152 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
153 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
154 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
156 2009-04-25 Jan Hubicka <jh@suse.cz>
158 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
159 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
160 to be reached by different label than left.
161 (update_eh_edges): Update comment; remove edge_to_remove if possible
162 and return true if suceeded.
163 (cleanup_empty_eh): Accept sharing map; handle shared regions.
164 (cleanup_eh): Compute sharing map.
165 * except.c (remove_eh_handler_and_replace): Add argument if we should
167 (remove_unreachable_regions): Update for label sharing.
168 (label_to_region_map): Likewise.
169 (get_next_region_sharing_label): New function.
170 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
172 (remove_eh_handler): Update.
173 (remove_eh_region_and_replace_by_outer_of): New function.
174 * except.h (struct eh_region): Add next_region_sharing_label.
175 (remove_eh_region_and_replace_by_outer_of,
176 get_next_region_sharing_label): Declare.
177 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
179 2009-04-25 Jan Hubicka <jh@suse.cz>
181 * tree-cfg.c (split_critical_edges): Split also edges where we can't
182 insert code even if they are not critical.
184 2009-04-25 Jan Hubicka <jh@suse.cz>
186 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
187 (gimple_can_remove_branch_p): EH edges won't remove branch by
189 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
190 updating of non-abnormal EH edges.
191 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
192 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
193 (split_critical_edges): Split also edges where emitting code on them
194 will lead to splitting later.
196 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
197 H.J. Lu <hongjiu.lu@intel.com>
200 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
201 the configured assembler supports fildq and fistpq mnemonics.
202 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
203 * configure: Regenerated.
206 * config/i386/i386.c (print_operand): Handle 'Z'.
207 ['z']: Remove handling of special fild/fist suffixes.
208 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
209 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
211 (*floatsi<mode>2_vector_mixed): Ditto.
212 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
213 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
214 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
215 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
216 * config/i386/gas.h (GAS_MNEMONICS): Remove.
218 2009-04-25 Ben Elliston <bje@au.ibm.com>
220 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
221 the source of a set operation.
223 2009-04-25 Anatoly Sokolov <aesok@post.ru>
225 * target.h (struct gcc_target): Add case_values_threshold field.
226 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
227 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
228 * targhooks.c (default_case_values_threshold): New function.
229 * targhooks.h (default_case_values_threshold): Declare function.
230 * stmt.c (expand_case): Use case_values_threshold target hook.
231 * expr.h (case_values_threshold): Remove declartation.
232 * expr.c (case_values_threshold): Remove function.
233 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
235 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
236 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
237 (avr_case_values_threshold): Declare as static.
238 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
240 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
241 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
242 (mn10300_case_values_threshold): New function.
244 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
246 * ira.c (setup_cover_and_important_classes): Add enum cast.
248 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
250 * genpreds.c (write_enum_constraint_num): Output definition of
251 CONSTRAINT_NUM_DEFINED_P macro.
252 * ira.c (setup_cover_and_important_classes): Use
253 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
255 2009-04-24 DJ Delorie <dj@redhat.com>
257 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
258 __SH2A_SINGLE_ONLY__ also.
260 2009-04-24 Steve Ellcey <sje@cup.hp.com>
262 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
263 (movdf_internal): Ditto.
264 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
265 SFmode and DFmode constants.
266 (ia64_print_operand): Add 'G' format for printing
267 floating point constants.
269 2009-04-24 Richard Guenther <rguenther@suse.de>
271 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
272 from unsigned additions.
274 2009-04-24 Joseph Myers <joseph@codesourcery.com>
276 * c-typeck.c (set_init_index): Allow array designators that are
277 not integer constant expressions with a pedwarn if pedantic.
279 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
281 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
282 zero if no overlap in nonzero bits between the operands.
284 2009-04-24 Ian Lance Taylor <iant@google.com>
286 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
287 (record_dead_and_set_regs): Likewise.
288 * df.h (struct df_mw_hardreg): Change flags field to int.
289 (struct df_base_ref): Likewise.
290 (struct df): Change changeable_flags field to int.
291 * df-scan.c (df_defs_record): Change clobber_flags to int.
292 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
293 constants rather than #define macros.
294 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
295 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
296 (enum dwarf_calling_convention): Likewise.
297 (enum dwarf_line_number_x_ops): Likewise.
298 (enum dwarf_call_frame_info): Likewise.
299 (enum dwarf_source_language): Likewise.
300 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
301 (add_calling_convention_attribute): Likewise.
302 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
303 (combine_comparisons): Change compcode to int. Add cast to enum type.
304 * genrecog.c (maybe_both_true_2): Change c to int.
305 (write_switch): Likewise. Add cast to enum type.
306 * gimplify.c (gimplify_omp_for): Handle return values from
307 gimplify_expr using MIN rather than bitwise or.
308 (gimplify_expr): Add cast to enum type.
309 * ipa-prop.c (update_jump_functions_after_inlining): Change
310 IPA_BOTTOM to IPA_JF_UNKNOWN.
311 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
312 Add casts to enum type.
313 (setup_cover_and_important_classes): Change cl to int. Add casts
315 (setup_class_translate): Change cl and mode to int.
316 (ira_init_once): Change mode to int.
317 (free_register_move_costs): Likewise.
318 (setup_prohibited_mode_move_regs): Add casts to enum type.
319 * langhooks.c (add_builtin_function_common): Rework assertion that
321 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
322 * omega.c (omega_do_elimination): Avoid math on enum types.
323 * optabs.c (expand_vec_shift_expr): Remove casts to int.
324 * opts.c (set_debug_level): Change 2 to enum constant. Use new
325 int local to handle integral_argment value.
326 * regmove.c (try_auto_increment): Change PUT_MODE to
328 * reload.c (push_secondary_reload): Add casts to enum type.
329 (secondary_reload_class, find_valid_class): Likewise.
330 * reload1.c (emit_input_reload_insns): Likewise.
331 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
332 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
333 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
335 * tree.c (build_common_builtin_nodes): Add casts to enum type.
336 * tree-complex.c (complex_lattice_t): Typedef to int rather than
338 (expand_complex_libcall): Add casts to enum type.
339 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
340 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
341 with ERROR_MARK, not NUM_TREE_CODES.
342 (vect_create_epilog_for_reduction): Likewise.
343 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
344 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
345 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
347 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
348 vect_unused_in_loop. Change 0 to loop_vect.
349 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
350 * var-tracking.c (get_init_value): Change return type to enum
352 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
353 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
355 (arm_override_options): Add casts to enum type.
356 (arm_emit_tls_decoration): Likewise.
357 * config/i386/i386.c (ix86_function_specific_restore): Add casts
359 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
360 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
361 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
363 * config/s390/s390.c (code_for_builtin_64): Change to array of
365 (code_for_builtin_31): Likewise.
366 (s390_expand_builtin): Change code_for_builtin to enum insn_code
368 * config/sparc/sparc.c (sparc_override_options): Change value
369 field in struct code_model to enum cmodel. In initializer change
370 0 to NULL and add cast to enum type.
372 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
373 Change all callers. Issue a -Wc++-compat warning using
374 lhs_origtype if necessary.
375 (convert_for_assignment): Issue -Wc++-compat warnings about
376 invalid conversions to enum type on assignment.
377 * c-common.h (build_modify_expr): Update declaration.
379 2009-04-24 Nick Clifton <nickc@redhat.com>
381 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
382 (function_arg_advance): Likewise.
383 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
386 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
388 * config/s390/constraints.md ('I', 'J'): Fix condition.
390 2009-04-24 Diego Novillo <dnovillo@google.com>
392 * gengtype-parse.c (parse_error): Add newline after message.
394 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
396 * config/i386/sse.md (avxmodesuffixs): Removed.
397 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
398 (*avx_pinsr<ssevecsize>): This.
400 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
402 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
403 follow chains of regs with a single definition, and allow expressions
404 that are function_invariant_p.
405 (simple_rhs_p): Allow expressions that are function_invariant_p.
407 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
410 * fold-const.c (fold_cond_expr_with_comparison): When folding
411 > and >= to MAX, make sure the MAX uses the same type as the
412 comparison's operands.
414 2009-04-24 Nick Clifton <nickc@redhat.com>
416 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
417 addressing for DImode accesses.
418 (frv_print_operand_address): Handle PLUS case.
419 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
421 2009-04-24 Jakub Jelinek <jakub@redhat.com>
423 PR rtl-optimization/39794
424 * alias.c (canon_true_dependence): Add x_addr argument.
425 * rtl.h (canon_true_dependence): Adjust prototype.
426 * cse.c (check_dependence): Adjust canon_true_dependence callers.
427 * cselib.c (cselib_invalidate_mem): Likewise.
428 * gcse.c (compute_transp): Likewise.
429 * dse.c (scan_reads_nospill): Likewise.
430 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
431 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
432 canon_base_addr of the group, plus optional offset.
433 (struct group_info): Rename canon_base_mem to
435 (get_group_info): Set canon_base_addr to canon_rtx of base, not
436 canon_rtx of base_mem.
438 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
440 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
441 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
443 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
445 * config/spu/spu-builtins.h: Delete file.
447 * config/spu/spu.h (enum spu_builtin_type): Move here from
449 (struct spu_builtin_description): Likewise. Add GTY marker.
450 Do not use enum spu_function_code or enum insn_code.
451 (spu_builtins): Add extern declaration.
453 * config/spu/spu.c: Do not include "spu-builtins.h".
454 (enum spu_function_code, enum spu_builtin_type_index,
455 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
456 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
457 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
458 unsigned_V2DI_type_node): Move here from spu-builtins.h.
459 (spu_builtin_types): Make static. Add GTY marker.
460 (spu_builtins): Add extern declaration with GTY marker.
463 * config/spu/spu-c.c: Do not include "spu-builtins.h".
464 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
465 Check programmatically whether all parameters are scalar.
467 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
469 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
471 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
472 assignment from the constructor either if the target is volatile.
474 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
476 * config/arm/arm.md (insv): Do not share operands[0].
478 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
480 * config/vxlib-tls.c (active_tls_threads): Delete.
481 (delete_hook_installed): New.
482 (tls_delete_hook): Don't delete the delete hook.
483 (tls_destructor): Delete it here.
484 (__gthread_set_specific): Adjust installing the delete hook.
485 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
486 __gthread_leave_tsd_dtor_context.
488 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
490 * c-format.c (gcc_tdiag_char_table): Add support for %E.
492 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
494 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
496 (alpha_rtx_costs): Ditto.
497 (emit_unlikely_jump): Use add_reg_note.
498 (emit_frame_store_1): Ditto.
499 (alpha_expand_prologue): Ditto.
500 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
501 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
503 2009-04-23 Nick Clifton <nickc@redhat.com>
505 * config/v850/v850.md (epilogue): Remove suppressed code.
506 (return): Rename to return_simple and remove test of frame size.
507 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
508 to gen_return_simple.
510 2009-04-22 Jing Yu <jingyu@google.com>
513 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
515 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
518 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
519 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
520 value is a VECTOR_CST, the element type is the element type of the
523 2009-04-22 DJ Delorie <dj@redhat.com>
525 * config/m32c/m32c.h: Update GTY annotations to new syntax.
527 2009-04-22 Jakub Jelinek <jakub@redhat.com>
529 * alias.c (find_base_term): Move around LO_SUM case, so that
530 CONST falls through into PLUS/MINUS handling.
533 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
534 into 0, use omit_one_operand.
536 2009-04-23 Ben Elliston <bje@au.ibm.com>
538 * config/rs6000/linux-unwind.h (get_regs): Remove type
539 puns. Change the type of `pc' to an array of unsigned ints and
540 update all users. Constify frame24.
542 2009-04-22 DJ Delorie <dj@redhat.com>
544 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
545 declarations before code.
546 (current_function_special_page_vector): Likewise.
547 (m32c_expand_insv): Silence a warning.
549 2009-04-21 Taras Glek <tglek@mozilla.com>
551 * alias.c: Update GTY annotations to new syntax.
552 * basic-block.h: Likewise.
553 * bitmap.h: Likewise.
554 * c-common.h: Likewise.
555 * c-decl.c: Likewise.
556 * c-parser.c: Likewise.
557 * c-pragma.c: Likewise.
558 * c-tree.h: Likewise.
559 * cfgloop.h: Likewise.
560 * cgraph.h: Likewise.
561 * config/alpha/alpha.c: Likewise.
562 * config/arm/arm.h: Likewise.
563 * config/avr/avr.h: Likewise.
564 * config/bfin/bfin.c: Likewise.
565 * config/cris/cris.c: Likewise.
566 * config/darwin.c: Likewise.
567 * config/frv/frv.c: Likewise.
568 * config/i386/i386.c: Likewise.
569 * config/i386/i386.h: Likewise.
570 * config/i386/winnt.c: Likewise.
571 * config/ia64/ia64.h: Likewise.
572 * config/iq2000/iq2000.c: Likewise.
573 * config/mips/mips.c: Likewise.
574 * config/mmix/mmix.h: Likewise.
575 * config/pa/pa.c: Likewise.
576 * config/pa/pa.h: Likewise.
577 * config/rs6000/rs6000.c: Likewise.
578 * config/s390/s390.c: Likewise.
579 * config/sparc/sparc.c: Likewise.
580 * config/xtensa/xtensa.c: Likewise.
581 * cselib.h: Likewise.
582 * dbxout.c: Likewise.
583 * dwarf2out.c: Likewise.
584 * except.c: Likewise.
585 * except.h: Likewise.
586 * fixed-value.h: Likewise.
587 * function.c: Likewise.
588 * function.h: Likewise.
589 * gimple.h: Likewise.
590 * integrate.c: Likewise.
591 * optabs.c: Likewise.
592 * output.h: Likewise.
595 * stringpool.c: Likewise.
596 * tree-data-ref.c: Likewise.
597 * tree-flow.h: Likewise.
598 * tree-scalar-evolution.c: Likewise.
599 * tree-ssa-address.c: Likewise.
600 * tree-ssa-alias.h: Likewise.
601 * tree-ssa-operands.h: Likewise.
604 * varasm.c: Likewise.
605 * varray.h: Likewise.
607 * coretypes.h: Do not define GTY macro if it is already defined.
608 * doc/gty.texi: Update GTY documentation to new syntax.
609 * gengtype-lex.l: Enforce attribute-like syntax for GTY
610 annotations on structs.
611 * gengtype-parse.c: Likewise.
613 2009-04-22 Mark Heffernan <meheff@google.com>
615 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
617 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
619 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
622 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
624 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
625 the same as a PLUS without a shift. Increase the cost of a
628 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
630 * Makefile.in: Update dependencies.
631 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
632 * errors.h: Remove bogus comment about compatibility.
633 (warning): Update declaration.
634 * genautomata.c: Update all calls to warning.
635 * gimple.c: Do not include errors.h. Include toplev.h.
636 * tree-ssa-structalias.c: Do not include errors.h.
638 * tree-ssa-reassoc.c: Likewise.
639 * config/spu/spu-c.c: Likewise.
640 * config/spu/t-spu-elf: Update dependencies.
642 2009-04-22 Richard Guenther <rguenther@suse.de>
644 PR tree-optimization/39824
645 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
646 make sure the types are compatible.
648 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
651 * c-common.c (c_parse_error): Take a token_flags parameter.
652 Use token_type for the token type instead.
653 Pass token_flags to cpp_type2name.
654 * c-common.h (c_parse_error): Update declaration.
655 * c-parser.c (c_parser_error): Pass 0 as token flags.
657 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
659 PR rtl-optimization/39580
660 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
662 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
664 * function.c (expand_function_end): Do not emit a jump to the "naked"
665 return label for fall-through returns.
666 * except.c (sjlj_emit_function_exit): Always place the call to the
667 unregister function at the location installed by expand_function_end.
669 2009-04-22 Richard Guenther <rguenther@suse.de>
671 PR tree-optimization/39845
672 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
673 (gen_inbound_check): Likewise.
675 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
677 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
679 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
680 * config/vxlib.c (__gthread_once): Add race guard for PPC.
682 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
684 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
685 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
686 shift counts to avoid out-of-bounds array accesses.
688 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
690 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
693 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
695 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
696 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
697 GET_CODE macro. Use IN_RANGE macro where appropriate.
698 * config/alpha/alpha.h: Ditto.
699 * config/alpha/alpha.md: Ditto.
700 * config/alpha/constraints.md: Ditto.
701 * config/alpha/predicates.md: Ditto.
703 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
705 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
706 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
707 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
708 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
709 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
710 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
711 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
712 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
713 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
714 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
715 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
716 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
717 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
718 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
719 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
720 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
721 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
722 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
723 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
724 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
725 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
726 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
727 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
728 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
729 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
730 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
731 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
733 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
735 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
736 references from comments.
737 * cfgbuild.c: (count_basic_blocks): Delete.
738 (find_basic_blocks_1): Delete.
739 (find_basic_blocks): Delete.
740 * except.c (finish_eh_generation): Make static. Move comment from
741 except.h here. Remove find_basic_blocks references from comments.
742 * except.h (finish_eh_generation): Delete.
743 * basic-block.h (find_basic_blocks): Delete.
744 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
746 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
748 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
749 (sdbout_parms): Likewise.
751 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
753 * config/sh/sh.c (prepare_cbranch_operands): Use
754 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
755 (expand_cbranchdi4): Likewise.
756 (from_compare): Add cast to enum type.
757 (expand_cbranchsi4): Use add_reg_note.
758 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
759 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
760 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
761 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
762 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
763 instead of CODE_FOR_nothing.
764 (cbranchdi4): Likewise. Fix the order of arguments for
766 (push_fpscr): Use add_reg_note.
767 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
768 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
770 2009-04-21 Joseph Myers <joseph@codesourcery.com>
772 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
773 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
774 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
775 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
776 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
777 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
778 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
779 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
780 config/alpha/x-vms, config/arc/t-arc,
781 config/arm/README-interworking, config/arm/arm-c.c,
782 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
783 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
784 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
785 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
786 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
787 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
788 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
789 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
790 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
791 config/cris/t-elfmulti, config/crx/t-crx,
792 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
793 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
794 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
795 config/h8300/t-h8300, config/i386/athlon.md,
796 config/i386/darwin-libgcc.10.4.ver,
797 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
798 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
799 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
800 config/i386/t-linux64, config/i386/t-nwld,
801 config/i386/t-rtems-i386, config/i386/t-sol2-10,
802 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
803 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
804 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
805 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
806 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
807 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
808 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
809 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
810 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
811 config/m68k/t-uclinux, config/mcore/t-mcore,
812 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
813 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
814 config/mips/crtn.asm, config/mips/irix-crti.asm,
815 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
816 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
817 config/mips/mips-fixed.md, config/mips/sb1.md,
818 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
819 config/mips/t-iris6, config/mips/t-isa3264,
820 config/mips/t-libgcc-mips16, config/mips/t-linux64,
821 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
822 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
823 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
824 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
825 config/mn10300/t-linux, config/mn10300/t-mn10300,
826 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
827 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
828 config/picochip/libgccExtras/clzsi2.asm,
829 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
830 config/rs6000/darwin-libgcc.10.4.ver,
831 config/rs6000/darwin-libgcc.10.5.ver,
832 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
833 config/rs6000/t-aix43, config/rs6000/t-aix52,
834 config/rs6000/t-darwin, config/rs6000/t-fprules,
835 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
836 config/rs6000/t-lynx, config/rs6000/t-netbsd,
837 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
838 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
839 config/rs6000/t-rtems, config/rs6000/t-spe,
840 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
841 config/score/t-score-elf, config/sh/divcost-analysis,
842 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
843 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
844 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
845 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
846 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
847 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
848 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
849 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
850 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
851 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
852 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
853 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
854 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
855 limitx.h, version.c, xcoff.h: Add copyright and license notices.
856 * config/h8300/genmova.sh: Include copyright and license notices
858 * config/h8300/mova.md: Regenerate.
859 * doc/install.texi2html: Include word "Copyright" in copyright
860 notice and use name "Free Software Foundation, Inc.".
861 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
862 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
863 ChangeLog-2007, ChangeLog-2008: Correct dates.
865 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
867 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
868 NE_EXPR operations as well.
869 * c-parser.c (c_parser_condition): Do not set location information on
871 (c_parser_conditional_expression): Likewise.
872 (c_parser_binary_expression): Set location information on operators.
873 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
874 TRUTH_NOT_EXPR has been folded.
875 * fold-const.c (fold_truth_not_expr): Copy location information from
876 the incoming expression to the outgoing one.
877 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
878 recursive calls on the LHS of the operator but pass that of the
879 operator to recursive calls on the RHS of the operator. Set it
881 (shortcut_cond_expr): Set the locus of the operator on the second
882 COND_EXPR and that of the expression on the first in degenerate cases.
883 Pass the locus of the expression to calls to shortcut_cond_r.
884 Set the locus of the 'then' block on the associated jump, if any.
885 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
886 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
887 expression to call to gimplify_boolean_expr.
889 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
891 * config.gcc: Add additional configuration for
892 i686-w64-mingw* and x86_64-w64-mingw* triplet.
893 * config/i386/mingw-w64.h: New mingw-w64 specific header.
894 (CPP_SPEC): Redefine for allowing -municode option.
895 (STARTFILE_SPEC): Likewise.
896 * config/i386/t-mingw-w64: New.
897 * config/i386/mingw-w64.opt: New.
898 (municode): Add new target option.
899 * doc/invoke.texi (municode): Add documentation for new option.
901 2009-04-21 Ian Lance Taylor <iant@google.com>
903 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
904 Correct test for number of arguments.
905 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
907 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
909 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
910 argument of emit_library_call.
912 2009-04-21 Richard Guenther <rguenther@suse.de>
915 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
916 inside VIEW_CONVERT_EXPRs.
918 2009-04-21 Martin Jambor <mjambor@suse.cz>
920 * tree-switch-conversion.c (build_constructors): Split a long line.
921 (constructor_contains_same_values_p): New function.
922 (build_one_array): Create assigns of constants if possible, do not
923 call mark_sym_for_renaming, call update_stmt.
924 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
925 make_rename_temp. Do not call mark_symbols_for_renaming, call
927 (gen_def_assigns): Do not call mark_symbols_for_renaming or
928 find_new_referenced_vars, call update_stmt.
929 (gen_inbound_check): Use create_tmp_var and create ssa names manually
930 instead of calling make_rename_temp. Do not call
931 find_new_referenced_vars or mark_symbols_for_renaming, call
934 2009-04-21 Richard Guenther <rguenther@suse.de>
936 PR tree-optimization/39827
937 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
938 (tree_ssa_phiprop): Pass the correct array size.
940 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
942 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
944 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
947 * c-typeck.c (lvalue_p): Move declaration ...
948 * c-common.h (lvalue_p): ... to here.
949 * c-common.c (candidate_equal_p): New.
951 (merge_tlist): Use it.
952 (warn_for_collisions_1): Likewise.
953 (warning_candidate_p): Accept more candidates.
954 (verify_tree): A warning candidate can be an expression. Use
957 2009-04-21 Ben Elliston <bje@au.ibm.com>
960 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
961 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
962 options. Remove -mcall-solaris documentation.
964 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
967 * doc/invoke.texi (-Wlong-long): Update description.
968 * c-lex (interpret_integer): Only warn if there was no previous
969 overflow and -Wlong-long is enabled.
970 * c-decl.c (declspecs_add_type): Drop redundant flags.
971 * c.opt (Wlong-long): Init to -1.
972 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
973 and front-end warn_long_long. Wlong-long only depends on other
974 flags if it is uninitialized.
975 * c-parser.c (disable_extension_diagnostics): warn_long_long is
976 the same for CPP and FE.
977 (restore_extension_diagnostics): Likewise.
979 2009-04-20 Ian Lance Taylor <iant@google.com>
981 Fix enum conversions which are invalid in C++:
982 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
983 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
984 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
985 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
986 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
987 (dbxout_parms): Likewise.
988 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
989 (df_clear_flags): Likewise.
990 * df-problems.c (df_rd_bb_local_compute_process_def): Change
991 top_flag parameter to int.
992 (df_chain_create_bb_process_use): Likewise.
993 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
995 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
996 (df_ref_create_structure, df_def_record_1): Likewise.
997 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
998 (df_notes_rescan): Change 0 to VOIDmode in function call.
999 (df_get_call_refs, df_insn_refs_collect): Likewise.
1000 (df_bb_regs_collect): Likewise.
1001 (df_entry_block_defs_collect): Likewise.
1002 (df_exit_block_uses_collect): Likewise.
1003 * df.h: Update declarations.
1004 * double-int.c (double_int_divmod): Add cast to enum type.
1005 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
1006 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
1007 (based_loc_descr): Likewise.
1008 (loc_descriptor_from_tree_1): Change first_op and second_op to
1009 enum dwarf_location_atom. Add cast to enum type.
1010 * expmed.c (init_expmed): Change 0 to SET in function call.
1011 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
1012 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
1013 (do_store_flag): Likewise.
1014 * fixed-value.h (struct fixed_value): Change mode to enum
1016 * function.c (assign_parms): Change 0 to VOIDmode in function call.
1017 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
1019 (insert_insn_decl, insert_decl, insert_state): Likewise.
1020 (automata_list_finish): Likewise.
1021 * genrecog.c (process_define_predicate): Add cast to enum type.
1022 * gensupport.c (init_predicate_table): Add cast to enum type.
1023 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
1025 (gimple_build_call_1, gimple_build_label): Likewise.
1026 (gimple_build_goto, gimple_build_asm_1): Likewise.
1027 (gimple_build_switch_1, gimple_build_cdt): Likewise.
1028 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
1029 (enum fallback): Rename from enum fallback_t.
1030 (fallback_t): Typedef as int.
1031 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
1032 GSI_SAME_STMT in function call.
1033 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
1035 (setup_reg_class_relations): Likewise.
1036 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
1037 (setup_prohibited_class_mode_regs): Add cast to enum type.
1038 (setup_prohibited_mode_move_regs): Likewise.
1039 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
1040 (record_address_regs): Change i to enum reg_class.
1041 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
1042 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
1043 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
1044 (GET_MODE_2XWIDER_MODE): Likewise.
1045 (GET_CLASS_NARROWEST_MODE): Likewise.
1046 * omp-low.c (expand_omp_for): Add cast to enum type.
1047 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
1048 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
1049 * postreload.c (reload_cse_simplify_operands): Change rclass local
1051 * predict.c (combine_predictions_for_insn): Change best_predictor
1052 and predictor to enum br_predictor.
1053 (combine_predictions_for_bb): Likewise.
1054 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
1055 use SET_PREDICT_EXPR_OUTCOME.
1056 * real.c (real_arithmetic): Change icode to code in function call.
1057 * reginfo.c (init_move_cost): Add casts to enum type.
1058 (init_reg_sets_1, init_fake_stack_mems): Likewise.
1059 * regmove.c (regclass_compatible_p): Change class0 and class1 to
1061 * reload.c (find_valid_class): Add casts to enum type.
1062 (push_reload): Change 0 to NO_REGS in function call.
1063 (find_reloads): Change this_alternative to array of enum
1064 reg_class. Remove some now-unnecessary casts.
1065 (make_memloc): Change 0 to VOIDmode in function call.
1066 * reload1.c (reload): Change 0 to VOIDmode in function call.
1067 (eliminate_regs_1, elimination_effects): Likewise.
1068 (eliminate_regs_in_insn): Likewise.
1069 (emit_input_reload_insns): Add cast to enum type.
1070 (delete_output_reload): Change 0 to VOIDmode in function call.
1071 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
1072 to enum type in function call.
1073 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
1074 (SET_PREDICT_EXPR_OUTCOME): Define.
1075 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
1076 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
1077 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
1078 (dump_function): Likewise.
1079 * tree-dump.h: Update declarations.
1080 * tree-pass.h: Update declarations.
1081 * varasm.c (assemble_integer): Change mclass to enum mode_class.
1082 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
1084 (arm_rtx_costs_1): Correct parenthesization.
1085 (arm_rtx_costs): Add casts to enum type.
1086 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
1087 (vfp_emit_fstmd): Use add_rg_note.
1088 (emit_multi_reg_push, emit_sfm): Likewise.
1089 (thumb_set_frame_pointer): Likewise.
1090 (arm_expand_prologue): Likewise.
1091 (arm_regno_class): Change return type to enum reg_class.
1092 (thumb1_expand_prologue): Use add_reg_note.
1093 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
1094 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
1096 * config/arm/gentune.sh: Add cast to enum type.
1097 * config/arm/arm-tune.md: Rebuild.
1098 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
1099 (ix86_split_fp_branch, predict_jump): Likewise.
1100 (ix86_expand_multi_arg_builtin): Change sub_code from enum
1101 insn_code to enum rtx_code.
1102 (ix86_builtin_vectorized_function): Add cast to enum type.
1103 * config/i386/i386.md (truncdfsf2): Change slot to enum
1105 (truncxf<mode>2, isinf<mode>2): Likewise.
1106 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
1108 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
1109 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
1110 (insert_bundle_state): Change 1 to INSERT in function call.
1111 (ia64_add_bundle_selector_before): Likewise.
1112 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
1113 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
1114 (restore_stack_nonlocal): Likewise.
1115 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
1117 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
1119 (mips_rtx_costs): Likewise.
1120 (mips_override_options): Add casts to enum type.
1121 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
1123 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
1124 (store_reg, set_reg_plus_d): Likewise.
1125 (hppa_expand_prologue, hppa_profile_hook): Likewise.
1126 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1128 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
1130 (emit_unlikely_jump): Use add_reg_note.
1131 (rs6000_emit_allocate_stack): Likewise.
1132 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
1133 (output_toc): Change 1 to INSERT in function call.
1134 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
1135 (rs6000_initialize_trampoline): Likewise.
1136 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
1138 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
1139 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
1140 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
1141 (save_gprs): Use add_reg_note.
1142 (s390_emit_prologue): Likewise.
1143 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
1144 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
1145 (sparc_fold_builtin): Add cast to enum type.
1146 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
1148 (spu_expand_prologue): Use add_reg_note.
1149 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
1151 2009-04-20 Ian Lance Taylor <iant@google.com>
1153 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
1154 (c_parser_postfix_expression_after_primary): Get VEC for list of
1155 arguments. Get original types of arguments. Call
1156 build_function_call_vec.
1157 (cached_expr_list_1, cached_expr_list_2): New static variables.
1158 (c_parser_expr_list): Change return type to VEC *. Add
1159 p_orig_types parameter. Change all callers.
1160 (c_parser_release_expr): New static function.
1161 (c_parser_vec_to_tree_list): New static function.
1162 * c-typeck.c (build_function_call): Rewrite to build a VEC and
1163 call build_function_call_vec.
1164 (build_function_call_vec): New function, based on old
1165 build_function_call.
1166 (convert_arguments): Remove nargs and argarray parameters. Change
1167 values to a VEC. Add origtypes parameter.
1168 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
1169 (convert_for_assignment): Add origtype parameter. Change all
1170 callers. If warn_cxx_compat, check for conversion to an enum
1171 type when calling a function.
1172 (store_init_value): Add origtype parameter. Change all callers.
1173 (digest_init): Likewise.
1174 (struct init_node): Add origtype field.
1175 (add_pending_init): Add origtype parameter. Change all callers.
1176 (output_init_element): Likewise.
1177 (output_pending_init_elements): Pass origtype from init_node to
1178 output_init_element.
1179 (process_init_element): Pass origtype from c_expr to
1180 output_init_element.
1181 (c_finish_return): Add origtype parameter. Change all callers.
1182 * c-common.c (sync_resolve_size): Change params to VEC *. Change
1184 (sync_resolve_params): Likewise.
1185 (sync_resolve_return): Change params to first_param. Change caller.
1186 (resolve_overloaded_builtins): Change params to VEC *. Change
1187 callers. Save first parameter around call to build_function_call_vec.
1188 * c-decl.c (finish_decl): Add origtype parameter. Change all
1189 callers. Call build_function_call_vec rather than
1190 build_function_call for cleanup.
1191 * c-tree.h: Update declarations.
1192 * c-common.h: Update declarations.
1193 * stub-objc.c (objc_rewrite_function_call): Change parameter from
1194 params to first_param.
1195 * target.h (struct gcc_target): Change resolve_overloaded_builtin
1196 params parameter from tree to void *.
1197 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1198 Change arglist parameter to have type void *, and to be a pointer
1200 * config/rs6000/rs6000-protos.h
1201 (altivec_resolve_overloaded_builtin): Update declaration.
1202 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
1203 fnargs parameter to have type void *, and to be a pointer to a
1204 VEC. Call build_function_call_vec instead of
1205 build_function_call.
1206 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
1208 2009-04-20 Joey Ye <joey.ye@intel.com>
1209 Xuepeng Guo <xuepeng.guo@intel.com>
1210 H.J. Lu <hongjiu.lu@intel.com>
1212 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
1214 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
1215 (IX86_LEA_PRIORITY): Likewise.
1216 (distance_non_agu_define): New function.
1217 (distance_agu_use): Likewise.
1218 (ix86_lea_for_add_ok): Likewise.
1219 (ix86_dep_by_shift_count): Likewise.
1221 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
1222 should split for LEA.
1224 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
1226 (ix86_dep_by_shift_count): Likewise.
1228 2009-04-20 Richard Guenther <rguenther@suse.de>
1230 * expr.c (handled_component_p): Move ...
1231 * tree.h (handled_component_p): ... here.
1232 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
1233 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
1234 and REALPART_EXPR to be in one group.
1236 2009-04-20 Richard Guenther <rguenther@suse.de>
1238 * basic-block.h (get_all_dominated_blocks): Declare.
1239 * dominance.c (get_all_dominated_blocks): New function.
1240 * tree-cfg.c (get_all_dominated_blocks): Remove.
1241 (remove_edge_and_dominated_blocks): Adjust.
1242 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
1243 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
1244 instead of recursing.
1246 2009-04-20 Doug Kwan <dougkwan@google.com>
1248 * cgraph.h (cgraph_node_ptr): New type for vector functions.
1249 (struct cgraph_node_set_def): New type.
1250 (cgraph_node_set) New type. Also declare vector functions.
1251 (struct cgraph_node_set_element_def): New type.
1252 (cgraph_node_set_element): Ditto.
1253 (cgraph_node_set_iterator): New iterator type.
1254 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
1255 cgraph_node_set_remove, dump_cgraph_node_set,
1256 debug_cgraph_node_set): New prototypes.
1257 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
1258 cgraph_node_set_size): New inlines.
1259 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
1261 (struct ipa_opt_pass): Add struct cgraph_node_set_def
1262 argument to function 'write_summary'.
1263 * ipa.c: Include ggc.h.
1264 (hash_cgraph_node_set_element,
1265 eq_cgraph_node_set_element, cgraph_node_set_new,
1266 cgraph_node_set_add, cgraph_node_set_remove,
1267 cgraph_node_set_find, dump_cgraph_node_set,
1268 debug_cgraph_node_set): New functions.
1269 * Makefile.in (ipa.o): Add dependency on GGC_H.
1271 2009-04-20 Ira Rosen <irar@il.ibm.com>
1273 PR tree-optimization/39675
1274 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
1275 check of the return code of vect_schedule_slp. Check that
1276 stmt_vec_info still exists for the statement, before checking its
1279 2009-04-20 Michael Matz <matz@suse.de>
1281 * Makefile.in (generated_files): Take out $(simple_generated_c).
1283 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
1285 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
1286 (UINTPTR_TYPE): Likewise.
1288 2009-04-19 Joseph Myers <joseph@codesourcery.com>
1291 * c-typeck.c (digest_init): Check for initializing an array with a
1294 2009-04-19 Joseph Myers <joseph@codesourcery.com>
1297 * c-semantics.c (pop_stmt_list): Propagate
1298 STATEMENT_LIST_HAS_LABEL to parent statement list.
1300 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
1302 * config/mips/mips.h (mips_tune_attr): New macro.
1303 * config/mips/mips.md (cpu): Use it.
1305 2009-04-19 Joseph Myers <joseph@codesourcery.com>
1308 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
1311 2009-04-19 Diego Novillo <dnovillo@google.com>
1313 * toplev.c (compile_file): Move call to coverage_finish ...
1314 * cgraphunit.c (ipa_passes): ... here.
1315 Call cgraph_process_new_functions.
1316 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
1317 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
1319 2009-04-19 Jan Hubicka <jh@suse.cz>
1321 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
1323 (dump_cgraph_node): Dump can throw external flag.
1324 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
1326 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1330 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
1331 * common.opt (Wlogical-op): Move from here...
1332 * c.opt (Wlogical-op): ... to here.
1333 * c-typeck.c (parser_build_binary_op): Update call to
1334 warn_logical_operator.
1335 * c-opts.c (c_common_post_options): Enable warn_logical_op with
1337 * c-common.c (warn_logical_op): Update.
1338 * c-common.h (warn_logical_op): Update declaration.
1340 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
1342 * tree.c (protected_set_expr_location): Fix formatting.
1344 2009-04-18 Joseph Myers <joseph@codesourcery.com>
1347 * c-typeck.c (readonly_warning): new.
1348 (build_unary_op, build_modify_expr): Use readonly_warning for
1349 storing into something readonly but not const-qualified.
1351 2009-04-18 Joseph Myers <joseph@codesourcery.com>
1354 * c-typeck.c (build_unary_op): Check for taking address of
1355 expression of type void.
1357 2009-04-18 Joseph Myers <joseph@codesourcery.com>
1360 * c-typeck.c (build_function_call): Check for calling a function
1361 with qualified void return types. Call require_complete_type when
1364 2009-04-18 Jan Hubicka <jh@suse.cz>
1366 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
1368 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
1369 can_throw_external flag.
1370 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
1371 * ipa-pure-const.c (ignore_edge): New function.
1372 (propagate): Compute order for NOTHROW computation; set NOTHROWs
1373 only over can_throw_external edges.
1374 (local_pure_const): Add nothrow flag.
1375 * ipa-utils.c (searchc): Add ignore_edge callback.
1376 (ipa_utils_reduced_inorder): Add ignore_edge callback.
1377 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
1378 (set_nothrow_function_flags): Update cgraph.
1379 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
1381 2009-04-18 Richard Guenther <rguenther@suse.de>
1384 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
1385 (fold_stmt): ... this and ...
1386 (fold_stmt_inplace): ... this.
1387 (fold_stmt_1): Fold references in calls and asms.
1388 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
1390 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
1392 * tree-vrp.c (ssa_name_nonzero_p): Remove.
1393 * tree.h: Remove the prototype for ssa_name_nonzero_p.
1395 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
1397 * tree.c (function_args_count): Remove.
1398 * tree.h: Remove the prototype for function_args_count.
1400 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
1402 * tree-iterator.c (expr_only): Remove.
1403 * tree.h: Remove the prototype for expr_only.
1405 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
1407 * reginfo.c (cannot_change_mode_set_regs): Remove.
1408 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
1410 2009-04-08 Anatoly Sokolov <aesok@post.ru>
1412 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
1413 whether operands 0 and 1 overlaps.
1415 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1418 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
1419 pointer. Use warning_at instead of warning.
1420 (search_for_addr_array): Likewise.
1421 (check_array_bounds): Likewise.
1422 (check_all_array_refs): Check that the incoming edge is not in the
1423 list of edges to be removed.
1424 (check_all_array_refs): Avoid the temporal pointer.
1425 (vrp_visit_cond_stmt): Fix typo.
1426 (simplify_switch_using_ranges): Handle the case where the switch
1427 index is an integer constant.
1429 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
1431 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
1433 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
1435 * doc/extend.texi, doc/invoke.texi: Fix typos.
1437 2009-04-17 Cary Coutant <ccoutant@google.com>
1439 * tree-flow-inline.h (get_lineno): Fix inverted test.
1441 2009-04-17 Diego Novillo <dnovillo@google.com>
1443 * tree-ssa-pre.c (create_expression_by_pieces): Remove
1444 assertion for AVAIL_OUT.
1446 2009-04-17 Mike Frysinger <vapier@gentoo.org>
1449 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
1450 * config/sh/linux-atomic.asm: Likewise.
1452 2009-04-17 Diego Novillo <dnovillo@google.com>
1454 * except.c (debug_eh_tree): New.
1455 (struct eh_region, struct eh_status): Move ...
1456 * except.h: ... here.
1457 (add_type_for_runtime): Declare extern.
1458 (lookup_type_for_runtime): Likewise.
1459 (debug_eh_tree): Declare.
1460 * Makefile.in (GTFILES): List except.h before except.c
1462 2009-04-17 Diego Novillo <dnovillo@google.com>
1464 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
1465 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
1466 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
1467 (find_vars_r): ... here.
1468 * tree-flow.h (find_referenced_vars_in): Declare.
1469 * tree-ssa-pre.c (create_expression_by_pieces): Assert
1470 that AVAIL_OUT exists for BLOCK.
1471 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
1472 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
1473 (tree-parloops.o): Likewise.
1475 2009-04-17 Simon Baldwin <simonb@google.com>
1477 * toplev.c (default_tree_printer): Add handling for %E format.
1479 2009-04-17 Diego Novillo <dnovillo@google.com>
1481 * tree-pretty-print.c (dump_generic_node): Add break after
1482 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
1483 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
1484 FUNCTION_TYPE together. Call print_struct_decl when printing
1485 structures and TDF_SLIM is not given.
1486 (print_struct_decl): Fix logic for detecting recursion.
1488 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
1491 * gcc.c (create_at_file): New.
1492 (compile_input_file_p): New.
1493 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
1494 * main.c (main): Update call to toplev_main.
1495 * toplev.c (toplev_main): Change signature. Call expandargv.
1496 * toplev.h (toplev_main): Change signature.
1498 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
1500 * dwarf2out.c (field_byte_offset): Use the type size as the field size
1501 if the latter is not constant.
1503 2009-04-17 David Edelsohn <edelsohn@gnu.org>
1505 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
1507 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
1509 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
1510 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
1512 2009-04-17 Richard Guenther <rguenther@suse.de>
1514 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1515 Handle component references view-converting an invariant address.
1517 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
1519 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
1520 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
1521 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
1522 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
1523 Use @deftypevr rather than @deftypevar.
1525 2009-04-17 Richard Guenther <rguenther@suse.de>
1527 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
1528 (get_prop_source_stmt): Likewise.
1529 (can_propagate_from): Likewise.
1531 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
1533 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
1534 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
1535 (--with-multilib-list): Add default value.
1536 * configure: Regenerate.
1537 * Makefile.in (TM_ENDIAN_CONFIG): Define.
1538 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
1539 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
1540 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
1541 Don't add default cpu to multilib list unnecessarily, but do enable
1542 the relevant compiler option..
1543 Add support for --with-multilib-list=<blank> and
1544 --with-multilib-list=!<somelib> to supress unwanted multilibs.
1545 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
1546 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
1547 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
1549 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
1550 (MULTILIB_OSDIRNAMES): New variable.
1551 * config/sh/t-1e: Delete file.
1552 * config/sh/t-mlib-sh1: Delete file.
1553 * config/sh/t-mlib-sh2: Delete file.
1554 * config/sh/t-mlib-sh2a: Delete file.
1555 * config/sh/t-mlib-sh2a-nofpu: Delete file.
1556 * config/sh/t-mlib-sh2a-single: Delete file.
1557 * config/sh/t-mlib-sh2a-single-only: Delete file.
1558 * config/sh/t-mlib-sh2e: Delete file.
1559 * config/sh/t-mlib-sh3e: Delete file.
1560 * config/sh/t-mlib-sh4: Delete file.
1561 * config/sh/t-mlib-sh4-nofpu: Delete file.
1562 * config/sh/t-mlib-sh4-single: Delete file.
1563 * config/sh/t-mlib-sh4-single-only: Delete file.
1564 * config/sh/t-mlib-sh4a: Delete file.
1565 * config/sh/t-mlib-sh4a-nofpu: Delete file.
1566 * config/sh/t-mlib-sh4a-single: Delete file.
1567 * config/sh/t-mlib-sh4a-single-only: Delete file.
1568 * config/sh/t-mlib-sh4al: Delete file.
1569 * config/sh/t-mlib-sh5-32media: Delete file.
1570 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
1571 * config/sh/t-mlib-sh5-64media: Delete file.
1572 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
1573 * config/sh/t-mlib-sh5-compact: Delete file.
1574 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
1575 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
1576 * doc/install.texi (Options specification): Add
1577 --with-multilib-list and --with-endian.
1579 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
1581 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
1583 (OBJS-common): Add plugin-version.o.
1584 (plugin-version.o): New.
1585 * gcc-plugin.h (plugin_gcc_version): New.
1586 (plugin_default_version_check): New.
1587 (plugin_init_func, plugin_init): Add version argument.
1588 * plugin-version.c: New.
1589 * plugin.c (str_plugin_gcc_version_name): New.
1590 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
1591 pass it to the init function.
1592 (plugin_default_version_check): New.
1594 2009-04-17 Richard Guenther <rguenther@suse.de>
1596 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
1597 for decl-vs-decl disambiguation.
1599 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
1601 * config/s390/s390.h (s390_tune_attr): New macro definition.
1602 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
1604 2009-04-17 Richard Guenther <rguenther@suse.de>
1606 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
1607 (fold_stmt_r): Likewise.
1608 (maybe_fold_reference): New function.
1609 (fold_gimple_assign): Handle cases fold_stmt_r did.
1610 (fold_stmt): Do not use fold_stmt_r.
1611 (fold_stmt_inplace): Likewise.
1613 2009-04-17 Richard Guenther <rguenther@suse.de>
1615 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
1616 (record_equivalences_from_stmt): Remove useless checks and
1618 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
1619 the type is already suitable.
1621 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
1623 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
1625 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
1627 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
1628 (CMPtype): Define as __gcc_CMPtype.
1630 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
1632 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
1633 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
1635 2009-04-17 Richard Guenther <rguenther@suse.de>
1637 PR tree-optimization/39746
1638 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
1639 special-casing for builtins and static variable use/def.
1640 (call_may_clobber_ref_p_1): Likewise.
1642 2009-04-16 Ian Lance Taylor <iant@google.com>
1644 * df.h: Include "timevar.h".
1645 (struct df_problem): Change tv_id field to timevar_id_t.
1646 * tree-pass.h: Include "timevar.h".
1647 (struct opt_pass): Change tv_id field to timevar_id_t.
1648 * timevar.h (timevar_id_t): Define TV_NONE.
1649 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
1650 TV_NONE rather than tv_id != 0.
1651 (execute_one_pass): Likewise.
1652 * Makefile.in (DF_H): Add $(TIMEVAR_H).
1653 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
1654 dependencies to $(TREE_PASS_H).
1655 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
1657 (pass_branch_target_load_optimize2): Likewise.
1658 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
1659 (pass_outof_cfg_layout_mode): Likewise.
1660 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
1661 (pass_rebuild_cgraph_edges): Likewise.
1662 (pass_remove_cgraph_callee_edges): Likewise.
1663 * df-core.c (pass_df_initialize_opt): Likewise.
1664 (pass_df_initialize_no_opt): Likewise.
1665 (pass_df_finish): Likewise.
1666 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
1667 * except.c (pass_set_nothrow_function_flags): Likewise.
1668 (pass_convert_to_eh_region_ranges): Likewise.
1669 * final.c (pass_compute_alignments): Likewise.
1670 * function.c (pass_instantiate_virtual_regs): Likewise.
1671 (pass_init_function): Likewise.
1672 (pass_leaf_regs): Likewise.
1673 (pass_match_asm_constraints): Likewise.
1674 * gimple-low.c (pass_lower_cf): Likewise.
1675 (pass_mark_used_blocks): Likewise.
1676 * init-regs.c (pass_initialize_regs): Likewise.
1677 * integrate.c (pass_initial_value_sets): Likewise.
1678 * ira.c (pass_ira): Likewise.
1679 * jump.c (pass_cleanup_barriers): Likewise.
1680 * omp-low.c (pass_expand_omp): Likewise.
1681 (pass_lower_omp): Likewise.
1682 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
1683 * recog.c (pass_split_all_insns): Likewise.
1684 (pass_split_after_reload): Likewise.
1685 (pass_split_before_regstack): Likewise.
1686 (pass_split_before_sched2): Likewise.
1687 (pass_split_for_shorten_branches): Likewise.
1688 * reginfo.c (pass_reginfo_init): Likewise.
1689 (pass_subregs_of_mode_init): Likewise.
1690 (pass_subregs_of_mode_finish): Likewise.
1691 * passes.c (pass_postreload): Likewise.
1692 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
1693 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
1694 (pass_warn_function_return): Likewise.
1695 (pass_warn_function_noreturn): Likewise.
1696 * tree-complex.c (pass_lower_complex): Likewise.
1697 (pass_lower_complex_O0): Likewise.
1698 * tree-if-conv.c (pass_if_conversion): Likewise.
1699 * tree-into-ssa.c (pass_build_ssa): Likewise.
1700 * tree-mudflap.c (pass_mudflap_1): Likewise.
1701 (pass_mudflap_2): Likewise.
1702 * tree-nomudflap.c (pass_mudflap_1): Likewise.
1703 (pass_mudflap_2): Likewise.
1704 * tree-nrv.c (pass_return_slot): Likewise.
1705 * tree-object-size.c (pass_object_sizes): Likewise.
1706 * tree-optimize.c (pass_all_optimizations): Likewise.
1707 (pass_early_local_passes): Likewise.
1708 (pass_all_early_optimizations): Likewise.
1709 (pass_cleanup_cfg): Likewise.
1710 (pass_cleanup_cfg_post_optimizing): Likewise.
1711 (pass_free_datastructures): Likewise.
1712 (pass_free_cfg_annotations): Likewise.
1713 (pass_fixup_cfg): Likewise.
1714 (pass_init_datastructures): Likewise.
1715 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
1716 (pass_late_warn_uninitialized): Likewise.
1717 (pass_update_address_taken): Likewise.
1718 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
1719 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
1720 (pass_cse_sincos): Likewise.
1721 (pass_convert_to_rsqrt): Likewise.
1722 * tree-ssa-structalias.c (pass_build_alias): Likewise.
1723 * tree-stdarg.c (pass_stdarg): Likewise.
1724 * tree-tailcall.c (pass_tail_recursion): Likewise.
1725 (pass_tail_calls): Likewise.
1726 * tree-vect-generic.c (pass_lower_vector): Likewise.
1727 (pass_lower_vector_ssa): Likewise.
1728 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
1730 2009-04-16 Joseph Myers <joseph@codesourcery.com>
1732 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
1734 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
1736 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
1737 logical and signext.
1739 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
1742 * config/sh/predicates.md (arith_operand): Check if the operand
1743 of TRUNCATE is a REG.
1745 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1747 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
1748 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
1750 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1752 * tree-iterator.c (tsi_split_statement_list_after,
1753 tsi_split_statement_list_before): Remove.
1754 * tree-iterator.h: Remove the prototypes for
1755 tsi_split_statement_list_after and tsi_split_statement_list_before.
1757 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1759 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
1760 * tree-ssa-propagate.h: Remove the prototype for
1761 stmt_makes_single_load.
1763 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1765 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
1766 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
1768 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1770 * tree-iterator.c (EXPR_LAST_BODY): Remove.
1772 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1774 * except.c (eh_region_outer_p): Remove.
1775 * except.h: Remove the prototype for eh_region_outer_p.
1777 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1779 * function.c (current_function_assembler_name): Remove.
1780 * function.h: Remove the prototype for
1781 current_function_assembler_name.
1783 2009-04-16 Ian Lance Taylor <iant@google.com>
1785 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
1786 (add_reg_note): Call alloc_reg_note.
1787 * rtl.h (alloc_reg_note): Declare.
1788 * combine.c (try_combine): Use alloc_reg_note.
1789 (recog_for_combine, move_deaths): Likewise.
1790 (distribute_notes): Use alloc_reg_note and add_reg_note.
1791 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
1792 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
1793 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
1795 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
1797 PR rtl-optimization/39762
1798 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
1799 ira_may_move_out_cost): Add comments about way of their usage.
1800 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
1802 * ira-conflicts.c (process_regs_for_copy): Use function
1803 ira_get_register_move_cost instead of global
1804 ira_register_move_cost.
1806 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
1807 color_pass, move_spill_restore, update_curr_costs): Ditto.
1809 * ira-lives.c (process_single_reg_class_operands): Ditto.
1811 * ira-emit.c (emit_move_list): Ditto.
1813 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
1814 (record_reg_classes): Ditto. Use functions
1815 ira_get_register_move_cost and ira_get_may_move_cost instead of
1816 global vars ira_register_move_cost, ira_may_move_out_cost and
1817 ira_may_move_in_cost.
1818 (record_address_regs): Don't call ira_init_register_move_cost.
1819 Use function ira_get_may_move_cost instead of global
1820 ira_may_move_in_cost.
1821 (process_bb_node_for_hard_reg_moves): Use function
1822 ira_get_register_move_cost instead of global ira_register_move_cost.
1823 (ira_costs): Don't call ira_init_register_move_cost.
1825 2009-04-16 Richard Guenther <rguenther@suse.de>
1827 * tree-cfg.c (verify_gimple_assign_binary):
1828 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
1829 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
1830 (create_general_new_stmt): Note that this function is broken.
1832 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
1834 * common.opt (fhelp): Add Var(help_flag).
1835 * gcc-plugin.h (plugin_info): Add help.
1836 * plugin.c (plugin_name_args): Add help.
1837 (register_plugin_info): Set plugin->help.
1838 (print_help_one_plugin): New.
1839 (print_plugins_help): New.
1840 * plugin.h (print_plugins_help): New.
1841 * toplev.c (toplev_main): Call print_plugins_help if needed.
1843 2009-04-16 Richard Guenther <rguenther@suse.de>
1845 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
1846 (gimple_ior_addresses_taken_1): New function.
1847 (gimple_ior_addresses_taken): Likewise.
1848 * gimple.h (struct gimple_statement_with_ops_base): Remove
1849 addresses_taken member.
1850 (gimple_ior_addresses_taken): Declare.
1851 (gimple_addresses_taken, gimple_addresses_taken_ptr,
1852 gimple_set_addresses_taken): Remove.
1853 * ipa-reference.c (mark_address): New function.
1854 (scan_stmt_for_static_refs): Use it for marking addresses taken.
1855 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
1856 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
1857 (gimple_add_to_addresses_taken): Remove.
1858 (get_tmr_operands): Call mark_address_taken.
1859 (get_asm_expr_operands): Likewise.
1860 (get_expr_operands): Likewise.
1861 (build_ssa_operands): Do not clear the addresses_taken bitmap.
1862 (free_stmt_operands): Do not free it.
1863 * tree-ssa.c (delete_tree_ssa): Likewise.
1864 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
1866 2009-04-16 Richard Guenther <rguenther@suse.de>
1868 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
1869 (walk_stmt_load_store_ops): Likewise.
1870 * gimple.c (get_base_loadstore): New function.
1871 (walk_stmt_load_store_addr_ops): Likewise.
1872 (walk_stmt_load_store_ops): Likewise.
1873 * ipa-pure-const.c (check_op): Simplify.
1874 (check_load, check_store): New functions.
1875 (check_stmt): Use walk_stmt_load_store_ops.
1876 * ipa-reference.c (mark_load): Adjust signature.
1877 (mark_store): Likewise.
1878 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
1880 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
1882 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
1884 * opts.c (common_handle_option): Don't call print_version.
1885 * plugin.c (plugin_name_args): Add version.
1886 (register_plugin_info): New.
1887 (register_callback): Handle PLUGIN_INFO.
1888 (try_init_one_plugin): New.
1889 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
1891 (finalize_one_plugin): New.
1892 (finalize_plugins): New.
1893 (print_one_plugin): New.
1894 (print_plugins_versions): New.
1895 * plugin.h (print_plugins_versions): New.
1896 (finalize_plugins): New.
1897 * toplev.c (compile_file): Don't call initialize_plugins.
1898 (print_version): Call print_plugins_versions.
1899 (toplev_main): Call initialize_plugins. Print version if needed.
1900 Call finalize_plugins.
1902 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
1904 * common.opt (fversion): New.
1905 * gcc.c (print_version): New.
1906 (process_command): Don't print the version. Just set print_version.
1907 (main): Print version. Call subprocesses if print_version and
1908 verbose_flag are set.
1909 * opts.c (common_handle_option): Handle OPT_fversion.
1911 2009-04-16 Richard Guenther <rguenther@suse.de>
1912 Ira Rosen <irar@il.ibm.com>
1914 PR tree-optimization/39698
1915 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
1916 type of the reduction variable. Only generate the def if
1919 * omp-low.c (expand_omp_for_generic): When converting to a pointer
1920 make sure to first convert to an integer of the same precision.
1921 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
1922 the type of the evolution correctly in computing the new
1923 induction variable base.
1925 2009-04-16 Richard Guenther <rguenther@suse.de>
1928 * tree-cfg.c (make_blocks): Split statements with to-be
1929 abnormal SSA names on the lhs.
1931 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
1933 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
1934 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
1935 * c-typeck.c (really_start_incremental_init): Likewise.
1936 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
1937 (TARGET_INITIALIZER): Remove it.
1938 * target.h (struct target): Remove vector_opaque_p.
1939 * tree.c (build_opaque_vector_type): New.
1940 * tree.h (TYPE_VECTOR_OPAQUE): New.
1941 (build_opaque_vector_type): Declare.
1942 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
1943 * config/rs6000/rs6000.c (build_opaque_vector_type,
1944 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
1945 (rs6000_init_builtins): Use build_opaque_vector_type for
1946 opaque_V4SI_type_node.
1948 2009-04-15 Catherine Moore <clm@codesourcery.com>
1950 * debug.h (set_name): Declare.
1951 * dwarf2out.c (dwarf2out_set_name): Declare.
1952 (dwarf2_debug_hooks): Add set_name.
1953 (find_AT_string): New.
1954 (add_AT_string): Call find_AT_string.
1955 (dwarf2out_set_name): New.
1956 * cp/decl.c (grokdeclarator): Call set_name.
1957 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
1958 * debug.c (do_nothing_debug_hooks): Likewise.
1959 * dbxout.c (dbx_debug_hooks): Likewise.
1960 * sdbout.c (sdb_debug_hooks): Likewise.
1962 2009-04-15 Michael Eager <eager@eagercon.com>
1964 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
1965 reg for single-precision FPU.
1966 * config/rs6000/rs6000.md (movsi_internal1): Only for
1968 (movsi_internal1_single): New. Add pattern to move SI values to/from
1969 single-precision FP regs.
1971 2009-04-15 Richard Guenther <rguenther@suse.de>
1973 * omp-low.c (lower_rec_input_clauses): Build correct address
1975 (expand_omp_for_generic): Fix multiplication type.
1976 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
1977 (generate_memset_zero): Fix types.
1978 * tree-profile.c (prepare_instrumented_value): Correctly
1981 2009-04-15 Ian Lance Taylor <iant@google.com>
1983 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
1984 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
1985 for -Wall and for -Wc++-compat.
1986 (c_common_post_options): For C++, set warn_enum_compare if not
1988 * c-tree.h (struct c_expr): Add field original_type.
1989 (build_external_ref): Update declaration.
1990 * c-parser.c (c_parser_braced_init): Set original_type.
1991 (c_parser_initelt): Likewise.
1992 (c_parser_expr_no_commas): Likewise.
1993 (c_parser_conditional_expression): Likewise.
1994 (c_parser_cast_expression): Likewise.
1995 (c_parser_unary_expression): Likewise. Pull setting of
1996 original_code to top of function.
1997 (c_parser_sizeof_expression): Set original_type.
1998 (c_parser_alignof_expression): Likewise.
1999 (c_parser_postfix_expression): Likewise. Pull setting of
2000 original_code to top of function.
2001 (c_parser_postfix_expression_after_paren_type): Set original_type.
2002 (c_parser_postfix_expression_after_primary): Likewise.
2003 (c_parser_expression): Likewise.
2004 * c-typeck.c (build_external_ref): Add type parameter. Change all
2006 (c_expr_sizeof_expr): Set original_type field.
2007 (parser_build_unary_op): Likewise.
2008 (parser_build_binary_op): Likewise. Optionally warn about
2009 comparisons of enums of different types.
2010 (digest_init): Set original_type field.
2011 (really_start_incremental_init): Likewise.
2012 (push_init_level, pop_init_level): Likewise.
2013 * doc/invoke.texi (Warning Options): -Wenum-compare now
2016 2009-04-15 Richard Guenther <rguenther@suse.de>
2018 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
2019 out a necessary conversion.
2020 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
2021 names we didn't value number.
2022 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
2024 2009-04-15 Richard Guenther <rguenther@suse.de>
2026 PR tree-optimization/39764
2027 * tree-ssa-ccp.c (get_value): Canonicalize value with
2028 canonicalize_float_value.
2030 2009-04-15 Jan Hubicka <jh@suse.cz>
2032 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
2033 Wrong version of patch.
2035 2009-04-15 Jan Hubicka <jh@suse.cz>
2037 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
2039 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
2041 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
2042 our distinct integral and vector types.
2044 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
2046 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
2047 * init.c (build_vtbl_address): Remove call to assemble_external.
2049 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
2051 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
2052 output for other floating point modes.
2054 2009-04-14 Diego Novillo <dnovillo@google.com>
2056 * diagnostic.c (diagnostic_report_diagnostic): Do not
2057 warn about loaded plugins for DK_ERROR and DK_WARNING.
2058 * c-decl.c (declspecs_add_type): Move call to
2059 invoke_plugin_callbacks ...
2060 * c-parser.c (c_parser_declspecs): ... here.
2061 * plugin.c (dump_active_plugins): Tidy output.
2063 2009-04-14 Diego Novillo <dnovillo@google.com>
2064 Le-Chun Wu <lcwu@google.com>
2066 * configure.ac: Add --enable-plugin support.
2067 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
2068 * Makefile.in (PLUGIN_H): Define.
2069 Export ENABLE_PLUGIN and GMPINC to site.exp.
2070 Add PLUGINLIBS to link command.
2071 Add/modify dependencies for plugin.o and files including plugin.h.
2073 * config.in: Regenerate.
2075 * opts.c (common_handle_option): Handle OPT_fplugin_ and
2078 2009-04-14 Le-Chun Wu <lcwu@google.com>
2080 * tree-pass.h (register_one_dump_file): Add a prototype for
2081 register_one_dump_file.
2082 * toplev.c (compile_file): Call initialize_plugins.
2083 (do_compile): Call invoke_plugin_callbacks.
2084 (toplev_main): Call invoke_plugin_callbacks.
2085 * common.opt: Add -fplugin= and -fplugin-arg-.
2086 * gcc-plugin.h: New public header file for plugins to include.
2087 * plugin.c: New source file.
2088 * plugin.h: New internal header file.
2089 * passes.c (register_one_dump_file): Make it external.
2091 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
2093 2009-04-14 Diego Novillo <dnovillo@google.com>
2095 * doc/plugins.texi: New.
2096 * doc/gccint.texi: Add reference to Plugins chapter.
2097 * doc/invoke.texi: Document -fplugin and -fplugin-arg
2098 * diagnostic.c (diagnostic_report_diagnostic): Warn about
2099 loaded plugins, if any.
2100 * timevar.def (TV_PLUGIN_INIT): Define.
2101 (TV_PLUGIN_RUN): Define.
2102 * plugin.c: Include timevar.h
2103 (plugins_active_p): New.
2104 (dump_active_plugins): New.
2105 (debug_active_plugins): New.
2107 2009-04-14 Joseph Myers <joseph@codesourcery.com>
2109 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
2111 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
2113 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
2115 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
2116 the same as a minus without a shift.
2118 2009-04-14 Nick Clifton <nickc@redhat.com>
2120 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
2121 comparisons with small integers will always produce a short
2124 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
2127 2008-12-19 Diego Novillo <dnovillo@google.com>
2129 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
2131 2009-04-14 Richard Guenther <rguenther@suse.de>
2133 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
2135 (verify_gimple_assign_binary): Likewise. Handle shifts and
2137 (verify_gimple_phi): Print the mismatched argument position.
2138 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
2140 (vect_update_init_of_dr): Likewise.
2141 * matrix-reorg.c (transform_access_sites): Do what the
2143 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
2145 2009-04-13 Michael Eager <eager@eagercon.com>
2147 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
2148 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
2149 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
2150 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
2151 remove duplicate config
2153 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2155 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
2156 file_name:line_number type locator of the call site.
2158 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
2160 * genautomata.c: Put blank after comma.
2161 (automaton_decls): New.
2162 (struct unit_usage): Add comments to member next.
2163 (store_alt_unit_usage): Keep the list ordered.
2164 (unit_present_on_list_p, equal_alternatives_p): New.
2165 (check_regexp_units_distribution): Check units distribution
2166 correctness correctly.
2167 (main): Don't write automata if error is found. Return correct
2170 * config/m68k/cf.md (cfv4_ds): Remove.
2171 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
2172 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
2174 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
2175 power4-load-ext, power4-store, power4-store-update,
2176 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
2177 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
2178 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
2179 power4-sqrt, power4-isync): Modify reservation to make correct
2180 unit distribution to automata.
2182 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
2183 power5-store-update, power5-two, power5-three, power5-lmul,
2184 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
2186 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
2188 * except.c (pass_set_nothrow_function_flags): Set name and add
2190 (set_nothrow_function_flags): Mention in the dump file when
2191 changing a function to nothrow.
2193 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
2196 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
2197 instead of unsigned long.
2199 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2201 * config/arm/arm.c (return_used_this_function): Remove.
2202 (arm_output_function_prologue): Remove use of
2203 return_used_this_function.
2204 (output_return_instruction): Replace use of
2205 return_used_this_function
2206 by cfun->machine->return_used_this_function.
2207 (arm_output_epilogue): Likewise.
2208 (arm_output_function_epilogue): Likewise.
2209 (thumb_unexpanded_epilogue): Likewise.
2210 * config/arm/arm.h (struct machine_function):
2211 New member return_used_this_function.
2213 2009-04-12 Mark Mitchell <mark@codesourcery.com>
2215 * doc/install.texi: Correct description of default directory for
2216 --with-gxx-include-dir.
2218 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
2220 * fold-const.c (build_range_check): Properly deal with enumeral and
2223 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
2225 * doc/invoke.texi (max_gcse_passes): Remove documentation.
2226 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
2227 * params.h (MAX_GCSE_PASSES): Remove.
2228 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
2229 in sequence. Remove ability to run multiple passes.
2230 (bypass_jumps): Report run as third CPROP pass.
2232 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
2235 * except.c (can_throw_external): Look at each insn in a SEQUENCE
2236 when deciding whether the whole SEQUENCE can throw.
2238 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
2241 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
2242 offseted label references.
2244 2009-04-11 Jan Hubicka <jh@suse.cz>
2246 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
2248 2009-04-11 Richard Guenther <rguenther@suse.de>
2251 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
2252 return variables as TREE_ADDRESSABLE.
2254 2009-04-11 Richard Guenther <rguenther@suse.de>
2256 PR tree-optimization/39713
2257 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
2258 reference trees have SSA_NAME operands.
2260 2009-04-11 Richard Guenther <rguenther@suse.de>
2263 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
2264 address expressions.
2266 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
2268 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
2269 match changes in Cygwin 1.7
2270 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
2271 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
2273 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
2275 PR tree-optimization/39701
2276 * doc/invoke.texi (Optimization Options): Document change in
2277 meaning and initialization of -fdelete-null-pointer-checks.
2279 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
2282 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
2284 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
2287 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
2289 2009-04-10 Chao-ying Fu <fu@mips.com>
2291 * doc/tm.texi (Instruction Output): Document
2292 TARGET_ASM_FINAL_POSTSCAN_INSN.
2293 * target.h (final_postscan_insn): New field in asm_out.
2294 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
2295 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
2296 * final.c (final_scan_insn): Call
2297 targetm.asm_out.final_postscan_insn after outputting
2298 an asm macro and a normal instruction.
2300 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
2301 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
2302 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
2303 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
2304 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
2306 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
2309 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
2310 variables as non-NULL even with -fdelete-null-pointer-checks.
2312 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
2314 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
2316 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
2319 * config/i386/i386.c (classify_argument): Handle SCmode with
2320 (bit_offset % 64) != 0.
2322 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
2324 * doc/invoke.texi (Optimize Options): Add cross-reference to
2325 -Q --help=optimizers examples.
2327 2009-04-10 Ben Elliston <bje@au.ibm.com>
2330 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
2331 regalign for the reg == fpr and TDmode case.
2333 2009-04-09 David Ayers <ayers@fsfe.org>
2336 * objc/objc-act.c (warn_with_method): Remove helper function.
2337 (check_duplicates): Call warning and inform directly.
2338 (really_start_method): Likewise.
2340 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
2342 * expmed.c (expand_divmod): Always use a comparison for a division
2343 by a large unsigned integer.
2345 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
2346 for things others than variables or functions as nonzero.
2348 2009-04-09 Nick Clifton <nickc@redhat.com>
2350 * unwind-compat.c: Change copyright header to refer to version
2351 3 of the GNU General Public License with version 3.1 of the
2352 GCC Runtime Library Exception and to point readers at the
2353 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
2354 * config/alpha/crtfastmath.c: Likewise.
2355 * config/alpha/linux-unwind.h: Likewise.
2356 * config/alpha/qrnnd.asm: Likewise.
2357 * config/alpha/vms-crt0-64.c: Likewise.
2358 * config/alpha/vms-crt0.c: Likewise.
2359 * config/alpha/vms-dwarf2.asm: Likewise.
2360 * config/alpha/vms-dwarf2eh.asm: Likewise.
2361 * config/alpha/vms-psxcrt0-64.c: Likewise.
2362 * config/alpha/vms-psxcrt0.c: Likewise.
2363 * config/alpha/vms_tramp.asm: Likewise.
2364 * config/arc/initfini.c: Likewise.
2365 * config/arc/lib1funcs.asm: Likewise.
2366 * config/arm/bpabi-v6m.S: Likewise.
2367 * config/arm/bpabi.S: Likewise.
2368 * config/arm/bpabi.c: Likewise.
2369 * config/arm/crti.asm: Likewise.
2370 * config/arm/crtn.asm: Likewise.
2371 * config/arm/ieee754-df.S: Likewise.
2372 * config/arm/ieee754-sf.S: Likewise.
2373 * config/arm/lib1funcs.asm: Likewise.
2374 * config/arm/libunwind.S: Likewise.
2375 * config/arm/linux-atomic.c: Likewise.
2376 * config/arm/mmintrin.h: Likewise.
2377 * config/arm/pr-support.c: Likewise.
2378 * config/arm/unaligned-funcs.c: Likewise.
2379 * config/arm/unwind-arm.c: Likewise.
2380 * config/arm/unwind-arm.h: Likewise.
2381 * config/avr/libgcc.S: Likewise.
2382 * config/bfin/crti.s: Likewise.
2383 * config/bfin/crtlibid.s: Likewise.
2384 * config/bfin/crtn.s: Likewise.
2385 * config/bfin/lib1funcs.asm: Likewise.
2386 * config/bfin/linux-unwind.h: Likewise.
2387 * config/cris/arit.c: Likewise.
2388 * config/cris/cris_abi_symbol.c: Likewise.
2389 * config/darwin-64.c: Likewise.
2390 * config/darwin-crt2.c: Likewise.
2391 * config/darwin-crt3.c: Likewise.
2392 * config/darwin.h: Likewise.
2393 * config/dbxelf.h: Likewise.
2394 * config/dfp-bit.c: Likewise.
2395 * config/dfp-bit.h: Likewise.
2396 * config/elfos.h: Likewise.
2397 * config/fixed-bit.c: Likewise.
2398 * config/fixed-bit.h: Likewise.
2399 * config/fp-bit.c: Likewise.
2400 * config/fp-bit.h: Likewise.
2401 * config/fr30/crti.asm: Likewise.
2402 * config/fr30/crtn.asm: Likewise.
2403 * config/fr30/lib1funcs.asm: Likewise.
2404 * config/freebsd-spec.h: Likewise.
2405 * config/frv/cmovd.c: Likewise.
2406 * config/frv/cmovh.c: Likewise.
2407 * config/frv/cmovw.c: Likewise.
2408 * config/frv/frvbegin.c: Likewise.
2409 * config/frv/frvend.c: Likewise.
2410 * config/frv/lib1funcs.asm: Likewise.
2411 * config/glibc-stdint.h: Likewise.
2412 * config/h8300/clzhi2.c: Likewise.
2413 * config/h8300/crti.asm: Likewise.
2414 * config/h8300/crtn.asm: Likewise.
2415 * config/h8300/ctzhi2.c: Likewise.
2416 * config/h8300/fixunssfsi.c: Likewise.
2417 * config/h8300/lib1funcs.asm: Likewise.
2418 * config/h8300/parityhi2.c: Likewise.
2419 * config/h8300/popcounthi2.c: Likewise.
2420 * config/i386/ammintrin.h: Likewise.
2421 * config/i386/att.h: Likewise.
2422 * config/i386/avxintrin.h: Likewise.
2423 * config/i386/biarch64.h: Likewise.
2424 * config/i386/bmmintrin.h: Likewise.
2425 * config/i386/cpuid.h: Likewise.
2426 * config/i386/cross-stdarg.h: Likewise.
2427 * config/i386/crtfastmath.c: Likewise.
2428 * config/i386/crtprec.c: Likewise.
2429 * config/i386/cygming-crtbegin.c: Likewise.
2430 * config/i386/cygming-crtend.c: Likewise.
2431 * config/i386/cygwin.asm: Likewise.
2432 * config/i386/emmintrin.h: Likewise.
2433 * config/i386/gmm_malloc.h: Likewise.
2434 * config/i386/gthr-win32.c: Likewise.
2435 * config/i386/i386.h: Likewise.
2436 * config/i386/immintrin.h: Likewise.
2437 * config/i386/linux-unwind.h: Likewise.
2438 * config/i386/linux64.h: Likewise.
2439 * config/i386/mm3dnow.h: Likewise.
2440 * config/i386/mmintrin-common.h: Likewise.
2441 * config/i386/mmintrin.h: Likewise.
2442 * config/i386/nmmintrin.h: Likewise.
2443 * config/i386/pmm_malloc.h: Likewise.
2444 * config/i386/pmmintrin.h: Likewise.
2445 * config/i386/smmintrin.h: Likewise.
2446 * config/i386/sol2-c1.asm: Likewise.
2447 * config/i386/sol2-ci.asm: Likewise.
2448 * config/i386/sol2-cn.asm: Likewise.
2449 * config/i386/sol2-gc1.asm: Likewise.
2450 * config/i386/tmmintrin.h: Likewise.
2451 * config/i386/unix.h: Likewise.
2452 * config/i386/w32-unwind.h: Likewise.
2453 * config/i386/wmmintrin.h: Likewise.
2454 * config/i386/x86-64.h: Likewise.
2455 * config/i386/x86intrin.h: Likewise.
2456 * config/i386/xmmintrin.h: Likewise.
2457 * config/ia64/crtbegin.asm: Likewise.
2458 * config/ia64/crtend.asm: Likewise.
2459 * config/ia64/crtfastmath.c: Likewise.
2460 * config/ia64/crti.asm: Likewise.
2461 * config/ia64/crtn.asm: Likewise.
2462 * config/ia64/fde-glibc.c: Likewise.
2463 * config/ia64/lib1funcs.asm: Likewise.
2464 * config/ia64/linux-unwind.h: Likewise.
2465 * config/ia64/quadlib.c: Likewise.
2466 * config/ia64/unwind-ia64.c: Likewise.
2467 * config/linux.h: Likewise.
2468 * config/m32c/m32c-lib1.S: Likewise.
2469 * config/m32c/m32c-lib2-trapv.c: Likewise.
2470 * config/m32c/m32c-lib2.c: Likewise.
2471 * config/m32r/initfini.c: Likewise.
2472 * config/m68hc11/larith.asm: Likewise.
2473 * config/m68hc11/m68hc11-crt0.S: Likewise.
2474 * config/m68k/cf.md: Likewise.
2475 * config/m68k/crti.s: Likewise.
2476 * config/m68k/crtn.s: Likewise.
2477 * config/m68k/lb1sf68.asm: Likewise.
2478 * config/m68k/linux-unwind.h: Likewise.
2479 * config/mcore/crti.asm: Likewise.
2480 * config/mcore/crtn.asm: Likewise.
2481 * config/mcore/lib1.asm: Likewise.
2482 * config/mips/linux-unwind.h: Likewise.
2483 * config/mips/loongson.h: Likewise.
2484 * config/mips/mips16.S: Likewise.
2485 * config/mmix/crti.asm: Likewise.
2486 * config/mmix/crtn.asm: Likewise.
2487 * config/pa/fptr.c: Likewise.
2488 * config/pa/hpux-unwind.h: Likewise.
2489 * config/pa/lib2funcs.asm: Likewise.
2490 * config/pa/linux-atomic.c: Likewise.
2491 * config/pa/linux-unwind.h: Likewise.
2492 * config/pa/milli64.S: Likewise.
2493 * config/pa/quadlib.c: Likewise.
2494 * config/pa/stublib.c: Likewise.
2495 * config/picochip/libgccExtras/adddi3.asm: Likewise.
2496 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
2497 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
2498 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
2499 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
2500 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
2501 * config/picochip/libgccExtras/divmod15.asm: Likewise.
2502 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
2503 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
2504 * config/picochip/libgccExtras/longjmp.asm: Likewise.
2505 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
2506 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
2507 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
2508 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
2509 * config/picochip/libgccExtras/setjmp.asm: Likewise.
2510 * config/picochip/libgccExtras/subdi3.asm: Likewise.
2511 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
2512 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
2513 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
2514 * config/rs6000/750cl.h: Likewise.
2515 * config/rs6000/altivec.h: Likewise.
2516 * config/rs6000/biarch64.h: Likewise.
2517 * config/rs6000/crtresfpr.asm: Likewise.
2518 * config/rs6000/crtresgpr.asm: Likewise.
2519 * config/rs6000/crtresxfpr.asm: Likewise.
2520 * config/rs6000/crtresxgpr.asm: Likewise.
2521 * config/rs6000/crtsavfpr.asm: Likewise.
2522 * config/rs6000/crtsavgpr.asm: Likewise.
2523 * config/rs6000/darwin-asm.h: Likewise.
2524 * config/rs6000/darwin-fallback.c: Likewise.
2525 * config/rs6000/darwin-fpsave.asm: Likewise.
2526 * config/rs6000/darwin-ldouble.c: Likewise.
2527 * config/rs6000/darwin-tramp.asm: Likewise.
2528 * config/rs6000/darwin-unwind.h: Likewise.
2529 * config/rs6000/darwin-vecsave.asm: Likewise.
2530 * config/rs6000/darwin-world.asm: Likewise.
2531 * config/rs6000/e500crtres32gpr.asm: Likewise.
2532 * config/rs6000/e500crtres64gpr.asm: Likewise.
2533 * config/rs6000/e500crtres64gprctr.asm: Likewise.
2534 * config/rs6000/e500crtrest32gpr.asm: Likewise.
2535 * config/rs6000/e500crtrest64gpr.asm: Likewise.
2536 * config/rs6000/e500crtresx32gpr.asm: Likewise.
2537 * config/rs6000/e500crtresx64gpr.asm: Likewise.
2538 * config/rs6000/e500crtsav32gpr.asm: Likewise.
2539 * config/rs6000/e500crtsav64gpr.asm: Likewise.
2540 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
2541 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
2542 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
2543 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
2544 * config/rs6000/eabi-ci.asm: Likewise.
2545 * config/rs6000/eabi-cn.asm: Likewise.
2546 * config/rs6000/eabi.asm: Likewise.
2547 * config/rs6000/linux-unwind.h: Likewise.
2548 * config/rs6000/linux64.h: Likewise.
2549 * config/rs6000/paired.h: Likewise.
2550 * config/rs6000/paired.md: Likewise.
2551 * config/rs6000/ppc64-fp.c: Likewise.
2552 * config/rs6000/ppu_intrinsics.h: Likewise.
2553 * config/rs6000/rs6000.h: Likewise.
2554 * config/rs6000/si2vmx.h: Likewise.
2555 * config/rs6000/sol-ci.asm: Likewise.
2556 * config/rs6000/sol-cn.asm: Likewise.
2557 * config/rs6000/spe.h: Likewise.
2558 * config/rs6000/spu2vmx.h: Likewise.
2559 * config/rs6000/sysv4.h: Likewise.
2560 * config/rs6000/tramp.asm: Likewise.
2561 * config/rs6000/vec_types.h: Likewise.
2562 * config/s390/linux-unwind.h: Likewise.
2563 * config/s390/tpf-unwind.h: Likewise.
2564 * config/score/crti.asm: Likewise.
2565 * config/score/crtn.asm: Likewise.
2566 * config/sh/crt1.asm: Likewise.
2567 * config/sh/crti.asm: Likewise.
2568 * config/sh/crtn.asm: Likewise.
2569 * config/sh/divtab-sh4-300.c: Likewise.
2570 * config/sh/divtab-sh4.c: Likewise.
2571 * config/sh/divtab.c: Likewise.
2572 * config/sh/lib1funcs-4-300.asm: Likewise.
2573 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
2574 * config/sh/lib1funcs.asm: Likewise.
2575 * config/sh/lib1funcs.h: Likewise.
2576 * config/sh/linux-atomic.asm: Likewise.
2577 * config/sh/linux-unwind.h: Likewise.
2578 * config/sh/shmedia.h: Likewise.
2579 * config/sh/sshmedia.h: Likewise.
2580 * config/sh/ushmedia.h: Likewise.
2581 * config/sparc/crtfastmath.c: Likewise.
2582 * config/sparc/linux-unwind.h: Likewise.
2583 * config/sparc/sol2-c1.asm: Likewise.
2584 * config/sparc/sol2-ci.asm: Likewise.
2585 * config/sparc/sol2-cn.asm: Likewise.
2586 * config/spu/divmodti4.c: Likewise.
2587 * config/spu/divv2df3.c: Likewise.
2588 * config/spu/float_disf.c: Likewise.
2589 * config/spu/float_unsdidf.c: Likewise.
2590 * config/spu/float_unsdisf.c: Likewise.
2591 * config/spu/float_unssidf.c: Likewise.
2592 * config/spu/mfc_multi_tag_release.c: Likewise.
2593 * config/spu/mfc_multi_tag_reserve.c: Likewise.
2594 * config/spu/mfc_tag_release.c: Likewise.
2595 * config/spu/mfc_tag_reserve.c: Likewise.
2596 * config/spu/mfc_tag_table.c: Likewise.
2597 * config/spu/multi3.c: Likewise.
2598 * config/spu/spu_internals.h: Likewise.
2599 * config/spu/spu_intrinsics.h: Likewise.
2600 * config/spu/spu_mfcio.h: Likewise.
2601 * config/spu/vec_types.h: Likewise.
2602 * config/spu/vmx2spu.h: Likewise.
2603 * config/stormy16/stormy16-lib2.c: Likewise.
2604 * config/svr4.h: Likewise.
2605 * config/sync.c: Likewise.
2606 * config/v850/lib1funcs.asm: Likewise.
2607 * config/vxlib-tls.c: Likewise.
2608 * config/vxlib.c: Likewise.
2609 * config/vxworks-dummy.h: Likewise.
2610 * config/xtensa/crti.asm: Likewise.
2611 * config/xtensa/crtn.asm: Likewise.
2612 * config/xtensa/ieee754-df.S: Likewise.
2613 * config/xtensa/ieee754-sf.S: Likewise.
2614 * config/xtensa/lib1funcs.asm: Likewise.
2615 * config/xtensa/lib2funcs.S: Likewise.
2616 * config/xtensa/linux-unwind.h: Likewise.
2617 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2618 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
2619 * coretypes.h: Likewise.
2620 * crtstuff.c: Likewise.
2621 * defaults.h: Likewise.
2622 * dwarf2.h: Likewise.
2623 * emutls.c: Likewise.
2624 * gbl-ctors.h: Likewise.
2625 * gcov-io.h: Likewise.
2626 * ginclude/float.h: Likewise.
2627 * ginclude/iso646.h: Likewise.
2628 * ginclude/stdarg.h: Likewise.
2629 * ginclude/stdbool.h: Likewise.
2630 * ginclude/stddef.h: Likewise.
2631 * ginclude/stdfix.h: Likewise.
2632 * ginclude/stdint-gcc.h: Likewise.
2633 * ginclude/tgmath.h: Likewise.
2634 * gthr-aix.h: Likewise.
2635 * gthr-dce.h: Likewise.
2636 * gthr-gnat.c: Likewise.
2637 * gthr-gnat.h: Likewise.
2638 * gthr-lynx.h: Likewise.
2639 * gthr-mipssde.h: Likewise.
2640 * gthr-nks.h: Likewise.
2641 * gthr-posix.c: Likewise.
2642 * gthr-posix.h: Likewise.
2643 * gthr-posix95.h: Likewise.
2644 * gthr-rtems.h: Likewise.
2645 * gthr-single.h: Likewise.
2646 * gthr-solaris.h: Likewise.
2647 * gthr-tpf.h: Likewise.
2648 * gthr-vxworks.h: Likewise.
2649 * gthr-win32.h: Likewise.
2651 * libgcc2.c: Likewise.
2652 * libgcc2.h: Likewise.
2653 * libgcov.c: Likewise.
2654 * tsystem.h: Likewise.
2655 * typeclass.h: Likewise.
2656 * unwind-c.c: Likewise.
2657 * unwind-compat.h: Likewise.
2658 * unwind-dw2-fde-compat.c: Likewise.
2659 * unwind-dw2-fde-darwin.c: Likewise.
2660 * unwind-dw2-fde-glibc.c: Likewise.
2661 * unwind-dw2-fde.c: Likewise.
2662 * unwind-dw2-fde.h: Likewise.
2663 * unwind-dw2.c: Likewise.
2664 * unwind-dw2.h: Likewise.
2665 * unwind-generic.h: Likewise.
2666 * unwind-pe.h: Likewise.
2667 * unwind-sjlj.c: Likewise.
2668 * unwind.inc: Likewise.
2669 * config/arm/neon-gen.ml: Change generated copyright header to
2670 refer to version 3 of the GNU General Public License with
2671 version 3.1 of the GCC Runtime Library Exception and to point
2672 readers at the COPYING3 and COPYING3.RUNTIME files and the
2673 FSF's license web page.
2674 * config/arm/arm_neon.h: Regenerate.
2676 2009-04-09 Jakub Jelinek <jakub@redhat.com>
2678 * config/cris/cris.md: Change copyright header to refer to version
2679 3 of the GNU General Public License.
2680 * doc/install.texi2html: Change copyright header to refer to version
2681 3 of the GNU General Public License and to point readers at the
2682 COPYING3 file and the FSF's license web page.
2683 * config/vax/linux.h: Likewise.
2685 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
2687 * config/i386/i386.md (cmpcc): New.
2688 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
2689 (sync_compare_and_swap_cc*): Delete.
2691 * config/s390/s390.c (s390_compare_emitted): Remove.
2692 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
2693 s390_compare_emitted used to be handled. Assert that modes match.
2694 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
2695 refer to sync_compare_and_swap_ccsi.
2696 * config/s390/s390.h (s390_compare_emitted): Remove.
2697 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
2698 instead of s390_compare_emitted.
2699 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
2700 instead of s390_compare_emitted.
2701 * config/s390/s390.md (cmpcc): New.
2702 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
2703 CC_REGNUM, do not pretend it's set.
2704 (sync_compare_and_swap_cc*): Delete.
2705 * config/s390/predicates.md (cc_reg_operand): New.
2707 * expr.c (sync_compare_and_swap_cc): Delete.
2708 * optabs.h (sync_compare_and_swap_cc): Delete.
2709 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
2710 is being used with can_compare_p.
2711 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
2713 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
2714 look for a MODE_CC set instead. Use emit_store_flag.
2715 (expand_compare_and_swap_loop): Likewise, with some additional
2716 complication to avoid a force_reg when useless. Use
2717 emit_cmp_and_jump_insns.
2718 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
2719 * doc/md.texi (sync_compare_and_swap_cc): Merge with
2720 sync_compare_and_swap documentation.
2722 2009-04-09 Jan Hubicka <jh@suse.cz>
2724 * except.c (find_prev_try): Break out from ....
2725 (duplicate_eh_regions): ... here; properly update prev_try pointers
2726 when duplication part of tree.
2727 (dump_eh_tree): Improve dumping.
2728 (verify_eh_region): New.
2729 (verify_eh_tree): Use it.
2731 2009-04-06 Richard Guenther <rguenther@suse.de>
2733 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
2734 &ARRAY addresses by adjusting their types and prepending
2736 * tree-cfg.c (verify_gimple_assign_single): Verify that
2737 addresses are correct.
2739 2009-04-09 Richard Guenther <rguenther@suse.de>
2741 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
2742 indices into an array reference if possible.
2743 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
2744 Fold POINTER_PLUS_EXPR statements with invariant address.
2746 2009-04-09 Alan Modra <amodra@bigpond.net.au>
2749 * config.gcc (powerpc64-*-linux*): Always build biarch.
2751 2009-04-09 Joseph Myers <joseph@codesourcery.com>
2754 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
2755 it and pedwarn if this results in an INTEGER_CST.
2757 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2759 * doc/install.texi: Update minimum GMP version. Remove obsolete
2760 text in MPFR section.
2762 2009-04-08 Jakub Jelinek <jakub@redhat.com>
2764 * dwarf2out.c (class_scope_p): New static inline.
2765 (class_or_namespace_scope_p): Use it.
2766 (gen_variable_die): Use DW_TAG_member tag for static data member
2767 declarations instead of DW_TAG_variable.
2770 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
2773 2009-04-08 Richard Guenther <rguenther@suse.de>
2775 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
2776 valueize random data.
2778 2009-04-08 David Edelsohn <edelsohn@gnu.org>
2780 * config.gcc (aix tm_file): Add aix-stdint.h.
2781 (aix tm clause use_gcc_stdint): Set to wrap.
2782 * config/rs6000/aix-stdint.h: New file.
2784 2009-04-08 Richard Guenther <rguenther@suse.de>
2787 * tree-dfa.c (add_referenced_var): Do not recurse into
2788 global initializers.
2789 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
2791 (fold_const_aggregate_ref): Likewise.
2793 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
2795 * recog.c (ordered_comparison_operator): New.
2796 * gensupport.c (std_preds): Add it.
2797 * doc/md.texi (Machine-Independent Predicates): Document it.
2799 2009-04-08 Jan Hubicka <jh@suse.cz>
2801 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
2802 * function.h (rtl_eh): Remove exception_handler_label_map.
2803 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
2804 remove_exception_handler_label, for_each_eh_label_1): Remove.
2805 (rtl_remove_unreachable_regions): Remove.
2806 (convert_from_eh_region_ranges): Do not remove unreachable regions.
2807 (find_exception_handler_labels): Don't build the hashtable.
2808 (maybe_remove_eh_handler): Remove.
2809 (for_each_eh_label): Rewrite to walk the tree.
2810 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
2811 * except.h (maybe_remove_eh_handler): Remove.
2812 * passes.c (init_optimization_passes): Schedule second EH cleanup
2814 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
2815 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
2817 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
2819 * genoutput.c (validate_optab_operands): New.
2820 (gen_insn, gen_expand): Call it.
2822 * genflags.c (gen_insn): Detect misused iterators.
2823 (main): Pass line_no to gen_insn, exit with status 1 on error.
2825 * genextract.c (line_no): Make global.
2826 (VEC_safe_set_locstr): Change assertion to error message.
2827 (main): Exit with status 1 on error.
2829 2009-04-08 Joseph Myers <joseph@codesourcery.com>
2833 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
2834 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
2835 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
2836 * c-convert.c (convert): Do not call fold on results of conversion
2837 functions when the result is a C_MAYBE_CONST_EXPR.
2838 * c-parser.c (c_parser_postfix_expression): Do not fold condition
2839 of __builtin_choose_expr.
2840 * c-typeck.c (remove_c_maybe_const_expr): New.
2841 (build_unary_op, build_conditional_expr, build_compound_expr,
2842 build_binary_op, c_objc_common_truthvalue_conversion): Call
2843 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
2846 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
2848 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
2849 CODE to produce a new one. Add a prototype to use fold_convert_const
2851 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
2854 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
2855 mix declarations and code.
2857 2009-04-08 Ben Elliston <bje@au.ibm.com>
2859 * gcc.c: Replace `CC' with `GCC' throughout.
2861 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
2863 * doc/invoke.texi: Document Atom support.
2865 2009-04-07 Jason Merrill <jason@redhat.com>
2868 * c-common.h, c-common.c: Add flag_pretty_templates.
2869 * c-opts.c (c_common_handle_option): Set it.
2870 * c.opt: Add -fno-pretty-templates.
2871 * doc/invoke.texi (C++ Dialect Options): Likewise.
2873 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
2875 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
2876 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
2877 (ia64_expand_builtin): Likewise.
2879 2009-04-07 Martin Jambor <mjambor@suse.cz>
2881 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
2882 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
2883 ADDR_EXPRS are include too.
2885 2009-04-07 Richard Guenther <rguenther@suse.de>
2887 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
2888 decls are only used if passes as parameters or if they are
2889 local statics and the call is not to a builtin.
2890 (call_may_clobber_ref_p_1): Likewise.
2892 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
2894 * expr.c (do_store_flag): Remove last argument. Simplify code
2895 to avoid duplication of tests already done by can_compare_p.
2896 (expand_expr_real_1): Adjust caller.
2898 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
2900 * optabs.c (can_compare_p): Test the predicate of a
2901 cbranch and cstore pattern.
2903 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
2905 * expr.c (convert_move): Use emit_store_flag instead of
2908 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
2910 * config/i386/i386.c (ix86_compare_emitted): Remove.
2911 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
2912 ix86_compare_op0 like ix86_compare_emitted used to be handled.
2913 * config/i386/i386.h (ix86_compare_emitted): Remove.
2914 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
2915 instead of ix86_compare_emitted.
2916 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
2918 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
2920 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
2921 Add t-sysroot-suffix to tmake_file.
2922 * config/print-sysroot-suffix.sh: New file.
2923 * config/t-sysroot-suffix: New file.
2925 2009-04-07 Ben Elliston <bje@au.ibm.com>
2927 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
2928 as the latter produces a warning when the target does not support
2931 2009-04-07 Ben Elliston <bje@au.ibm.com>
2933 * dfp.c: Replace type punning assignments with memcpy throughout.
2934 * Makefile.in (dfp.o-warn): Remove.
2936 2009-04-07 Alan Modra <amodra@bigpond.net.au>
2939 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
2940 Include soft-fp/t-softfp after rs6000/t-linux64.
2942 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
2944 * stor-layout.c (set_sizetype): Use the full precision of their
2945 machine mode for bitsize types.
2947 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
2949 * config/i386/i386.md: Revert 2 accidental checkins.
2951 2009-04-06 Joey Ye <joey.ye@intel.com>
2952 Xuepeng Guo <xuepeng.guo@intel.com>
2953 H.J. Lu <hongjiu.lu@intel.com>
2955 Atom pipeline model, tuning and insn selection.
2956 * config.gcc (atom): Add atom config options and target.
2958 * config/i386/atom.md: New.
2960 * config/i386/i386.c (atom_cost): New cost.
2961 (m_ATOM): New macro flag.
2962 (initial_ix86_tune_features): Set m_ATOM.
2963 (x86_accumulate_outgoing_args): Likewise.
2964 (x86_arch_always_fancy_math_387): Likewise.
2965 (processor_target): Add Atom cost.
2966 (cpu_names): Add Atom cpu name.
2967 (override_options): Set Atom ISA.
2968 (ix86_issue_rate): New case PROCESSOR_ATOM.
2969 (ix86_adjust_cost): Likewise.
2971 * config/i386/i386.h (TARGET_ATOM): New target macro.
2972 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
2973 (TARGET_OPT_AGU): New target option.
2974 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
2975 (processor_type): Add PROCESSOR_ATOM.
2977 * config/i386/i386.md (cpu): Add new value "atom".
2978 (use_carry, movu): New attr.
2979 (atom.md): Include atom.md.
2980 (adddi3_carry_rex64): Set attr "use_carry".
2981 (addqi3_carry): Likewise.
2982 (addhi3_carry): Likewise.
2983 (addsi3_carry): Likewise.
2984 (*addsi3_carry_zext): Likewise.
2985 (subdi3_carry_rex64): Likewise.
2986 (subqi3_carry): Likewise.
2987 (subhi3_carry): Likewise.
2988 (subsi3_carry): Likewise.
2989 (x86_movdicc_0_m1_rex64): Likewise.
2990 (*x86_movdicc_0_m1_se): Likewise.
2991 (x86_movsicc_0_m1): Likewise.
2992 (*x86_movsicc_0_m1_se): Likewise.
2993 (*adddi_1_rex64): Emit add insn as much as possible.
2994 (*addsi_1): Likewise.
2995 (return_internal): Set atom_unit.
2996 (return_internal_long): Likewise.
2997 (return_pop_internal): Likewise.
2998 (*rcpsf2_sse): Set atom_sse_attr attr.
2999 (*qrt<mode>2_sse): Likewise.
3000 (*prefetch_sse): Likewise.
3002 * config/i386/i386-c.c (ix86_target_macros_internal): New case
3004 (ix86_target_macros_internal): Likewise.
3006 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
3007 (*prefetch_sse_rex): Likewise.
3008 (sse_rcpv4sf2): Likewise.
3009 (sse_vmrcpv4sf2): Likewise.
3010 (sse_sqrtv4sf2): Likewise.
3011 (<sse>_vmsqrt<mode>2): Likewise.
3012 (sse_ldmxcsr): Likewise.
3013 (sse_stmxcsr): Likewise.
3014 (*sse_sfence): Likewise.
3015 (sse2_clflush): Likewise.
3016 (*sse2_mfence): Likewise.
3017 (*sse2_lfence): Likewise.
3018 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
3019 (<sse>_movup<ssemodesuffixf2c>): Likewise.
3020 (avx_movdqu<avxmodesuffix>): Likewise.
3021 (avx_lddqu<avxmodesuffix>): Likewise.
3022 (sse2_movntv2di): Change attr "type" to "ssemov".
3023 (sse2_movntsi): Likewise.
3024 (rsqrtv8sf2): Change attr "type" to "sseadd".
3025 (sse3_addsubv2df3): Set attr "atom_unit".
3026 (sse3_h<plusminus_insn>v4sf3): Likewise.
3027 (*sse2_pmaddwd): Likewise.
3028 (*vec_extractv2di_1_rex64): Likewise.
3029 (*vec_extractv2di_1_avx): Likewise.
3030 (sse2_psadbw): Likewise.
3031 (ssse3_phaddwv8hi3): Likewise.
3032 (ssse3_phaddwv4hi3): Likewise.
3033 (ssse3_phadddv4si3): Likewise.
3034 (ssse3_phadddv2si3): Likewise.
3035 (ssse3_phaddswv8hi3): Likewise.
3036 (ssse3_phaddswv4hi3): Likewise.
3037 (ssse3_phsubwv8hi3): Likewise.
3038 (ssse3_phsubwv4hi3): Likewise.
3039 (ssse3_phsubdv4si3): Likewise.
3040 (ssse3_phsubdv2si3): Likewise.
3041 (ssse3_phsubswv8hi3): Likewise.
3042 (ssse3_phsubswv4hi3): Likewise.
3043 (ssse3_pmaddubsw128): Likewise.
3044 (sse3_pmaddubsw: Likewise.
3045 (ssse3_palignrti): Likewise.
3046 (ssse3_palignrdi): Likewise.
3048 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
3050 * doc/install.texi (Specific): Fix two cross-references to MinGW.
3052 2009-04-06 Richard Guenther <rguenther@suse.de>
3054 PR tree-optimization/28868
3055 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
3056 of which PHI results we inserted.
3057 (insert_into_preds_of_block): Record inserted PHIs.
3058 (eliminate): Eliminate redundant PHI nodes.
3059 (init_pre): Init inserted_phi_names.
3061 2009-04-06 Richard Guenther <rguenther@suse.de>
3063 PR tree-optimization/39643
3064 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
3065 IMAGPART_EXPRs of complex constants.
3066 (execute_fold_all_builtins): If we folded a call queue
3067 TODO_update_address_taken.
3069 2009-04-06 Jan Hubicka <jh@suse.cz>
3072 * except.c (remove_unreachable_regions): Propagate may_contain_throw
3075 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
3077 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
3079 (ic_invalidate_array): Likewise.
3081 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
3083 * calls.c (emit_library_call_value_1): Fix a problem with parameter
3084 alignment for library calls.
3086 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
3088 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
3089 (mingw32 tm clause use_gcc_stdint): Set to wrap.
3090 * config/i386/mingw-stdint.h: New file.
3092 2009-04-05 Richard Guenther <rguenther@suse.de>
3094 PR tree-optimization/39648
3095 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
3096 our &A vs. &A[0] IL deficiencies.
3098 2009-04-04 Jan Hubicka <jh@suse.cz>
3100 * except.c (sjlj_find_directly_reachable_regions): Be ready for
3101 removed toplevel regions.
3102 (sjlj_mark_call_sites): Likewise.
3104 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
3106 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
3107 (cygwin tm clause use_gcc_stdint): Set to wrap.
3108 * config/i386/cygwin-stdint.h: New file.
3110 2009-04-04 Richard Guenther <rguenther@suse.de>
3112 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
3113 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
3114 single-argument PHIs if we are in loop-closed SSA form.
3115 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
3116 for the pre-condition.
3117 (slpeel_tree_peel_loop_to_edge): Likewise.
3118 (vect_build_loop_niters): Take an optional sequence to append stmts.
3119 (vect_generate_tmps_on_preheader): Likewise.
3120 (vect_do_peeling_for_loop_bound): Take extra guards for the
3122 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
3123 the cost model check.
3124 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
3125 guards if we are going to peel. Do not apply versioning in that case.
3126 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
3127 (vect_do_peeling_for_loop_bound): Likewise.
3128 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
3129 loop bound only record extra pre-conditions, do not apply loop
3132 2009-04-04 Richard Guenther <rguenther@suse.de>
3134 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
3137 2009-04-04 Jan Hubicka <jh@suse.cz>
3139 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
3140 last_basic_block for size of bb->index indexed array.
3141 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
3142 compute_out, link_btr_uses, build_btr_def_use_webs,
3143 build_btr_def_use_webs, migrate_btr_defs): Likewise.
3145 2009-04-04 Jan Hubicka <jh@suse.cz>
3147 * except.c (remove_eh_handler_and_replace): Break out from ...
3148 (remove_eh_handler): ... here.
3149 (bring_to_root): New function.
3150 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
3151 handled ones, bring others to root of tree.
3153 2009-04-04 Jan Hubicka <jh@suse.cz>
3155 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
3156 (all_phis_safe_to_merge): New function.
3157 (update_info): New structure.
3158 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
3159 (cleanup_empty_eh): Update SSA if possible.
3161 2009-04-04 Richard Guenther <rguenther@suse.de>
3163 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
3164 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
3165 (append_vuse): Likewise.
3167 2009-04-04 Jakub Jelinek <jakub@redhat.com>
3169 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
3170 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
3171 instead of REG_UNSAVED for DW_CFA_undefined.
3172 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
3173 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
3176 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
3179 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
3180 * testsuite/gcc.c-torture/execute/pr39501.c: New file.
3181 * testsuite/gcc.c-torture/execute/pr39501.x: New file.
3183 2009-04-04 Richard Guenther <rguenther@suse.de>
3185 PR tree-optimization/8781
3186 PR tree-optimization/37892
3187 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
3188 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
3189 (valueize_refs): Call it for *& valueizations.
3190 (shared_reference_ops_from_ref): Rename to ...
3191 (valueize_shared_reference_ops_from_ref): ... this and valueize.
3192 (shared_reference_ops_from_call): Rename to ...
3193 (valueize_shared_reference_ops_from_call): ... this and valueize.
3194 (vn_reference_lookup): Update.
3195 (visit_reference_op_call): Likewise.
3196 * tree-ssa-pre.c (phi_translate_1): Fold *&.
3197 (eliminate): Value-replace the call address in call statements.
3199 2009-04-04 Richard Guenther <rguenther@suse.de>
3201 PR tree-optimization/39636
3202 * tree-ssa-forwprop.c
3203 (forward_propagate_addr_into_variable_array_index): Check for
3204 GIMPLE_ASSIGN before accessing the rhs code.
3206 2009-04-03 Jason Merrill <jason@redhat.com>
3208 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
3210 2009-04-03 Steve Ellcey <sje@cup.hp.com>
3212 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
3213 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
3214 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
3215 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
3216 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
3217 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
3218 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
3219 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
3220 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
3221 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
3222 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
3223 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
3224 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
3225 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
3226 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
3227 Use fr_reg_or_fp01_operand instead of fr_register_operand
3229 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
3230 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
3231 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
3233 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
3235 PR rtl-optimization/39607
3236 PR rtl-optimization/39631
3240 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
3241 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
3242 instead of DF_LR_OUT.
3243 * ira-lives.c (process_bb_node_lives): Ditto.
3244 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
3245 instead of DF_LR_{OUT,IN}.
3246 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
3247 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
3249 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
3251 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
3252 (execute_lower_omp): Always run but take the short way out if -fopenmp
3254 (gate_lower_omp): Remove, forcing the pass manager to always run the
3255 pass and always set PROP_gimple_lomp.
3256 (pass_lower_omp): Remove gate function.
3257 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
3258 PROP_trees. Instead, require it.
3259 * ipa-cp.c (pass_ipa_cp): Likewise.
3260 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
3261 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
3262 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
3263 and PROP_gimple_leh.
3265 2009-04-03 Richard Guenther <rguenther@suse.de>
3268 PR tree-optimization/23940
3269 PR tree-optimization/33237
3272 PR tree-optimization/36201
3273 PR tree-optimization/36230
3274 PR tree-optimization/38049
3275 PR tree-optimization/38207
3276 PR tree-optimization/38230
3277 PR tree-optimization/38301
3278 PR tree-optimization/38585
3280 PR tree-optimization/38985
3281 PR tree-optimization/39299
3282 * tree-ssa-structalias.h: Remove.
3283 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
3284 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
3285 (struct vuse_element_d): Remove.
3286 (struct vuse_vec_d): Likewise.
3287 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
3288 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
3289 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
3290 VUSE_ELEMENT_VAR): Likewise.
3291 (struct voptype_d): Likewise.
3292 (NUM_VOP_FREE_BUCKETS): Likewise.
3293 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
3294 (struct stmt_operands_d): Remove.
3295 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
3296 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
3297 VDEF_NUM, VDEF_VECT): Likewise.
3298 (copy_virtual_operands): Remove.
3299 (operand_build_cmp): Likewise.
3300 (create_ssa_artificial_load_stmt): Likewise.
3301 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
3302 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
3303 vuse_index and mayuse_index members. Pack and move done and iter_type
3304 members to the front.
3305 (SSA_OP_VMAYUSE): Remove.
3306 (SSA_OP_VIRTUAL_USES): Adjust.
3307 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
3308 (unlink_stmt_vdef): Declare.
3309 (add_to_addressable_set): Remove.
3310 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
3311 (vrp_visit_stmt): Likewise.
3312 * doc/tree-ssa.texi (Alias analysis): Update.
3313 * doc/invoke.texi (max-aliased-vops): Remove docs.
3314 (avg-aliased-vops): Likewise.
3315 * tree-into-ssa.c (syms_to_rename): Remove.
3316 (need_to_update_vops_p): Likewise.
3317 (need_to_initialize_update_ssa_p): Rename to ...
3318 (update_ssa_initialized_fn): ... this. Track function we are
3320 (symbol_marked_for_renaming): Simplify.
3321 (add_new_name_mapping): Do not set need_to_update_vops_p.
3322 (dump_currdefs): Use SYMS_TO_RENAME.
3323 (rewrite_update_stmt): Always walk all uses/defs.
3324 (dump_update_ssa): Adjust.
3325 (init_update_ssa): Take function argument. Track what we are
3327 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
3328 (create_new_def_for): Initialize for cfun, assert we are initialized
3330 (mark_sym_for_renaming): Simplify.
3331 (mark_set_for_renaming): Do not initialize update-ssa.
3332 (need_ssa_update_p): Simplify. Take function argument.
3333 (name_mappings_registered_p): Assert we ask for the correct function.
3334 (name_registered_for_update_p): Likewise.
3335 (ssa_names_to_replace): Likewise.
3336 (release_ssa_name_after_update_ssa): Likewise.
3337 (update_ssa): Likewise. Use SYMS_TO_RENAME.
3338 (dump_decl_set): Do not print a newline.
3339 (debug_decl_set): Do it here.
3340 (dump_update_ssa): And here.
3341 * tree-ssa-loop-im.c (move_computations): Adjust.
3342 (movement_possibility): Likewise.
3343 (determine_max_movement): Likewise.
3344 (gather_mem_refs_stmt): Likewise.
3345 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
3347 * tree-complex.c (update_all_vops): Remove.
3348 (expand_complex_move): Adjust.
3349 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
3350 Simplify test for memory referencing statement. Exclude
3351 non-invariant ADDR_EXPRs.
3352 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
3353 * tree-loop-distribution.c (generate_memset_zero): Adjust.
3354 (rdg_flag_uses): Likewise.
3355 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
3357 (tree_optimize_tail_calls_1): Also split the
3358 edge from the entry block if we have degenerate PHI nodes in
3359 the first basic block.
3360 * tree.c (init_ttree): Remove memory-tag related code.
3361 (tree_code_size): Likewise.
3362 (tree_node_structure): Likewise.
3363 (build7_stat): Re-write to be build6_stat.
3364 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
3365 (SSA_VAR_P): Adjust.
3366 (struct tree_memory_tag): Remove.
3367 (struct tree_memory_partition_tag): Likewise.
3368 (union tree_node): Adjust.
3369 (build7): Re-write to be build6.
3370 * tree-pass.h (pass_reset_cc_flags): Remove.
3371 (TODO_update_address_taken): New flag.
3372 (pass_simple_dse): Remove.
3373 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
3374 * params.h (MAX_ALIASED_VOPS): Remove.
3375 (AVG_ALIASED_VOPS): Likewise.
3376 * omp-low.c (expand_omp_taskreg): Update SSA form.
3377 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
3378 aliases the lhs in a copy stmt.
3379 * tree-ssa-dse.c (struct address_walk_data): Remove.
3380 (memory_ssa_name_same): Likewise.
3381 (memory_address_same): Likewise.
3382 (get_kill_of_stmt_lhs): Likewise.
3383 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
3384 unused stores. Look through PHI nodes into post-dominated regions.
3385 (dse_optimize_stmt): Simplify. Properly remove stores.
3386 (tree_ssa_dse): Compute dominators.
3387 (execute_simple_dse): Remove.
3388 (pass_simple_dse): Likewise.
3389 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
3390 gimple_loaded_syms and gimple_stored_syms computation.
3391 * toplev.c (dump_memory_report): Dump alias and pta stats.
3392 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
3393 (vn_reference_eq): Likewise.
3394 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
3395 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
3396 valueize_vuses): Remove.
3397 (get_def_ref_stmt_vuses): Simplify. Rename to ...
3398 (get_def_ref_stmt_vuse): ... this.
3399 (vn_reference_lookup_2): New function.
3400 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
3401 walking equivalent vuses. Simplify.
3402 (vn_reference_lookup): Likewise.
3403 (vn_reference_insert): Likewise.
3404 (vn_reference_insert_pieces): Likewise.
3405 (visit_reference_op_call): Simplify.
3406 (visit_reference_op_load): Likewise.
3407 (visit_reference_op_store): Likewise.
3408 (init_scc_vn): Remove shared_lookup_vuses initialization.
3409 (free_scc_vn): Remove shared_lookup_vuses freeing.
3410 (sort_vuses, sort_vuses_heap): Remove.
3411 (get_ref_from_reference_ops): Export.
3412 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
3413 vector with single vuse pointer.
3414 (vn_reference_lookup_pieces, vn_reference_lookup,
3415 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
3416 (shared_vuses_from_stmt): Remove.
3417 (get_ref_from_reference_ops): Declare.
3418 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
3419 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
3420 memory-tag related code.
3421 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
3422 (likely_value): Add comment, skip static-chain of call statements.
3423 (surely_varying_stmt_p): Adjust.
3424 (gimplify_and_update_call_from_tree): Likewise.
3425 (execute_fold_all_builtins): Do not rebuild alias info.
3426 (gimplify_and_update_call_from_tree): Properly update VOPs.
3427 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
3428 (copy_ref_info): Remove memory-tag related code.
3429 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
3430 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
3431 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
3433 * tree-ssa-dom.c (gimple_p): Remove typedef.
3434 (eliminate_redundant_computations): Adjust.
3435 (record_equivalences_from_stmt): Likewise.
3436 (avail_expr_hash): Likewise.
3437 (avail_expr_eq): Likewise.
3438 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
3439 (stmt_makes_single_load): Likewise.
3440 (stmt_makes_single_store): Likewise.
3441 * tree-ssa-alias.c: Rewrite completely.
3442 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
3443 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
3444 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
3445 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
3446 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
3447 Remove public functions.
3448 (pass_reset_cc_flags): Remove.
3449 (pass_build_alias): Move ...
3450 * tree-ssa-structalias.c (pass_build_alias): ... here.
3451 * tree-ssa-alias.c (may_be_aliased): Move ...
3452 * tree-flow-inline.h (may_be_aliased): ... here.
3453 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
3454 count_uses_and_derefs): Move ...
3455 * gimple.c: ... here.
3456 * gimple.h (count_uses_and_derefs): Declare.
3457 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
3458 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
3459 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
3460 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
3461 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
3462 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
3463 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
3465 * tree-dfa.c (refs_may_alias_p): Move ...
3466 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
3467 * tree-ssa-alias.h: New file.
3468 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
3469 (statement_sink_location): Likewise.
3470 * opts.c (decode_options): Do not adjust max-aliased-vops or
3471 avg-aliased-vops values.
3472 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
3473 (TV_CALL_CLOBBER): Likewise.
3474 (TV_FLOW_SENSITIVE): Likewise.
3475 (TV_FLOW_INSENSITIVE): Likewise.
3476 (TV_MEMORY_PARTITIONING): Likewise.
3477 (TV_ALIAS_STMT_WALK): New timevar.
3478 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
3479 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
3480 (get_address_description): Remove memory-tag related code.
3481 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
3482 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
3483 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
3484 and immediate uses in statements. Document.
3485 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
3486 (dump_symbols): Remove.
3487 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
3488 * alias.c (get_deref_alias_set): New function split out from ...
3489 (get_alias_set): ... here.
3490 * alias.h (get_deref_alias_set): Declare.
3491 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
3492 type parameter. Remove restrict pointer handling. Create a
3493 ref-all pointer in case type-based alias sets do not conflict.
3494 (vect_analyze_data_refs): Remove SMT related code.
3495 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
3496 (vectorizable_load): Likewise.
3497 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
3498 (DR_SYMBOL_TAG, DR_VOPS): Remove.
3499 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
3500 Ignore vops and SMTs.
3501 (dr_analyze_alias): Likewise..
3502 (free_data_ref): Likewise.
3503 (create_data_ref): Likewise.
3504 (analyze_all_data_dependences): Likewise.
3505 (get_references_in_stmt): Adjust.
3506 * tree-flow-inline.h (gimple_aliases_computed_p,
3507 gimple_addressable_vars, gimple_call_clobbered_vars,
3508 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
3509 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
3510 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
3511 gimple_mem_ref_stats): Remove.
3512 (gimple_vop): New function.
3513 (op_iter_next_use): Remove vuses and mayuses cases.
3514 (op_iter_next_def): Remove vdefs case.
3515 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
3516 (clear_and_done_ssa_iter): Do not set removed fields.
3517 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
3518 Assert we are not iterating over vuses or vdefs if not also
3519 iterating over uses or defs.
3520 (op_iter_init_use): Likewise.
3521 (op_iter_init_def): Likewise.
3522 (op_iter_next_vdef): Remove.
3523 (op_iter_next_mustdef): Likewise.
3524 (op_iter_init_vdef): Likewise.
3525 (compare_ssa_operands_equal): Likewise.
3526 (link_use_stmts_after): Handle vuse operand.
3527 (is_call_used): Use is_call_clobbered.
3528 (is_call_clobbered): Global variables are always call clobbered,
3529 query the call-clobbers bitmap.
3530 (mark_call_clobbered): Ignore global variables.
3531 (clear_call_clobbered): Likewise.
3532 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
3533 virtual operands sanity check.
3534 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
3536 (TARGET_MEM_REF): Remove TMR_TAG operand.
3537 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
3538 Remove call-clobber related code.
3539 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
3540 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
3541 partitions or escape reason.
3542 (get_single_def_stmt, get_single_def_stmt_from_phi,
3543 get_single_def_stmt_with_phi): Remove.
3544 (dump_referenced_vars): Tidy.
3545 (get_ref_base_and_extent): Allow bare decls.
3546 (collect_dfa_stats): Adjust.
3547 * graphite.c (rename_variables_in_stmt): Adjust.
3548 (graphite_copy_stmts_from_block): Likewise.
3549 (translate_clast): Likewise.
3550 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
3552 (translate_vuse_through_block): Use the oracle.
3553 (phi_translate_1): Adjust.
3554 (value_dies_in_block_x): Use the oracle. Cache the outcome
3556 (valid_in_sets): Check if the VUSE for
3557 a REFERENCE is available.
3558 (eliminate): Do not remove stmts during elimination,
3559 instead queue and remove them afterwards.
3560 (do_pre): Do not rebuild alias info.
3561 (pass_pre): Run TODO_rebuild_alias before PRE.
3562 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
3563 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
3564 (mark_all_v_defs_stmt): Remove.
3565 (mark_all_v_defs_seq): Adjust.
3566 (sra_replace): Likewise.
3567 (scalarize_use): Likewise.
3568 (scalarize_copy): Likewise.
3569 (scalarize_init): Likewise.
3570 (scalarize_ldst): Likewise.
3571 (todoflags): Remove.
3572 (tree_sra): Do not rebuild alias info.
3573 (tree_sra_early): Adjust.
3574 (pass_sra): Run TODO_update_address_taken before SRA.
3575 * tree-predcom.c (set_alias_info): Remove.
3576 (prepare_initializers_chain): Do not call it.
3577 (mark_virtual_ops_for_renaming): Adjust.
3578 (mark_virtual_ops_for_renaming_list): Remove.
3579 (initialize_root_vars): Adjust.
3580 (initialize_root_vars_lm): Likewise.
3581 (prepare_initializers_chain): Likewise.
3582 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
3583 (may_propagate_copy_into_stmt): Likewise.
3584 (merge_alias_info): Do nothing for now.
3585 (propagate_tree_value_into_stmt): Adjust.
3586 (stmt_may_generate_copy): Likewise.
3587 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
3588 not mark symbols for renaming.
3589 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
3590 with the same statement, make sure to update the new pointed-to one.
3591 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
3592 call statements, do not mark symbols for renaming.
3593 (mark_operand_necessary): Dump something.
3594 (ref_may_be_aliased): New function.
3595 (mark_aliased_reaching_defs_necessary_1): New helper function.
3596 (mark_aliased_reaching_defs_necessary): Likewise.
3597 (mark_all_reaching_defs_necessary_1): Likewise.
3598 (mark_all_reaching_defs_necessary): Likewise.
3599 (propagate_necessity): Do not process virtual PHIs. For
3600 non-aliased loads mark all reaching definitions as necessary.
3601 For aliased loads and stores mark the immediate dominating
3602 aliased clobbers as necessary.
3603 (visited): New global static.
3604 (perform_tree_ssa_dce): Free visited bitmap after propagating
3606 (remove_dead_phis): Perform simple dead virtual PHI removal.
3607 (remove_dead_stmt): Properly unlink virtual operands when
3609 (eliminate_unnecessary_stmts): Schedule PHI removal after
3611 * tree-ssa-ter.c (is_replaceable_p): Adjust.
3612 (process_replaceable): Likewise.
3613 (find_replaceable_in_bb): Likewise.
3614 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
3615 based on the single gimple vop.
3616 (verify_flow_insensitive_alias_info): Remove.
3617 (verify_flow_sensitive_alias_info): Likewise.
3618 (verify_call_clobbering): Likewise.
3619 (verify_memory_partitions): Likewise.
3620 (verify_alias_info): Likewise.
3621 (verify_ssa): Adjust..
3622 (execute_update_addresses_taken): Export. Update SSA
3623 manually. Optimize only when optimizing. Use a local bitmap.
3624 (pass_update_address_taken): Remove TODO_update_ssa, add
3626 (pass_update_address_taken): Just use TODO_update_address_taken.
3627 (init_tree_ssa): Do not initialize addressable_vars.
3628 (verify_ssa): Verify new VUSE / VDEF properties.
3629 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
3630 Do not call verify_alias_info.
3631 (delete_tree_ssa): Clear the VUSE, VDEF operands.
3632 Do not free the loaded and stored syms bitmaps. Reset the escaped
3633 and callused solutions. Do not free addressable_vars.
3634 Remove memory-tag related code.
3635 (warn_uninitialized_var): Aliases are always available.
3636 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
3637 * lambda-code.c (can_put_in_inner_loop): Adjust.
3638 (can_put_after_inner_loop): Likewise.
3639 (perfect_nestify): Likewise.
3640 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
3641 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
3642 (vectorizable_conversion): Do not mark symbols for renaming.
3643 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
3644 (expand_call_inline): Unlink the calls virtual operands before
3646 (tree_function_versioning): Do not call update_ssa if we are not
3647 updating clones. Simplify.
3648 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
3649 (propagate_with_phi): Likewise..
3650 * tree-outof-ssa.c (create_temp): Remove memory tag and call
3651 clobber code. Assert we are not aliased or global.
3652 * tree-flow.h: Include tree-ssa-alias.h
3653 (enum escape_type): Remove.
3654 (struct mem_sym_stats_d): Likewise.
3655 (struct mem_ref_stats_d): Likewise.
3656 (struct gimple_df): Add vop member. Remove global_var,
3657 call_clobbered_vars, call_used_vars, addressable_vars,
3658 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
3659 escaped and callused members.
3660 (struct ptr_info_def): Remove all members, add points-to solution
3662 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
3663 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
3664 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
3665 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
3666 (tree-ssa-alias.o): Likewise.
3667 (toplev.o): Add tree-ssa-alias.h
3668 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
3669 * gimple.c (gimple_set_bb): Fix off-by-one error.
3670 (is_gimple_reg): Do not handle memory tags.
3671 (gimple_copy): Also copy virtual operands.
3672 Delay updating the statement. Do not reset loaded and stored syms.
3673 (gimple_set_stored_syms): Remove.
3674 (gimple_set_loaded_syms): Likewise.
3675 (gimple_call_copy_skip_args): Copy the virtual operands
3676 and mark the new statement modified.
3677 * tree-ssa-structalias.c (may_alias_p): Remove.
3678 (set_uids_in_ptset): Take the alias set to prune with as
3679 parameter. Fold in the alias test of may_alias_p.
3680 (compute_points_to_sets): Compute whether a ptr is dereferenced
3682 (process_constraint): Deal with &ANYTHING on the lhs, reject all
3683 other ADDRESSOF constraints on the lhs.
3684 (get_constraint_for_component_ref): Assert that we don't get
3685 ADDRESSOF constraints from the base of the reference.
3686 Properly generate UNKNOWN_OFFSET for DEREF if needed.
3687 (struct variable_info): Remove collapsed_to member.
3688 (get_varinfo_fc): Remove.
3689 (new_var_info): Do not set collapsed_to.
3690 (dump_constraint): Do not follow cycles.
3691 (dump_constraint_graph): Likewise.
3692 (build_pred_graph): Likewise.
3693 (build_succ_graph): Likewise.
3694 (rewrite_constraints): Likewise.
3695 (do_simple_structure_copy): Remove.
3696 (do_rhs_deref_structure_copy): Remove.
3697 (do_lhs_deref_structure_copy): Remove.
3698 (collapse_rest_of_var): Remove.
3699 (do_structure_copy): Re-implement.
3700 (pta_stats): New global variable.
3701 (dump_pta_stats): New function.
3702 (struct constraint_expr): Make offset signed.
3703 (UNKNOWN_OFFSET): Define special value.
3704 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
3705 (solution_set_expand): New helper function split out from ...
3706 (do_sd_constraint): ... here.
3707 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
3708 (do_ds_constraint): Likewise.
3709 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
3710 and CALLUSED = *CALLUSED.
3711 (set_union_with_increment): Make inc argument signed.
3712 (type_safe): Remove.
3713 (get_constraint_for_ptr_offset): Handle unknown and negative
3715 (first_vi_for_offset): Handle offsets before start. Bail
3716 out early for offsets beyond the variable extent.
3717 (first_or_preceding_vi_for_offset): New function.
3718 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
3719 Together with ESCAPED = *ESCAPED this properly computes reachability.
3720 (find_what_var_points_to): New function.
3721 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
3722 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
3723 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
3724 pt_solutions_intersect): New functions.
3725 (compute_call_used_vars): Remove.
3726 (compute_may_aliases): New main entry into PTA computation.
3727 * gimple.h (gimple_p): New typedef.
3728 (struct gimple_statement_base): Remove references_memory_p.
3729 (struct gimple_statement_with_memory_ops_base): Remove
3730 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
3732 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
3733 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
3734 gimple_set_references_memory): Remove.
3735 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
3736 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
3738 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
3739 (verify_expr): Allow RESULT_DECL.
3740 (gimple_duplicate_bb): Do not copy virtual operands.
3741 (gimple_duplicate_sese_region): Adjust.
3742 (gimple_duplicate_sese_tail): Likewise.
3743 (mark_virtual_ops_in_region): Remove.
3744 (move_sese_region_to_fn): Do not call it.
3745 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
3746 and pass_simple_dse.
3747 (execute_function_todo): Handle TODO_update_address_taken,
3748 call execute_update_addresses_taken for TODO_rebuild_alias.
3749 (execute_todo): Adjust.
3750 (execute_one_pass): Init dump files early.
3751 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
3753 (create_general_new_stmt): Clear vops.
3754 * tree-ssa-reassoc.c (get_rank): Adjust.
3755 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
3756 symbols for renaming.
3757 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
3758 (PARAM_AVG_ALIASED_VOPS): Likewise.
3759 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
3760 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
3761 * tree-ssa-operands.c: Simplify for new virtual operand representation.
3762 (operand_build_cmp, copy_virtual_operands,
3763 create_ssa_artificial_load_stmt, add_to_addressable_set,
3764 gimple_add_to_addresses_taken): Remove public functions.
3765 (unlink_stmt_vdef): New function.
3767 2009-04-03 Alan Modra <amodra@bigpond.net.au>
3769 * config.gcc (powerpc-*-linux*): Merge variants.
3771 2009-04-02 Chao-ying Fu <fu@mips.com>
3772 James Grosbach <james.grosbach@microchip.com>
3774 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
3775 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
3777 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
3778 keep_interrupts_masked_p, use_debug_exception_return_p.
3779 (mips_attribute_table): Add interrupt, use_shadow_register_set,
3780 keep_interrupts_masked, use_debug_exception_return.
3781 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
3782 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
3784 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
3785 (mips_print_operand): Process COP0 registers to print $0 .. $31
3786 correctly for GAS to process.
3787 (mips_interrupt_extra_call_saved_reg_p): New function.
3788 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
3790 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
3791 (mips_compute_frame_info): Add supports for interrupt context that
3792 includes doubleword accumulators and COP0 registers.
3793 (mips_for_each_saved_acc): New function.
3794 (mips_for_each_saved_gpr_and_fpr): Change the function name from
3795 mips_for_each_saved_reg.
3796 (mips_save_reg): Save accumulators.
3797 (mips_kernel_reg_p): A new for_each_rtx callback.
3798 (mips_expand_prologue): Support interrupt handlers.
3799 (mips_restore_reg): Restore accumulators.
3800 (mips_expand_epilogue): Support interrupt handlers.
3801 (mips_can_use_return_insn): Return false for interrupt handlers.
3802 (mips_epilogue_uses): New function.
3803 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
3804 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
3805 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
3806 cop0_move): New instructions.
3807 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
3808 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
3810 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
3812 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
3813 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
3814 interrupt handlers, we use K0 as the temporary register.
3815 (EPILOGUE_USES): Change to a function call.
3816 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
3817 handlers, we use K0 as the temporary register.
3819 * doc/extend.texi (Function Attributes): Document interrupt,
3820 use_shadow_register_set, keep_interrupts_masked,
3821 use_debug_exception_return for MIPS attributes.
3823 2009-04-03 Alan Modra <amodra@bigpond.net.au>
3825 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
3826 Remove a number of t-files from tmake_file.
3827 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
3828 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
3829 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3830 target_prototype, not TARGET_PROTOTYPE.
3831 (LINK_OS_GNU_SPEC): Define.
3832 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
3833 and darwin-ldoubdle.c.
3835 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3838 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
3839 (cpp_options): Ditto.
3840 (default_compilers): Ditto.
3841 (display_help): Ditto.
3842 (process_command): Ditto.
3844 (set_input): Use lbasename instead of duplicate code.
3845 (save_temps_prefix): New static for -save-temps=obj.
3846 (save_temps_length): Ditto.
3848 * doc/invoke.texi (-save-temps=obj): Document new variant to
3851 2009-04-02 Jeff Law <law@redhat.com>
3853 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
3856 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
3858 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
3859 * configure: Regenerated.
3861 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
3863 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
3864 share the argument list.
3866 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
3870 2009-02-12 Diego Novillo <dnovillo@google.com>
3872 * varpool.c (debug_varpool): New.
3873 * cgraph.h (debug_varpool): Declare.
3875 2009-04-02 Jan Hubicka <jh@suse.cz>
3877 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
3880 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
3882 * config/i386/i386.c (ix86_abi): Move initialization to ...
3883 (override_options): Here.
3885 2009-04-02 Christian Bruel <christian.bruel@st.com>
3887 * config/sh/sh.c (sh_dwarf_register_span): New function.
3888 (TARGET_DWARF_REGISTER_SPAN): Define.
3889 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
3891 2009-04-02 Ira Rosen <irar@il.ibm.com>
3893 PR tree-optimization/39595
3894 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
3895 interleaved loads group is not greater than the SLP group size.
3897 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
3899 * builtins.c (is_builtin_name): New.
3900 (called_as_built_in): Use is_builtin_name.
3901 * tree.h (is_builtin_name): New.
3902 * varasm.c (incorporeal_function_p): Use is_builtin_name
3904 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
3906 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
3908 2009-04-02 Dodji Seketeli <dodji@redhat.com>
3911 * c-decl.c (clone_underlying_type): Move this ...
3912 * c-common.c (set_underlying_type): ... here.
3913 Also, make sure the function properly sets TYPE_STUB_DECL() on
3914 the newly created typedef variant type.
3915 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
3916 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
3919 2009-04-02 Richard Guenther <rguenther@suse.de>
3921 PR tree-optimization/37221
3922 * tree-flow.h (degenerate_phi_result): Declare.
3923 * tree-ssa-dom.c (degenerate_phi_result): Export.
3924 * tree-scalar-evolution.c (analyze_initial_condition): If
3925 the initial condition is defined by a degenerate PHI node
3926 use the degenerate value.
3928 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
3930 PR rtl-optimization/39588
3931 * combine.c (merge_outer_ops): Do not set the constant when this
3933 (simplify_shift_const_1): Do not modify it either in this case.
3935 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
3937 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
3938 tuning is deprecated if -mtune value is set to an Itanium1 variant.
3940 2009-04-01 Janis Johnson <janis187@us.ibm.com>
3943 * c-lex.c (interpret_float): Default (no suffix) is double.
3945 2009-04-1 Xinliang David Li <davidxl@google.com>
3947 * config/i386/i386.c (legitimate_constant_p): Recognize
3948 all one vector constant.
3950 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3952 * gcc/config/vax/vax.c: Add #includes to silence warnings.
3953 Change #include order to silence two warnings.
3955 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3957 * gcc/config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
3958 (ASM_SPEC): Pass -k to the assembler for PIC code.
3960 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3962 * gcc/config.gcc: Add vax-*-linux* to the switch.
3963 * gcc/config/vax/linux.h: New file. (TARGET_VERSION,
3964 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
3966 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3968 * gcc/config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
3969 Use predicate macros instead of GET_CODE() == foo.
3970 * gcc/config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
3971 ashlsi3, rotrsi3, <unnamed>): Likewise.
3973 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3975 * gcc/config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
3976 jbbccihi, jbbccisi): Remova trailing whitespace.
3977 * gcc/config/vax/constraints.md: Likewise.
3978 * gcc/config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
3979 * gcc/config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
3980 * gcc/config/vax/predicates.md: Likewise.
3981 * gcc/config/vax/vax.c (print_operand_address, vax_output_int_move,
3982 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
3983 * gcc/config/vax/vax.h: Likewise.
3984 * gcc/config/vax/vax.md (nonlocal_goto): Likewise.
3986 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3988 * gcc/config/vax/vax.c (vax_float_literal, vax_output_int_move)
3989 (indirectable_address_p, adjacent_operands_p): Add spaces around
3991 * gcc/config/vax/vax-protos.h (adjacent_operands_p): Likewise.
3993 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3995 * gcc/config/vax/vax.c (legitimate_constant_address_p,
3996 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
3997 index_term_p, reg_plus_index_p, legitimate_address_p,
3998 vax_mode_dependent_address_p): Update comments to match functions
3999 modified by the recent int->bool conversion.
4001 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
4003 * gcc/config/vax/builtins.md: Update copyright message.
4004 * gcc/config/vax/constraints.md: Likewise.
4005 * gcc/config/vax/netbsd-elf.h: Likewise.
4006 * gcc/config/vax/predicates.md: Likewise.
4007 * gcc/config/vax/vax-protos.h: Likewise.
4008 * gcc/config/vax/vax.c: Likewise.
4009 * gcc/config/vax/vax.h: Likewise.
4010 * gcc/config/vax/vax.md: Likewise.
4011 * gcc/config/vax/vax.opt: Likewise.
4013 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
4015 * gcc/config/vax/builtins.md (ffssi2, ffssi2_internal,
4016 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
4017 * gcc/config/vax/constraints.md (B, R): Likewise.
4018 * gcc/config/vax/predicates.md (external_memory_operand,
4019 nonimmediate_addsub_di_operand): Likewise.
4020 * gcc/config/vax/vax.c (vax_output_int_add): Likewise.
4021 * gcc/config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
4022 untyped_call): Likewise.
4024 2009-04-01 Matt Thomas <matt@3am-software.com>
4026 * config/vax/predicates.md: New file.
4027 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
4028 external_const_operand, nonsymbolic_operand, external_memory_operand,
4029 indirect_memory_operand, indexed_memory_operand,
4030 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
4031 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
4033 * config/vax/constraints.md: New file.
4034 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
4036 * config/vax/builtins.md: New file.
4037 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
4038 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
4040 * config/vax/vax.opt (mqmath): Add option.
4041 * config/vax/vax.md (isfx): Extend with DI.
4042 (VAXintQH, VAXintQHSD): Define.
4043 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
4044 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
4045 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
4046 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
4047 (movdi): Update constraints and use vax_output_int_move().
4048 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
4049 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
4050 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
4051 nonlocal_goto): New.
4052 (mov<mode>): Extend accepted operand types.
4053 (subdi3_old): Rename from subdi3, change update constraints and use
4054 a new implementation.
4055 * gcc/config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
4056 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
4057 MOVE_RATIO, CLEAR_RATIO): Define.
4058 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
4059 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
4060 (PRINT_OPERAND): Redefine using a function instead of inlined code.
4061 * gcc/config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
4062 (split_quadword_operands): Make static and really allow variable
4064 (print_operand_address): Update for PIC generation.
4065 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
4066 indexable_address_p, fixup_mathdi_operand,
4067 vax_expand_addsub_di_operands, adjacent_operands_p): New.
4068 (vax_float_literal, legitimate_constant_p,
4069 indirectable_constant_address_p, index_term_p,
4070 reg_plus_index_p): Return bool instead of int.
4071 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
4073 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
4075 (vax_output_conditional_branch): Indent.
4076 (legitimate_constant_address_p, indirectable_constant_address_p,
4077 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
4078 vax_mode_dependent_address_p): Return bool instead of int, update for
4080 * config/vax/vax-protos.h (legitimate_constant_address_p,
4081 legitimate_constant_p, legitimate_address_p,
4082 vax_mode_dependent_address_p): Change declaration to bool.
4083 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
4084 vax_expand_addsub_di_operands, vax_output_int_subtract,
4085 vax_output_movmemsi): Declare.
4086 (split_quadword_operands, vax_float_literal): Delete declaration.
4087 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
4088 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
4089 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
4090 ASM_OUTPUT_DWARF_PCREL): Define.
4091 (ASM_SPEC): Change definition to allow PIC generation.
4093 2009-04-01 Steve Ellcey <sje@cup.hp.com>
4095 * doc/sourcebuild.texi: Update front-end requirements.
4097 2009-04-01 Jakub Jelinek <jakub@redhat.com>
4100 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
4101 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
4102 (booldi3_internal3): Use boolean_or_operator instead of
4105 2009-04-01 Joseph Myers <joseph@codesourcery.com>
4108 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
4109 declarator whose size is not an integer constant expression but
4110 folds to an integer constant, then treat it as a constant
4113 2009-04-01 Richard Guenther <rguenther@suse.de>
4115 * fold-const.c (fold_plusminus_mult_expr): Do not fold
4116 i * 4 + 2 to (i * 2 + 1) * 2.
4118 2009-04-01 Jakub Jelinek <jakub@redhat.com>
4121 * c-parser.c (c_parser_asm_statement): Skip until close paren and
4122 return if c_parser_asm_string_literal returned NULL.
4124 2009-04-01 Nick Clifton <nickc@redhat.com>
4126 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
4128 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
4129 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
4130 other typedefs to avoid conflicts with libgcc2.c. Define labels
4131 to gain 16-bit bit-manipulation functions from libgcc2.c and then
4133 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
4134 to gain 16-bit trapping arithmetic functions from libgcc2.c and
4137 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
4139 * varasm.c (default_function_rodata_section): Declare DOT as
4142 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
4143 Andrey Galkin <agalkin@hypercom.com>
4146 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
4147 Make object_name unique for each process.
4149 2009-04-01 Jakub Jelinek <jakub@redhat.com>
4152 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
4153 addressable variables in the parallel that could go out of scope while
4154 running queued tasks.
4156 2009-04-01 Anatoly Sokolov <aesok@post.ru>
4158 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
4159 (CASE_VALUES_THRESHOLD): Redefine.
4160 * config/avr/avr.c (avr_override_options): Remove initialization of
4161 avr_case_values_threshold variable.
4162 (avr_case_values_threshold): Remove variable. Add new function.
4163 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
4164 * config/avr/avr.opt (mno-tablejump): Remove option.
4165 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
4167 2009-04-01 DJ Delorie <dj@redhat.com>
4169 * varasm.c (default_function_rodata_section): Don't assume
4170 anything about where the first '.' in the section name is.
4172 2009-04-01 Alan Modra <amodra@bigpond.net.au>
4174 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
4175 rs6000_emit_stack_tie.
4177 2009-03-31 Ian Lance Taylor <iant@google.com>
4179 * tree-eh.c (tree_remove_unreachable_handlers): Compare
4180 gimple_code with GIMPLE_RESX, not RESX.
4182 2009-03-31 Joseph Myers <joseph@codesourcery.com>
4184 * c-common.c (c_get_ident): New.
4185 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
4187 2009-04-01 Ben Elliston <bje@au.ibm.com>
4189 * config/rs6000/sysv4.opt (msdata): Improve option description.
4191 2009-03-31 Steve Ellcey <sje@cup.hp.com>
4193 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
4194 (divdf3_internal_lat): Remove.
4195 (divxf3_internal_lat): Remove.
4196 (divxf3_internal_thr): Remove.
4197 (divxf): Use divxf3_internal.
4198 * config/ia64/div.md (divsf3_internal_lat): New.
4199 (divdf3_internal_lat): New.
4200 (divxf3_internal): New.
4202 2009-03-31 Joseph Myers <joseph@codesourcery.com>
4205 * Makefile.in (USE_GCC_STDINT): Define.
4206 (stmp-int-hdrs): Install stdint.h if applicable.
4207 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
4209 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
4210 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
4211 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
4212 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
4213 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
4214 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
4215 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
4216 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
4217 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
4218 (c_common_nodes_and_builtins): Initialize
4219 underlying_wchar_type_node. Do not initialize
4220 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
4221 nodes for new types.
4222 (c_stddef_cpp_builtins): Define macros for new types.
4223 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
4225 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
4226 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
4227 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
4228 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
4229 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
4230 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
4231 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
4232 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
4233 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
4234 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
4235 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
4236 int16_type_node, int32_type_node, int64_type_node,
4237 uint8_type_node, uint16_type_node, c_uint32_type_node,
4238 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
4239 int_least32_type_node, int_least64_type_node,
4240 uint_least8_type_node, uint_least16_type_node,
4241 uint_least32_type_node, uint_least64_type_node,
4242 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
4243 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
4244 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
4245 uintptr_type_node): Define.
4246 * c-cppbuiltin.c (builtin_define_constants,
4247 builtin_define_type_minmax): New.
4248 (builtin_define_stdint_macros): Define more macros.
4249 (c_cpp_builtins): Define more limit macros.
4251 (builtin_define_type_max): Define in terms of
4252 builtin_define_type_minmax. Remove is_long parameter. All
4254 * config.gcc (use_gcc_stdint): Define.
4255 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
4256 Add newlib-stdint.h for generic targets.
4257 * config/glibc-stdint.h, config/newlib-stdint.h,
4258 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
4259 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
4260 * config/score/score.h (UINTPTR_TYPE): Define.
4261 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
4262 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
4263 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
4264 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
4265 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
4266 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
4267 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
4268 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
4269 * config/spu/spu.h (STDINT_LONG32): Define.
4270 * configure.ac (use_gcc_stdint): Substitute.
4271 * configure: Regenerate.
4272 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
4273 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
4274 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
4275 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
4276 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
4277 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
4278 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
4279 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
4280 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
4281 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
4282 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
4283 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
4284 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
4285 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
4286 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
4287 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
4288 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
4289 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
4290 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
4291 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
4292 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
4293 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
4294 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
4295 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
4296 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
4297 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
4298 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
4299 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
4300 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
4302 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
4304 * loop-iv.c (suitable_set_for_replacement): Renamed from
4305 simplify_using_assignment; changed to return bool and to accept new
4306 args DEST and SRC. Return true iff we find a source/destination pair
4307 that can be used to make a replacement, and fill SRC and DEST if so.
4308 Remove arg ALTERED. Don't deal with altered regs here. All callers
4310 (simplify_using_initial_values): Deal with altered regs here and track
4311 more precisely the effect they have on the validity of our expression.
4313 * loop-iv.c (simplify_using_condition): A condition of the form
4314 (EQ REG CONST) can be used to simply make a substitution.
4315 (simplify_using_initial_values): Keep track of conditions we have seen
4316 and keep using them to simplify new expressions, while applying the
4317 same substitutions to them as to the expression.
4319 * simplify-rtx.c (simplify_relational_operation_1): Simplify
4320 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
4323 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
4324 changed. Use this when trying to improve the upper bound.
4325 Generate the comparison by using simplify_gen_relational.
4327 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
4329 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
4331 (simplify_using_assignment, simplify_using_initial_values): Call
4332 replace_in_expr to make replacements. Call replace_single_def_regs
4333 once on the initial version of the expression.
4335 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4338 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
4340 2009-03-31 Richard Guenther <rguenther@suse.de>
4343 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
4344 equality comparisons. Fold C - X CMP X if C % 2 == 1.
4346 2009-03-31 Richard Guenther <rguenther@suse.de>
4348 * tree.h (div_if_zero_remainder): Declare.
4349 * fold-const.c (div_if_zero_remainder): Export.
4350 * tree-ssa-forwprop.c
4351 (forward_propagate_addr_into_variable_array_index): Handle
4352 constant array index addition outside of the variable index.
4354 2009-03-31 Joseph Myers <joseph@codesourcery.com>
4357 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
4358 define_splits, floatunssi<mode>2): Require x87 conversions from
4359 DImode to be permitted.
4361 2009-03-31 Joseph Myers <joseph@codesourcery.com>
4363 PR preprocessor/15638
4364 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
4366 2009-03-31 Richard Guenther <rguenther@suse.de>
4370 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
4371 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
4372 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
4373 a separate statement.
4374 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
4375 (lookup_tmp_var): Likewise.
4376 (is_gimple_formal_tmp_or_call_rhs): Remove.
4377 (is_gimple_reg_or_call_rhs): Rename to ...
4378 (is_gimple_reg_rhs_or_call): ... this.
4379 (is_gimple_mem_or_call_rhs): Rename to ...
4380 (is_gimple_mem_rhs_or_call): ... this.
4381 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
4382 DECL_GIMPLE_REG_P only if is_formal is true.
4383 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
4384 for non-proper post-modify expression gimplification.
4385 (gimplify_self_mod_expr): For post-modify expressions gimplify
4386 the lvalue to a minimal lvalue.
4387 (rhs_predicate_for): Remove formal temp case.
4388 (gimplify_modify_expr_rhs): Likewise.
4389 (gimplify_addr_expr): Use is_gimple_reg.
4390 (gimplify_expr): Remove formal temp cases.
4391 (gimple_regimplify_operands): Likewise.
4392 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
4393 and FILTER_EXPR like constants.
4394 * gimple.c (walk_gimple_op): Fix val_only initialization, use
4396 (is_gimple_formal_tmp_rhs): Remove.
4397 (is_gimple_reg_rhs): Remove special casing.
4398 (is_gimple_mem_rhs): Fix.
4399 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
4400 (is_gimple_formal_tmp_var): Remove.
4401 (is_gimple_formal_tmp_reg): Likewise.
4402 (is_gimple_min_lval): Allow invariant component ref parts.
4403 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
4404 is_gimple_formal_tmp_reg): Remove declarations.
4405 * tree-cfg.c (verify_expr): Verify that variables with address
4406 taken do not have DECL_GIMPLE_REG_P set.
4407 * tree-mudflap.c (mf_build_check_statement_for): Use
4408 force_gimple_operand instead of gimplify_expr.
4410 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
4412 * modulo-sched.c (sms_schedule_by_order): Pass the actual
4413 schedulable rows to compute_split_row.
4415 2009-03-31 Ben Elliston <bje@au.ibm.com>
4418 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
4421 2009-03-31 Alan Modra <amodra@bigpond.net.au>
4423 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
4424 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
4425 * configure: Regenerate.
4426 * config.in: Regenerate.
4427 * config/rs6000/rs6000.opt (mtls-markers): Add.
4428 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
4429 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
4430 (tls_ld_aix, tls_ld_sysv): Likewise.
4431 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
4432 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
4434 2009-03-31 Alan Modra <amodra@bigpond.net.au>
4436 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
4438 2009-03-30 Jan Hubicka <jh@suse.cz>
4440 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
4442 (tree_remove_unreachable_handlers): Cleanup EH predecestor
4443 detection and label handling.
4445 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
4447 * ira-int.h (ira_allocno): Rename left_conflicts_num to
4448 left_conflicts_size.
4449 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
4450 ALLOCNO_LEFT_CONFLICTS_SIZE.
4452 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
4453 remove_allocno_from_bucket_and_push,
4454 allocno_spill_priority_compare, push_allocnos_to_stack,
4455 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
4456 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
4457 (setup_allocno_left_conflicts_num): Ditto. Rename to
4458 setup_allocno_left_conflicts_size.
4459 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
4460 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
4461 setup_allocno_left_conflicts_size instead of
4462 setup_allocno_left_conflicts_num.
4464 * ira-build.c (ira_create_allocno): Use
4465 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
4466 ALLOCNO_LEFT_CONFLICTS_NUM.
4468 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
4470 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
4471 instead of DF_LR_OUT.
4473 * ira-lives.c (process_bb_node_lives): Ditto.
4475 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
4476 instead of DF_LR_{OUT,IN}.
4478 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
4480 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
4482 2009-03-30 Jan Hubicka <jh@suse.cz>
4484 * except.c (label_to_region_map): Fix thinko.
4486 2009-03-30 Steve Ellcey <sje@cup.hp.com>
4489 * tree.h (tree_find_value): New declaration.
4490 * tree.c (tree_find_value): New function.
4491 * varasm.c (assemble_external): Avoid duplicate entries on lists.
4493 2009-03-30 Jakub Jelinek <jakub@redhat.com>
4496 * c-decl.c (struct c_binding): Add locus field.
4497 (bind): Add locus argument, set locus field from it.
4498 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
4499 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
4500 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
4501 implicitly_declare, undeclared_variable, lookup_label,
4502 declare_label, c_make_fname_decl, c_builtin_function,
4503 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
4506 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
4509 * config/i386/i386.c (classify_argument): Check total size of
4512 2009-03-30 Martin Jambor <mjambor@suse.cz>
4514 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
4515 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
4516 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
4519 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
4520 seen_variable_array_ref while also traversing a union.
4522 * tree-inline.c (optimize_inline_calls): Do not call
4523 cgraph_node_remove_callees.
4524 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
4525 (pass_remove_cgraph_callee_edges): New variable.
4526 * passes.c (init_optimization_passes): Add
4527 pass_remove_cgraph_callee_edges after early inlining and before all
4528 late intraprocedural passes.
4530 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
4532 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4534 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
4537 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4539 * combine.c (simplify_comparison): Use have_insn_for.
4540 * dojump.c (do_jump): Likewise.
4542 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4544 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
4545 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
4546 sparc_compare_op0 like sparc_compare_emitted used to be handled.
4547 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
4548 instead of sparc_compare_emitted.
4549 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
4550 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
4551 instead of sparc_compare_emitted.
4553 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4555 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
4556 enter/exit cfglayout mode.
4557 (pass_partition_block): Require it.
4558 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
4559 (combine_instructions): Track basic blocks instead of labels.
4560 (update_cfg_for_uncondjump): New.
4561 (try_combine): Use it. Update jumps after rescanning.
4562 (pass_combine): Require PROP_cfglayout.
4563 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
4565 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4567 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
4568 Provide/destroy PROP_cfglayout respectively.
4569 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
4570 * tree-pass.h (PROP_cfglayout): New.
4572 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4574 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
4575 fold_convert_const_fixed_from_fixed,
4576 fold_convert_const_fixed_from_int,
4577 fold_convert_const_fixed_from_real, fold_negate_const): Do not
4578 set TREE_CONSTANT_OVERFLOW.
4579 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
4580 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
4582 2009-03-30 Ira Rosen <irar@il.ibm.com>
4584 * tree-vect-loop-manip.c: New file.
4585 * tree-vectorizer.c: Update documentation and included files.
4586 (vect_loop_location): Make extern.
4587 (rename_use_op): Move to tree-vect-loop-manip.c
4588 (rename_variables_in_bb, rename_variables_in_loop,
4589 slpeel_update_phis_for_duplicate_loop,
4590 slpeel_update_phi_nodes_for_guard1,
4591 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
4592 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
4593 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
4594 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
4595 find_loop_location): Likewise.
4596 (new_stmt_vec_info): Move to tree-vect-stmts.c.
4597 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
4598 get_vectype_for_scalar_type, vect_is_simple_use,
4599 supportable_widening_operation, supportable_narrowing_operation):
4601 (bb_in_loop_p): Move to tree-vect-loop.c.
4602 (new_loop_vec_info, destroy_loop_vec_info,
4603 reduction_code_for_scalar_code, report_vect_op,
4604 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
4605 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
4606 (vect_supportable_dr_alignment): Likewise.
4607 * tree-vectorizer.h (tree-data-ref.h): Include.
4608 (vect_loop_location): Declare.
4609 Reorganize function declarations according to the new file structure.
4610 * tree-vect-loop.c: New file.
4611 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
4612 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
4613 * tree-vect-data-refs.c: New file.
4614 * tree-vect-patterns.c (timevar.h): Don't include.
4615 * tree-vect-stmts.c: New file.
4616 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
4617 tree-vect-slp.c, tree-vect-loop.c.
4618 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
4619 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
4620 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
4621 (tree-vect-analyze.o): Remove.
4622 (tree-vect-transform.o): Likewise.
4623 (tree-vect-data-refs.o): Add rule.
4624 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
4625 tree-vect-slp.o): Likewise.
4626 (tree-vect-patterns.o): Remove redundant dependencies.
4627 (tree-vectorizer.o): Likewise.
4628 * tree-vect-slp.c: New file.
4630 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4632 * optc-gen.awk: Warn if an option flag has multiple different
4635 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
4637 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
4638 -floop-block): Document dependences on PPL, CLooG and Graphite.
4640 2009-03-30 Joseph Myers <joseph@codesourcery.com>
4642 PR rtl-optimization/323
4643 * c-common.c (c_fully_fold, convert_and_check,
4644 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
4645 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
4646 * c-common.def (EXCESS_PRECISION_EXPR): New.
4647 * c-cppbuiltin.c (builtin_define_float_constants): Define
4648 constants with enough digits for long double.
4649 * c-lex.c (interpret_float): Interpret constant with excess
4650 precision where appropriate.
4651 * c-opts.c (c_common_post_options): Set
4652 flag_excess_precision_cmdline. Give an error for
4653 -fexcess-precision=standard for C++ for processors where the
4654 option is significant.
4655 * c-parser.c (c_parser_conditional_expression): Handle excess
4656 precision in condition.
4657 * c-typeck.c (convert_arguments): Handle arguments with excess
4659 (build_unary_op): Move excess precision outside operation.
4660 (build_conditional_expr): Likewise.
4661 (build_compound_expr): Likewise.
4662 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
4663 (build_modify_expr): Handle excess precision in RHS.
4664 (convert_for_assignment): Handle excess precision in converted
4666 (digest_init, output_init_element, process_init_element): Handle
4667 excess precision in initializer.
4668 (c_finish_return): Handle excess precision in return value.
4669 (build_binary_op): Handle excess precision in operands and add
4670 excess precision as needed for operation.
4671 * common.opt (-fexcess-precision=): New option.
4672 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
4673 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
4674 For standard excess precision, output explicit conversion to and
4675 truncation from XFmode.
4676 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
4677 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
4678 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
4679 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
4680 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
4681 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
4682 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
4683 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
4684 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
4685 define_splits, sqrt<mode>2): Disable where appropriate for
4686 standard excess precision.
4687 * convert.c (convert_to_real): Do not shorten arithmetic to type
4688 for which excess precision would be used.
4689 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
4690 * doc/invoke.texi (-fexcess-precision=): Document option.
4691 (-mfpmath=): Correct index entry.
4692 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
4693 flag_excess_precision): New.
4694 * langhooks.c (lhd_post_options): Set
4695 flag_excess_precision_cmdline.
4696 * opts.c (common_handle_option): Handle -fexcess-precision=.
4697 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
4698 init_excess_precision): New.
4699 (lang_dependent_init_target): Call init_excess_precision.
4700 * tree.c (excess_precision_type): New.
4701 * tree.h (excess_precision_type): Declare.
4703 2009-03-30 Joseph Myers <joseph@codesourcery.com>
4706 * c-typeck.c (build_component_ref): Do not copy qualifiers from
4707 non-lvalue to component.
4709 2009-03-29 Joseph Myers <joseph@codesourcery.com>
4711 PR preprocessor/34695
4712 * Makefile.in (c-opts.o): Depend on c-tree.h.
4713 * c-common.c: Move down include of diagnostic.h.
4714 (done_lexing, c_cpp_error): New.
4715 * c-common.h (done_lexing): Declare.
4716 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
4718 * c-opts.c: Include c-tree.h.
4719 (c_common_init_options): Set preprocessor error callback.
4720 (c_common_handle_option): Do not set preprocessor
4721 inhibit_warnings, warnings_are_errors, warn_system_headers,
4722 pedantic_errors or inhibit_warnings flags.
4723 (c_common_post_options): Do not check cpp_errors (parse_in).
4724 (c_common_finish): Do not output dependencies if there were
4725 errors. Do not check return value of cpp_finish.
4726 * c-ppoutput.c (pp_file_change): Set input_location.
4727 * c-tree.h (c_cpp_error): Declare.
4728 * diagnostic.c (diagnostic_set_info_translated): Also initialize
4730 (diagnostic_build_prefix): Check override_column.
4731 * diagnostic.h (diagnostic_info): Add override_column field.
4732 (diagnostic_override_column): Define.
4734 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
4736 * c-common.c (c_expand_expr, c_staticp): Remove.
4737 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
4738 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
4739 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
4740 * c-gimplify.c (gimplify_compound_literal_expr,
4741 optimize_compound_literals_in_ctor): Remove.
4742 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
4743 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
4744 * c-semantics.c (emit_local_var): Remove.
4746 * langhooks-def.h (lhd_expand_expr): Remove.
4747 * langhooks.c (lhd_expand_expr): Remove.
4748 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
4750 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
4751 handling from c-semantics.c; don't call into langhook.
4752 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
4753 * gimplify.c (gimplify_compound_literal_expr,
4754 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
4755 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
4756 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
4757 as was done in c-gimplify.c.
4758 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
4759 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
4760 Move from c-common.h.
4761 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
4763 * tree.c (staticp): Do not call langhook.
4764 * langhooks.c (lhd_staticp): Delete.
4765 * langhooks-def.h (lhd_staticp): Delete prototype.
4766 (LANG_HOOKS_STATICP): Delete.
4767 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
4769 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
4770 instead of DECL_STMTs.
4772 2009-03-29 Joseph Myers <joseph@codesourcery.com>
4780 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
4782 (fold_call_expr): Return a NOP_EXPR from folding rather than the
4783 contained expression.
4784 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
4785 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
4786 conditional expressions for C.
4787 (decl_constant_value_for_optimization): Move from
4788 decl_constant_value_for_broken_optimization in c-typeck.c. Check
4789 whether optimizing and that the expression is a VAR_DECL not of
4790 array type instead of doing such checks in the caller. Do not
4791 check pedantic. Call gcc_unreachable for C++.
4792 * c-common.def (C_MAYBE_CONST_EXPR): New.
4793 * c-common.h (c_fully_fold, c_save_expr,
4794 decl_constant_value_for_optimization): New prototypes.
4795 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
4796 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
4797 EXPR_INT_CONST_OPERANDS): Define.
4798 * c-convert.c (convert): Strip nops from expression.
4799 * c-decl.c (groktypename): Take extra parameters expr and
4800 expr_const_operands. Update call to grokdeclarator.
4801 (start_decl): Update call to grokdeclarator. Add statement for
4802 expressions used in type of decl.
4803 (grokparm): Update call to grokdeclarator.
4804 (push_parm_decl): Update call to grokdeclarator.
4805 (build_compound_literal): Add parameter non_const and build a
4806 C_MAYBE_COSNT_EXPR if applicable.
4807 (grokdeclarator): Take extra parameters expr and
4808 expr_const_operands. Track expressions used in declaration
4809 specifiers and declarators. Fold array sizes and track whether
4810 they are constant expressions and whether they are integer
4811 constant expressions.
4812 (parser_xref_tag): Set expr and expr_const_operands fields in
4814 (grokfield): Update call to grokdeclarator.
4815 (start_function): Update call to grokdeclarator.
4816 (build_null_declspecs): Set expr and expr_const_operands fields in
4818 (declspecs_add_type): Handle expressions in typeof specifiers.
4819 * c-parser.c (c_parser_declspecs): Set expr and
4820 expr_const_operands fields for declaration specifiers.
4821 (c_parser_enum_specifier): Likewise.
4822 (c_parser_struct_or_union_specifier): Likewise.
4823 (c_parser_typeof_specifier): Likewise. Update call to
4824 groktypename. Fold expression as needed. Return expressions with
4825 type instead of adding statements.
4826 (c_parser_attributes): Update calls to c_parser_expr_list.
4827 (c_parser_statement_after_labels): Fold expression before passing
4828 to objc_build_throw_stmt.
4829 (c_parser_condition): Fold expression.
4830 (c_parser_asm_operands): Fold expression.
4831 (c_parser_conditional_expression): Use c_save_expr. Update call
4832 to build_conditional_expr.
4833 (c_parser_alignof_expression): Update call to groktypename.
4834 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
4835 original_code. Fold expression argument of va_arg. Create
4836 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
4837 argument to va_arg. Update calls to groktypename. Fold array
4838 index for offsetof. Verify that first argument to
4839 __builtin_choose_expr has integer type.
4840 (c_parser_postfix_expression_after_paren_type): Update calls to
4841 groktypename and build_compound_literal. Handle expressions with
4842 side effects in type name.
4843 (c_parser_postfix_expression_after_primary): Update call to
4844 c_parser_expr_list. Set original_code for calls to
4845 __builtin_constant_p.
4846 (c_parser_expr_list): Take extra parameter fold_p. Fold
4847 expressions if requested.
4848 (c_parser_objc_type_name): Update call to groktypename.
4849 (c_parser_objc_synchronized_statement): Fold expression.
4850 (c_parser_objc_receiver): Fold expression.
4851 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
4852 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
4853 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
4854 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
4855 (struct c_typespec): Add elements expr and expr_const_operands.
4856 (struct c_declspecs): Add elements expr and expr_const_operands.
4857 (groktypename, build_conditional_expr, build_compound_literal):
4859 (in_late_binary_op): Declare.
4860 * c-typeck.c (note_integer_operands): New function.
4861 (in_late_binary_op): New variable.
4862 (decl_constant_value_for_broken_optimization): Move to c-common.c
4863 and rename to decl_constant_value_for_optimization.
4864 (default_function_array_conversion): Do not strip nops.
4865 (default_conversion): Do not call
4866 decl_constant_value_for_broken_optimization.
4867 (build_array_ref): Do not fold result.
4868 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
4869 result when operand is a VLA.
4870 (c_expr_sizeof_type): Update call to groktypename. Handle
4871 expressions included in type name. Use C_MAYBE_CONST_EXPR for
4872 result when operand names a VLA type.
4873 (build_function_call): Update call to build_compound_literal.
4874 Only fold result for calls to __builtin_* functions. Strip
4875 NOP_EXPR from INTEGER_CST returned from such functions. Fold
4876 the function designator.
4877 (convert_arguments): Fold arguments. Update call to
4878 convert_for_assignment.
4879 (build_unary_op): Handle increment and decrement of
4880 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
4881 decrement earlier. Fold operand of increment and decrement.
4882 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
4883 built for integer operand. Wrap returns that are INTEGER_CSTs
4884 without being integer constant expressions or that have integer
4885 constant operands without being INTEGER_CSTs.
4886 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
4887 (build_conditional_expr): Add operand ifexp_bcp. Track whether
4888 result is an integer constant expression or can be used in
4889 unevaluated parts of one and avoid folding and wrap as
4890 appropriate. Fold operands before possibly doing -Wsign-compare
4892 (build_compound_expr): Wrap result for C99 if operands can be used
4893 in integer constant expressions.
4894 (build_c_cast): Update call to digest_init. Do not ignore
4895 overflow from casting floating-point constants to integers. Wrap
4896 results that could be confused with integer constant expressions,
4897 null pointer constants or floating-point constants.
4898 (c_cast_expr): Update call to groktypename. Handle expressions
4899 included in type name.
4900 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
4901 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
4902 Update calls to convert_for_assignment.
4903 (convert_for_assignment): Take new parameter
4904 null_pointer_constant. Do not strip nops or call
4905 decl_constant_value_for_broken_optimization. Set
4906 in_late_binary_op for conversions to boolean.
4907 (store_init_value): Update call to digest_init.
4908 (digest_init): Take new parameter null_pointer_constant. Do not
4909 call decl_constant_value_for_broken_optimization. pedwarn for
4910 initializers not constant expressions. Update calls to
4911 convert_for_assignment.
4912 (constructor_nonconst): New.
4913 (struct constructor_stack): Add nonconst element.
4914 (really_start_incremental_init, push_init_level, pop_init_level):
4915 Handle constructor_nonconst and nonconst element.
4916 (set_init_index): Call constant_expression_warning for array
4918 (output_init_element): Fold value. Set constructor_nonconst as
4919 applicable. pedwarn for initializers not constant expressions.
4920 Update call to digest_init. Call constant_expression_warning
4921 where constant initializers are required.
4922 (process_init_element): Use c_save_expr.
4923 (c_finish_goto_ptr): Fold expression.
4924 (c_finish_return): Fold return value. Update call to
4925 convert_for_assignment.
4926 (c_start_case): Fold switch expression.
4927 (c_process_expr_stmt): Fold expression.
4928 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
4929 ensure statement expression is not evaluated in constant expression.
4930 (build_binary_op): Track whether results are integer constant
4931 expressions or may occur in such, disable folding and wrap results
4932 as applicable. Fold operands for -Wsign-compare warnings unless
4934 (c_objc_common_truthvalue_conversion): Handle results folded to
4935 integer constants that are not integer constant expressions.
4936 * doc/extend.texi: Document when typeof operands are evaluated,
4937 that condition of __builtin_choose_expr is an integer constant
4938 expression, and more about use of __builtin_constant_p in
4941 2009-03-29 Richard Guenther <rguenther@suse.de>
4943 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
4944 propagate addresses of array references.
4946 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
4948 * regmove.c (perhaps_ends_bb_p): Remove.
4949 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
4950 from INSN and check that the main loop stays within that basic block.
4951 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
4952 (regmove_forward_pass): Split out from regmove_optimize. Use
4953 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
4954 (regmove_backward_pass): Split out from regmove_optimize. Use
4955 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
4956 (regmove_optimize): Simplify.
4958 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
4961 * config/i386/i386.c (classify_argument): Ignore flexible array
4962 member in struct and warn ABI change.
4964 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
4966 * config/i386/i386-protos.h (ix86_agi_dependent): New.
4968 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
4969 (ix86_adjust_cost): Updated.
4971 2009-03-29 Jan Hubicka <jh@suse.cz>
4974 * tree-pass.h (pass_cleanup_eh): New function.
4975 (remove_unreachable_regions): Break code handling RTL
4976 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
4977 that can not be reached by runtime.
4978 (can_be_reached_by_runtime): New function.
4979 (label_to_region_map): New function.
4980 (num_eh_regions): New function.
4981 (rtl_remove_unreachable_regions): New function.
4982 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
4983 (remove_eh_region): New function.
4984 * except.h: Include sbitmap and vecprim.
4985 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
4986 num_eh_regions): Declare.
4987 * passes.c (init_optimization_passes): Schedule cleanup_eh.
4988 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
4989 * tree-eh.c (tree_remove_unreachable_handlers): New function.
4990 (tree_empty_eh_handler_p): New function.
4991 (cleanup_empty_eh): New function.
4992 (cleanup_eh): New function.
4993 (pass_cleanup_eh): New function.
4995 2009-03-29 Jan Hubicka <jh@suse.cz>
4997 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
4998 for removed regions.
5000 2009-03-29 Jan Hubicka <jh@suse.cz>
5002 * except.c (dump_eh_tree): Dump all datastructures.
5004 2009-03-29 Jan Hubicka <jh@suse.cz>
5006 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
5007 (duplicate_eh_regions_1): Likewise.
5008 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
5009 vector; call EH verification.
5010 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
5011 Be ready for region being removed.
5013 2009-03-29 Jan Hubicka <jh@suse.cz>
5015 * bitmap.c (bitmap_last_set_bit): New function.
5016 * bitmap.h (bitmap_last_set_bit): Declare.
5018 2009-03-29 David Ayers <ayers@fsfe.org>
5021 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
5022 by calling objc_compare_types and surpress warnings about
5023 incompatible C pointers that are compatible ObjC pointers.
5025 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
5027 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
5028 call initialize_inline_failed.
5029 (initialize_inline_failed): Move it from here ...
5030 * cgraph.c (initialize_inline_failed): ... to here.
5031 (cgraph_create_edge): Call initialize_inline_failed rather than
5032 setting inline_failed directly.
5034 2009-03-29 Ben Elliston <bje@au.ibm.com>
5037 * sysv4.opt (msdata): Improve comment.
5038 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
5039 * sysv4.h (SVR4_ASM_SPEC): Likewise.
5041 2009-03-29 Ben Elliston <bje@au.ibm.com>
5044 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
5045 load and store attributes.
5047 2009-03-29 Ben Elliston <bje@au.ibm.com>
5049 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
5050 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
5051 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
5052 * doc/extend.texi (X86 Built-in Functions): Add index entries for
5053 __builtin_infq and __builtin_huge_valq.
5055 2009-03-28 Anatoly Sokolov <aesok@post.ru>
5057 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
5059 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
5060 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
5062 2009-03-28 Xinliang David Li <davidxl@google.com>
5064 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
5065 (do_dbg_cnt): New function.
5067 2009-03-28 Jan Hubicka <jh@suse.cz>
5069 Merge from pretty-ipa:
5071 2009-03-27 Jan Hubicka <jh@suse.cz>
5073 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
5074 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
5075 * passes.c (function_called_by_processed_nodes_p): New.
5076 * ipa-pure-const.c (check_call): Fix handling of operands.
5077 (analyze_function): Dump debug output for skipped bodies.
5078 (local_pure_const): Use function_called_by_processed_nodes_p.
5079 * dwarf2out.c (reference_to_unused): Use output.
5080 * passes.c (do_per_function_toporder): Likewise.
5082 2008-11-12 Jan Hubicka <jh@suse.cz>
5084 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
5085 * ipa-pure-const.c (funct_state_d): Add can throw field; make
5086 state_set_in_source enum
5087 (check_decl): Ignore memory tags; do not set fake looping flags;
5089 (check_operand, check_tree, check_rhs_var, check_lhs_var,
5090 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
5091 (check_call, analyze_function): Rewrite.
5093 (add_new_function): Update call of analyze_function.
5094 (generate_summary): Add call of analyze_function.
5095 (propagate): Propagate can_throw; handle state_set_in_source correctly.
5096 (local_pure_const): New function.
5097 (pass_local_pure_const): New pass.
5098 * ipa-inline.c (inline_transform): Set after_inlining.
5099 * tree-eh.c (stmt_can_throw_external): New.
5100 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
5101 work with aliasing built.
5102 * tree-flow.h (stmt_can_throw_external): New.
5103 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
5104 and local pure/const pass in early and late optimization queue.
5106 2009-03-28 Martin Jambor <mjambor@suse.cz>
5108 * fold-const.c (get_pointer_modulus_and_residue): New parameter
5110 (fold_binary): Allow function decl aligment consideration is the
5111 second argument is integer constant one.
5112 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
5113 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
5114 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
5116 2009-03-28 Jan Hubicka <jh@suse.cz>
5118 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
5119 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
5120 * function.h (rtl_data): Add nothrow flag.
5121 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
5122 set DECL_NOTHROW for AVAILABLE functions.
5124 2009-03-28 Jakub Jelinek <jakub@redhat.com>
5126 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
5127 following vector keyword has expansion starting with pixel or bool
5128 keyword, expand vector to __vector and pixel or bool to __pixel or
5132 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
5133 warn_if_disallowed_function_p): Removed.
5134 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
5135 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
5136 warning_if_disallowed_function_p.
5137 * flags.h (warn_if_disallowed_function_p,
5138 warn_disallowed_functions): Removed.
5139 * common.opt (Wdisallowed-function-list=): Removed.
5140 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
5142 2009-03-28 Richard Guenther <rguenther@suse.de>
5144 PR tree-optimization/38723
5145 * tree-ssa-pre.c (compute_avail): Add all default definitions to
5148 2009-03-28 Jan Hubicka <jh@suse.cz>
5150 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
5151 test introduced by my previous patch.
5153 2009-03-28 Richard Guenther <rguenther@suse.de>
5155 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
5156 the PHIs value undefined.
5158 2009-03-28 Jan Hubicka <jh@suse.cz>
5160 * tree-pass.h (pass_fixup_cfg): New pass.
5161 * ipa-inline.c (inline_transform): Set
5162 always_inline_functions_inlined/after_inlining.
5163 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
5164 (pass_fixup_cfg): New pass.
5165 * passes.c (init_optimization_passes): Add fixup_cfg.
5167 2009-03-28 Richard Guenther <rguenther@suse.de>
5169 PR tree-optimization/38458
5170 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
5171 argument use the arguments copy-of value.
5173 2009-03-28 Richard Guenther <rguenther@suse.de>
5175 PR tree-optimization/38180
5176 * tree-ssa-ccp.c (get_default_value): Simplify.
5177 (likely_value): Likewise.
5178 (surely_varying_stmt_p): Properly handle VOP case.
5179 (ccp_initialize): Likewise.
5180 (ccp_fold): Handle propagating through *&.
5181 (fold_const_aggregate_ref): Also handle decls.
5183 2009-03-28 Jan Hubicka <jh@suse.cz>
5185 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
5186 * cgraph.h (cgraph_node): Likewise.
5187 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
5188 (cgraph_reset_node): Use process flag.
5189 (cgraph_mark_functions_to_output): Likewise.
5190 (cgraph_expand_function): Likewise.
5191 (cgraph_expand_all_functions): Likewise.
5192 (cgraph_output_in_order): Likewise.
5193 * dwarf2out.c (reference_to_unused): Likewise.
5194 * passes.c do_per_function_toporder): Likewise.
5196 2009-03-28 Jan Hubicka <jh@suse.cz>
5198 Bring from lto-branch:
5200 2008-09-03 Doug Kwan <dougkwan@google.com>
5202 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
5203 enums instead of reason strings.
5204 * cgraph.c (cgraph_create_edge): Same.
5205 (cgraph_inline_failed_string): New function.
5206 * cgraph.h (cgraph_inline_failed_t): New enum type.
5207 (cgraph_inline_failed_string): New prototype.
5208 (struct cgraph_edge): Change type of INLINED_FAILED from constant
5209 char pointer to cgraph_inline_failed_t.
5210 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
5211 (cgraph_default_inline_p): Ditto.
5212 * gcc/cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
5213 to cgraph_inline_failed_t pointer.
5214 * cif-code.def: New file.
5215 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
5217 (cgraph_check_inline_limits): Change type of REASON to pointer to
5218 cgraph_inline_failed_t. Replace reason strings with enums.
5219 (cgraph_default_inline_p): Ditto.
5220 (cgraph_recursive_inlining_p): Ditto.
5221 (update_caller_keys): Change type of FAILED_REASON to
5222 cgraph_inline_failed_t.
5223 (cgraph_set_inline_failed): Change type of REASON to pointer to
5224 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
5225 convert enums to strings for text output.
5226 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
5227 to be of type cgraph_inline_failed_t. Replace reason strings with
5228 enums. Call cgraph_inline_failed_string to covert enums
5229 to strings for text output.
5230 (cgraph_decide_inlining): Replace reason strings with enums.
5231 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
5232 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
5234 * tree-inline.c (expand_call_inline): Change type of REASON
5235 to cgraph_inline_failed_t. Replace reason strings with enums.
5236 Call cgraph_inline_failed_string for text output.
5237 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
5240 2009-03-28 Jan Hubicka <jh@suse.cz>
5242 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
5243 cgraph_clone_node): Remove master clone handling.
5244 (cgraph_is_master_clone, cgraph_master_clone): Remove.
5245 * cgraph.h (master_clone): Remove.
5246 (cgraph_is_master_clone, cgraph_master_clone): Remove.
5247 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
5248 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
5250 2009-03-28 Jan Hubicka <jh@suse.cz>
5252 * cgraph.c (cgraph_function_body_availability): Functions declared
5253 inline are always safe to assume that it is not going to be replaced.
5255 2009-03-28 Richard Guenther <rguenther@suse.de>
5257 PR tree-optimization/38513
5258 * tree-ssa-pre.c (eliminate): Remove redundant stores.
5259 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5260 EXC_PTR_EXPR and FILTER_EXPR.
5261 (get_ref_from_reference_ops): Likewise.
5263 2009-03-28 Richard Guenther <rguenther@suse.de>
5265 PR tree-optimization/38968
5266 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
5267 Use FLOOR_MOD_EXPR to compute misalignment.
5269 2009-03-28 Richard Guenther <rguenther@suse.de>
5271 PR tree-optimization/37795
5272 * tree.h (combine_comparisons): Declare.
5273 * fold-const.c (combine_comparisons): Export.
5274 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
5276 (ifcombine_iforif): Use combine_comparisons.
5278 2009-03-28 Jan Hubicka <jh@suse.cz>
5280 * tree-eh.c (inlinable_call_p): New function.
5281 (make_eh_edges): Use it.
5282 (verify_eh_edges): Use it.
5283 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
5284 * except.c (reachable_next_level): Add inlinable_function argument
5285 (sjlj_find_directly_reachable_regions): Update.
5286 (add_reachable_handler): Do not set saw_any_handlers.
5287 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
5288 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
5289 Add new inlinable call parameter.
5290 (can_throw_internal, can_throw_external): Update.
5291 * except.h (can_throw_internal_1, can_throw_external_1,
5292 foreach_reachable_handler): Update declaration.
5294 2009-03-28 Joseph Myers <joseph@codesourcery.com>
5296 * config/arm/t-arm-coff, config/h8300/coff.h,
5297 config/i386/i386-aout.h, config/i386/i386-coff.h,
5298 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
5299 config/pdp11/2bsd.h, config/rs6000/aix41.h,
5300 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
5301 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
5302 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
5303 sys-types.h: Remove.
5304 * Makefile.in: Remove protoize and fixproto support and references
5306 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
5307 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
5309 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
5310 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
5311 unprotoize$(exeext).
5312 (rest.encap): Don't depend on $(STMP_FIXPROTO)
5313 (.PHONY): Don't depend on proto.
5314 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
5315 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
5316 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
5317 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
5318 build/gen-protos.o, build/scan.o, xsys-protos.h,
5319 build/fix-header$(build_exeext), build/fix-header.o,
5320 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
5321 stmp-install-fixproto): Remove.
5322 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
5323 SYSCALLS.c or fixproto files.
5324 (install-common): Don't install protoize.
5325 (install-headers-tar, install-headers-cpio, install-headers-cp):
5326 Don't depend on $(STMP_FIXPROTO).
5327 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
5328 install fixproto files or write out fixproto settings.
5329 (uninstall): Don't uninstall protoize.
5330 * config.gcc (use_fixproto): Remove.
5331 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
5332 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
5333 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
5334 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
5335 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
5336 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
5337 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
5338 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
5339 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
5340 * config/t-vxworks (STMP_FIXPROTO): Remove.
5341 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
5342 STMP_FIXPROTO): Remove.
5343 * config.in, configure: Regenerate.
5344 * crtstuff.c (gid_t, uid_t): Don't undefine.
5345 * doc/install.texi: Change m68k-coff to m68k-elf in example.
5346 (arm-*-coff, arm-*-aout: Remove target entries.
5347 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
5348 Remove mention of AIX 4.1.
5349 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
5350 * doc/invoke.texi (Running Protoize): Remove.
5351 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
5352 (Protoize Caveats): Remove.
5353 * tsystem.h: Update comments on headers assumed to exist.
5355 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
5357 * genautomata.c: Add a new year to the copyright. Add a new
5359 (struct insn_reserv_decl): Add comments for member bypass_list.
5360 (find_bypass): Remove.
5361 (insert_bypass): New.
5362 (process_decls): Use insert_bypass.
5363 (output_internal_insn_latency_func): Output all bypasses with the
5364 same input insn in one switch case.
5366 * rtl.def (define_bypass): Describe bypass choice.
5367 * doc/md.texi (define_bypass): Ditto.
5369 2009-03-27 Richard Guenther <rguenther@suse.de>
5371 * gimplify.c (mark_addressable): Export.
5372 * tree-flow.h (mark_addressable): Declare.
5373 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
5374 * tree-ssa.c (verify_phi_args): Verify that address taken
5375 variables have TREE_ADDRESSABLE set.
5377 2009-03-27 Richard Guenther <rguenther@suse.de>
5379 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
5380 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
5381 Do not mark decls TREE_ADDRESSABLE.
5382 (build_fold_addr_expr): Adjust.
5383 (fold_addr_expr): Remove.
5384 (fold_unary): Use build_fold_addr_expr.
5385 (fold_comparison): Likewise.
5386 (split_address_to_core_and_offset): Likewise.
5387 * coverage.c (tree_coverage_counter_addr): Mark the array decl
5389 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
5390 (gimplify_modify_expr_to_memcpy): Mark source and destination
5392 * omp-low.c (create_omp_child_function): Mark the object decl
5394 (lower_rec_input_clauses): Mark the var we take the address of
5396 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
5398 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5401 * cfgexpand.c (expand_one_stack_var_at): Change alignment
5402 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
5404 2009-03-27 Richard Guenther <rguenther@suse.de>
5406 PR tree-optimization/39120
5407 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
5409 (handle_lhs_call): Process return constraints. Add escape
5410 constraints if necessary.
5411 (handle_const_call): Fill out return constraints. Make nested
5412 case more precise. Avoid consttmp if possible.
5413 (handle_pure_call): Fill out return constraints. Avoid
5414 callused if possible.
5415 (find_func_aliases): Simplify call handling.
5417 2009-03-27 Richard Guenther <rguenther@suse.de>
5419 PR tree-optimization/39120
5420 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
5421 as a representative.
5422 (solve_graph): Do propagate CALLUSED.
5423 (handle_pure_call): Use a scalar constraint from CALLUSED for
5425 (find_what_p_points_to): CALLUSED shall not appear in poins-to
5428 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5431 * c-common.c (handle_aligned_attribute): Properly check alignment
5432 overflow. Use (1U << i) instead of (1 << i).
5434 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
5436 * expr.h (get_mem_align_offset): Updated.
5438 * tree.h (tree_decl_common): Change align to "unsigned int" and
5439 move it before pointer_alias_set.
5441 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5442 Jakub Jelinek <jakub@redhat.com>
5445 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
5446 gr_register_operand with gr_reg_or_0_operand.
5447 (cmpxchg_rel_di): Likewise.
5448 (sync_lock_test_and_set<mode>): Likewise.
5450 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5452 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
5453 (true_regnum): Likewise.
5455 * rtlanal.c (subreg_info): Moved to ...
5456 * rtl.h (subreg_info): Here. New.
5457 (subreg_get_info): New.
5459 * rtlanal.c (subreg_get_info): Make it extern.
5461 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5464 * config/i386/i386.c (ix86_abi): New.
5465 (override_options): Handle -mabi=.
5466 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
5467 (ix86_call_abi_override): Likewise.
5468 (init_cumulative_args): Likewise.
5469 (function_arg_advance): Likewise.
5470 (function_arg_64): Likewise.
5471 (function_arg): Likewise.
5472 (ix86_pass_by_reference): Likewise.
5473 (ix86_function_value_regno_p): Likewise.
5474 (ix86_build_builtin_va_list_abi): Likewise.
5475 (setup_incoming_varargs_64): Likewise.
5476 (is_va_list_char_pointer): Likewise.
5477 (ix86_init_machine_status): Likewise.
5478 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
5479 (ix86_function_type_abi): Return enum calling_abi. Rewrite
5480 for 64bit. Replace DEFAULT_ABI with ix86_abi.
5481 (ix86_function_abi): Make it static and return enum calling_abi.
5482 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
5484 (ix86_fn_abi_va_list): Updated.
5486 * config/i386/i386.h (ix86_abi): New.
5487 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
5488 (CONDITIONAL_REGISTER_USAGE): Likewise.
5489 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
5490 (machine_function): Likewise.
5492 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
5494 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
5495 (STACK_BOUNDARY): Likewise.
5496 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
5498 * config/i386/i386.opt (mabi=): New.
5500 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
5501 return enum calling_abi.
5502 (ix86_function_type_abi): Likewise.
5503 (ix86_function_abi): Removed.
5505 * doc/invoke.texi: Document -mabi= option for x86.
5507 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5509 * builtins.c (real_dconstp): Delete.
5510 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
5512 2009-03-27 Dodji Seketeli <dodji@redhat.com>
5513 Jakub Jelinek <jakub@redhat.com>
5516 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
5517 (gen_subprogram_die): When a function is explicit, generate the
5518 DW_AT_explicit attribute.
5519 * langhooks.h (struct lang_hooks_for_decls): Add
5520 function_decl_explicit_p langhook.
5521 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
5522 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
5524 2009-03-27 Jakub Jelinek <jakub@redhat.com>
5526 * builtins.c (fold_builtin_memory_op): Optimize memmove
5527 into memcpy if we can prove source and destination don't overlap.
5529 * tree-inline.c: Include gt-tree-inline.h.
5530 (clone_fn_id_num): New variable.
5531 (clone_function_name): New function.
5532 (tree_function_versioning): Use it.
5533 * Makefile.in (GTFILES): Add tree-inline.c.
5535 2009-03-27 Mark Mitchell <mark@codesourcery.com>
5537 * BASE-VER: Change to 4.5.0.
5539 2009-03-27 Xinliang David Li <davidxl@google.com>
5541 PR tree-optimization/39557
5542 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
5544 2009-03-27 Xinliang David Li <davidxl@google.com>
5546 PR tree-optimization/39548
5547 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
5550 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5552 * c-common.c (pointer_int_sum): Use %wd on return from
5555 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5557 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
5558 on return from tree_low_cst.
5560 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
5563 * ginclude/stdarg.h (va_copy): Define also for
5564 __GXX_EXPERIMENTAL_CXX0X__.
5566 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5569 * builtins.h (c_strlen): Do not warn here.
5570 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
5571 * c-common.c (pointer_int_sum): Take an explicit location.
5572 Warn about offsets out of bounds.
5573 * c-common.h (pointer_int_sum): Adjust declaration.
5575 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5577 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
5580 2009-03-26 Jakub Jelinek <jakub@redhat.com>
5583 * opts.c (warn_if_disallowed_function_p): Don't assume
5584 get_callee_fndecl must return non-NULL.
5586 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
5588 PR rtl-optimization/39522
5589 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
5590 when reg_reloaded_valid is set.
5592 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5594 * config/spu/divv2df3.c: New file.
5595 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
5596 (DPBIT_FUNCS): Filter out _div_df.
5598 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
5600 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
5601 a jump insn, count that jump in the distance to the loop start.
5603 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
5606 * config/sh/sh.c (calc_live_regs): Fix condition for global
5607 registers except PIC_OFFSET_TABLE_REGNUM.
5609 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
5612 * doc/invoke.texi (-mconsole): New.
5616 (-mnop-fun-dllimport): New.
5620 (sub section "i386 and x86-64 Windows Options"): New.
5622 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
5624 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
5625 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
5627 2009-03-25 Richard Guenther <rguenther@suse.de>
5630 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
5633 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
5635 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
5636 neither of haifa/selective schedulers are working.
5638 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5640 * doc/invoke.texi (Debugging Options): Fix description of
5641 -fno-merge-debug-strings.
5643 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
5645 * config/cris/libgcc.ver: New version-script.
5646 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
5648 * configure.ac <GAS features, nop mnemonic>: Add pattern
5649 crisv32-*-* for "nop".
5650 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
5651 * configure: Regenerate.
5653 2009-03-24 Ira Rosen <irar@il.ibm.com>
5655 PR tree-optimization/39529
5656 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
5657 mark_sym_for_renaming for the tag copied to the new vector
5660 2009-03-24 Arthur Loiret <aloiret@debian.org>
5662 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
5663 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
5664 EXTRA_SPEC_FUNCTIONS.
5665 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
5666 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
5667 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
5668 -march and -mtune options.
5670 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
5672 * config/m68k/t-rtems: Add m5329 multilib.
5674 2009-03-24 Dodji Seketeli <dodji@redhat.com>
5675 Jakub Jelinek <jakub@redhat.com>
5678 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
5681 2009-03-23 Jakub Jelinek <jakub@redhat.com>
5684 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
5685 instead of c_parser_expression_conv, if original_code isn't one of the
5686 4 allowed comparison codes, fail.
5688 2009-03-23 Richard Guenther <rguenther@suse.de>
5690 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
5691 * tree.h (struct tree_type): Likewise.
5692 * reload.h (struct insn_chain): Likewise.
5693 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
5694 * function.h (struct function): Likewise.
5695 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
5697 2009-03-23 Jakub Jelinek <jakub@redhat.com>
5699 PR tree-optimization/39516
5700 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
5702 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
5704 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
5705 should be set true if BITS_PER_WORD of target is bigger than 32
5707 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
5709 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
5710 Translate -B-options to -rpath-link. Correct existing
5711 rpath-link and conditionalize on !nostdlib.
5713 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5715 * doc/extend.texi (Function Attributes, Variable Attributes):
5717 * doc/invoke.texi (Debugging Options, Optimize Options)
5718 (i386 and x86-64 Options, MCore Options): Likewise.
5720 2009-03-20 Jakub Jelinek <jakub@redhat.com>
5723 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
5724 it for block local namespace aliases.
5725 (gen_decl_die): Pass context_die to gen_namespace_die.
5727 2009-03-19 Jakub Jelinek <jakub@redhat.com>
5730 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
5731 minimum or maximum value.
5733 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
5735 * reginfo.c (globalize_reg): Recompute derived reg sets.
5737 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
5740 * libgcc2.c (mprotect): Do not use signed arguments for
5741 VirtualProtect, use DWORD arguments. Also fix the 'may
5742 be used uninitialized' warning for the np variable.
5744 2009-03-19 Jakub Jelinek <jakub@redhat.com>
5747 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
5748 functions using regparm calling conventions when not optimizing.
5749 (ix86_function_sseregparm): Similarly for sseregparm calling
5752 2009-03-19 Li Feng <nemokingdom@gmail.com>
5755 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
5756 dependence if the first conflict is after niter iterations.
5758 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
5761 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
5762 functions with dynamic stack-pointer adjustments.
5764 2009-03-19 Ben Elliston <bje@au.ibm.com>
5766 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
5767 option; change to -msdata=data.
5769 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5771 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
5774 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
5777 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
5779 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
5781 * doc/invoke.texi (Code Gen Options): Expand discussion of
5784 2009-03-18 Jakub Jelinek <jakub@redhat.com>
5786 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
5787 * matrix-reorg.c (struct matrix_info): Likewise.
5788 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
5789 * rtl.h (struct mem_attrs): Likewise.
5790 * df.h (struct df): Likewise.
5791 * tree-data-ref.h (struct data_dependence_relation): Likewise.
5792 * ira-int.h (struct ira_allocno): Likewise.
5793 * df-scan.c (struct df_collection_rec): Likewise.
5794 * ira.c (struct equivalence): Likewise.
5795 * function.c (struct temp_slot): Likewise.
5796 * cfgloop.h (struct loop): Likewise.
5799 * function.c (use_register_for_decl): When not optimizing, disregard
5800 register keyword for variables with types containing methods.
5802 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
5805 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
5806 (is_simple_operand): Call contains_component_ref_p before calling data
5807 reference analysis that would fail on COMPONENT_REFs.
5809 * tree-vrp.c (search_for_addr_array): Fix formatting.
5811 2009-03-18 Richard Guenther <rguenther@suse.de>
5813 * tree-vect-transform.c (vect_loop_versioning): Fold the
5814 generated comparisons.
5815 * tree-vectorizer.c (set_prologue_iterations): Likewise.
5816 (slpeel_tree_peel_loop_to_edge): Likewise.
5818 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5821 * opts.c (print_specific_help): In addition to `undocumented',
5822 accept `separate' and `joined' flags if passed alone. Describe
5823 output by the first matched one of those.
5824 (common_handle_option): Skip over empty strings.
5825 * gcc.c (display_help): Fix help string for `--help='.
5826 * doc/invoke.texi (Option Summary, Overall Options): With
5827 `--help=', classes and qualifiers can both be repeated, but
5828 only the latter can be negated. One should not pass only
5829 negated qualifiers. Fix markup and examples.
5832 2008-10-14 Jakub Jelinek <jakub@redhat.com>
5834 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
5835 and -fhelp=separate.
5837 2009-03-17 Jing Yu <jingyu@google.com>
5840 * function.h (struct rtl_data): Move is_thunk from here...
5841 (struct function): ...to here.
5842 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
5843 * varasm.c (assemble_start_function): Change is_thunk from crtl to
5845 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
5847 (alpha_does_function_need_gp, alpha_start_function): Likewise.
5848 (alpha_output_function_end_prologue): Likewise.
5849 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
5850 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
5851 (rs6000_output_function_epilogue): Likewise.
5852 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
5854 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
5857 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
5858 from different units in a single alternative.
5859 (*truncdfsf_i387): Ditto.
5860 (*truncxfsf2_mixed): Ditto.
5861 (*truncxfdf2_mixed): Ditto.
5863 2009-03-17 Jakub Jelinek <jakub@redhat.com>
5865 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
5866 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
5869 * tree-ssa-live.c (remove_unused_locals): Don't remove local
5870 unused non-artificial variables when not optimizing.
5873 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
5874 DW_TAG_imported_module even if decl is IMPORTED_DECL with
5875 NAMESPACE_DECL in its DECL_INITIAL.
5878 * optabs.c (set_user_assembler_libfunc): New function.
5879 * expr.h (set_user_assembler_libfunc): New prototype.
5880 * c-common.c: Include libfuncs.h.
5881 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
5882 for memcmp, memset, memcpy, memmove and abort.
5883 * Makefile.in (c-common.o): Depend on libfuncs.h.
5886 * dwarf2out.c (gen_inlined_enumeration_type_die,
5887 gen_inlined_structure_type_die, gen_inlined_union_type_die,
5888 gen_tagged_type_instantiation_die): Removed.
5889 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
5892 2009-03-17 Janis Johnson <janis187@us.ibm.com>
5895 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
5897 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
5898 (check-parallel-%): Ditto.
5899 (check-consistency): Ditto.
5901 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
5903 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
5904 local variable rhs by NULL_TREE.
5906 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
5909 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
5911 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
5914 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
5916 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
5919 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
5920 for ms->sysv ABI calls only in 64bit mode.
5922 * config/i386/i386.md (untyped_call): Support 32bit.
5924 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
5926 * doc/extend.texi: Replace x86_65 with x86_64.
5928 2009-03-16 Jakub Jelinek <jakub@redhat.com>
5930 PR tree-optimization/39455
5931 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
5932 mismatches for POINTER_TYPE_P (type).
5933 (number_of_iterations_le): Likewise.
5935 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
5937 * config/picochip/picochip.c: Removed profiling support.
5938 * config/picochip/picochip.md: Removed profiling instruction.
5939 * config/picochip/picochip.h: Removed profiling builtin.
5941 2009-03-16 Joseph Myers <joseph@codesourcery.com>
5943 * doc/install.texi (--with-host-libstdcxx): Document.
5945 2009-03-14 Anatoly Sokolov <aesok@post.ru>
5948 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
5949 generate a warning if the function name does not begin with
5950 "__vector" and the function has either the 'signal' or 'interrupt'
5951 attribute, from here to ...
5952 (avr_declare_function_name): ...here. New function.
5953 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
5954 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
5956 2009-03-14 Jakub Jelinek <jakub@redhat.com>
5959 * cse.c (fold_rtx): Don't modify original const_arg1 when
5960 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
5961 separate variable instead.
5962 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
5963 from out of range shift counts.
5964 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
5966 2009-03-13 Catherine Moore <clm@codesourcery.com>
5968 * gcc/config/i386/x-mingw32 (host-mingw32.o): Replace
5969 diagnostic.h with $(DIAGNOSTIC_H).
5971 2009-03-12 Jakub Jelinek <jakub@redhat.com>
5974 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
5976 * config/i386/sync.md (sync_compare_and_swap<mode>,
5977 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
5978 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
5980 (sync_double_compare_and_swapdi_pic,
5981 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
5982 cmpxchg8b_pic_memory_operand instead of just memory_operand.
5984 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
5987 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
5989 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
5992 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
5993 (avx_addsubv4df3): Likewise.
5994 (*avx_addsubv4sf3): Likewise.
5995 (sse3_addsubv4sf3): Likewise.
5997 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
6000 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
6002 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
6005 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
6006 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
6007 registers for allocnos created from user-defined variables.
6009 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6012 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
6013 of non-integer mode as well.
6015 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
6017 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
6018 for functions for which the parameter types are unknown.
6020 2009-03-11 Jakub Jelinek <jakub@redhat.com>
6023 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
6024 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
6025 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
6026 * config/i386/i386.c (ix86_local_alignment): For
6027 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
6028 long long variables on the stack to avoid dynamic realignment.
6029 Allow the first argument to be a decl rather than type.
6030 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
6032 2009-03-11 Nick Clifton <nickc@redhat.com>
6035 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
6037 Add description to mno-lsim option.
6038 * config/mcore/mcore.h: Remove comment about deprecated m4align
6040 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
6041 * doc/invoke.texi: Add description of mno-lsim and
6042 mstack-increment options.
6044 * config/fr30/fr30.opt: Document the -mno-lsim option.
6045 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
6046 and -mno-lsim options.
6048 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6050 * fold-const.c (fold_comparison): Only call fold_inf_compare
6051 if the mode supports infinities.
6053 2009-03-11 Jason Merrill <jason@redhat.com>
6056 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
6057 end already did. Notice GIMPLE_CALL modifications of the result.
6058 Don't copy debug information from an ignored decl or a decl from
6061 2009-03-10 Richard Guenther <rguenther@suse.de>
6062 Nathan Froyd <froydnj@codesourcery.com>
6065 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
6066 (__divMODE3): Likewise.
6068 2009-03-09 Jakub Jelinek <jakub@redhat.com>
6070 PR tree-optimization/39394
6071 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
6072 DECL_SIZE_UNIT of variable length FIELD_DECLs.
6074 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6076 * recog.c (verfiy_changes): Disallow renaming of hard regs in
6077 inline asms for register asm ("") declarations.
6079 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
6081 * fold-const.c (fold_unary): Fix comment.
6083 2009-03-07 Jan Hubicka <jh@suse.cz>
6086 * tree-inline.c (setup_one_parameter): Do replacement of const
6087 argument by constant in SSA form.
6089 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6092 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
6093 determine alignment passed to assign_stack_local.
6094 (assign_parms_unsplit_complex): Likewise.
6095 * except.c (sjlj_build_landing_pads): Likewise.
6097 2009-03-06 Jakub Jelinek <jakub@redhat.com>
6100 * tree-flow.h (add_referenced_var): Return bool instead of void.
6101 * tree-dfa.c (add_referenced_var): Return result of
6102 referenced_var_check_and_insert call.
6103 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
6104 of referenced_var_check_and_insert.
6107 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
6108 (gen_variable_die): Emit DW_AT_location on abstract static variable's
6109 DIE, don't emit it if abstract origin already has it.
6110 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
6111 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
6113 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6115 * genpreds.c (needs_variable): Fix parentheses at variable name
6117 (write_tm_constrs_h): Indent generated code.
6119 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6121 * doc/extend.texi (Function Attributes): Add documentation
6124 2009-03-06 Jakub Jelinek <jakub@redhat.com>
6127 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
6128 take locus from its DECL_SOURCE_LOCATION instead of input_location.
6130 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
6132 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
6135 2009-03-05 Jakub Jelinek <jakub@redhat.com>
6138 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
6139 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
6141 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
6143 * config/i386/i386.md (R8_REG, R9_REG): New constants.
6144 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
6145 constants instead of magic numbers.
6146 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
6148 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
6149 (x86_64_ms_abi_int_parameter_registers): Ditto.
6150 (x86_64_int_return_registers): Ditto.
6151 (ix86_maybe_switch_abi): Ditto.
6152 (ix86_expand_call): Ditto for clobbered_registers array.
6153 (ix86_hard_regno_mode_ok): Ditto.
6154 (x86_extended_QIreg_mentioned_p): Ditto.
6156 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
6158 PR tree-optimization/39349
6159 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
6161 * combine.c (gen_lowpart_for_combine): Use omode when generating
6164 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
6166 PR rtl-optimization/39235
6167 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
6169 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
6171 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
6173 2009-03-04 Richard Guenther <rguenther@suse.de>
6175 PR tree-optimization/39362
6176 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
6177 that occur in abnormal PHIs should be varying.
6179 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
6181 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
6183 (simple_iv): Take loop as an argument instead of statement.
6184 * tree-scalar-evolution.h (simple_iv): Declaration changed.
6185 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
6187 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
6189 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
6190 * matrix-reorg.c (analyze_transpose): Ditto.
6191 * tree-data-ref.c (dr_analyze_innermost): Ditto.
6192 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
6193 * tree-predcom.c (ref_at_iteration): Ditto.
6194 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
6196 2009-03-04 Richard Guenther <rguenther@suse.de>
6198 PR tree-optimization/39358
6199 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
6200 escaped_id and callused_id.
6201 (solve_graph): Likewise.
6203 2009-03-04 Richard Guenther <rguenther@suse.de>
6205 PR tree-optimization/39339
6206 * tree-sra.c (try_instantiate_multiple_fields): Make it
6207 no longer ICE on the above.
6209 2009-03-03 Joseph Myers <joseph@codesourcery.com>
6211 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
6212 that fits within Pmode.
6214 2009-03-03 Steve Ellcey <sje@cup.hp.com>
6217 * tm.texi (LIBCALL_VALUE): Update description.
6219 2009-03-03 Steve Ellcey <sje@cup.hp.com>
6222 * doc/extend.texi (section): Update description.
6224 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
6227 * tree-inline.c (remapped_type): New.
6228 (can_be_nonlocal): Call remapped_type instead of remap_type.
6230 2009-03-03 Jakub Jelinek <jakub@redhat.com>
6233 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
6234 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
6236 2009-03-03 Richard Guenther <rguenther@suse.de>
6239 * tree.c (tree_nonartificial_location): New function.
6240 * tree.h (tree_nonartificial_location): Declare.
6241 * builtins.c (expand_builtin_memory_chk): Provide location
6242 of the call location for artificial function pieces.
6243 (maybe_emit_chk_warning): Likewise.
6244 (maybe_emit_sprintf_chk_warning): Likewise.
6245 (maybe_emit_free_warning): Likewise.
6246 * expr.c (expand_expr_real_1): Likewise.
6248 2009-03-03 Jakub Jelinek <jakub@redhat.com>
6250 PR tree-optimization/39343
6251 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
6252 COMPONENT_REF t has ARRAY_TYPE.
6254 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
6257 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
6258 when the type precision of the induction variable should be
6259 larger than the type precision of nit.
6260 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
6261 * graphite.c (graphite_loop_normal_form): Same.
6262 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
6264 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
6266 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
6267 (*call_1_rex64_ms_sysv): Use named constants instead of magic
6268 numbers to describe clobbered registers.
6269 (*call_value_0_rex64_ms_sysv): Ditto.
6270 * config/i386/mmx.md (mmx_emms): Ditto.
6273 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
6275 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
6278 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6280 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
6281 (spu_section_type_flags): New function.
6283 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
6285 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
6286 reg_class_contents of FLOAT_REGS into a temporary.
6288 2009-03-02 Richard Guenther <rguenther@suse.de>
6289 Ira Rosen <irar@il.ibm.com>
6291 PR tree-optimization/39318
6292 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
6293 information to the vectorized statement.
6295 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
6297 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
6298 variable. Use defined names instead of magic constants for REX SSE
6301 2009-03-01 Richard Guenther <rguenther@suse.de>
6303 PR tree-optimization/39331
6304 * omp-low.c (lower_send_shared_vars): Do not receive new
6305 values for the reference of DECL_BY_REFERENCE parms or results.
6307 2009-03-01 Jan Hubicka <jh@suse.cz>
6310 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
6311 BLOCK_NONLOCALIZED_VAR): New macros.
6312 (tree_block): Add nonlocalized_vars.
6313 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
6314 gen_decl_die): Add origin argument. Allow generation of die with
6315 origin at hand only.
6316 (gen_member_die, gen_type_die_with_usage, force_decl_die,
6317 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
6319 (gen_block_die): Fix checking for unused blocks.
6320 (process_scope_var): Break out from .... ; work with origins only.
6321 (decls_for_scope) ... here; process nonlocalized list.
6322 (dwarf2out_ignore_block): Look for nonlocalized vars.
6323 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
6325 (dump_scope_block): Dump them.
6326 * tree-inline.c (remap_decls): Handle nonlocalized vars.
6327 (remap_block): Likewise.
6328 (can_be_nonlocal): New predicate.
6329 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
6331 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6333 * configure: Regenerate.
6335 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6337 * optc-gen.awk: No need to duplicate option flags twice.
6338 Reuse help texts for duplicate options which do not have any.
6340 * gcc.c (display_help): Document --version.
6342 * gcc.c (main): If print_help_list and verbose_flag, ensure
6343 driver output comes before subprocess output.
6345 * optc-gen.awk: Assign all remaining fields to help string,
6346 space-separated, for multi-line help in *.opt.
6348 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
6349 -Wno-pedantic-ms-format is for MinGW targets only.
6351 * doc/options.texi (Option file format): Fix bad indentation,
6352 restoring dropped sentence.
6354 2009-02-28 Jan Hubicka <jh@suse.cz>
6356 * tree-inline.c (tree_function_versioning): Output debug info.
6358 2009-02-28 Jan Hubicka <jh@suse.cz>
6361 * tree-inline.c (setup_one_parameter): Do not copy propagate
6362 arguments when not optimizing.
6364 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
6367 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
6368 (avx_addsubv4df3): Likewise.
6369 (*avx_addsubv4sf3): Likewise.
6370 (sse3_addsubv4sf3): Likewise.
6371 (*avx_addsubv2df3): Likewise.
6372 (sse3_addsubv2df3): Likewise.
6373 (avx_unpckhps256): Correct item selectors.
6374 (avx_unpcklps256): Likewise.
6375 (avx_unpckhpd256): Likewise.
6376 (avx_unpcklpd256): Likewise.
6378 2009-02-28 Jan Hubicka <jh@suse.cz>
6380 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
6382 (copy_arguments_for_versioning): If var is declared don't declare it.
6383 (tree_function_versioning): First setup substitutions and then copy
6386 2009-02-27 Jan Hubicka <jh@suse.cz>
6389 * cgraph.h (varpool_output_debug_info): Remove.
6390 * cgraphunit.c (varpool_output_debug_info): Remove.
6391 * dwarf2out.c (deferred_locations_struct): New struct
6392 (deferred_locations): New type.
6393 (deferred_locations_list): New static var.
6394 (deffer_location): New function.
6395 (gen_variable_die): Use it.
6396 (decls_for_scope): Output info on local static vars.
6397 (dwarf2out_finish): Process deferred locations.
6398 * varpool.c (varpool_output_debug_info): Remove.
6400 2009-02-27 Jan Hubicka <jh@suse.cz>
6403 * tree.h (TREE_PROTECTED): Fix comment.
6404 (BLOCK_HANDLER_BLOCK): Remove.
6405 (struct tree_block): Remove handler_block add body_block.
6406 (inlined_function_outer_scope_p): New.
6407 (is_body_block): Remove.
6408 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
6409 * dwarf2out.c (is_inlined_entry_point): Remove.
6410 (add_high_low_attributes): Use inlined_function_outer_scope_p.
6411 (gen_block_die): Use is_inlined_entry_point check. Remove body block
6413 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
6414 * gimplify.c (gimplify_expr): Gimplify body blocks.
6415 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
6416 block with multiple subblocks.
6417 (dump_scope_block): Prettier output; dump more flags and info.
6418 (dump_scope_blocks): New.
6419 (remove_unused_locals): Use dump_scope_blocks.
6420 * tree-flow.h (dump_scope_blocks): Declare.
6421 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
6422 * stmt.c (is_body_block): Remove.
6423 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
6424 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
6426 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
6429 * graphite.c (graphite_loop_normal_form): Do not call
6430 number_of_iterations_exit from a gcc_assert.
6432 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6434 * gcc/config/s390/s390.c (s390_swap_cmp): Look for conditional
6435 jumps if COND is NULL.
6436 (find_cond_jump): New function.
6437 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
6438 * gcc/config/s390/s390.md: Remove z10_cobra attribute value.
6440 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
6442 * config/alpha/alpha.h (alpha_expand_mov): Return false if
6443 force_const_mem returns NULL_RTX.
6445 2009-02-26 Jan Hubicka <jh@suse.cz>
6448 * cgraph.h (varpool_output_debug_info): Remove.
6449 * cgraphunit.c (varpool_output_debug_info): Remove.
6450 * dwarf2out.c (deferred_locations_struct): New struct
6451 (deferred_locations): New type.
6452 (deferred_locations_list): New static var.
6453 (deffer_location): New function.
6454 (gen_variable_die): Use it.
6455 (decls_for_scope): Output info on local static vars.
6456 (dwarf2out_finish): Process deferred locations.
6457 * varpool.c (varpool_output_debug_info): Remove.
6459 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
6461 PR rtl-optimization/39241
6462 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
6463 to subreg_offset_representable_p.
6465 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
6467 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
6468 execute function prototype. Get f and nregs from max_reg_num
6469 and get_insns. Remove the first backward pass as it's dead,
6470 guard the forward pass by flag_expensive_optimizations.
6471 (rest_of_handle_regmove): Delete.
6472 (pass_regmove): Replace it with regmove_optimize.
6474 2009-02-25 Martin Jambor <mjambor@suse.cz>
6476 PR tree-optimization/39259
6477 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
6478 calls_alloca function flags.
6479 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
6482 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
6484 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
6485 flags_set_1_rtx, flags_set_1_set): Delete.
6486 (regmove_optimize): Do not call mark_flags_life_zones.
6488 2009-02-24 Julian Brown <julian@codesourcery.com>
6491 * config/arm/arm.c (require_pic_register): Only set
6492 cfun->machine->pic_reg once per function.
6494 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
6496 * doc/invoke.texi (Link Options): Document an easier way to pass
6497 options that take arguments to the GNU linker using -Xlinker and -Wl.
6499 2009-02-24 Steve Ellcey <sje@cup.hp.com>
6502 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
6504 2009-02-24 Richard Guenther <rguenther@suse.de>
6507 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
6509 2009-02-24 Richard Guenther <rguenther@suse.de>
6510 Zdenek Dvorak <ook@ucw.cz>
6512 PR tree-optimization/39233
6513 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
6514 from converting them to a generic type.
6516 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
6518 PR tree-optimization/39260
6519 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
6520 contains a condition with a real type.
6521 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
6523 2009-02-23 Jason Merrill <jason@redhat.com>
6526 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
6527 narrowing_initializer_constant_valid_p.
6528 (narrowing_initializer_constant_valid_p): Don't return
6529 null_pointer_node for adding a pointer to itself.
6531 2009-02-23 Jan Hubicka <jh@suse.cz>
6534 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
6537 2009-02-23 Jan Hubicka <jh@suse.cz>
6539 PR tree-optimization/37709
6540 * tree.c (block_ultimate_origin): Move here from dwarf2out.
6541 * tree.h (block_ultimate_origin): Declare.
6542 * dwarf2out.c (block_ultimate_origin): Move to tree.c
6543 * tree-ssa-live.c (remove_unused_scope_block_p):
6544 Eliminate blocks containig no instructions nor live variables nor
6546 (dump_scope_block): New function.
6547 (remove_unused_locals): Enable removal of dead blocks by default;
6548 enable dumping at TDF_DETAILS.
6550 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
6552 * config/i386/i386.c (classify_argument): Don't allow COImode
6554 (function_arg_advance_32): Don't allow OImode.
6555 (function_arg_32): Likewise.
6556 (function_value_32): Likewise.
6557 (return_in_memory_32): Likewise.
6558 (function_arg_64): Remove OImode comment.
6560 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
6563 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
6564 ix86_expand_vector_set for V4DImode in 64bit mode only.
6565 (ix86_expand_vector_init_one_var): Likewise.
6567 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
6569 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
6571 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
6574 * loop-iv.c: Revert last change.
6575 * emit-rtl.c: Likewise.
6577 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
6580 * config/i386/i386.c (type_natural_mode): Remove an extra
6581 space in the warning message.
6582 (function_value_32): Handle 32-byte vector modes.
6583 (return_in_memory_32): Likewise.
6585 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
6587 * loop-iv.c (truncate_value): New function.
6588 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
6590 (lowpart_subreg): Move to...
6591 * emit-rtl.c: ...here.
6593 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
6595 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
6596 accidental and undocumented change at revision 140860.
6598 2009-02-21 Joseph Myers <joseph@codesourcery.com>
6600 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
6601 take gimple_seq * arguments.
6602 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
6603 types_compatible_p langhook.
6605 2009-02-20 Mark Mitchell <mark@codesourcery.com>
6606 Joseph Myers <joseph@codesourcery.com>
6608 * config/arm/arm.c (arm_builtin_va_list): New function.
6609 (arm_expand_builtin_va_start): Likewise.
6610 (arm_gimplify_va_arg_expr): Likewise.
6611 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
6612 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
6613 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
6614 (va_list_type): New variable.
6615 (arm_mangle_type): Mangle va_list_type appropriately.
6617 2009-02-20 Jakub Jelinek <jakub@redhat.com>
6620 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
6621 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
6622 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
6623 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
6624 parameter to 1000 for -O1 by default.
6625 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
6627 * loop-invariant.c: Include params.h.
6628 (move_loop_invariants): Don't call move_single_loop_invariants on
6631 2009-02-20 Jaka Mocnik <jaka@xlab.si>
6633 * calls.c (emit_library_call_value_1): Use slot_offset instead of
6634 offset when calculating bounds for indexing stack_usage_map. Fixes
6635 a buffer overflow with certain target setups.
6637 2009-02-20 Jakub Jelinek <jakub@redhat.com>
6640 * calls.c (expand_call): Clear try_tail_call if caller and callee
6641 disagree in promotion of function return value.
6643 2009-02-19 Jakub Jelinek <jakub@redhat.com>
6646 * c-common.c (c_determine_visibility): If visibility changed and
6647 DECL_RTL has been already set, call make_decl_rtl to update symbol
6650 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
6653 * varasm.c (assemble_variable): Don't check DECL_NAME when
6654 globalizing a variable.
6656 2009-02-19 Joseph Myers <joseph@codesourcery.com>
6659 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
6660 expression before any __builtin_trap call.
6661 * c-typeck.c (build_function_call): Convert and check function
6662 arguments before generating a call to a trap. Evaluate the
6663 function arguments before the trap.
6665 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
6668 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
6669 (UNSPEC_FXAM_MEM): New unspec.
6670 (fxam<mode>2_i387_with_temp): New insn and split pattern.
6671 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
6672 memory using fxam<mode>2_i387_with_temp to remove excess precision.
6674 2009-02-19 Richard Guenther <rguenther@suse.de>
6676 PR tree-optimization/39207
6677 PR tree-optimization/39074
6678 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
6679 storedanything_tree): New.
6680 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
6681 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
6682 (build_succ_graph): Add edges from STOREDANYTHING to all
6684 (init_base_vars): Initialize STOREDANYTHING.
6685 (compute_points_to_sets): Free substitution info after
6686 building the succ graph.
6687 (ipa_pta_execute): Likewise.
6689 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
6691 (do_ds_constraint): Do not add to special var or non-pointer
6693 (type_could_have_pointers): Split out from ...
6694 (could_have_pointers): ... here. For arrays use the element type.
6695 (create_variable_info_for): Initialize may_have_pointers.
6696 (new_var_info): Likewise.
6697 (handle_lhs_call): Make the HEAP variable unknown-sized.
6698 (intra_create_variable_infos): Use a type with pointers for
6699 PARM_NOALIAS, make it unknown-sized.
6701 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
6704 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
6706 2009-02-18 Jason Merrill <jason@redhat.com>
6709 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
6710 value if DECL_EXTERNAL.
6711 * tree-sra.c (sra_walk_gimple_assign): Likewise.
6712 * target.h (gcc_target::binds_local_p): Clarify "module".
6713 * tree.h (TREE_PUBLIC): Clarify "module".
6715 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
6718 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
6719 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
6721 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
6724 * c.opt (Wabi): Support C and ObjC.
6727 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
6729 * config/i386/i386.c (classify_argument): Warn once about the ABI
6730 change when passing union with long double.
6732 * doc/invoke.texi: Update -Wabi for warning psABI changes.
6734 2009-02-18 Joseph Myers <joseph@codesourcery.com>
6737 * c-parser.c (c_parser_compound_statement): Always enter and leave
6740 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6743 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
6745 2009-02-18 Jakub Jelinek <jakub@redhat.com>
6747 PR tree-optimization/36922
6748 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
6749 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
6752 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
6754 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
6757 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
6759 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
6761 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
6763 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
6766 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
6767 Richard Sandiford <rdsandiford@googlemail.com>
6769 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
6770 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
6771 (loongson_biadd): ...this.
6773 2009-02-17 Richard Guenther <rguenther@suse.de>
6775 PR tree-optimization/39202
6776 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
6777 a var make sure to follow existing collapses.
6779 2009-02-17 Richard Guenther <rguenther@suse.de>
6782 * langhooks.c (lhd_print_error_function): Check for NULL block.
6784 2009-02-17 Richard Guenther <rguenther@suse.de>
6786 PR tree-optimization/39204
6787 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
6790 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
6792 * config/soft-fp/double.h: Update from glibc CVS.
6794 2009-02-17 Richard Guenther <rguenther@suse.de>
6796 PR tree-optimization/39207
6797 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
6798 strict-aliasing warnings for pointers pointing to NULL.
6800 2009-02-16 Joseph Myers <joseph@codesourcery.com>
6803 * c-parser.c (c_parser_braced_init): Call pop_init_level when
6804 skipping until next close brace.
6806 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
6809 * config/i386/i386.c (ix86_expand_push): Set memory alignment
6810 to function argument boundary.
6812 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
6814 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
6815 in the lea_add. Reload eventually constraints it properly.
6816 * config/picochip/constraints.md : Remove the target constraint
6817 "b", since it is not needed anymore.
6819 2009-02-16 Jakub Jelinek <jakub@redhat.com>
6821 * gthr-dce.h: Uglify function parameter and local variable names.
6822 * gthr-gnat.h: Likewise.
6823 * gthr-mipssde.h: Likewise.
6824 * gthr-nks.h: Likewise.
6825 * gthr-posix95.h: Likewise.
6826 * gthr-posix.h: Likewise.
6827 * gthr-rtems.h: Likewise.
6828 * gthr-single.h: Likewise.
6829 * gthr-solaris.h: Likewise.
6830 * gthr-tpf.h: Likewise.
6831 * gthr-vxworks.h: Likewise.
6832 * gthr-win32.h: Likewise.
6834 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
6837 * config/i386/i386.md: Restrict the new peephole2 to move
6838 between MMX/SSE registers.
6840 2009-02-15 Richard Guenther <rguenther@suse.de>
6843 2009-02-13 Richard Guenther <rguenther@suse.de>
6845 * configure.ac: Enable LFS.
6846 * configure: Re-generate.
6847 * config.in: Likewise.
6849 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6851 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
6852 spu_srqwbyte, spu_srqwbytebc): Define.
6853 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
6854 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
6855 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
6856 "shrqby_<mode>"): New insn-and-split patterns.
6857 * config/spu/spu.c (expand_builtin_args): Determine and return
6858 number of operands using spu_builtin_description data.
6859 (spu_expand_builtin_1): Use it.
6861 2009-02-13 Steve Ellcey <sje@cup.hp.com>
6864 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
6867 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
6870 * config/i386/i386.c (override_options): Correct warning
6871 messages for -malign-loops, -malign-jumps and -malign-functions.
6873 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
6876 * config/i386/i386.md: Restrict the new peephole2 to move
6877 between the general purpose registers.
6879 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
6882 * config/i386/i386.c (type_natural_mode): Add a new argument.
6883 Return the original mode and warn ABI change if vector size is 32byte.
6884 (function_arg_advance): Updated.
6885 (function_arg): Likewise.
6886 (ix86_function_value): Likewise.
6887 (ix86_return_in_memory): Likewise.
6888 (ix86_sol10_return_in_memory): Likewise.
6889 (ix86_gimplify_va_arg): Likewise.
6890 (function_arg_32): Don't warn ABX ABI change here.
6891 (function_arg_64): Likewise.
6893 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
6895 * loop-iv.c (implies_p): In the final case, test that operands 0
6896 of the two comparisons match.
6898 * config/bfin/bfin.c (find_prev_insn_start): New function.
6899 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
6900 (find_next_insn_start): Move.
6902 2009-02-13 Richard Guenther <rguenther@suse.de>
6904 * configure.ac: Enable LFS.
6905 * configure: Re-generate.
6906 * config.in: Likewise.
6908 2009-02-13 Joseph Myers <joseph@codesourcery.com>
6911 * c-parser.c (c_parser_parms_list_declarator): Discard pending
6912 sizes on syntax error after some arguments have been parsed.
6914 2009-02-12 Jakub Jelinek <jakub@redhat.com>
6916 * doc/invoke.texi (-fira): Remove.
6918 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
6920 * caller-save.c: Replace regclass.c with reginfo.c in comments.
6921 * recog.c: Likewise.
6924 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
6926 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
6927 (umul_ppmm): Likewise.
6928 (count_leading_zeros): Likewise.
6929 (count_trailing_zeros): Likewise.
6930 (UMUL_TIME): Likewise.
6932 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
6934 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
6935 soft-fp/t-softfp to tmake_file.
6937 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
6938 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
6939 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
6940 IA64_BUILTIN_INFQ]: New.
6941 (ia64_init_builtins): Initialize __builtin_infq,
6942 __builtin_fabsq and __builtin_copysignq if not HPUX.
6943 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
6944 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
6946 * config/ia64/lib1funcs.asm (__divtf3): Define only if
6948 (__fixtfti): Likewise.
6949 (__fixunstfti): Likewise.
6950 (__floattitf): Likewise.
6952 * config/ia64/libgcc-glibc.ver: New.
6953 * config/ia64/t-fprules-softfp: Likewise.
6954 * config/ia64/sfp-machine.h: Likewise.
6956 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
6957 (LIBGCC2_TF_CEXT): Likewise.
6958 (TF_SIZE): Likewise.
6959 (TARGET_INIT_LIBFUNCS): Likewise.
6961 * config/ia64/t-glibc (SHLINB_MAPFILES):
6962 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
6964 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
6966 * config/i386/i386.c (construct_container): Rewrite processing
6967 BLKmode with X86_64_SSE_CLASS.
6969 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
6972 * config/i386/i386.md: Replace simplify_replace_rtx with
6973 replace_rtx in the new peephole2.
6975 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
6977 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
6978 loop unrolling do not happen at -O2.
6980 2009-02-12 Michael Matz <matz@suse.de>
6982 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
6984 2009-02-12 Jakub Jelinek <jakub@redhat.com>
6986 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
6989 2009-02-12 Ben Elliston <bje@au.ibm.com>
6991 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
6992 patterns when updating the back chain. Missed in the 2009-02-10
6995 2009-02-11 Janis Johnson <janis187@us.ibm.com>
6997 * doc/extend.texi (Decimal Floating Types): Update identifier of
6998 draft TR and list of missing support.
7000 2009-02-11 Jakub Jelinek <jakub@redhat.com>
7003 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
7004 bit to variable length decl's flags, add it also to its
7005 pointer replacement variable.
7007 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
7008 Jakub Jelinek <jakub@redhat.com>
7011 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
7012 (memory_blockage): New expander.
7013 (*memory_blockage): New insn pattern.
7014 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
7015 instead of general blockage at the end of function prologue when
7016 frame pointer is used to access red zone area. Do not emit blockage
7017 when profiling, it is emitted in generic code.
7018 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
7019 function epilogue when frame pointer is used to access red zone area.
7021 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
7024 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
7025 by arithmetic with memory operands.
7026 * config/i386/predicates.md (commutative_operator): New.
7028 2009-02-10 Janis Johnson <janis187@us.ibm.com>
7030 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
7033 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
7035 * alias.h (record_alias_subset): Declare.
7036 * alias.c (record_alias_subset): Make global.
7038 2009-02-10 Nick Clifton <nickc@redhat.com>
7040 * tree-parloops.c: Change license to GPLv3.
7041 * ipa-struct-reorg.c: Change license to GPLv3.
7042 * ipa-struct-reorg.h: Change license to GPLv3.
7044 2009-02-10 Steve Ellcey <sje@cup.hp.com>
7047 * c-decl.c (start_struct): Return NULL on error.
7049 2009-02-10 Jakub Jelinek <jakub@redhat.com>
7052 * cfgloopmanip.c (remove_path): Call remove_bbs after
7053 cancel_loop_tree, not before it.
7056 * function.h (struct function): Add has_local_explicit_reg_vars bit.
7057 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
7058 VAR_DECLs were seen.
7059 * tree-ssa-live.c (remove_unused_locals): Recompute
7060 cfun->has_local_explicit_reg_vars.
7061 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
7062 copies or clearings if cfun->has_local_explicit_reg_vars.
7064 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
7067 * config/i386/i386.c (expand_prologue): Emit blockage at the end
7068 of function prologue when frame pointer is used to access
7071 2009-02-10 Richard Guenther <rguenther@suse.de>
7074 * gimplify.c (gimple_regimplify_operands): Always look if
7075 we need to create a temporary.
7077 2009-02-10 Richard Guenther <rguenther@suse.de>
7079 PR tree-optimization/39132
7080 * tree-loop-distribution.c (todo): New global var.
7081 (generate_memset_zero): Trigger TODO_rebuild_alias.
7082 (tree_loop_distribution): Return todo.
7084 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
7087 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
7088 (x86_64_reg_class_name): Removed.
7089 (classify_argument): Return 0 if bytes > 32. Return 0 if the
7090 first one isn't X86_64_SSE_CLASS or any other ones aren't
7091 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
7092 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
7093 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
7094 and 3 X86_64_SSEUP_CLASS.
7095 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
7096 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
7098 2009-02-10 Ben Elliston <bje@au.ibm.com>
7100 * config/rs6000/rs6000.md (allocate_stack): Always use an update
7101 form instruction to update the stack back chain word, even if the
7102 user has disabled the generation of update instructions.
7103 (movdi_<mode>_update_stack): New.
7104 (movsi_update_stack): Likewise.
7105 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
7106 always use an update form instruction to update the stack back
7109 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
7112 * graphite.c (if_region_set_false_region): After moving a region in
7113 the false branch of a condition, remove the empty dummy basic block.
7114 (gloog): Remove wrong fix for PR38953.
7116 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7118 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
7119 generation due to implicit sign extension.
7121 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
7124 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
7125 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
7127 2009-02-09 Richard Guenther <rguenther@suse.de>
7130 * convert.c (convert_to_real): Disable (float)fn((double)x)
7131 to fnf(x) conversion if errno differences may occur and
7132 -fmath-errno is set.
7134 2009-02-07 Anatoly Sokolov <aesok@post.ru>
7136 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
7137 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
7138 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
7140 2009-02-06 Joseph Myers <joseph@codesourcery.com>
7143 * c-common.c (handle_alias_attribute): Disallow attribute for
7144 anything not a FUNCTION_DECL or VAR_DECL.
7146 2009-02-06 Janis Johnson <janis187@us.ibm.com>
7149 * real.c (do_compare): Special-case compare of zero against
7150 decimal float value.
7152 2009-02-06 Joseph Myers <joseph@codesourcery.com>
7155 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
7156 as indicating flexible array members unless the field itself is
7157 being declarared as the incomplete array.
7159 2009-02-06 Jan Hubicka <jh@suse.cz>
7161 PR tree-optimization/38844
7162 * ipa-inline.c (try_inline): Stop inlining recursion when edge
7165 2009-02-06 Richard Guenther <rguenther@suse.de>
7168 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
7169 fork because we may expand it as __gcov_fork.
7171 2009-02-06 Nick Clifton <nickc@redhat.com>
7173 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
7175 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
7177 PR tree-optimization/35659
7178 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
7179 vn_phi_eq): Shortcut if hashcode does not match.
7180 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
7182 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
7183 and avoid iterative_hash_expr.
7184 (FOR_EACH_VALUE_ID_IN_SET): New.
7185 (value_id_compare): Remove.
7186 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
7187 sort expressions by value id.
7189 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
7192 * config/sh/predicates.md (general_movsrc_operand): Don't check
7193 the subreg of system registers here.
7195 2009-02-05 Jakub Jelinek <jakub@redhat.com>
7198 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
7201 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
7203 PR rtl-optimization/39110
7204 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
7205 addresses, not aligned ones.
7207 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
7208 Richard Guenther <rguenther@suse.de>
7210 PR tree-optimization/39100
7211 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
7212 comment says and add edges.
7214 2009-02-05 Joseph Myers <joseph@codesourcery.com>
7217 * c-common.c (handle_tls_model_attribute): Ignore attribute for
7218 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
7220 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
7222 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
7223 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
7224 register_bb_in_sese, new_sese, free_sese): Moved.
7225 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
7226 outermost_loop_in_scop, build_scop_iteration_domain,
7227 expand_scalar_variables_ssa_name, get_vdef_before_scop,
7228 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
7229 Use loop_in_sese_p instead of loop_in_scop_p.
7230 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
7231 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
7232 (scopdet_basic_block_info): Fix bug in scop detection.
7233 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
7234 eq_loop_to_cloog_loop): Remove.
7235 (nb_loops_around_loop_in_scop, nb_loop
7236 ref_nb_loops): Moved here...
7237 * graphite.h (ref_nb_loops): ... from here.
7238 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
7239 (loop_domain_dim, loop_iteration_vector_dim): Remove.
7240 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
7241 * testsuite/gcc.dg/graphite/scop-19.c: New
7243 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
7244 Hans-Peter Nilsson <hp@axis.com>
7246 PR rtl-optimization/37889
7247 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
7248 Move offset handling from PLUS to before the switch. Use new
7249 arguments when considering SYMBOL_REFs too.
7250 (rtx_addr_can_trap_p): Pass dummy offset and size.
7251 (enum may_trap_p_flags): Remove.
7252 (may_trap_p_1): Pass size from MEM_SIZE.
7254 PR rtl-optimization/38921
7255 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
7256 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
7257 * rtlanal.c (may_trap_after_code_motion_p): Delete.
7258 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
7260 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
7262 AVX Programming Reference (January, 2009)
7263 * config/i386/sse.md (*vpclmulqdq): New.
7265 2009-02-04 Jakub Jelinek <jakub@redhat.com>
7267 PR tree-optimization/38977
7268 PR gcov-profile/38292
7269 * calls.c (special_function_p): Disregard __builtin_ prefix.
7271 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
7273 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
7274 non-indexable addresses even before reload.
7276 2009-02-03 Joseph Myers <joseph@codesourcery.com>
7279 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
7280 as having variable size. Do not give an error for unnamed
7281 parameters with [*] declarators. Give a warning for type names
7282 with [*] declarators and mark them as variable size.
7283 * c-parser.c (c_parser_sizeof_expression): Do not give an error
7284 for sizeof applied to [*] type names.
7286 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
7289 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
7291 2009-02-03 Jakub Jelinek <jakub@redhat.com>
7293 * gcc.c (process_command): Update copyright notice dates.
7294 * gcov.c (print_version): Likewise.
7295 * gcov-dump.c (print_version): Likewise.
7296 * mips-tfile.c (main): Likewise.
7297 * mips-tdump.c (main): Likewise.
7299 2009-02-03 Joseph Myers <joseph@codesourcery.com>
7302 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
7303 for composite type involving a zero-length array type.
7305 2009-02-03 Jakub Jelinek <jakub@redhat.com>
7308 * function.c (match_asm_constraints_1): Skip over
7309 initial optional % in the constraint.
7312 * c-parser.c (c_parser_postfix_expression): If fixed point is not
7313 supported, don't accept FIXED_CSTs.
7314 * c-decl.c (finish_declspecs): Error if fixed point is not supported
7315 and _Sat is used without _Fract/_Accum. Set specs->type to
7316 integer_type_node for cts_fract/cts_accum if fixed point is not
7319 2009-02-02 Catherine Moore <clm@codesourcery.com>
7321 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
7323 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
7325 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
7326 (ABI_HAS_64BIT_SYMBOLS): Use it.
7327 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
7329 2009-02-02 Paul Brook <paul@codesourcery.com>
7331 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
7333 2009-02-02 Jakub Jelinek <jakub@redhat.com>
7336 * recog.h (asm_operand_ok): Add constraints argument.
7337 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
7338 recurse on matching constraint.
7339 (check_asm_operands): Pass constraints as 3rd argument to
7340 asm_operand_ok. Don't look up matching constraint here.
7341 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
7344 2009-02-02 Ben Elliston <bje@au.ibm.com>
7346 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
7347 TARGET_NARROW_VOLATILE_BITFIELD macro names.
7349 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7351 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
7352 information. Remove some obsolete information. Reorganize.
7354 * config/pa/fptr.c: Revert license to GPL 2.
7355 * config/pa/milli64.S: Likewise.
7357 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
7360 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
7361 LIBRARY name in, instead of hard-coding it.
7362 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
7363 extra target make frag to tmake_files according to EH model.
7364 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
7365 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
7366 frags that define makefile variable EH_MODEL appropriately.
7367 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
7368 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
7369 to "-sjlj" according to type of EH configured.
7370 (LIBGCC_SONAME): Concatenate it to shared library base name.
7371 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
7372 to "_sjlj" according to type of EH configured.
7373 (LIBGCC_SONAME): Concatenate it to shared library base name.
7374 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
7375 (SHLIB_LINK): Add missing semicolon to if-else construct.
7376 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
7377 string value of "pe_dll" command-line option.
7378 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
7379 (SHLIB_SONAME): Use it when overriding t-cygming default.
7380 (SHLIB_IMPLIB): Override t-cygming default.
7381 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
7382 string value of "pe_dll" command-line option.
7384 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
7387 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
7388 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
7390 2009-01-31 Richard Guenther <rguenther@suse.de>
7392 PR tree-optimization/38937
7393 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
7394 computing the transitive closure.
7396 2009-01-30 Richard Guenther <rguenther@suse.de>
7398 PR tree-optimization/39041
7399 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
7400 Propagate variable indices only if the types match for this stmt.
7402 2009-01-30 Jakub Jelinek <jakub@redhat.com>
7405 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
7406 inline but never defined.
7408 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
7410 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
7411 (*insv_h_di_reg_extimm): New insn.
7412 (*insv_l<mode>_reg_extimm): New insn.
7414 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
7416 * config/picochip/picochip.c (flag_conserve_stack): set
7417 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
7418 fconserve-stack. Reduce call-overhead used by inliner.
7420 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
7423 * common.opt (flag_conserve_stack): Initialised to zero.
7425 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
7428 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
7429 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
7432 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
7434 * ira-color.c (allocno_reload_assign): Update comments.
7435 * regmove.c (regmove_optimize): Likewise.
7439 2009-01-29 Robert Millan <rmh@aybabtu.com>
7441 * gcc/config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
7442 * gcc/config/i386/kopensolaris-gnu.h: New file. Undefine
7443 `MD_UNWIND_SUPPORT'.
7444 * gcc/config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
7446 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
7448 PR tree-optimization/39007
7449 * tree-loop-distribution.c (generate_builtin): Use
7450 recompute_dominator to compute the immediate dominator of the
7451 basic block just after the loop.
7453 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7455 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
7456 (ASM_OUTPUT_DWARF_PCREL): Define.
7458 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
7460 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
7461 * doc/passes.texi: Remove entries about regclass, local-alloc, and
7462 global. Modify entries about regmove and IRA.
7464 * ra-conflict.c: Remove the file.
7466 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
7468 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
7469 (pass_regclass_init): Rename to pass_reginfo_init.
7471 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
7473 * toplev.h (flag_ira): Remove.
7475 * caller-save.c (setup_save_areas): Remove flag_ira.
7477 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
7479 * global.c: Remove the file.
7481 * opts.c (decode_options): Remove flag_ira.
7483 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
7485 * regmove.c: Modify file description.
7486 (find_use_as_address, try_auto_increment): Define them only if
7487 AUTO_INC_DEC is defined.
7488 (replacement_quality, replace_in_call_usage, fixup_match_1,
7489 stable_and_no_regs_but_for_p): Remove.
7490 (reg_set_in_bb): Make it static.
7491 (regmove_optimize): Remove flag_ira and code which worked for
7494 * local-alloc.c: Remove the file.
7496 * common.opt (fira): Remove.
7498 * ira.c: Include except.h.
7499 (eliminable_regset): Move from global.c.
7500 (mark_elimination): Ditto. Remove flag_ira.
7501 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
7502 equiv_mem_modified, validate_equiv_mem_from_store,
7503 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
7504 contains_replace_regs, memref_referenced_p, memref_used_between_p,
7505 no_equiv, recorded_label_ref): Move from local-alloc.c.
7506 (update_equiv_regs): Ditto. Make it static.
7507 (print_insn_chain, print_insn_chains): Move it from global.c.
7508 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
7509 (build_insn_chain): Ditto. Make it static.
7510 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
7511 Rename to init_live_subregs.
7512 (gate_ira): Remove flag_ira.
7514 * regclass.c: Rename reginfo.c. Change file description.
7515 (FORBIDDEN_INC_DEC_CLASSES): Remove.
7516 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
7517 (init_reg_sets_1): Remove code for evaluation of
7518 reg_class_superclasses and losing_caller_save_reg_set.
7519 (init_regs): Remove init_reg_autoinc.
7520 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
7521 ok_for_base_p_nonstrict): Remove.
7522 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
7523 (pass_regclass_init): Rename to pass_reginfo_init. Modify
7524 corresponding entries.
7525 (dump_regclass, record_operand_costs, scan_one_insn,
7526 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
7527 record_address_regs, auto_inc_dec_reg_p): Remove.
7528 (gt-regclass.h): Rename to gt-reginfo.h.
7530 * rtl.h (dump_global_regs, retry_global_alloc,
7531 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
7533 * Makefile.in (RA_H): Remove.
7534 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
7535 Rename regclass.o to reginfo.o.
7536 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
7538 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
7539 (GTFILES): Rename regclass.c to reginfo.c.
7541 * passes.c (init_optimization_passes): Remove pass_local_alloc and
7542 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
7544 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
7545 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
7547 (finish_spills): Ditto. Remove code for !flag_ira.
7549 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
7552 * doc/invoke.texi (rtl debug options): Complete rewrite.
7553 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
7555 * mode-switching.c (pass_mode_switching): Rename pass from
7556 "mode-sw" to "mode_sw".
7557 * except.c (pass_convert_to_eh_ranges): Rename pass from
7558 "eh-ranges" to "eh_ranges".
7559 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
7563 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
7564 Alexander Monakov <amonakov@ispras.ru>
7567 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
7569 (move_exprs_to_boundary): Change return type and pass through
7570 should_move from move_op. Relax assert. Update usage ...
7571 (schedule_expr_on_boundary): ... here. Use should_move instead of
7573 (move_op_orig_expr_found): Indicate that insn was disconnected from
7575 (code_motion_process_successors): Do not call after_merge_succs
7576 callback if original expression was not found when traversing any of
7578 (code_motion_path_driver): Change return type. Update prototype.
7579 (move_op): Update comment. Add a new parameter (should_move). Update
7580 prototype. Set *should_move based on indication provided by
7581 move_op_orig_expr_found.
7583 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
7585 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
7586 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
7587 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
7588 * config/rs6000/rs6000.c (rs6000_override_options): Default
7589 avoid-indexed-addresses on for Power6, off for everything else.
7590 (avoiding_indexed_address_p): New function.
7591 (rs6000_legitimize_address): Use it.
7592 (rs6000_legitimate_address): Likewise.
7593 * config/rs6000/rs6000.md (movXX_updateX): Likewise
7595 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
7597 PR tree-optimization/38997
7598 * tree-loop-distribution.c (generate_memset_zero): Use
7599 POINTER_PLUS_EXPR for a pointer addition.
7601 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
7603 * config/s390/s390.md (bswap<mode>2): New pattern added.
7605 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
7607 * config/s390/s390.md (*tls_load_31): Added type attribute.
7609 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
7611 * config/s390/s390.md: Fix a few comments.
7613 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
7615 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
7616 (*tm<mode>_full): Fixed z10prop attribute.
7617 (*tst<mode>_extimm): Fixed z10prop attribute.
7618 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
7619 (*tstqiCCT_cconly): Fixed z10prop attribute.
7620 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
7621 (*movsi_larl): Fixed z10prop attribute.
7622 (*movsi_zarch): Fixed z10prop attribute.
7623 (*movsi_eas): Fixed z10prop attribute.
7624 (*movhi): Fixed z10prop attribute.
7625 (*movqi): Fixed z10prop attribute.
7626 (*movstrictqi): Fixed z10prop attribute.
7627 (*mov<mode>): Fixed z10prop attribute.
7628 (*movcc): Fixed z10prop attribute.
7629 (*sethighpartdi_64): Fixed z10prop attribute.
7630 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
7631 (*negdi2_sign_cc): Fixed z10prop attribute.
7632 (*negdi2_sign): Fixed z10prop attribute.
7633 (*absdi2_sign_cc): Fixed z10prop attribute.
7634 (*absdi2_sign): Fixed z10prop attribute.
7635 (*negabsdi2_sign_cc): Fixed z10prop attribute.
7636 (*negabsdi2_sign): Fixed z10prop attribute.
7637 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
7638 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
7639 (doloop_si64): Fixed z10prop attribute.
7640 (doloop_si31): Fixed z10prop attribute.
7641 (doloop_long): Fixed z10prop attribute.
7642 (indirect_jump): Fixed z10prop attribute.
7643 (nop): Fixed z10prop attribute.
7644 (main_base_64): Fixed z10prop attribute.
7645 (reload_base_64): Fixed z10prop attribute.
7647 2009-01-28 Jakub Jelinek <jakub@redhat.com>
7649 PR rtl-optimization/38740
7650 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
7652 * config/mips/mips.c (mips_reorg): Likewise.
7654 2009-01-28 Richard Guenther <rguenther@suse.de>
7656 PR tree-optimization/38926
7657 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
7658 with the correct value id to a value.
7659 (do_regular_insertion): Use the value number of edoubleprime
7660 for the value number of the expr.
7663 2008-08-21 Richard Guenther <rguenther@suse.de>
7665 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
7666 a PHI ask VN if it is already available.
7667 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
7668 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
7670 2009-01-28 Jakub Jelinek <jakub@redhat.com>
7673 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
7674 set to varying whenever max has TREE_OVERFLOW set, similarly
7675 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
7677 2009-01-28 Richard Guenther <rguenther@suse.de>
7680 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
7681 uninitialized aggregate uses in call arguments.
7683 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
7685 PR tree-optimization/38984
7686 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
7687 the nothing_id variable if -fno-delete-null-pointer-checks.
7689 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
7692 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
7693 (set_got_offset_rex64): Ditto.
7695 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
7698 * doc/extend.texi: Improve local variable with asm reg.
7700 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
7702 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
7703 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
7704 was not supplied then set warn_packed_bitfield_compat to the
7706 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
7709 2009-01-27 Richard Guenther <rguenther@suse.de>
7711 PR tree-optimization/38503
7712 * cfgexpand.c (expand_gimple_basic_block): Ignore
7713 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
7714 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
7715 variables that cannot have TBAA applied.
7716 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
7719 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
7722 * calls.c (initialize_argument_information): Do not wrap complex
7723 arguments in SAVE_EXPR.
7725 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
7727 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
7728 (INSTALL_LIBGCC): Revert typo commit.
7730 2009-01-26 Richard Guenther <rguenther@suse.de>
7732 PR tree-optimization/38745
7733 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
7734 from special handling.
7736 2009-01-26 Richard Guenther <rguenther@suse.de>
7738 PR tree-optimization/38745
7739 * tree-ssa.c (execute_update_addresses_taken): Do not include
7740 variables that cannot possibly be a register in not_reg_needs.
7741 Do not clear TREE_ADDRESSABLE on vars that may not become
7743 * tree-ssa.c (update_alias_info_1): Include those in the set
7744 of addressable vars.
7746 2009-01-26 Richard Guenther <rguenther@suse.de>
7749 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
7750 * tree-ssa-dse.c: Include langhooks.h
7751 (execute_simple_dse): Remove stores with zero size.
7753 2009-01-24 Jakub Jelinek <jakub@redhat.com>
7756 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
7759 2009-01-24 Julian Brown <julian@codesourcery.com>
7761 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
7762 config/arm/linux-atomic.c.
7763 * config/arm/linux-atomic.c: New.
7765 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
7767 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
7768 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
7769 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
7771 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
7774 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
7777 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
7779 PR tree-optimization/38953
7780 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
7781 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
7782 (gloog): Split the exit of the scop when the scop exit is a loop exit.
7783 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
7786 2009-01-24 Paul Brook <paul@codesourcery.com>
7788 * config/arm/neon.md (neon_type): Move to arm.md.
7789 (neon_mov<VSTRUCT>): Add neon_type attribute.
7790 * config/arm/arm.md (neon_type): Move to here.
7791 (conds): Add "unconditioal" and use as default for NEON insns.
7793 2009-01-24 Ben Elliston <bje@au.ibm.com>
7795 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
7796 void *' warning from -Wc++-compat.
7797 * Makefile.in (dominance.o-warn): Remove.
7799 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
7801 PR tree-optimization/38932
7802 * fold-const.c (fold_unary_ignore_overflow): New.
7803 * tree.h (fold_unary_ignore_overflow): Declare.
7804 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
7805 * tree-ssa-sccvn.c (visit_reference_op_load,
7806 simplify_unary_expression): Likewise.
7808 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
7810 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
7811 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
7812 regardless of their type.
7813 * c-common.c (handle_packed_attribute): Don't ignore packed on
7815 * c.opt (Wpacked-bitfield-compat): New warning option.
7816 * stor-layout.c (place_field): Warn if offset of a field changed.
7817 * doc/extend.texi (packed): Mention the ABI change.
7818 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
7819 (Warning Options): Add it to the list.
7821 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
7823 * c-opts.c (c_common_post_options): Fix a typo in comments.
7825 2009-01-22 Steve Ellcey <sje@cup.hp.com>
7828 * gimplify.c (gimplify_init_constructor): Fix promotion of const
7829 variables to static.
7830 * doc/invoke.texi (-fmerge-all-constants): Update description.
7832 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
7835 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
7836 (*movdi_1_rex64): Use type "mmx" for alternative 5.
7838 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
7840 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
7842 (LOCAL_ALIGNMENT): Similarly.
7844 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
7845 Joseph Myers <joseph@codesourcery.com>
7847 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
7848 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
7849 * config/arm/arm-tune.md: Regenerate.
7850 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
7853 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
7855 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
7856 version number to five.
7858 2009-01-22 Dodji Seketeli <dodji@redhat.com>
7861 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
7862 * c-common.c (set_underlying_type): Likewise.
7863 (is_typedef_decl ): Likewise
7865 (set_underlying_type): Likewise.
7866 (is_typedef_type): Likewise.
7868 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
7871 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
7874 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
7877 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
7878 (LIBGCC_SPEC): Don't define.
7879 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
7881 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
7883 PR rtl-optimization/38879
7884 * alias.c (base_alias_check): Unaligned access via AND address can
7885 alias all surrounding object types except those with sizes equal
7886 or wider than the size of unaligned access.
7888 2009-01-21 Dodji Seketeli <dodji@redhat.com>
7891 * c-decl.c (clone_underlying_type): Move this ...
7892 * c-common.c (set_underlying_type): ... here.
7893 Also, make sure the function properly sets TYPE_STUB_DECL() on
7894 the newly created typedef variant type.
7895 (is_typedef_decl ): New entry point.
7896 * tree.h: Added a new member member_types_needing_access_check to
7897 struct tree_decl_non_common.
7898 (set_underlying_type): New entry point.
7899 (is_typedef_type): Likewise.
7901 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
7903 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
7904 Check whether two instructions have memory references that
7905 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
7906 are helper functions for traversing.
7907 * alias.h (insn_alias_sets_confilict_p): New prototypes.
7908 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
7909 not to draw dependency edge for instructions with non-conflicting
7912 2009-01-20 Joseph Myers <joseph@codesourcery.com>
7915 * longlong.h: Update copyright years. Use soft-fp license notice.
7916 Sync __clz_tab declaration with glibc.
7918 2009-01-20 Steve Ellcey <sje@cup.hp.com>
7921 * doc/extend.texi (syscall_linkage): New.
7922 (version_id): Modify.
7924 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
7925 Richard Guenther <rguenther@suse.de>
7927 PR tree-optimization/38747
7928 PR tree-optimization/38748
7929 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
7930 conversion if the base address is an indirect reference and the
7931 aliasing sets could cause issues.
7933 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
7935 * common.opt (fgraphite, fgraphite-identity): Add comment for
7936 explaining why these options are not documented.
7938 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
7940 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
7941 gimple_call_lhs is NULL.
7943 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
7946 * emit-rtl.c (adjust_address_1): Make sure memref is never
7949 2009-01-20 Ben Elliston <bje@au.ibm.com>
7951 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
7952 const qualifier from arg parameter. Remove unnecessary cast to char *.
7953 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
7954 const qualifier from arg 2.
7956 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
7958 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
7960 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
7963 * rtl.h (reinit_regs): New prototype.
7964 * regclass.c: Include ira.h.
7966 * Makefile.in (regclass.o): Add ira.h.
7967 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
7969 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
7972 * c-common.c (handle_aligned_attribute): Use
7973 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
7974 default alignment value.
7976 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
7978 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
7979 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
7981 * doc/extend.texi: Update __attribute__ ((aligned)). Document
7982 __BIGGEST_ALIGNMENT__.
7984 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
7986 2009-01-18 Richard Guenther <rguenther@suse.de>
7988 PR tree-optimization/38819
7989 * tree-flow.h (operation_could_trap_helper_p): Declare.
7990 * tree-eh.c (operation_could_trap_helper_p): Export.
7991 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
7992 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
7993 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
7994 are about to insert a possibly trapping instruction and fail
7997 2009-01-18 Andreas Schwab <schwab@suse.de>
7999 * doc/install.texi (Configuration): Remove obsolete paragraph
8000 about use of --with-gnu-ld with --with-gnu-as.
8002 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
8004 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
8005 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
8006 Follow spelling conventions.
8008 2009-01-18 Ben Elliston <bje@au.ibm.com>
8010 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
8011 C++ warning about implicit conversion from void * to struct
8013 (bitmap_obstack_free): Likewise for bitmap_element *.
8014 * Makefile.in (bitmap.o-warn): Remove.
8016 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
8018 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
8020 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
8021 Tobias Grosser <tobi.grosser@amd.com>
8023 * graphite.c (graphite_trans_scop_block): Do not block single
8026 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
8028 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
8029 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
8030 test with assertion.
8032 2009-01-16 Richard Guenther <rguenther@suse.de>
8034 PR tree-optimization/38835
8036 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
8037 and INT + PTR -> (INT)(PTR p+ INT) folding.
8038 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
8040 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
8043 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
8044 the subreg from a lowpart subreg if it is also casting the value.
8046 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
8047 Tobias Grosser <tobi.grosser@amd.com>
8049 * graphite.c (compare_prefix_loops): New.
8050 (build_scop_canonical_schedules): Rewritten.
8051 (graphite_transform_loops): Move build_scop_canonical_schedules
8052 after build_scop_iteration_domain.
8054 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
8055 Tobias Grosser <tobi.grosser@amd.com>
8057 * graphite.c (add_conditions_to_domain): Add the loops to
8058 the dimension of the iteration domain. Do copy the domain
8059 only when it exists.
8060 (build_scop_conditions_1): Do not call add_conditions_to_domain.
8061 (add_conditions_to_constraints): New.
8062 (can_generate_code_stmt, can_generate_code): Removed.
8063 (gloog): Do not call can_generate_code.
8064 (graphite_transform_loops): Call add_conditions_to_constraints
8065 after building the iteration domain.
8067 2009-01-16 Jakub Jelinek <jakub@redhat.com>
8069 PR tree-optimization/38789
8070 * tree-ssa-threadedge.c
8071 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
8072 __builtin_constant_p.
8074 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
8076 * dce.c (delete_unmarked_insns): Reversed the order that insns are
8077 examined before deleting them.
8079 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
8081 * function.c (aggregate_value_p): Correctly extract the function
8082 type from CALL_EXPR_FN lookup.
8084 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
8086 * config/picochip/picochip.c (picochip_override_options): Revert
8087 CFI asm flag disable commited previously.
8089 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
8090 Tobias Grosser <tobi.grosser@amd.com>
8091 Jan Sjodin <jan.sjodin@amd.com>
8093 * graphite.c (scan_tree_for_params): On substractions negate
8094 all the coefficients of the term.
8095 (clast_to_gcc_expression_red): New. Handle reduction expressions
8096 of more than two operands.
8097 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
8098 (get_vdef_before_scop): Handle also the case of default definitions.
8100 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
8102 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
8103 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
8104 Also use them when walking CALL_INSN_FUNCTION_USAGE.
8106 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
8107 Joey Ye <joey.ye@intel.com>
8110 * cfgexpand.c (expand_stack_alignment): Don't update stack
8111 boundary nor check incoming stack boundary here.
8112 (gimple_expand_cfg): Update stack boundary and check incoming
8113 stack boundary here.
8115 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
8117 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
8119 2009-01-14 Jakub Jelinek <jakub@redhat.com>
8121 PR rtl-optimization/38245
8122 * calls.c (expand_call): Add stack arguments to
8123 CALL_INSN_FUNCTION_USAGE even for pure calls (when
8124 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
8125 in regs and partially in memory or BLKmode arguments.
8126 (emit_library_call_value_1): Add stack arguments to
8127 CALL_INSN_FUNCTION_USAGE even for pure calls (when
8128 ACCUMULATE_OUTGOING_ARGS).
8129 * dce.c: Include tm_p.h.
8130 (find_call_stack_args): New function.
8131 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
8133 (mark_insn): Call find_call_stack_args for CALL_Ps.
8134 (prescan_insns_for_dce): Walk insns backwards in bb rather than
8135 forwards. Allocate and free arg_stores bitmap if needed, pass it
8136 down to deletable_insn_p, don't mark stores set in arg_stores
8137 bitmap, clear the bitmap at the beginning of each bb.
8138 * Makefile.in (dce.o): Depend on $(TM_P_H).
8140 2009-01-14 Michael Meissner <gnu@the-meissners.org>
8143 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
8144 to make sure the insn is a conditional test (bug 22599). Reformat a
8147 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
8150 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
8151 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
8152 (gloog): Do not call cleanup_tree_cfg.
8153 (graphite_transform_loops): Call cleanup_tree_cfg after all
8154 scops have been code generated.
8156 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
8157 * doc/gty.texi (Invoking the garbage collector): Added new node
8158 and section documenting ggc_collect.
8160 2009-01-14 Richard Guenther <rguenther@suse.de>
8162 PR tree-optimization/38826
8164 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
8165 initialization notes only if we actually emitted a warning.
8166 (intra_create_variable_infos): Add constraints for a result decl
8167 that is passed by hidden reference.
8168 (build_pred_graph): Mark all related variables non-direct on
8171 2009-01-14 Nick Clifton <nickc@redhat.com>
8173 * ira-conflicts.c: Include addresses.h for the definition of
8175 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
8176 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
8178 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
8181 * Makefile.in (ira-lives.o): Add except.h.
8183 * ira-lives.c: Include except.h.
8184 (process_bb_node_lives): Process can_throw_internal.
8186 2009-01-13 Jakub Jelinek <jakub@redhat.com>
8188 PR rtl-optimization/38774
8189 * combine.c (simplify_set): When undoing cc_use change, don't do
8190 PUT_CODE on the newly created comparison, but instead put back the
8193 2009-01-13 Joseph Myers <joseph@codesourcery.com>
8195 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
8196 values. Remove duplicate arm8 entry.
8198 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
8200 PR tree-optimization/38786
8201 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
8202 the SSA_NAME case of expand_scalar_variables_expr.
8203 Set the type of an expression to the type of its assign statement.
8204 (expand_scalar_variables_expr): Also gather the scalar computation
8205 used to index the memory access. Do not pass loop_p.
8206 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
8207 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
8208 the gimple_stmt_iterator where it inserts new code.
8210 (copy_bb_and_scalar_dependences): Do not pass loop_p.
8211 (translate_clast): Update call to copy_bb_and_scalar_dependences.
8213 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
8215 * graphite.h (debug_value): Removed.
8216 * graphite.c (debug_value): Removed.
8218 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
8220 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
8221 ldrd/strd with two 32-bit instructions.
8223 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
8225 * config/arm/arm.c (struct processors): Pass for speed down into
8226 cost helper functions.
8227 (const_ok_for_op): Handle COMPARE and inequality nodes.
8228 (arm_rtx_costs_1): Rewrite.
8229 (arm_size_rtx_costs): Update prototype.
8230 (arm_rtx_costs): Pass speed down to helper functions.
8231 (arm_slowmul_rtx_costs): Rework cost calculations.
8232 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
8233 (arm_9e_rtx_costs): Likewise.
8235 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
8237 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
8238 relocations of local symbols wider than UNITS_PER_WORD are not valid.
8239 (alpha_legitimize_address): Do not split local symbols wider than
8240 UNITS_PER_WORD into HIGH/LO_SUM parts.
8242 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
8245 * gcc.c (process_command): Replace call to execvp with calls
8246 to pex_one and exit.
8248 2009-01-03 Anatoly Sokolov <aesok@post.ru>
8251 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
8252 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
8253 variant for devices with 3-byte PC.
8254 (__tablejump_elpm__): New.
8256 2009-01-12 Jakub Jelinek <jakub@redhat.com>
8259 * c-parser.c (c_parser_postfix_expression): Allow `->' in
8260 offsetof member-designator, handle it as `[0].'.
8262 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8264 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
8265 function when not using named sections on targets with named sections
8266 if branch distance is less than 262132.
8268 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
8270 * combine.c (combine_instructions): Recompute
8271 optimize_this_for_speed_p for each BB in the main combine loop.
8273 2009-01-12 Tomas Bily <tbily@suse.cz>
8276 * tree-loop-distribution.c (prop_phis): New function.
8277 (generate_builtin): Call prop_phis.
8278 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
8280 2009-01-12 Jakub Jelinek <jakub@redhat.com>
8282 PR tree-optimization/38807
8283 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
8284 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
8286 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
8288 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
8289 subreg of op0 to the original op0.
8291 2009-01-11 Laurent GUERBY <laurent@guerby.net>
8293 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
8295 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
8298 * gcc/mips-tfile.c (parse_def): Fix parsing of def strings
8299 starting with digits.
8301 2009-01-10 Jakub Jelinek <jakub@redhat.com>
8304 * config/arm/arm.c (arm_is_long_call_p): Don't call
8305 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
8307 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
8309 * regrename.c (regrename_optimize): Fix dumping.
8310 (find_oldest_value_reg): Preserve REG_POINTER.
8311 (copy_hardreg_forward_1): Likewise.
8313 2009-01-09 Diego Novillo <dnovillo@google.com>
8315 * gimple.h (struct gimple_statement_base) <uid>: Document
8316 the restrictions on its use.
8318 (gimple_set_uid): Tidy.
8320 2009-01-09 Jakub Jelinek <jakub@redhat.com>
8322 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
8323 zero guard even if align_bytes != 0 and count is smaller than
8326 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
8328 PR rtl-optimization/38495
8329 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
8330 (add_range_and_copies_from_move_list): Print all added ranges.
8331 Add ranges to memory optimized destination.
8333 2009-01-09 Jakub Jelinek <jakub@redhat.com>
8337 * config/i386/i386.c (override_options): Reject
8338 -mstringop-strategy=rep_8byte with -m32.
8339 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
8340 to 1. Do count comparison against epilogue_size_needed at compile
8341 time even when count_exp was constant forced into register. For
8342 size_needed don't jump to epilogue, instead just avoid aligning
8343 and invoke the body algorithm. If need_zero_guard, add zero guard
8344 even if count is non-zero, but smaller than size_needed + number of
8345 bytes that could be stored for alignment.
8346 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
8347 to 1. If need_zero_guard, add zero guard even if count is non-zero,
8348 but smaller than size_needed + number of bytes that could be stored
8349 for alignment. Compare size_needed with epilogue_size_needed instead
8350 of desired_align - align, don't adjust size_needed, pass
8351 epilogue_size_needed to the epilogue expanders.
8354 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
8356 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8358 * pa.c (last_address): Change to unsigned.
8359 (update_total_code_bytes): Change argument to unsigned. Don't
8360 check if insn addresses are set.
8361 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
8362 addresses are not set.
8363 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
8365 2009-01-09 Nick Clifton <nickc@redhat.com>
8367 * config/sh/symbian.c: Replace uses of DECL_INLINE with
8368 DECL_DECLARED_INLINE_P.
8370 2009-01-09 Jakub Jelinek <jakub@redhat.com>
8373 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
8374 GET_MODE (op0) in operand_subword_force calls.
8377 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
8378 fold_convert arg0 operands to TREE_TYPE (op0) first.
8380 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
8382 * params.def (ira-max-conflict-table-size): Decrease default value
8385 2009-01-08 Jakub Jelinek <jakub@redhat.com>
8387 PR tree-optimization/37031
8388 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
8390 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
8391 allocate it using gc instead of heap, use VEC_quick_push instead of
8393 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
8394 instead of heap, use VEC_quick_push instead of VEC_safe_push.
8395 * tree-data-ref.h (struct access_matrix): Change matrix to gc
8396 allocated vector from heap allocated.
8397 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
8398 * tree-loop-linear.c (linear_transform_loops): Allocate nest
8399 vector only after perfect_loop_nest_depth call.
8401 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
8402 Jan Sjodin <jan.sjodin@amd.com>
8404 PR tree-optimization/38559
8405 * graphite.c (debug_value, copy_constraint,
8406 swap_constraint_variables, scale_constraint_variable, ): New.
8407 (get_lower_bound, get_upper_bound): Removed.
8408 (graphite_trans_bb_strip_mine): Clean up this code that works
8409 only for constant number of iterations. Fully copy upper and
8410 lower bound constraints, not only the constant part of them.
8411 * graphite.h (debug_value): Declared.
8413 2009-01-08 Ira Rosen <irar@il.ibm.com>
8415 PR tree-optimization/37194
8416 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
8417 Don't add the cost of cost model guard in prologue to scalar
8418 outside cost in case of known number of iterations.
8420 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
8421 Alan Modra <amodra@bigpond.net.au>
8423 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
8424 non-word-aligned REG+CONST addressing.
8426 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
8429 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
8430 free_after_compilation when outputting a thunk.
8431 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
8432 Do not call free_after_compilation here.
8434 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
8436 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
8437 (ix86_valid_target_attribute_inner_p): Ditto.
8439 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
8441 PR tree-optimization/38492
8442 PR tree-optimization/38498
8443 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
8444 * tree-chrec.h (scev_is_linear_expression): Declared.
8445 * graphite.c (graphite_cannot_represent_loop_niter): New.
8446 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
8447 (graphite_loop_normal_form): Use gcc_assert.
8448 (scan_tree_for_params): Use CASE_CONVERT.
8449 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
8450 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
8451 Use gcc_assert. Discard scops that contain unhandled cases.
8452 (build_scop_conditions): Return a boolean status for unhandled cases.
8453 (strip_mine_profitable_p): Print the loop number, not its depth.
8454 (is_interchange_valid): Pass the depth of the loop nest, don't
8455 recompute it wrongly.
8456 (graphite_trans_bb_block): Same.
8457 (graphite_trans_bb_block): Print tentative of loop blocking.
8458 (graphite_trans_scop_block): Do not print that the loop has been
8460 (graphite_transform_loops): Do not handle scops that contain condition
8463 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
8465 AVX Programming Reference (December, 2008)
8466 * config/i386/avxintrin.h (_mm256_stream_si256): New.
8467 (_mm256_stream_pd): Likewise.
8468 (_mm256_stream_ps): Likewise.
8470 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
8471 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
8472 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
8473 (bdesc_special_args): Add __builtin_ia32_movntdq256,
8474 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
8475 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
8476 (ix86_expand_special_args_builtin): Likewise.
8478 * config/i386/sse.md (AVXMODEDI): New.
8479 (avx_movnt<mode>): Likewise.
8480 (avx_movnt<mode>): Likewise.
8481 (<sse>_movnt<mode>): Remove AVX support.
8482 (sse2_movntv2di): Likewise.
8484 2009-01-07 Richard Guenther <rguenther@suse.de>
8487 * fold-const.c (extract_muldiv): Remove obsolete comment.
8488 (fold_plusminus_mult_expr): Undo MINUS_EXPR
8489 to PLUS_EXPR canonicalization for the canonicalization.
8491 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
8493 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
8494 hosted cross-compilers generating less efficient code.
8496 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
8498 * function.h (rtl_data): Add a dbr_scheduled_p field.
8499 * reorg.c (dbr_schedule): Set it.
8500 (gate_handle_delay_slots): Check it.
8501 * config/mips/mips.c (mips_base_delayed_branch): Delete.
8502 (mips_reorg): Check flag_delayed_branch instead of
8503 mips_base_delayed_branch.
8504 (mips_override_options): Don't set mips_base_delayed_branch
8505 or flag_delayed_branch.
8507 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
8509 PR rtl-optimization/38426.
8510 * ira.c (ira): Set current_function_is_leaf earlier.
8512 2009-01-06 Jakub Jelinek <jakub@redhat.com>
8514 PR rtl-optimization/38722
8515 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
8516 too early, only set a flag and modify after last possible
8519 2009-01-06 Janis Johnson <janis187@us.ibm.com>
8522 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
8523 * real.c (decimal_single_format): Correct values of emin and emax.
8524 (decimal_double_format): Ditto.
8525 (decimal_quad_format): Ditto.
8526 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
8527 computation of DECnn_MIN and DECnn_MAX for corrected values of
8528 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
8529 __DECnn_MIN__, and adjust its computation for the corrected value
8532 2009-01-06 Jan Hubicka <jh@suse.cz>
8535 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
8537 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
8539 * doc/contrib.texi (Contributors): Slightly adjust the end note.
8540 Add Robert Clark to the list of testers.
8542 2009-01-06 Jan Hubicka <jh@suse.cz>
8543 Kai Tietz <kai.tietz@onevision.com>
8545 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
8546 * config/i386/i386.c (ix86_expand_call): Add clobbers.
8548 2009-01-06 Jan Hubicka <jh@suse.cz>
8549 Kai Tietz <kai.tietz@onevision.com>
8551 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
8553 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
8554 (ix86_nsaved_regs): Count only general purpose regs.
8555 (ix86_nsaved_sseregs): New.
8556 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
8557 to 16 for w64; compute padding and size of sse reg save area.
8558 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
8559 general purpose regs.
8560 (ix86_emit_save_sse_regs_using_mov): New.
8561 (ix86_expand_prologue): Save SSE regs if needed.
8562 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
8563 (ix86_emit_restore_sse_regs_using_mov): New.
8564 (ix86_expand_epilogue): Save SSE regs if needed.
8566 2009-01-06 Jan Hubicka <jh@suse.cz>
8567 Kai Tietz <kai.tietz@onevision.com>
8569 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
8570 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
8571 functions when accumulate outgoing args is off.
8573 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
8576 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
8577 before using pseudos_have_intersected_live_ranges_p.
8579 * ira-int.h (ira_assert): Always define.
8581 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
8583 AVX Programming Reference (December, 2008)
8584 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
8585 (_mm256_permute2_pd): Likewise.
8586 (_mm_permute2_ps): Likewise.
8587 (_mm256_permute2_ps): Likewise.
8588 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
8589 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
8591 * config/i386/i386.c (ix86_builtins): Remove
8592 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
8593 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
8594 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
8595 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
8596 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
8597 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
8598 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
8599 __builtin_ia32_vpermil2ps256.
8600 (ix86_init_mmx_sse_builtins): Updated.
8601 (ix86_expand_args_builtin): Likewise.
8603 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8605 * pa.c (output_call): Relocate non-jump insns in the delay slot of
8606 long absolute calls when generating PA 2.0 code.
8608 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
8610 PR rtl-optimization/38583
8611 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
8613 * params.def (ira-max-conflict-table-size): New.
8615 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
8617 * ira.h (ira_conflicts_p): New external definition.
8619 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
8620 table. Report this. Return result of building.
8621 (ira_build_conflicts): Use ira_conflicts_p. Check result of
8622 building conflict table.
8624 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
8625 (ira_color): Use ira_conflicts_p.
8627 * global.c: Include ira.h.
8628 (pseudo_for_reload_consideration_p, build_insn_chain): Use
8631 * Makefile.in (global.o): Add ira.h.
8633 * ira-build.c (mark_all_loops_for_removal,
8634 propagate_some_info_from_allocno): New.
8635 (remove_unnecessary_allocnos): Call
8636 propagate_some_info_from_allocno.
8637 (remove_low_level_allocnos): New.
8638 (remove_unnecessary_regions): Add parameter. Call
8639 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
8640 parameter to remove_unnecessary_regions.
8641 (ira_build): Remove all regions but root if the conflict table was
8642 not built. Update conflict hard regs for allocnos crossing calls.
8644 * ira.c (ira_conflicts_p): New global.
8645 (ira): Define and use ira_conflicts_p.
8647 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
8648 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
8649 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
8651 2009-01-06 Ben Elliston <bje@au.ibm.com>
8653 * gengtype-lex.l (YY_NO_INPUT): Define.
8655 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
8658 * c-common.c (handle_vector_size_attribute): Also reject
8661 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
8663 PR tree-optimization/38492
8664 * graphite.c (rename_map_elt, debug_rename_elt,
8665 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
8666 rename_map_elt_info, eq_rename_map_elts,
8667 get_new_name_from_old_name, bb_in_sese_p): Moved around.
8668 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
8669 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
8670 (sese_build_livein_liveouts): New.
8671 (new_sese, free_sese): New.
8672 (new_scop): Call new_sese.
8673 (free_scop): Call free_sese.
8674 (rename_variables_from_edge, rename_phis_end_scop): Removed.
8675 (register_old_new_names): Renamed register_old_and_new_names.
8676 (register_scop_liveout_renames, add_loop_exit_phis,
8677 insert_loop_close_phis, struct igp,
8678 default_liveout_before_guard, add_guard_exit_phis,
8679 insert_guard_phis, copy_renames): New.
8680 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
8681 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
8682 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
8683 (scop_adjust_phis_for_liveouts): New.
8684 (gloog): Call scop_adjust_phis_for_liveouts.
8686 * graphite.h (struct sese): Documented. Added fields liveout,
8688 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
8689 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
8690 (struct scop): Added field liveout_renames.
8691 (SCOP_LIVEOUT_RENAMES): New.
8693 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
8695 PR tree-optimization/38510
8696 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
8697 (translate_clast): Call recompute_all_dominators before
8699 (gloog): Call recompute_all_dominators before graphite_verify.
8701 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
8702 Jan Sjodin <jan.sjodin@amd.com>
8704 PR tree-optimization/38500
8705 * graphite.c (create_sese_edges): Call fix_loop_structure after
8708 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
8710 * config.gcc: Add m32r*-*-rtems*.
8711 * config/m32r/rtems.h: New file.
8713 2009-01-05 Ben Elliston <bje@au.ibm.com>
8715 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
8716 (.po.pox): Likewise.
8717 (po/gcc.pot): Likewise.
8719 2009-01-04 David S. Miller <davem@davemloft.net>
8721 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
8722 (STARTING_FRAME_OFFSET): Always set to zero.
8724 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
8726 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
8727 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
8728 fixed-point types, and vectors of the same.
8730 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
8732 * config/mips/sync.md (*mb_barrier): Rename to...
8733 (*memory_barrier): ...this.
8735 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
8737 * doc/extend.texi (Function Attributes): Move @cindex after @item
8738 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
8739 and put in alphabetical order. Fix 'target' name and put in order.
8740 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
8743 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
8745 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
8746 (memory_barrier): Expand as unspec instead of unspec_volatile.
8747 Remove mem:BLK from insn operands. Use Pmode scratch register.
8748 (*memory_barrier): Define as unspec instead of unspec_volatile.
8749 Use (match_dup 0) as input operand.
8751 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
8752 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
8753 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
8754 scratch register. Remove operand 1.
8755 (*stbar): Define as unspec instead of unspec_volatile.
8756 Use (match_dup 0) as input operand, remove (const_int 8).
8757 (*membar): Define as unspec instead of unspec_volatile.
8758 Use (match_dup 0) as input operand, remove input operand 2.
8760 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
8761 (memory_barrier): Expand as unspec instead of unspec_volatile.
8762 Remove mem:BLK from insn operands. Use Pmode scratch register.
8763 (*memory_barrier): Define as unspec instead of unspec_volatile.
8764 Use (match_dup 0) as input operand.
8766 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
8767 Remove mem:BLK from insn operands. Use Pmode scratch register.
8768 Set volatile flag on operand 0.
8769 (*memory_barrier): New insn pattern.
8771 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
8773 (*memory_barrier): Use (match_dup 0) as input operand.
8775 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
8776 Remove mem:BLK from insn operands. Use Pmode scratch register.
8777 Set volatile flag on operand 0.
8778 (*mb_internal): New insn pattern.
8780 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
8782 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
8785 * function.c (struct temp_slot): Move to the section of the file
8786 that deals with temp slots. Remove field 'address'.
8787 (temp_slot_address_table): New hash table of address -> temp slot.
8788 (struct temp_slot_address_entry): New struct, items for the table.
8789 (temp_slot_address_compute_hash, temp_slot_address_hash,
8790 temp_slot_address_eq, insert_temp_slot_address): Support functions
8792 (find_temp_slot_from_address): Rewrite to use the new hash table.
8793 (remove_unused_temp_slot_addresses): Remove addresses of temp
8794 slots that have been made available.
8795 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
8796 worker function for remove_unused_temp_slot_addresses.
8797 (assign_stack_temp_for_type): Don't clear the temp slot address list.
8798 Add the temp slot address to the address -> temp slot map.
8799 (update_temp_slot_address): Update via insert_temp_slot_address.
8800 (free_temp_slots): Call remove_unused_temp_slot_addresses.
8801 (pop_temp_slots): Likewise.
8802 (init_temp_slots): Allocate the address -> temp slot map, or empty
8803 the map if it is already allocated.
8804 (prepare_function_start): Initialize temp slot processing.
8806 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
8809 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
8810 Calculate the size of all stack vars assuming no packing of stack
8811 vars will happen, replacing a quadratic algorithm with a linear one.
8813 2009-01-03 Jakub Jelinek <jakub@redhat.com>
8816 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
8819 2009-01-03 Diego Novillo <dnovillo@google.com>
8821 * doc/contrib.texi: Update contributions.
8823 2009-01-03 Jakub Jelinek <jakub@redhat.com>
8826 * builtins.c (fold_builtin_memory_op): Give up if either operand
8827 is volatile. Set srctype or desttype to non-qualified version
8831 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
8834 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
8836 PR rtl-optimization/35805
8837 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
8838 problem if fast dce is able to remove any instructions.
8839 * dce.c (dce_process_block): Fix dump message.
8841 2009-01-02 Mark Mitchell <mark@codesourcery.com>
8844 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
8846 2009-01-02 Jakub Jelinek <jakub@redhat.com>
8849 * tree-flow.h (op_code_prio, op_prio): New prototypes.
8850 * tree-pretty-print.c (op_code_prio): New function.
8851 (op_prio): No longer static. Use op_code_prio.
8852 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
8853 Use op_prio and op_code_prio to determine if () should be
8854 printed around operand(s) or not.
8856 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
8857 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
8858 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
8859 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
8860 pp_character instead of pp_string for single letter printing.
8862 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8864 * doc/extend.texi: Fix '#pragma GCC option' typo.
8866 2009-01-02 Richard Guenther <rguenther@suse.de>
8868 * doc/install.texi (--enable-checking): Mention different
8870 (--enable-stage1-checking): Document.
8872 2009-01-01 Andrew Pinski <pinskia@gmail.com>
8875 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
8876 case to be an error.
8878 2009-01-02 Ben Elliston <bje@au.ibm.com>
8880 * config/fp-bit.h (pack_d): Constify argument.
8881 * config/fp-bit.c (makenan): Constify return type. Remove casts.
8882 (isnan): Constify argument.
8886 (_fpadd_parts): Constify return type.
8887 (_fpmul_parts): Likewise.
8888 (_fpdiv_parts): Likewise.
8890 2009-01-01 Jakub Jelinek <jakub@redhat.com>
8893 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
8894 warn about overwriting initializer with side-effects or
8895 -Woverride-init if !IMPLICIT.
8896 (output_init_element): Likewise. Pass IMPLICIT down to
8898 (process_init_element): Add IMPLICIT argument. Pass it down
8899 to output_init_element.
8900 (push_init_element, pop_init_level, set_designator): Adjust
8901 process_init_element callers.
8902 (set_nonincremental_init, set_nonincremental_init_from_string):
8903 Adjust add_pending_init callers.
8904 (output_pending_init_elements): Adjust output_init_element callers.
8905 * c-tree.h (process_init_element): Adjust prototype.
8906 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
8907 process_init_element callers.
8910 Copyright (C) 2009 Free Software Foundation, Inc.
8912 Copying and distribution of this file, with or without modification,
8913 are permitted in any medium without royalty provided the copyright
8914 notice and this notice are preserved.