1 2009-04-25 Joseph Myers <joseph@codesourcery.com>
3 * c-decl.c (build_enumerator): Allow values folding to integer
4 constants but not integer constant expressions with a pedwarn if
7 2009-04-25 Joseph Myers <joseph@codesourcery.com>
10 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
11 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
12 type is an integer constant.
14 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
17 * config/i386/i386.c (print_operand) ['z']: Revert handling of
20 2009-04-25 Joseph Myers <joseph@codesourcery.com>
23 * c-decl.c (grokdeclarator): Diagnose declarations of functions
24 with variably modified return type and no storage class
25 specifiers, except for the case of nested functions. Distinguish
26 extern declarations of functions with variably modified return
27 types from those of objects with variably modified types.
29 2009-04-25 Jan Hubicka <jh@suse.cz>
31 * tree.c (list_equal_p): New function.
32 * tree.h (list_equal_p): Declare.
33 * coretypes.h (edge_def, edge, const_edge, basic_block_def
34 basic_block_def, basic_block, const_basic_block): New.
35 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
36 (redirect_eh_edge): New function.
37 (make_eh_edge_update_phi): EH edges are not abnormal.
38 * except.c: Include tree-flow.h.
39 (list_match): New function.
40 (eh_region_replaceable_by_p): New function.
41 (replace_region): New function.
42 (hash_type_list): New function.
43 (hash_eh_region): New function.
44 (eh_regions_equal_p): New function.
45 (merge_peers): New function.
46 (remove_unreachable_regions): Verify EH tree when checking;
48 (copy_eh_region_1): New function.
49 (copy_eh_region): New function.
50 (push_reachable_handler): New function.
51 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
52 regions without label but with live RESX.
53 * except.h (redirect_eh_edge_to_label): New.
54 * tree-flow.h (redirect_eh_edge): New.
55 * coretypes.h (edge_def, edge, const_edge, basic_block_def
56 basic_block_def, basic_block, const_basic_block): Remove.
57 * Makefile.in (except.o): Add dependency on tree-flow.h
58 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
59 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
62 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
65 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
66 on the destination of memcpy.
68 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
70 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
71 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
72 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
74 2009-04-25 Jan Hubicka <jh@suse.cz>
76 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
77 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
78 to be reached by different label than left.
79 (update_eh_edges): Update comment; remove edge_to_remove if possible
80 and return true if suceeded.
81 (cleanup_empty_eh): Accept sharing map; handle shared regions.
82 (cleanup_eh): Compute sharing map.
83 * except.c (remove_eh_handler_and_replace): Add argument if we should
85 (remove_unreachable_regions): Update for label sharing.
86 (label_to_region_map): Likewise.
87 (get_next_region_sharing_label): New function.
88 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
90 (remove_eh_handler): Update.
91 (remove_eh_region_and_replace_by_outer_of): New function.
92 * except.h (struct eh_region): Add next_region_sharing_label.
93 (remove_eh_region_and_replace_by_outer_of,
94 get_next_region_sharing_label): Declare.
95 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
97 2009-04-25 Jan Hubicka <jh@suse.cz>
99 * tree-cfg.c (split_critical_edges): Split also edges where we can't
100 insert code even if they are not critical.
102 2009-04-25 Jan Hubicka <jh@suse.cz>
104 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
105 (gimple_can_remove_branch_p): EH edges won't remove branch by
107 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
108 updating of non-abnormal EH edges.
109 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
110 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
111 (split_critical_edges): Split also edges where emitting code on them
112 will lead to splitting later.
114 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
115 H.J. Lu <hongjiu.lu@intel.com>
118 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
119 the configured assembler supports fildq and fistpq mnemonics.
120 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
121 * configure: Regenerated.
124 * config/i386/i386.c (print_operand): Handle 'Z'.
125 ['z']: Remove handling of special fild/fist suffixes.
126 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
127 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
129 (*floatsi<mode>2_vector_mixed): Ditto.
130 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
131 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
132 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
133 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
134 * config/i386/gas.h (GAS_MNEMONICS): Remove.
136 2009-04-25 Ben Elliston <bje@au.ibm.com>
138 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
139 the source of a set operation.
141 2009-04-25 Anatoly Sokolov <aesok@post.ru>
143 * target.h (struct gcc_target): Add case_values_threshold field.
144 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
145 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
146 * targhooks.c (default_case_values_threshold): New function.
147 * targhooks.h (default_case_values_threshold): Declare function.
148 * stmt.c (expand_case): Use case_values_threshold target hook.
149 * expr.h (case_values_threshold): Remove declartation.
150 * expr.c (case_values_threshold): Remove function.
151 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
153 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
154 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
155 (avr_case_values_threshold): Declare as static.
156 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
158 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
159 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
160 (mn10300_case_values_threshold): New function.
162 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
164 * ira.c (setup_cover_and_important_classes): Add enum cast.
166 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
168 * genpreds.c (write_enum_constraint_num): Output definition of
169 CONSTRAINT_NUM_DEFINED_P macro.
170 * ira.c (setup_cover_and_important_classes): Use
171 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
173 2009-04-24 DJ Delorie <dj@redhat.com>
175 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
176 __SH2A_SINGLE_ONLY__ also.
178 2009-04-24 Steve Ellcey <sje@cup.hp.com>
180 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
181 (movdf_internal): Ditto.
182 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
183 SFmode and DFmode constants.
184 (ia64_print_operand): Add 'G' format for printing
185 floating point constants.
187 2009-04-24 Richard Guenther <rguenther@suse.de>
189 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
190 from unsigned additions.
192 2009-04-24 Joseph Myers <joseph@codesourcery.com>
194 * c-typeck.c (set_init_index): Allow array designators that are
195 not integer constant expressions with a pedwarn if pedantic.
197 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
199 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
200 zero if no overlap in nonzero bits between the operands.
202 2009-04-24 Ian Lance Taylor <iant@google.com>
204 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
205 (record_dead_and_set_regs): Likewise.
206 * df.h (struct df_mw_hardreg): Change flags field to int.
207 (struct df_base_ref): Likewise.
208 (struct df): Change changeable_flags field to int.
209 * df-scan.c (df_defs_record): Change clobber_flags to int.
210 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
211 constants rather than #define macros.
212 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
213 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
214 (enum dwarf_calling_convention): Likewise.
215 (enum dwarf_line_number_x_ops): Likewise.
216 (enum dwarf_call_frame_info): Likewise.
217 (enum dwarf_source_language): Likewise.
218 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
219 (add_calling_convention_attribute): Likewise.
220 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
221 (combine_comparisons): Change compcode to int. Add cast to enum type.
222 * genrecog.c (maybe_both_true_2): Change c to int.
223 (write_switch): Likewise. Add cast to enum type.
224 * gimplify.c (gimplify_omp_for): Handle return values from
225 gimplify_expr using MIN rather than bitwise or.
226 (gimplify_expr): Add cast to enum type.
227 * ipa-prop.c (update_jump_functions_after_inlining): Change
228 IPA_BOTTOM to IPA_JF_UNKNOWN.
229 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
230 Add casts to enum type.
231 (setup_cover_and_important_classes): Change cl to int. Add casts
233 (setup_class_translate): Change cl and mode to int.
234 (ira_init_once): Change mode to int.
235 (free_register_move_costs): Likewise.
236 (setup_prohibited_mode_move_regs): Add casts to enum type.
237 * langhooks.c (add_builtin_function_common): Rework assertion that
239 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
240 * omega.c (omega_do_elimination): Avoid math on enum types.
241 * optabs.c (expand_vec_shift_expr): Remove casts to int.
242 * opts.c (set_debug_level): Change 2 to enum constant. Use new
243 int local to handle integral_argment value.
244 * regmove.c (try_auto_increment): Change PUT_MODE to
246 * reload.c (push_secondary_reload): Add casts to enum type.
247 (secondary_reload_class, find_valid_class): Likewise.
248 * reload1.c (emit_input_reload_insns): Likewise.
249 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
250 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
251 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
253 * tree.c (build_common_builtin_nodes): Add casts to enum type.
254 * tree-complex.c (complex_lattice_t): Typedef to int rather than
256 (expand_complex_libcall): Add casts to enum type.
257 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
258 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
259 with ERROR_MARK, not NUM_TREE_CODES.
260 (vect_create_epilog_for_reduction): Likewise.
261 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
262 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
263 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
265 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
266 vect_unused_in_loop. Change 0 to loop_vect.
267 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
268 * var-tracking.c (get_init_value): Change return type to enum
270 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
271 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
273 (arm_override_options): Add casts to enum type.
274 (arm_emit_tls_decoration): Likewise.
275 * config/i386/i386.c (ix86_function_specific_restore): Add casts
277 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
278 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
279 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
281 * config/s390/s390.c (code_for_builtin_64): Change to array of
283 (code_for_builtin_31): Likewise.
284 (s390_expand_builtin): Change code_for_builtin to enum insn_code
286 * config/sparc/sparc.c (sparc_override_options): Change value
287 field in struct code_model to enum cmodel. In initializer change
288 0 to NULL and add cast to enum type.
290 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
291 Change all callers. Issue a -Wc++-compat warning using
292 lhs_origtype if necessary.
293 (convert_for_assignment): Issue -Wc++-compat warnings about
294 invalid conversions to enum type on assignment.
295 * c-common.h (build_modify_expr): Update declaration.
297 2009-04-24 Nick Clifton <nickc@redhat.com>
299 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
300 (function_arg_advance): Likewise.
301 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
304 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
306 * config/s390/constraints.md ('I', 'J'): Fix condition.
308 2009-04-24 Diego Novillo <dnovillo@google.com>
310 * gengtype-parse.c (parse_error): Add newline after message.
312 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
314 * config/i386/sse.md (avxmodesuffixs): Removed.
315 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
316 (*avx_pinsr<ssevecsize>): This.
318 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
320 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
321 follow chains of regs with a single definition, and allow expressions
322 that are function_invariant_p.
323 (simple_rhs_p): Allow expressions that are function_invariant_p.
325 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
328 * fold-const.c (fold_cond_expr_with_comparison): When folding
329 > and >= to MAX, make sure the MAX uses the same type as the
330 comparison's operands.
332 2009-04-24 Nick Clifton <nickc@redhat.com>
334 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
335 addressing for DImode accesses.
336 (frv_print_operand_address): Handle PLUS case.
337 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
339 2009-04-24 Jakub Jelinek <jakub@redhat.com>
341 PR rtl-optimization/39794
342 * alias.c (canon_true_dependence): Add x_addr argument.
343 * rtl.h (canon_true_dependence): Adjust prototype.
344 * cse.c (check_dependence): Adjust canon_true_dependence callers.
345 * cselib.c (cselib_invalidate_mem): Likewise.
346 * gcse.c (compute_transp): Likewise.
347 * dse.c (scan_reads_nospill): Likewise.
348 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
349 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
350 canon_base_addr of the group, plus optional offset.
351 (struct group_info): Rename canon_base_mem to
353 (get_group_info): Set canon_base_addr to canon_rtx of base, not
354 canon_rtx of base_mem.
356 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
358 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
359 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
361 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
363 * config/spu/spu-builtins.h: Delete file.
365 * config/spu/spu.h (enum spu_builtin_type): Move here from
367 (struct spu_builtin_description): Likewise. Add GTY marker.
368 Do not use enum spu_function_code or enum insn_code.
369 (spu_builtins): Add extern declaration.
371 * config/spu/spu.c: Do not include "spu-builtins.h".
372 (enum spu_function_code, enum spu_builtin_type_index,
373 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
374 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
375 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
376 unsigned_V2DI_type_node): Move here from spu-builtins.h.
377 (spu_builtin_types): Make static. Add GTY marker.
378 (spu_builtins): Add extern declaration with GTY marker.
381 * config/spu/spu-c.c: Do not include "spu-builtins.h".
382 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
383 Check programmatically whether all parameters are scalar.
385 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
387 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
389 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
390 assignment from the constructor either if the target is volatile.
392 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
394 * config/arm/arm.md (insv): Do not share operands[0].
396 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
398 * config/vxlib-tls.c (active_tls_threads): Delete.
399 (delete_hook_installed): New.
400 (tls_delete_hook): Don't delete the delete hook.
401 (tls_destructor): Delete it here.
402 (__gthread_set_specific): Adjust installing the delete hook.
403 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
404 __gthread_leave_tsd_dtor_context.
406 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
408 * c-format.c (gcc_tdiag_char_table): Add support for %E.
410 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
412 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
414 (alpha_rtx_costs): Ditto.
415 (emit_unlikely_jump): Use add_reg_note.
416 (emit_frame_store_1): Ditto.
417 (alpha_expand_prologue): Ditto.
418 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
419 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
421 2009-04-23 Nick Clifton <nickc@redhat.com>
423 * config/v850/v850.md (epilogue): Remove suppressed code.
424 (return): Rename to return_simple and remove test of frame size.
425 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
426 to gen_return_simple.
428 2009-04-22 Jing Yu <jingyu@google.com>
431 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
433 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
436 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
437 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
438 value is a VECTOR_CST, the element type is the element type of the
441 2009-04-22 DJ Delorie <dj@redhat.com>
443 * config/m32c/m32c.h: Update GTY annotations to new syntax.
445 2009-04-22 Jakub Jelinek <jakub@redhat.com>
447 * alias.c (find_base_term): Move around LO_SUM case, so that
448 CONST falls through into PLUS/MINUS handling.
451 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
452 into 0, use omit_one_operand.
454 2009-04-23 Ben Elliston <bje@au.ibm.com>
456 * config/rs6000/linux-unwind.h (get_regs): Remove type
457 puns. Change the type of `pc' to an array of unsigned ints and
458 update all users. Constify frame24.
460 2009-04-22 DJ Delorie <dj@redhat.com>
462 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
463 declarations before code.
464 (current_function_special_page_vector): Likewise.
465 (m32c_expand_insv): Silence a warning.
467 2009-04-21 Taras Glek <tglek@mozilla.com>
469 * alias.c: Update GTY annotations to new syntax.
470 * basic-block.h: Likewise.
471 * bitmap.h: Likewise.
472 * c-common.h: Likewise.
473 * c-decl.c: Likewise.
474 * c-parser.c: Likewise.
475 * c-pragma.c: Likewise.
476 * c-tree.h: Likewise.
477 * cfgloop.h: Likewise.
478 * cgraph.h: Likewise.
479 * config/alpha/alpha.c: Likewise.
480 * config/arm/arm.h: Likewise.
481 * config/avr/avr.h: Likewise.
482 * config/bfin/bfin.c: Likewise.
483 * config/cris/cris.c: Likewise.
484 * config/darwin.c: Likewise.
485 * config/frv/frv.c: Likewise.
486 * config/i386/i386.c: Likewise.
487 * config/i386/i386.h: Likewise.
488 * config/i386/winnt.c: Likewise.
489 * config/ia64/ia64.h: Likewise.
490 * config/iq2000/iq2000.c: Likewise.
491 * config/mips/mips.c: Likewise.
492 * config/mmix/mmix.h: Likewise.
493 * config/pa/pa.c: Likewise.
494 * config/pa/pa.h: Likewise.
495 * config/rs6000/rs6000.c: Likewise.
496 * config/s390/s390.c: Likewise.
497 * config/sparc/sparc.c: Likewise.
498 * config/xtensa/xtensa.c: Likewise.
499 * cselib.h: Likewise.
500 * dbxout.c: Likewise.
501 * dwarf2out.c: Likewise.
502 * except.c: Likewise.
503 * except.h: Likewise.
504 * fixed-value.h: Likewise.
505 * function.c: Likewise.
506 * function.h: Likewise.
507 * gimple.h: Likewise.
508 * integrate.c: Likewise.
509 * optabs.c: Likewise.
510 * output.h: Likewise.
513 * stringpool.c: Likewise.
514 * tree-data-ref.c: Likewise.
515 * tree-flow.h: Likewise.
516 * tree-scalar-evolution.c: Likewise.
517 * tree-ssa-address.c: Likewise.
518 * tree-ssa-alias.h: Likewise.
519 * tree-ssa-operands.h: Likewise.
522 * varasm.c: Likewise.
523 * varray.h: Likewise.
525 * coretypes.h: Do not define GTY macro if it is already defined.
526 * doc/gty.texi: Update GTY documentation to new syntax.
527 * gengtype-lex.l: Enforce attribute-like syntax for GTY
528 annotations on structs.
529 * gengtype-parse.c: Likewise.
531 2009-04-22 Mark Heffernan <meheff@google.com>
533 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
535 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
537 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
540 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
542 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
543 the same as a PLUS without a shift. Increase the cost of a
546 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
548 * Makefile.in: Update dependencies.
549 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
550 * errors.h: Remove bogus comment about compatibility.
551 (warning): Update declaration.
552 * genautomata.c: Update all calls to warning.
553 * gimple.c: Do not include errors.h. Include toplev.h.
554 * tree-ssa-structalias.c: Do not include errors.h.
556 * tree-ssa-reassoc.c: Likewise.
557 * config/spu/spu-c.c: Likewise.
558 * config/spu/t-spu-elf: Update dependencies.
560 2009-04-22 Richard Guenther <rguenther@suse.de>
562 PR tree-optimization/39824
563 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
564 make sure the types are compatible.
566 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
569 * c-common.c (c_parse_error): Take a token_flags parameter.
570 Use token_type for the token type instead.
571 Pass token_flags to cpp_type2name.
572 * c-common.h (c_parse_error): Update declaration.
573 * c-parser.c (c_parser_error): Pass 0 as token flags.
575 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
577 PR rtl-optimization/39580
578 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
580 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
582 * function.c (expand_function_end): Do not emit a jump to the "naked"
583 return label for fall-through returns.
584 * except.c (sjlj_emit_function_exit): Always place the call to the
585 unregister function at the location installed by expand_function_end.
587 2009-04-22 Richard Guenther <rguenther@suse.de>
589 PR tree-optimization/39845
590 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
591 (gen_inbound_check): Likewise.
593 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
595 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
597 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
598 * config/vxlib.c (__gthread_once): Add race guard for PPC.
600 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
602 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
603 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
604 shift counts to avoid out-of-bounds array accesses.
606 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
608 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
611 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
613 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
614 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
615 GET_CODE macro. Use IN_RANGE macro where appropriate.
616 * config/alpha/alpha.h: Ditto.
617 * config/alpha/alpha.md: Ditto.
618 * config/alpha/constraints.md: Ditto.
619 * config/alpha/predicates.md: Ditto.
621 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
623 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
624 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
625 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
626 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
627 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
628 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
629 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
630 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
631 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
632 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
633 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
634 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
635 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
636 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
637 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
638 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
639 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
640 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
641 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
642 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
643 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
644 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
645 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
646 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
647 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
648 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
649 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
651 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
653 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
654 references from comments.
655 * cfgbuild.c: (count_basic_blocks): Delete.
656 (find_basic_blocks_1): Delete.
657 (find_basic_blocks): Delete.
658 * except.c (finish_eh_generation): Make static. Move comment from
659 except.h here. Remove find_basic_blocks references from comments.
660 * except.h (finish_eh_generation): Delete.
661 * basic-block.h (find_basic_blocks): Delete.
662 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
664 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
666 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
667 (sdbout_parms): Likewise.
669 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
671 * config/sh/sh.c (prepare_cbranch_operands): Use
672 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
673 (expand_cbranchdi4): Likewise.
674 (from_compare): Add cast to enum type.
675 (expand_cbranchsi4): Use add_reg_note.
676 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
677 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
678 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
679 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
680 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
681 instead of CODE_FOR_nothing.
682 (cbranchdi4): Likewise. Fix the order of arguments for
684 (push_fpscr): Use add_reg_note.
685 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
686 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
688 2009-04-21 Joseph Myers <joseph@codesourcery.com>
690 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
691 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
692 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
693 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
694 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
695 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
696 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
697 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
698 config/alpha/x-vms, config/arc/t-arc,
699 config/arm/README-interworking, config/arm/arm-c.c,
700 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
701 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
702 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
703 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
704 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
705 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
706 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
707 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
708 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
709 config/cris/t-elfmulti, config/crx/t-crx,
710 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
711 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
712 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
713 config/h8300/t-h8300, config/i386/athlon.md,
714 config/i386/darwin-libgcc.10.4.ver,
715 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
716 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
717 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
718 config/i386/t-linux64, config/i386/t-nwld,
719 config/i386/t-rtems-i386, config/i386/t-sol2-10,
720 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
721 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
722 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
723 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
724 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
725 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
726 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
727 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
728 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
729 config/m68k/t-uclinux, config/mcore/t-mcore,
730 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
731 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
732 config/mips/crtn.asm, config/mips/irix-crti.asm,
733 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
734 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
735 config/mips/mips-fixed.md, config/mips/sb1.md,
736 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
737 config/mips/t-iris6, config/mips/t-isa3264,
738 config/mips/t-libgcc-mips16, config/mips/t-linux64,
739 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
740 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
741 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
742 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
743 config/mn10300/t-linux, config/mn10300/t-mn10300,
744 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
745 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
746 config/picochip/libgccExtras/clzsi2.asm,
747 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
748 config/rs6000/darwin-libgcc.10.4.ver,
749 config/rs6000/darwin-libgcc.10.5.ver,
750 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
751 config/rs6000/t-aix43, config/rs6000/t-aix52,
752 config/rs6000/t-darwin, config/rs6000/t-fprules,
753 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
754 config/rs6000/t-lynx, config/rs6000/t-netbsd,
755 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
756 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
757 config/rs6000/t-rtems, config/rs6000/t-spe,
758 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
759 config/score/t-score-elf, config/sh/divcost-analysis,
760 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
761 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
762 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
763 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
764 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
765 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
766 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
767 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
768 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
769 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
770 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
771 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
772 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
773 limitx.h, version.c, xcoff.h: Add copyright and license notices.
774 * config/h8300/genmova.sh: Include copyright and license notices
776 * config/h8300/mova.md: Regenerate.
777 * doc/install.texi2html: Include word "Copyright" in copyright
778 notice and use name "Free Software Foundation, Inc.".
779 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
780 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
781 ChangeLog-2007, ChangeLog-2008: Correct dates.
783 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
785 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
786 NE_EXPR operations as well.
787 * c-parser.c (c_parser_condition): Do not set location information on
789 (c_parser_conditional_expression): Likewise.
790 (c_parser_binary_expression): Set location information on operators.
791 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
792 TRUTH_NOT_EXPR has been folded.
793 * fold-const.c (fold_truth_not_expr): Copy location information from
794 the incoming expression to the outgoing one.
795 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
796 recursive calls on the LHS of the operator but pass that of the
797 operator to recursive calls on the RHS of the operator. Set it
799 (shortcut_cond_expr): Set the locus of the operator on the second
800 COND_EXPR and that of the expression on the first in degenerate cases.
801 Pass the locus of the expression to calls to shortcut_cond_r.
802 Set the locus of the 'then' block on the associated jump, if any.
803 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
804 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
805 expression to call to gimplify_boolean_expr.
807 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
809 * config.gcc: Add additional configuration for
810 i686-w64-mingw* and x86_64-w64-mingw* triplet.
811 * config/i386/mingw-w64.h: New mingw-w64 specific header.
812 (CPP_SPEC): Redefine for allowing -municode option.
813 (STARTFILE_SPEC): Likewise.
814 * config/i386/t-mingw-w64: New.
815 * config/i386/mingw-w64.opt: New.
816 (municode): Add new target option.
817 * doc/invoke.texi (municode): Add documentation for new option.
819 2009-04-21 Ian Lance Taylor <iant@google.com>
821 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
822 Correct test for number of arguments.
823 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
825 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
827 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
828 argument of emit_library_call.
830 2009-04-21 Richard Guenther <rguenther@suse.de>
833 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
834 inside VIEW_CONVERT_EXPRs.
836 2009-04-21 Martin Jambor <mjambor@suse.cz>
838 * tree-switch-conversion.c (build_constructors): Split a long line.
839 (constructor_contains_same_values_p): New function.
840 (build_one_array): Create assigns of constants if possible, do not
841 call mark_sym_for_renaming, call update_stmt.
842 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
843 make_rename_temp. Do not call mark_symbols_for_renaming, call
845 (gen_def_assigns): Do not call mark_symbols_for_renaming or
846 find_new_referenced_vars, call update_stmt.
847 (gen_inbound_check): Use create_tmp_var and create ssa names manually
848 instead of calling make_rename_temp. Do not call
849 find_new_referenced_vars or mark_symbols_for_renaming, call
852 2009-04-21 Richard Guenther <rguenther@suse.de>
854 PR tree-optimization/39827
855 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
856 (tree_ssa_phiprop): Pass the correct array size.
858 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
860 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
862 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
865 * c-typeck.c (lvalue_p): Move declaration ...
866 * c-common.h (lvalue_p): ... to here.
867 * c-common.c (candidate_equal_p): New.
869 (merge_tlist): Use it.
870 (warn_for_collisions_1): Likewise.
871 (warning_candidate_p): Accept more candidates.
872 (verify_tree): A warning candidate can be an expression. Use
875 2009-04-21 Ben Elliston <bje@au.ibm.com>
878 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
879 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
880 options. Remove -mcall-solaris documentation.
882 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
885 * doc/invoke.texi (-Wlong-long): Update description.
886 * c-lex (interpret_integer): Only warn if there was no previous
887 overflow and -Wlong-long is enabled.
888 * c-decl.c (declspecs_add_type): Drop redundant flags.
889 * c.opt (Wlong-long): Init to -1.
890 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
891 and front-end warn_long_long. Wlong-long only depends on other
892 flags if it is uninitialized.
893 * c-parser.c (disable_extension_diagnostics): warn_long_long is
894 the same for CPP and FE.
895 (restore_extension_diagnostics): Likewise.
897 2009-04-20 Ian Lance Taylor <iant@google.com>
899 Fix enum conversions which are invalid in C++:
900 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
901 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
902 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
903 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
904 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
905 (dbxout_parms): Likewise.
906 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
907 (df_clear_flags): Likewise.
908 * df-problems.c (df_rd_bb_local_compute_process_def): Change
909 top_flag parameter to int.
910 (df_chain_create_bb_process_use): Likewise.
911 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
913 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
914 (df_ref_create_structure, df_def_record_1): Likewise.
915 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
916 (df_notes_rescan): Change 0 to VOIDmode in function call.
917 (df_get_call_refs, df_insn_refs_collect): Likewise.
918 (df_bb_regs_collect): Likewise.
919 (df_entry_block_defs_collect): Likewise.
920 (df_exit_block_uses_collect): Likewise.
921 * df.h: Update declarations.
922 * double-int.c (double_int_divmod): Add cast to enum type.
923 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
924 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
925 (based_loc_descr): Likewise.
926 (loc_descriptor_from_tree_1): Change first_op and second_op to
927 enum dwarf_location_atom. Add cast to enum type.
928 * expmed.c (init_expmed): Change 0 to SET in function call.
929 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
930 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
931 (do_store_flag): Likewise.
932 * fixed-value.h (struct fixed_value): Change mode to enum
934 * function.c (assign_parms): Change 0 to VOIDmode in function call.
935 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
937 (insert_insn_decl, insert_decl, insert_state): Likewise.
938 (automata_list_finish): Likewise.
939 * genrecog.c (process_define_predicate): Add cast to enum type.
940 * gensupport.c (init_predicate_table): Add cast to enum type.
941 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
943 (gimple_build_call_1, gimple_build_label): Likewise.
944 (gimple_build_goto, gimple_build_asm_1): Likewise.
945 (gimple_build_switch_1, gimple_build_cdt): Likewise.
946 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
947 (enum fallback): Rename from enum fallback_t.
948 (fallback_t): Typedef as int.
949 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
950 GSI_SAME_STMT in function call.
951 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
953 (setup_reg_class_relations): Likewise.
954 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
955 (setup_prohibited_class_mode_regs): Add cast to enum type.
956 (setup_prohibited_mode_move_regs): Likewise.
957 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
958 (record_address_regs): Change i to enum reg_class.
959 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
960 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
961 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
962 (GET_MODE_2XWIDER_MODE): Likewise.
963 (GET_CLASS_NARROWEST_MODE): Likewise.
964 * omp-low.c (expand_omp_for): Add cast to enum type.
965 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
966 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
967 * postreload.c (reload_cse_simplify_operands): Change rclass local
969 * predict.c (combine_predictions_for_insn): Change best_predictor
970 and predictor to enum br_predictor.
971 (combine_predictions_for_bb): Likewise.
972 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
973 use SET_PREDICT_EXPR_OUTCOME.
974 * real.c (real_arithmetic): Change icode to code in function call.
975 * reginfo.c (init_move_cost): Add casts to enum type.
976 (init_reg_sets_1, init_fake_stack_mems): Likewise.
977 * regmove.c (regclass_compatible_p): Change class0 and class1 to
979 * reload.c (find_valid_class): Add casts to enum type.
980 (push_reload): Change 0 to NO_REGS in function call.
981 (find_reloads): Change this_alternative to array of enum
982 reg_class. Remove some now-unnecessary casts.
983 (make_memloc): Change 0 to VOIDmode in function call.
984 * reload1.c (reload): Change 0 to VOIDmode in function call.
985 (eliminate_regs_1, elimination_effects): Likewise.
986 (eliminate_regs_in_insn): Likewise.
987 (emit_input_reload_insns): Add cast to enum type.
988 (delete_output_reload): Change 0 to VOIDmode in function call.
989 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
990 to enum type in function call.
991 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
992 (SET_PREDICT_EXPR_OUTCOME): Define.
993 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
994 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
995 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
996 (dump_function): Likewise.
997 * tree-dump.h: Update declarations.
998 * tree-pass.h: Update declarations.
999 * varasm.c (assemble_integer): Change mclass to enum mode_class.
1000 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
1002 (arm_rtx_costs_1): Correct parenthesization.
1003 (arm_rtx_costs): Add casts to enum type.
1004 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
1005 (vfp_emit_fstmd): Use add_rg_note.
1006 (emit_multi_reg_push, emit_sfm): Likewise.
1007 (thumb_set_frame_pointer): Likewise.
1008 (arm_expand_prologue): Likewise.
1009 (arm_regno_class): Change return type to enum reg_class.
1010 (thumb1_expand_prologue): Use add_reg_note.
1011 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
1012 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
1014 * config/arm/gentune.sh: Add cast to enum type.
1015 * config/arm/arm-tune.md: Rebuild.
1016 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
1017 (ix86_split_fp_branch, predict_jump): Likewise.
1018 (ix86_expand_multi_arg_builtin): Change sub_code from enum
1019 insn_code to enum rtx_code.
1020 (ix86_builtin_vectorized_function): Add cast to enum type.
1021 * config/i386/i386.md (truncdfsf2): Change slot to enum
1023 (truncxf<mode>2, isinf<mode>2): Likewise.
1024 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
1026 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
1027 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
1028 (insert_bundle_state): Change 1 to INSERT in function call.
1029 (ia64_add_bundle_selector_before): Likewise.
1030 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
1031 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
1032 (restore_stack_nonlocal): Likewise.
1033 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
1035 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
1037 (mips_rtx_costs): Likewise.
1038 (mips_override_options): Add casts to enum type.
1039 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
1041 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
1042 (store_reg, set_reg_plus_d): Likewise.
1043 (hppa_expand_prologue, hppa_profile_hook): Likewise.
1044 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1046 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
1048 (emit_unlikely_jump): Use add_reg_note.
1049 (rs6000_emit_allocate_stack): Likewise.
1050 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
1051 (output_toc): Change 1 to INSERT in function call.
1052 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
1053 (rs6000_initialize_trampoline): Likewise.
1054 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
1056 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
1057 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
1058 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
1059 (save_gprs): Use add_reg_note.
1060 (s390_emit_prologue): Likewise.
1061 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
1062 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
1063 (sparc_fold_builtin): Add cast to enum type.
1064 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
1066 (spu_expand_prologue): Use add_reg_note.
1067 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
1069 2009-04-20 Ian Lance Taylor <iant@google.com>
1071 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
1072 (c_parser_postfix_expression_after_primary): Get VEC for list of
1073 arguments. Get original types of arguments. Call
1074 build_function_call_vec.
1075 (cached_expr_list_1, cached_expr_list_2): New static variables.
1076 (c_parser_expr_list): Change return type to VEC *. Add
1077 p_orig_types parameter. Change all callers.
1078 (c_parser_release_expr): New static function.
1079 (c_parser_vec_to_tree_list): New static function.
1080 * c-typeck.c (build_function_call): Rewrite to build a VEC and
1081 call build_function_call_vec.
1082 (build_function_call_vec): New function, based on old
1083 build_function_call.
1084 (convert_arguments): Remove nargs and argarray parameters. Change
1085 values to a VEC. Add origtypes parameter.
1086 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
1087 (convert_for_assignment): Add origtype parameter. Change all
1088 callers. If warn_cxx_compat, check for conversion to an enum
1089 type when calling a function.
1090 (store_init_value): Add origtype parameter. Change all callers.
1091 (digest_init): Likewise.
1092 (struct init_node): Add origtype field.
1093 (add_pending_init): Add origtype parameter. Change all callers.
1094 (output_init_element): Likewise.
1095 (output_pending_init_elements): Pass origtype from init_node to
1096 output_init_element.
1097 (process_init_element): Pass origtype from c_expr to
1098 output_init_element.
1099 (c_finish_return): Add origtype parameter. Change all callers.
1100 * c-common.c (sync_resolve_size): Change params to VEC *. Change
1102 (sync_resolve_params): Likewise.
1103 (sync_resolve_return): Change params to first_param. Change caller.
1104 (resolve_overloaded_builtins): Change params to VEC *. Change
1105 callers. Save first parameter around call to build_function_call_vec.
1106 * c-decl.c (finish_decl): Add origtype parameter. Change all
1107 callers. Call build_function_call_vec rather than
1108 build_function_call for cleanup.
1109 * c-tree.h: Update declarations.
1110 * c-common.h: Update declarations.
1111 * stub-objc.c (objc_rewrite_function_call): Change parameter from
1112 params to first_param.
1113 * target.h (struct gcc_target): Change resolve_overloaded_builtin
1114 params parameter from tree to void *.
1115 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1116 Change arglist parameter to have type void *, and to be a pointer
1118 * config/rs6000/rs6000-protos.h
1119 (altivec_resolve_overloaded_builtin): Update declaration.
1120 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
1121 fnargs parameter to have type void *, and to be a pointer to a
1122 VEC. Call build_function_call_vec instead of
1123 build_function_call.
1124 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
1126 2009-04-20 Joey Ye <joey.ye@intel.com>
1127 Xuepeng Guo <xuepeng.guo@intel.com>
1128 H.J. Lu <hongjiu.lu@intel.com>
1130 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
1132 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
1133 (IX86_LEA_PRIORITY): Likewise.
1134 (distance_non_agu_define): New function.
1135 (distance_agu_use): Likewise.
1136 (ix86_lea_for_add_ok): Likewise.
1137 (ix86_dep_by_shift_count): Likewise.
1139 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
1140 should split for LEA.
1142 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
1144 (ix86_dep_by_shift_count): Likewise.
1146 2009-04-20 Richard Guenther <rguenther@suse.de>
1148 * expr.c (handled_component_p): Move ...
1149 * tree.h (handled_component_p): ... here.
1150 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
1151 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
1152 and REALPART_EXPR to be in one group.
1154 2009-04-20 Richard Guenther <rguenther@suse.de>
1156 * basic-block.h (get_all_dominated_blocks): Declare.
1157 * dominance.c (get_all_dominated_blocks): New function.
1158 * tree-cfg.c (get_all_dominated_blocks): Remove.
1159 (remove_edge_and_dominated_blocks): Adjust.
1160 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
1161 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
1162 instead of recursing.
1164 2009-04-20 Doug Kwan <dougkwan@google.com>
1166 * cgraph.h (cgraph_node_ptr): New type for vector functions.
1167 (struct cgraph_node_set_def): New type.
1168 (cgraph_node_set) New type. Also declare vector functions.
1169 (struct cgraph_node_set_element_def): New type.
1170 (cgraph_node_set_element): Ditto.
1171 (cgraph_node_set_iterator): New iterator type.
1172 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
1173 cgraph_node_set_remove, dump_cgraph_node_set,
1174 debug_cgraph_node_set): New prototypes.
1175 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
1176 cgraph_node_set_size): New inlines.
1177 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
1179 (struct ipa_opt_pass): Add struct cgraph_node_set_def
1180 argument to function 'write_summary'.
1181 * ipa.c: Include ggc.h.
1182 (hash_cgraph_node_set_element,
1183 eq_cgraph_node_set_element, cgraph_node_set_new,
1184 cgraph_node_set_add, cgraph_node_set_remove,
1185 cgraph_node_set_find, dump_cgraph_node_set,
1186 debug_cgraph_node_set): New functions.
1187 * Makefile.in (ipa.o): Add dependency on GGC_H.
1189 2009-04-20 Ira Rosen <irar@il.ibm.com>
1191 PR tree-optimization/39675
1192 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
1193 check of the return code of vect_schedule_slp. Check that
1194 stmt_vec_info still exists for the statement, before checking its
1197 2009-04-20 Michael Matz <matz@suse.de>
1199 * Makefile.in (generated_files): Take out $(simple_generated_c).
1201 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
1203 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
1204 (UINTPTR_TYPE): Likewise.
1206 2009-04-19 Joseph Myers <joseph@codesourcery.com>
1209 * c-typeck.c (digest_init): Check for initializing an array with a
1212 2009-04-19 Joseph Myers <joseph@codesourcery.com>
1215 * c-semantics.c (pop_stmt_list): Propagate
1216 STATEMENT_LIST_HAS_LABEL to parent statement list.
1218 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
1220 * config/mips/mips.h (mips_tune_attr): New macro.
1221 * config/mips/mips.md (cpu): Use it.
1223 2009-04-19 Joseph Myers <joseph@codesourcery.com>
1226 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
1229 2009-04-19 Diego Novillo <dnovillo@google.com>
1231 * toplev.c (compile_file): Move call to coverage_finish ...
1232 * cgraphunit.c (ipa_passes): ... here.
1233 Call cgraph_process_new_functions.
1234 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
1235 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
1237 2009-04-19 Jan Hubicka <jh@suse.cz>
1239 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
1241 (dump_cgraph_node): Dump can throw external flag.
1242 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
1244 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1248 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
1249 * common.opt (Wlogical-op): Move from here...
1250 * c.opt (Wlogical-op): ... to here.
1251 * c-typeck.c (parser_build_binary_op): Update call to
1252 warn_logical_operator.
1253 * c-opts.c (c_common_post_options): Enable warn_logical_op with
1255 * c-common.c (warn_logical_op): Update.
1256 * c-common.h (warn_logical_op): Update declaration.
1258 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
1260 * tree.c (protected_set_expr_location): Fix formatting.
1262 2009-04-18 Joseph Myers <joseph@codesourcery.com>
1265 * c-typeck.c (readonly_warning): new.
1266 (build_unary_op, build_modify_expr): Use readonly_warning for
1267 storing into something readonly but not const-qualified.
1269 2009-04-18 Joseph Myers <joseph@codesourcery.com>
1272 * c-typeck.c (build_unary_op): Check for taking address of
1273 expression of type void.
1275 2009-04-18 Joseph Myers <joseph@codesourcery.com>
1278 * c-typeck.c (build_function_call): Check for calling a function
1279 with qualified void return types. Call require_complete_type when
1282 2009-04-18 Jan Hubicka <jh@suse.cz>
1284 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
1286 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
1287 can_throw_external flag.
1288 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
1289 * ipa-pure-const.c (ignore_edge): New function.
1290 (propagate): Compute order for NOTHROW computation; set NOTHROWs
1291 only over can_throw_external edges.
1292 (local_pure_const): Add nothrow flag.
1293 * ipa-utils.c (searchc): Add ignore_edge callback.
1294 (ipa_utils_reduced_inorder): Add ignore_edge callback.
1295 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
1296 (set_nothrow_function_flags): Update cgraph.
1297 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
1299 2009-04-18 Richard Guenther <rguenther@suse.de>
1302 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
1303 (fold_stmt): ... this and ...
1304 (fold_stmt_inplace): ... this.
1305 (fold_stmt_1): Fold references in calls and asms.
1306 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
1308 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
1310 * tree-vrp.c (ssa_name_nonzero_p): Remove.
1311 * tree.h: Remove the prototype for ssa_name_nonzero_p.
1313 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
1315 * tree.c (function_args_count): Remove.
1316 * tree.h: Remove the prototype for function_args_count.
1318 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
1320 * tree-iterator.c (expr_only): Remove.
1321 * tree.h: Remove the prototype for expr_only.
1323 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
1325 * reginfo.c (cannot_change_mode_set_regs): Remove.
1326 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
1328 2009-04-08 Anatoly Sokolov <aesok@post.ru>
1330 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
1331 whether operands 0 and 1 overlaps.
1333 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1336 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
1337 pointer. Use warning_at instead of warning.
1338 (search_for_addr_array): Likewise.
1339 (check_array_bounds): Likewise.
1340 (check_all_array_refs): Check that the incoming edge is not in the
1341 list of edges to be removed.
1342 (check_all_array_refs): Avoid the temporal pointer.
1343 (vrp_visit_cond_stmt): Fix typo.
1344 (simplify_switch_using_ranges): Handle the case where the switch
1345 index is an integer constant.
1347 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
1349 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
1351 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
1353 * doc/extend.texi, doc/invoke.texi: Fix typos.
1355 2009-04-17 Cary Coutant <ccoutant@google.com>
1357 * tree-flow-inline.h (get_lineno): Fix inverted test.
1359 2009-04-17 Diego Novillo <dnovillo@google.com>
1361 * tree-ssa-pre.c (create_expression_by_pieces): Remove
1362 assertion for AVAIL_OUT.
1364 2009-04-17 Mike Frysinger <vapier@gentoo.org>
1367 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
1368 * config/sh/linux-atomic.asm: Likewise.
1370 2009-04-17 Diego Novillo <dnovillo@google.com>
1372 * except.c (debug_eh_tree): New.
1373 (struct eh_region, struct eh_status): Move ...
1374 * except.h: ... here.
1375 (add_type_for_runtime): Declare extern.
1376 (lookup_type_for_runtime): Likewise.
1377 (debug_eh_tree): Declare.
1378 * Makefile.in (GTFILES): List except.h before except.c
1380 2009-04-17 Diego Novillo <dnovillo@google.com>
1382 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
1383 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
1384 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
1385 (find_vars_r): ... here.
1386 * tree-flow.h (find_referenced_vars_in): Declare.
1387 * tree-ssa-pre.c (create_expression_by_pieces): Assert
1388 that AVAIL_OUT exists for BLOCK.
1389 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
1390 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
1391 (tree-parloops.o): Likewise.
1393 2009-04-17 Simon Baldwin <simonb@google.com>
1395 * toplev.c (default_tree_printer): Add handling for %E format.
1397 2009-04-17 Diego Novillo <dnovillo@google.com>
1399 * tree-pretty-print.c (dump_generic_node): Add break after
1400 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
1401 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
1402 FUNCTION_TYPE together. Call print_struct_decl when printing
1403 structures and TDF_SLIM is not given.
1404 (print_struct_decl): Fix logic for detecting recursion.
1406 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
1409 * gcc.c (create_at_file): New.
1410 (compile_input_file_p): New.
1411 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
1412 * main.c (main): Update call to toplev_main.
1413 * toplev.c (toplev_main): Change signature. Call expandargv.
1414 * toplev.h (toplev_main): Change signature.
1416 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
1418 * dwarf2out.c (field_byte_offset): Use the type size as the field size
1419 if the latter is not constant.
1421 2009-04-17 David Edelsohn <edelsohn@gnu.org>
1423 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
1425 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
1427 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
1428 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
1430 2009-04-17 Richard Guenther <rguenther@suse.de>
1432 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1433 Handle component references view-converting an invariant address.
1435 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
1437 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
1438 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
1439 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
1440 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
1441 Use @deftypevr rather than @deftypevar.
1443 2009-04-17 Richard Guenther <rguenther@suse.de>
1445 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
1446 (get_prop_source_stmt): Likewise.
1447 (can_propagate_from): Likewise.
1449 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
1451 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
1452 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
1453 (--with-multilib-list): Add default value.
1454 * configure: Regenerate.
1455 * Makefile.in (TM_ENDIAN_CONFIG): Define.
1456 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
1457 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
1458 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
1459 Don't add default cpu to multilib list unnecessarily, but do enable
1460 the relevant compiler option..
1461 Add support for --with-multilib-list=<blank> and
1462 --with-multilib-list=!<somelib> to supress unwanted multilibs.
1463 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
1464 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
1465 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
1467 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
1468 (MULTILIB_OSDIRNAMES): New variable.
1469 * config/sh/t-1e: Delete file.
1470 * config/sh/t-mlib-sh1: Delete file.
1471 * config/sh/t-mlib-sh2: Delete file.
1472 * config/sh/t-mlib-sh2a: Delete file.
1473 * config/sh/t-mlib-sh2a-nofpu: Delete file.
1474 * config/sh/t-mlib-sh2a-single: Delete file.
1475 * config/sh/t-mlib-sh2a-single-only: Delete file.
1476 * config/sh/t-mlib-sh2e: Delete file.
1477 * config/sh/t-mlib-sh3e: Delete file.
1478 * config/sh/t-mlib-sh4: Delete file.
1479 * config/sh/t-mlib-sh4-nofpu: Delete file.
1480 * config/sh/t-mlib-sh4-single: Delete file.
1481 * config/sh/t-mlib-sh4-single-only: Delete file.
1482 * config/sh/t-mlib-sh4a: Delete file.
1483 * config/sh/t-mlib-sh4a-nofpu: Delete file.
1484 * config/sh/t-mlib-sh4a-single: Delete file.
1485 * config/sh/t-mlib-sh4a-single-only: Delete file.
1486 * config/sh/t-mlib-sh4al: Delete file.
1487 * config/sh/t-mlib-sh5-32media: Delete file.
1488 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
1489 * config/sh/t-mlib-sh5-64media: Delete file.
1490 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
1491 * config/sh/t-mlib-sh5-compact: Delete file.
1492 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
1493 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
1494 * doc/install.texi (Options specification): Add
1495 --with-multilib-list and --with-endian.
1497 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
1499 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
1501 (OBJS-common): Add plugin-version.o.
1502 (plugin-version.o): New.
1503 * gcc-plugin.h (plugin_gcc_version): New.
1504 (plugin_default_version_check): New.
1505 (plugin_init_func, plugin_init): Add version argument.
1506 * plugin-version.c: New.
1507 * plugin.c (str_plugin_gcc_version_name): New.
1508 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
1509 pass it to the init function.
1510 (plugin_default_version_check): New.
1512 2009-04-17 Richard Guenther <rguenther@suse.de>
1514 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
1515 for decl-vs-decl disambiguation.
1517 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
1519 * config/s390/s390.h (s390_tune_attr): New macro definition.
1520 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
1522 2009-04-17 Richard Guenther <rguenther@suse.de>
1524 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
1525 (fold_stmt_r): Likewise.
1526 (maybe_fold_reference): New function.
1527 (fold_gimple_assign): Handle cases fold_stmt_r did.
1528 (fold_stmt): Do not use fold_stmt_r.
1529 (fold_stmt_inplace): Likewise.
1531 2009-04-17 Richard Guenther <rguenther@suse.de>
1533 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
1534 (record_equivalences_from_stmt): Remove useless checks and
1536 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
1537 the type is already suitable.
1539 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
1541 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
1543 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
1545 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
1546 (CMPtype): Define as __gcc_CMPtype.
1548 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
1550 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
1551 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
1553 2009-04-17 Richard Guenther <rguenther@suse.de>
1555 PR tree-optimization/39746
1556 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
1557 special-casing for builtins and static variable use/def.
1558 (call_may_clobber_ref_p_1): Likewise.
1560 2009-04-16 Ian Lance Taylor <iant@google.com>
1562 * df.h: Include "timevar.h".
1563 (struct df_problem): Change tv_id field to timevar_id_t.
1564 * tree-pass.h: Include "timevar.h".
1565 (struct opt_pass): Change tv_id field to timevar_id_t.
1566 * timevar.h (timevar_id_t): Define TV_NONE.
1567 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
1568 TV_NONE rather than tv_id != 0.
1569 (execute_one_pass): Likewise.
1570 * Makefile.in (DF_H): Add $(TIMEVAR_H).
1571 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
1572 dependencies to $(TREE_PASS_H).
1573 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
1575 (pass_branch_target_load_optimize2): Likewise.
1576 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
1577 (pass_outof_cfg_layout_mode): Likewise.
1578 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
1579 (pass_rebuild_cgraph_edges): Likewise.
1580 (pass_remove_cgraph_callee_edges): Likewise.
1581 * df-core.c (pass_df_initialize_opt): Likewise.
1582 (pass_df_initialize_no_opt): Likewise.
1583 (pass_df_finish): Likewise.
1584 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
1585 * except.c (pass_set_nothrow_function_flags): Likewise.
1586 (pass_convert_to_eh_region_ranges): Likewise.
1587 * final.c (pass_compute_alignments): Likewise.
1588 * function.c (pass_instantiate_virtual_regs): Likewise.
1589 (pass_init_function): Likewise.
1590 (pass_leaf_regs): Likewise.
1591 (pass_match_asm_constraints): Likewise.
1592 * gimple-low.c (pass_lower_cf): Likewise.
1593 (pass_mark_used_blocks): Likewise.
1594 * init-regs.c (pass_initialize_regs): Likewise.
1595 * integrate.c (pass_initial_value_sets): Likewise.
1596 * ira.c (pass_ira): Likewise.
1597 * jump.c (pass_cleanup_barriers): Likewise.
1598 * omp-low.c (pass_expand_omp): Likewise.
1599 (pass_lower_omp): Likewise.
1600 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
1601 * recog.c (pass_split_all_insns): Likewise.
1602 (pass_split_after_reload): Likewise.
1603 (pass_split_before_regstack): Likewise.
1604 (pass_split_before_sched2): Likewise.
1605 (pass_split_for_shorten_branches): Likewise.
1606 * reginfo.c (pass_reginfo_init): Likewise.
1607 (pass_subregs_of_mode_init): Likewise.
1608 (pass_subregs_of_mode_finish): Likewise.
1609 * passes.c (pass_postreload): Likewise.
1610 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
1611 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
1612 (pass_warn_function_return): Likewise.
1613 (pass_warn_function_noreturn): Likewise.
1614 * tree-complex.c (pass_lower_complex): Likewise.
1615 (pass_lower_complex_O0): Likewise.
1616 * tree-if-conv.c (pass_if_conversion): Likewise.
1617 * tree-into-ssa.c (pass_build_ssa): Likewise.
1618 * tree-mudflap.c (pass_mudflap_1): Likewise.
1619 (pass_mudflap_2): Likewise.
1620 * tree-nomudflap.c (pass_mudflap_1): Likewise.
1621 (pass_mudflap_2): Likewise.
1622 * tree-nrv.c (pass_return_slot): Likewise.
1623 * tree-object-size.c (pass_object_sizes): Likewise.
1624 * tree-optimize.c (pass_all_optimizations): Likewise.
1625 (pass_early_local_passes): Likewise.
1626 (pass_all_early_optimizations): Likewise.
1627 (pass_cleanup_cfg): Likewise.
1628 (pass_cleanup_cfg_post_optimizing): Likewise.
1629 (pass_free_datastructures): Likewise.
1630 (pass_free_cfg_annotations): Likewise.
1631 (pass_fixup_cfg): Likewise.
1632 (pass_init_datastructures): Likewise.
1633 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
1634 (pass_late_warn_uninitialized): Likewise.
1635 (pass_update_address_taken): Likewise.
1636 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
1637 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
1638 (pass_cse_sincos): Likewise.
1639 (pass_convert_to_rsqrt): Likewise.
1640 * tree-ssa-structalias.c (pass_build_alias): Likewise.
1641 * tree-stdarg.c (pass_stdarg): Likewise.
1642 * tree-tailcall.c (pass_tail_recursion): Likewise.
1643 (pass_tail_calls): Likewise.
1644 * tree-vect-generic.c (pass_lower_vector): Likewise.
1645 (pass_lower_vector_ssa): Likewise.
1646 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
1648 2009-04-16 Joseph Myers <joseph@codesourcery.com>
1650 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
1652 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
1654 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
1655 logical and signext.
1657 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
1660 * config/sh/predicates.md (arith_operand): Check if the operand
1661 of TRUNCATE is a REG.
1663 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1665 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
1666 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
1668 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1670 * tree-iterator.c (tsi_split_statement_list_after,
1671 tsi_split_statement_list_before): Remove.
1672 * tree-iterator.h: Remove the prototypes for
1673 tsi_split_statement_list_after and tsi_split_statement_list_before.
1675 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1677 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
1678 * tree-ssa-propagate.h: Remove the prototype for
1679 stmt_makes_single_load.
1681 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1683 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
1684 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
1686 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1688 * tree-iterator.c (EXPR_LAST_BODY): Remove.
1690 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1692 * except.c (eh_region_outer_p): Remove.
1693 * except.h: Remove the prototype for eh_region_outer_p.
1695 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
1697 * function.c (current_function_assembler_name): Remove.
1698 * function.h: Remove the prototype for
1699 current_function_assembler_name.
1701 2009-04-16 Ian Lance Taylor <iant@google.com>
1703 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
1704 (add_reg_note): Call alloc_reg_note.
1705 * rtl.h (alloc_reg_note): Declare.
1706 * combine.c (try_combine): Use alloc_reg_note.
1707 (recog_for_combine, move_deaths): Likewise.
1708 (distribute_notes): Use alloc_reg_note and add_reg_note.
1709 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
1710 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
1711 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
1713 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
1715 PR rtl-optimization/39762
1716 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
1717 ira_may_move_out_cost): Add comments about way of their usage.
1718 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
1720 * ira-conflicts.c (process_regs_for_copy): Use function
1721 ira_get_register_move_cost instead of global
1722 ira_register_move_cost.
1724 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
1725 color_pass, move_spill_restore, update_curr_costs): Ditto.
1727 * ira-lives.c (process_single_reg_class_operands): Ditto.
1729 * ira-emit.c (emit_move_list): Ditto.
1731 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
1732 (record_reg_classes): Ditto. Use functions
1733 ira_get_register_move_cost and ira_get_may_move_cost instead of
1734 global vars ira_register_move_cost, ira_may_move_out_cost and
1735 ira_may_move_in_cost.
1736 (record_address_regs): Don't call ira_init_register_move_cost.
1737 Use function ira_get_may_move_cost instead of global
1738 ira_may_move_in_cost.
1739 (process_bb_node_for_hard_reg_moves): Use function
1740 ira_get_register_move_cost instead of global ira_register_move_cost.
1741 (ira_costs): Don't call ira_init_register_move_cost.
1743 2009-04-16 Richard Guenther <rguenther@suse.de>
1745 * tree-cfg.c (verify_gimple_assign_binary):
1746 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
1747 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
1748 (create_general_new_stmt): Note that this function is broken.
1750 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
1752 * common.opt (fhelp): Add Var(help_flag).
1753 * gcc-plugin.h (plugin_info): Add help.
1754 * plugin.c (plugin_name_args): Add help.
1755 (register_plugin_info): Set plugin->help.
1756 (print_help_one_plugin): New.
1757 (print_plugins_help): New.
1758 * plugin.h (print_plugins_help): New.
1759 * toplev.c (toplev_main): Call print_plugins_help if needed.
1761 2009-04-16 Richard Guenther <rguenther@suse.de>
1763 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
1764 (gimple_ior_addresses_taken_1): New function.
1765 (gimple_ior_addresses_taken): Likewise.
1766 * gimple.h (struct gimple_statement_with_ops_base): Remove
1767 addresses_taken member.
1768 (gimple_ior_addresses_taken): Declare.
1769 (gimple_addresses_taken, gimple_addresses_taken_ptr,
1770 gimple_set_addresses_taken): Remove.
1771 * ipa-reference.c (mark_address): New function.
1772 (scan_stmt_for_static_refs): Use it for marking addresses taken.
1773 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
1774 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
1775 (gimple_add_to_addresses_taken): Remove.
1776 (get_tmr_operands): Call mark_address_taken.
1777 (get_asm_expr_operands): Likewise.
1778 (get_expr_operands): Likewise.
1779 (build_ssa_operands): Do not clear the addresses_taken bitmap.
1780 (free_stmt_operands): Do not free it.
1781 * tree-ssa.c (delete_tree_ssa): Likewise.
1782 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
1784 2009-04-16 Richard Guenther <rguenther@suse.de>
1786 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
1787 (walk_stmt_load_store_ops): Likewise.
1788 * gimple.c (get_base_loadstore): New function.
1789 (walk_stmt_load_store_addr_ops): Likewise.
1790 (walk_stmt_load_store_ops): Likewise.
1791 * ipa-pure-const.c (check_op): Simplify.
1792 (check_load, check_store): New functions.
1793 (check_stmt): Use walk_stmt_load_store_ops.
1794 * ipa-reference.c (mark_load): Adjust signature.
1795 (mark_store): Likewise.
1796 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
1798 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
1800 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
1802 * opts.c (common_handle_option): Don't call print_version.
1803 * plugin.c (plugin_name_args): Add version.
1804 (register_plugin_info): New.
1805 (register_callback): Handle PLUGIN_INFO.
1806 (try_init_one_plugin): New.
1807 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
1809 (finalize_one_plugin): New.
1810 (finalize_plugins): New.
1811 (print_one_plugin): New.
1812 (print_plugins_versions): New.
1813 * plugin.h (print_plugins_versions): New.
1814 (finalize_plugins): New.
1815 * toplev.c (compile_file): Don't call initialize_plugins.
1816 (print_version): Call print_plugins_versions.
1817 (toplev_main): Call initialize_plugins. Print version if needed.
1818 Call finalize_plugins.
1820 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
1822 * common.opt (fversion): New.
1823 * gcc.c (print_version): New.
1824 (process_command): Don't print the version. Just set print_version.
1825 (main): Print version. Call subprocesses if print_version and
1826 verbose_flag are set.
1827 * opts.c (common_handle_option): Handle OPT_fversion.
1829 2009-04-16 Richard Guenther <rguenther@suse.de>
1830 Ira Rosen <irar@il.ibm.com>
1832 PR tree-optimization/39698
1833 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
1834 type of the reduction variable. Only generate the def if
1837 * omp-low.c (expand_omp_for_generic): When converting to a pointer
1838 make sure to first convert to an integer of the same precision.
1839 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
1840 the type of the evolution correctly in computing the new
1841 induction variable base.
1843 2009-04-16 Richard Guenther <rguenther@suse.de>
1846 * tree-cfg.c (make_blocks): Split statements with to-be
1847 abnormal SSA names on the lhs.
1849 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
1851 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
1852 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
1853 * c-typeck.c (really_start_incremental_init): Likewise.
1854 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
1855 (TARGET_INITIALIZER): Remove it.
1856 * target.h (struct target): Remove vector_opaque_p.
1857 * tree.c (build_opaque_vector_type): New.
1858 * tree.h (TYPE_VECTOR_OPAQUE): New.
1859 (build_opaque_vector_type): Declare.
1860 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
1861 * config/rs6000/rs6000.c (build_opaque_vector_type,
1862 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
1863 (rs6000_init_builtins): Use build_opaque_vector_type for
1864 opaque_V4SI_type_node.
1866 2009-04-15 Catherine Moore <clm@codesourcery.com>
1868 * debug.h (set_name): Declare.
1869 * dwarf2out.c (dwarf2out_set_name): Declare.
1870 (dwarf2_debug_hooks): Add set_name.
1871 (find_AT_string): New.
1872 (add_AT_string): Call find_AT_string.
1873 (dwarf2out_set_name): New.
1874 * cp/decl.c (grokdeclarator): Call set_name.
1875 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
1876 * debug.c (do_nothing_debug_hooks): Likewise.
1877 * dbxout.c (dbx_debug_hooks): Likewise.
1878 * sdbout.c (sdb_debug_hooks): Likewise.
1880 2009-04-15 Michael Eager <eager@eagercon.com>
1882 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
1883 reg for single-precision FPU.
1884 * config/rs6000/rs6000.md (movsi_internal1): Only for
1886 (movsi_internal1_single): New. Add pattern to move SI values to/from
1887 single-precision FP regs.
1889 2009-04-15 Richard Guenther <rguenther@suse.de>
1891 * omp-low.c (lower_rec_input_clauses): Build correct address
1893 (expand_omp_for_generic): Fix multiplication type.
1894 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
1895 (generate_memset_zero): Fix types.
1896 * tree-profile.c (prepare_instrumented_value): Correctly
1899 2009-04-15 Ian Lance Taylor <iant@google.com>
1901 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
1902 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
1903 for -Wall and for -Wc++-compat.
1904 (c_common_post_options): For C++, set warn_enum_compare if not
1906 * c-tree.h (struct c_expr): Add field original_type.
1907 (build_external_ref): Update declaration.
1908 * c-parser.c (c_parser_braced_init): Set original_type.
1909 (c_parser_initelt): Likewise.
1910 (c_parser_expr_no_commas): Likewise.
1911 (c_parser_conditional_expression): Likewise.
1912 (c_parser_cast_expression): Likewise.
1913 (c_parser_unary_expression): Likewise. Pull setting of
1914 original_code to top of function.
1915 (c_parser_sizeof_expression): Set original_type.
1916 (c_parser_alignof_expression): Likewise.
1917 (c_parser_postfix_expression): Likewise. Pull setting of
1918 original_code to top of function.
1919 (c_parser_postfix_expression_after_paren_type): Set original_type.
1920 (c_parser_postfix_expression_after_primary): Likewise.
1921 (c_parser_expression): Likewise.
1922 * c-typeck.c (build_external_ref): Add type parameter. Change all
1924 (c_expr_sizeof_expr): Set original_type field.
1925 (parser_build_unary_op): Likewise.
1926 (parser_build_binary_op): Likewise. Optionally warn about
1927 comparisons of enums of different types.
1928 (digest_init): Set original_type field.
1929 (really_start_incremental_init): Likewise.
1930 (push_init_level, pop_init_level): Likewise.
1931 * doc/invoke.texi (Warning Options): -Wenum-compare now
1934 2009-04-15 Richard Guenther <rguenther@suse.de>
1936 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
1937 out a necessary conversion.
1938 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
1939 names we didn't value number.
1940 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
1942 2009-04-15 Richard Guenther <rguenther@suse.de>
1944 PR tree-optimization/39764
1945 * tree-ssa-ccp.c (get_value): Canonicalize value with
1946 canonicalize_float_value.
1948 2009-04-15 Jan Hubicka <jh@suse.cz>
1950 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
1951 Wrong version of patch.
1953 2009-04-15 Jan Hubicka <jh@suse.cz>
1955 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
1957 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
1959 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
1960 our distinct integral and vector types.
1962 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
1964 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
1965 * init.c (build_vtbl_address): Remove call to assemble_external.
1967 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1969 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
1970 output for other floating point modes.
1972 2009-04-14 Diego Novillo <dnovillo@google.com>
1974 * diagnostic.c (diagnostic_report_diagnostic): Do not
1975 warn about loaded plugins for DK_ERROR and DK_WARNING.
1976 * c-decl.c (declspecs_add_type): Move call to
1977 invoke_plugin_callbacks ...
1978 * c-parser.c (c_parser_declspecs): ... here.
1979 * plugin.c (dump_active_plugins): Tidy output.
1981 2009-04-14 Diego Novillo <dnovillo@google.com>
1982 Le-Chun Wu <lcwu@google.com>
1984 * configure.ac: Add --enable-plugin support.
1985 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
1986 * Makefile.in (PLUGIN_H): Define.
1987 Export ENABLE_PLUGIN and GMPINC to site.exp.
1988 Add PLUGINLIBS to link command.
1989 Add/modify dependencies for plugin.o and files including plugin.h.
1991 * config.in: Regenerate.
1993 * opts.c (common_handle_option): Handle OPT_fplugin_ and
1996 2009-04-14 Le-Chun Wu <lcwu@google.com>
1998 * tree-pass.h (register_one_dump_file): Add a prototype for
1999 register_one_dump_file.
2000 * toplev.c (compile_file): Call initialize_plugins.
2001 (do_compile): Call invoke_plugin_callbacks.
2002 (toplev_main): Call invoke_plugin_callbacks.
2003 * common.opt: Add -fplugin= and -fplugin-arg-.
2004 * gcc-plugin.h: New public header file for plugins to include.
2005 * plugin.c: New source file.
2006 * plugin.h: New internal header file.
2007 * passes.c (register_one_dump_file): Make it external.
2009 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
2011 2009-04-14 Diego Novillo <dnovillo@google.com>
2013 * doc/plugins.texi: New.
2014 * doc/gccint.texi: Add reference to Plugins chapter.
2015 * doc/invoke.texi: Document -fplugin and -fplugin-arg
2016 * diagnostic.c (diagnostic_report_diagnostic): Warn about
2017 loaded plugins, if any.
2018 * timevar.def (TV_PLUGIN_INIT): Define.
2019 (TV_PLUGIN_RUN): Define.
2020 * plugin.c: Include timevar.h
2021 (plugins_active_p): New.
2022 (dump_active_plugins): New.
2023 (debug_active_plugins): New.
2025 2009-04-14 Joseph Myers <joseph@codesourcery.com>
2027 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
2029 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
2031 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
2033 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
2034 the same as a minus without a shift.
2036 2009-04-14 Nick Clifton <nickc@redhat.com>
2038 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
2039 comparisons with small integers will always produce a short
2042 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
2045 2008-12-19 Diego Novillo <dnovillo@google.com>
2047 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
2049 2009-04-14 Richard Guenther <rguenther@suse.de>
2051 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
2053 (verify_gimple_assign_binary): Likewise. Handle shifts and
2055 (verify_gimple_phi): Print the mismatched argument position.
2056 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
2058 (vect_update_init_of_dr): Likewise.
2059 * matrix-reorg.c (transform_access_sites): Do what the
2061 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
2063 2009-04-13 Michael Eager <eager@eagercon.com>
2065 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
2066 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
2067 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
2068 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
2069 remove duplicate config
2071 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2073 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
2074 file_name:line_number type locator of the call site.
2076 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
2078 * genautomata.c: Put blank after comma.
2079 (automaton_decls): New.
2080 (struct unit_usage): Add comments to member next.
2081 (store_alt_unit_usage): Keep the list ordered.
2082 (unit_present_on_list_p, equal_alternatives_p): New.
2083 (check_regexp_units_distribution): Check units distribution
2084 correctness correctly.
2085 (main): Don't write automata if error is found. Return correct
2088 * config/m68k/cf.md (cfv4_ds): Remove.
2089 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
2090 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
2092 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
2093 power4-load-ext, power4-store, power4-store-update,
2094 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
2095 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
2096 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
2097 power4-sqrt, power4-isync): Modify reservation to make correct
2098 unit distribution to automata.
2100 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
2101 power5-store-update, power5-two, power5-three, power5-lmul,
2102 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
2104 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
2106 * except.c (pass_set_nothrow_function_flags): Set name and add
2108 (set_nothrow_function_flags): Mention in the dump file when
2109 changing a function to nothrow.
2111 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
2114 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
2115 instead of unsigned long.
2117 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2119 * config/arm/arm.c (return_used_this_function): Remove.
2120 (arm_output_function_prologue): Remove use of
2121 return_used_this_function.
2122 (output_return_instruction): Replace use of
2123 return_used_this_function
2124 by cfun->machine->return_used_this_function.
2125 (arm_output_epilogue): Likewise.
2126 (arm_output_function_epilogue): Likewise.
2127 (thumb_unexpanded_epilogue): Likewise.
2128 * config/arm/arm.h (struct machine_function):
2129 New member return_used_this_function.
2131 2009-04-12 Mark Mitchell <mark@codesourcery.com>
2133 * doc/install.texi: Correct description of default directory for
2134 --with-gxx-include-dir.
2136 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
2138 * fold-const.c (build_range_check): Properly deal with enumeral and
2141 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
2143 * doc/invoke.texi (max_gcse_passes): Remove documentation.
2144 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
2145 * params.h (MAX_GCSE_PASSES): Remove.
2146 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
2147 in sequence. Remove ability to run multiple passes.
2148 (bypass_jumps): Report run as third CPROP pass.
2150 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
2153 * except.c (can_throw_external): Look at each insn in a SEQUENCE
2154 when deciding whether the whole SEQUENCE can throw.
2156 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
2159 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
2160 offseted label references.
2162 2009-04-11 Jan Hubicka <jh@suse.cz>
2164 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
2166 2009-04-11 Richard Guenther <rguenther@suse.de>
2169 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
2170 return variables as TREE_ADDRESSABLE.
2172 2009-04-11 Richard Guenther <rguenther@suse.de>
2174 PR tree-optimization/39713
2175 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
2176 reference trees have SSA_NAME operands.
2178 2009-04-11 Richard Guenther <rguenther@suse.de>
2181 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
2182 address expressions.
2184 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
2186 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
2187 match changes in Cygwin 1.7
2188 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
2189 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
2191 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
2193 PR tree-optimization/39701
2194 * doc/invoke.texi (Optimization Options): Document change in
2195 meaning and initialization of -fdelete-null-pointer-checks.
2197 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
2200 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
2202 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
2205 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
2207 2009-04-10 Chao-ying Fu <fu@mips.com>
2209 * doc/tm.texi (Instruction Output): Document
2210 TARGET_ASM_FINAL_POSTSCAN_INSN.
2211 * target.h (final_postscan_insn): New field in asm_out.
2212 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
2213 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
2214 * final.c (final_scan_insn): Call
2215 targetm.asm_out.final_postscan_insn after outputting
2216 an asm macro and a normal instruction.
2218 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
2219 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
2220 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
2221 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
2222 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
2224 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
2227 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
2228 variables as non-NULL even with -fdelete-null-pointer-checks.
2230 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
2232 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
2234 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
2237 * config/i386/i386.c (classify_argument): Handle SCmode with
2238 (bit_offset % 64) != 0.
2240 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
2242 * doc/invoke.texi (Optimize Options): Add cross-reference to
2243 -Q --help=optimizers examples.
2245 2009-04-10 Ben Elliston <bje@au.ibm.com>
2248 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
2249 regalign for the reg == fpr and TDmode case.
2251 2009-04-09 David Ayers <ayers@fsfe.org>
2254 * objc/objc-act.c (warn_with_method): Remove helper function.
2255 (check_duplicates): Call warning and inform directly.
2256 (really_start_method): Likewise.
2258 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
2260 * expmed.c (expand_divmod): Always use a comparison for a division
2261 by a large unsigned integer.
2263 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
2264 for things others than variables or functions as nonzero.
2266 2009-04-09 Nick Clifton <nickc@redhat.com>
2268 * unwind-compat.c: Change copyright header to refer to version
2269 3 of the GNU General Public License with version 3.1 of the
2270 GCC Runtime Library Exception and to point readers at the
2271 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
2272 * config/alpha/crtfastmath.c: Likewise.
2273 * config/alpha/linux-unwind.h: Likewise.
2274 * config/alpha/qrnnd.asm: Likewise.
2275 * config/alpha/vms-crt0-64.c: Likewise.
2276 * config/alpha/vms-crt0.c: Likewise.
2277 * config/alpha/vms-dwarf2.asm: Likewise.
2278 * config/alpha/vms-dwarf2eh.asm: Likewise.
2279 * config/alpha/vms-psxcrt0-64.c: Likewise.
2280 * config/alpha/vms-psxcrt0.c: Likewise.
2281 * config/alpha/vms_tramp.asm: Likewise.
2282 * config/arc/initfini.c: Likewise.
2283 * config/arc/lib1funcs.asm: Likewise.
2284 * config/arm/bpabi-v6m.S: Likewise.
2285 * config/arm/bpabi.S: Likewise.
2286 * config/arm/bpabi.c: Likewise.
2287 * config/arm/crti.asm: Likewise.
2288 * config/arm/crtn.asm: Likewise.
2289 * config/arm/ieee754-df.S: Likewise.
2290 * config/arm/ieee754-sf.S: Likewise.
2291 * config/arm/lib1funcs.asm: Likewise.
2292 * config/arm/libunwind.S: Likewise.
2293 * config/arm/linux-atomic.c: Likewise.
2294 * config/arm/mmintrin.h: Likewise.
2295 * config/arm/pr-support.c: Likewise.
2296 * config/arm/unaligned-funcs.c: Likewise.
2297 * config/arm/unwind-arm.c: Likewise.
2298 * config/arm/unwind-arm.h: Likewise.
2299 * config/avr/libgcc.S: Likewise.
2300 * config/bfin/crti.s: Likewise.
2301 * config/bfin/crtlibid.s: Likewise.
2302 * config/bfin/crtn.s: Likewise.
2303 * config/bfin/lib1funcs.asm: Likewise.
2304 * config/bfin/linux-unwind.h: Likewise.
2305 * config/cris/arit.c: Likewise.
2306 * config/cris/cris_abi_symbol.c: Likewise.
2307 * config/darwin-64.c: Likewise.
2308 * config/darwin-crt2.c: Likewise.
2309 * config/darwin-crt3.c: Likewise.
2310 * config/darwin.h: Likewise.
2311 * config/dbxelf.h: Likewise.
2312 * config/dfp-bit.c: Likewise.
2313 * config/dfp-bit.h: Likewise.
2314 * config/elfos.h: Likewise.
2315 * config/fixed-bit.c: Likewise.
2316 * config/fixed-bit.h: Likewise.
2317 * config/fp-bit.c: Likewise.
2318 * config/fp-bit.h: Likewise.
2319 * config/fr30/crti.asm: Likewise.
2320 * config/fr30/crtn.asm: Likewise.
2321 * config/fr30/lib1funcs.asm: Likewise.
2322 * config/freebsd-spec.h: Likewise.
2323 * config/frv/cmovd.c: Likewise.
2324 * config/frv/cmovh.c: Likewise.
2325 * config/frv/cmovw.c: Likewise.
2326 * config/frv/frvbegin.c: Likewise.
2327 * config/frv/frvend.c: Likewise.
2328 * config/frv/lib1funcs.asm: Likewise.
2329 * config/glibc-stdint.h: Likewise.
2330 * config/h8300/clzhi2.c: Likewise.
2331 * config/h8300/crti.asm: Likewise.
2332 * config/h8300/crtn.asm: Likewise.
2333 * config/h8300/ctzhi2.c: Likewise.
2334 * config/h8300/fixunssfsi.c: Likewise.
2335 * config/h8300/lib1funcs.asm: Likewise.
2336 * config/h8300/parityhi2.c: Likewise.
2337 * config/h8300/popcounthi2.c: Likewise.
2338 * config/i386/ammintrin.h: Likewise.
2339 * config/i386/att.h: Likewise.
2340 * config/i386/avxintrin.h: Likewise.
2341 * config/i386/biarch64.h: Likewise.
2342 * config/i386/bmmintrin.h: Likewise.
2343 * config/i386/cpuid.h: Likewise.
2344 * config/i386/cross-stdarg.h: Likewise.
2345 * config/i386/crtfastmath.c: Likewise.
2346 * config/i386/crtprec.c: Likewise.
2347 * config/i386/cygming-crtbegin.c: Likewise.
2348 * config/i386/cygming-crtend.c: Likewise.
2349 * config/i386/cygwin.asm: Likewise.
2350 * config/i386/emmintrin.h: Likewise.
2351 * config/i386/gmm_malloc.h: Likewise.
2352 * config/i386/gthr-win32.c: Likewise.
2353 * config/i386/i386.h: Likewise.
2354 * config/i386/immintrin.h: Likewise.
2355 * config/i386/linux-unwind.h: Likewise.
2356 * config/i386/linux64.h: Likewise.
2357 * config/i386/mm3dnow.h: Likewise.
2358 * config/i386/mmintrin-common.h: Likewise.
2359 * config/i386/mmintrin.h: Likewise.
2360 * config/i386/nmmintrin.h: Likewise.
2361 * config/i386/pmm_malloc.h: Likewise.
2362 * config/i386/pmmintrin.h: Likewise.
2363 * config/i386/smmintrin.h: Likewise.
2364 * config/i386/sol2-c1.asm: Likewise.
2365 * config/i386/sol2-ci.asm: Likewise.
2366 * config/i386/sol2-cn.asm: Likewise.
2367 * config/i386/sol2-gc1.asm: Likewise.
2368 * config/i386/tmmintrin.h: Likewise.
2369 * config/i386/unix.h: Likewise.
2370 * config/i386/w32-unwind.h: Likewise.
2371 * config/i386/wmmintrin.h: Likewise.
2372 * config/i386/x86-64.h: Likewise.
2373 * config/i386/x86intrin.h: Likewise.
2374 * config/i386/xmmintrin.h: Likewise.
2375 * config/ia64/crtbegin.asm: Likewise.
2376 * config/ia64/crtend.asm: Likewise.
2377 * config/ia64/crtfastmath.c: Likewise.
2378 * config/ia64/crti.asm: Likewise.
2379 * config/ia64/crtn.asm: Likewise.
2380 * config/ia64/fde-glibc.c: Likewise.
2381 * config/ia64/lib1funcs.asm: Likewise.
2382 * config/ia64/linux-unwind.h: Likewise.
2383 * config/ia64/quadlib.c: Likewise.
2384 * config/ia64/unwind-ia64.c: Likewise.
2385 * config/linux.h: Likewise.
2386 * config/m32c/m32c-lib1.S: Likewise.
2387 * config/m32c/m32c-lib2-trapv.c: Likewise.
2388 * config/m32c/m32c-lib2.c: Likewise.
2389 * config/m32r/initfini.c: Likewise.
2390 * config/m68hc11/larith.asm: Likewise.
2391 * config/m68hc11/m68hc11-crt0.S: Likewise.
2392 * config/m68k/cf.md: Likewise.
2393 * config/m68k/crti.s: Likewise.
2394 * config/m68k/crtn.s: Likewise.
2395 * config/m68k/lb1sf68.asm: Likewise.
2396 * config/m68k/linux-unwind.h: Likewise.
2397 * config/mcore/crti.asm: Likewise.
2398 * config/mcore/crtn.asm: Likewise.
2399 * config/mcore/lib1.asm: Likewise.
2400 * config/mips/linux-unwind.h: Likewise.
2401 * config/mips/loongson.h: Likewise.
2402 * config/mips/mips16.S: Likewise.
2403 * config/mmix/crti.asm: Likewise.
2404 * config/mmix/crtn.asm: Likewise.
2405 * config/pa/fptr.c: Likewise.
2406 * config/pa/hpux-unwind.h: Likewise.
2407 * config/pa/lib2funcs.asm: Likewise.
2408 * config/pa/linux-atomic.c: Likewise.
2409 * config/pa/linux-unwind.h: Likewise.
2410 * config/pa/milli64.S: Likewise.
2411 * config/pa/quadlib.c: Likewise.
2412 * config/pa/stublib.c: Likewise.
2413 * config/picochip/libgccExtras/adddi3.asm: Likewise.
2414 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
2415 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
2416 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
2417 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
2418 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
2419 * config/picochip/libgccExtras/divmod15.asm: Likewise.
2420 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
2421 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
2422 * config/picochip/libgccExtras/longjmp.asm: Likewise.
2423 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
2424 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
2425 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
2426 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
2427 * config/picochip/libgccExtras/setjmp.asm: Likewise.
2428 * config/picochip/libgccExtras/subdi3.asm: Likewise.
2429 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
2430 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
2431 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
2432 * config/rs6000/750cl.h: Likewise.
2433 * config/rs6000/altivec.h: Likewise.
2434 * config/rs6000/biarch64.h: Likewise.
2435 * config/rs6000/crtresfpr.asm: Likewise.
2436 * config/rs6000/crtresgpr.asm: Likewise.
2437 * config/rs6000/crtresxfpr.asm: Likewise.
2438 * config/rs6000/crtresxgpr.asm: Likewise.
2439 * config/rs6000/crtsavfpr.asm: Likewise.
2440 * config/rs6000/crtsavgpr.asm: Likewise.
2441 * config/rs6000/darwin-asm.h: Likewise.
2442 * config/rs6000/darwin-fallback.c: Likewise.
2443 * config/rs6000/darwin-fpsave.asm: Likewise.
2444 * config/rs6000/darwin-ldouble.c: Likewise.
2445 * config/rs6000/darwin-tramp.asm: Likewise.
2446 * config/rs6000/darwin-unwind.h: Likewise.
2447 * config/rs6000/darwin-vecsave.asm: Likewise.
2448 * config/rs6000/darwin-world.asm: Likewise.
2449 * config/rs6000/e500crtres32gpr.asm: Likewise.
2450 * config/rs6000/e500crtres64gpr.asm: Likewise.
2451 * config/rs6000/e500crtres64gprctr.asm: Likewise.
2452 * config/rs6000/e500crtrest32gpr.asm: Likewise.
2453 * config/rs6000/e500crtrest64gpr.asm: Likewise.
2454 * config/rs6000/e500crtresx32gpr.asm: Likewise.
2455 * config/rs6000/e500crtresx64gpr.asm: Likewise.
2456 * config/rs6000/e500crtsav32gpr.asm: Likewise.
2457 * config/rs6000/e500crtsav64gpr.asm: Likewise.
2458 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
2459 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
2460 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
2461 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
2462 * config/rs6000/eabi-ci.asm: Likewise.
2463 * config/rs6000/eabi-cn.asm: Likewise.
2464 * config/rs6000/eabi.asm: Likewise.
2465 * config/rs6000/linux-unwind.h: Likewise.
2466 * config/rs6000/linux64.h: Likewise.
2467 * config/rs6000/paired.h: Likewise.
2468 * config/rs6000/paired.md: Likewise.
2469 * config/rs6000/ppc64-fp.c: Likewise.
2470 * config/rs6000/ppu_intrinsics.h: Likewise.
2471 * config/rs6000/rs6000.h: Likewise.
2472 * config/rs6000/si2vmx.h: Likewise.
2473 * config/rs6000/sol-ci.asm: Likewise.
2474 * config/rs6000/sol-cn.asm: Likewise.
2475 * config/rs6000/spe.h: Likewise.
2476 * config/rs6000/spu2vmx.h: Likewise.
2477 * config/rs6000/sysv4.h: Likewise.
2478 * config/rs6000/tramp.asm: Likewise.
2479 * config/rs6000/vec_types.h: Likewise.
2480 * config/s390/linux-unwind.h: Likewise.
2481 * config/s390/tpf-unwind.h: Likewise.
2482 * config/score/crti.asm: Likewise.
2483 * config/score/crtn.asm: Likewise.
2484 * config/sh/crt1.asm: Likewise.
2485 * config/sh/crti.asm: Likewise.
2486 * config/sh/crtn.asm: Likewise.
2487 * config/sh/divtab-sh4-300.c: Likewise.
2488 * config/sh/divtab-sh4.c: Likewise.
2489 * config/sh/divtab.c: Likewise.
2490 * config/sh/lib1funcs-4-300.asm: Likewise.
2491 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
2492 * config/sh/lib1funcs.asm: Likewise.
2493 * config/sh/lib1funcs.h: Likewise.
2494 * config/sh/linux-atomic.asm: Likewise.
2495 * config/sh/linux-unwind.h: Likewise.
2496 * config/sh/shmedia.h: Likewise.
2497 * config/sh/sshmedia.h: Likewise.
2498 * config/sh/ushmedia.h: Likewise.
2499 * config/sparc/crtfastmath.c: Likewise.
2500 * config/sparc/linux-unwind.h: Likewise.
2501 * config/sparc/sol2-c1.asm: Likewise.
2502 * config/sparc/sol2-ci.asm: Likewise.
2503 * config/sparc/sol2-cn.asm: Likewise.
2504 * config/spu/divmodti4.c: Likewise.
2505 * config/spu/divv2df3.c: Likewise.
2506 * config/spu/float_disf.c: Likewise.
2507 * config/spu/float_unsdidf.c: Likewise.
2508 * config/spu/float_unsdisf.c: Likewise.
2509 * config/spu/float_unssidf.c: Likewise.
2510 * config/spu/mfc_multi_tag_release.c: Likewise.
2511 * config/spu/mfc_multi_tag_reserve.c: Likewise.
2512 * config/spu/mfc_tag_release.c: Likewise.
2513 * config/spu/mfc_tag_reserve.c: Likewise.
2514 * config/spu/mfc_tag_table.c: Likewise.
2515 * config/spu/multi3.c: Likewise.
2516 * config/spu/spu_internals.h: Likewise.
2517 * config/spu/spu_intrinsics.h: Likewise.
2518 * config/spu/spu_mfcio.h: Likewise.
2519 * config/spu/vec_types.h: Likewise.
2520 * config/spu/vmx2spu.h: Likewise.
2521 * config/stormy16/stormy16-lib2.c: Likewise.
2522 * config/svr4.h: Likewise.
2523 * config/sync.c: Likewise.
2524 * config/v850/lib1funcs.asm: Likewise.
2525 * config/vxlib-tls.c: Likewise.
2526 * config/vxlib.c: Likewise.
2527 * config/vxworks-dummy.h: Likewise.
2528 * config/xtensa/crti.asm: Likewise.
2529 * config/xtensa/crtn.asm: Likewise.
2530 * config/xtensa/ieee754-df.S: Likewise.
2531 * config/xtensa/ieee754-sf.S: Likewise.
2532 * config/xtensa/lib1funcs.asm: Likewise.
2533 * config/xtensa/lib2funcs.S: Likewise.
2534 * config/xtensa/linux-unwind.h: Likewise.
2535 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2536 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
2537 * coretypes.h: Likewise.
2538 * crtstuff.c: Likewise.
2539 * defaults.h: Likewise.
2540 * dwarf2.h: Likewise.
2541 * emutls.c: Likewise.
2542 * gbl-ctors.h: Likewise.
2543 * gcov-io.h: Likewise.
2544 * ginclude/float.h: Likewise.
2545 * ginclude/iso646.h: Likewise.
2546 * ginclude/stdarg.h: Likewise.
2547 * ginclude/stdbool.h: Likewise.
2548 * ginclude/stddef.h: Likewise.
2549 * ginclude/stdfix.h: Likewise.
2550 * ginclude/stdint-gcc.h: Likewise.
2551 * ginclude/tgmath.h: Likewise.
2552 * gthr-aix.h: Likewise.
2553 * gthr-dce.h: Likewise.
2554 * gthr-gnat.c: Likewise.
2555 * gthr-gnat.h: Likewise.
2556 * gthr-lynx.h: Likewise.
2557 * gthr-mipssde.h: Likewise.
2558 * gthr-nks.h: Likewise.
2559 * gthr-posix.c: Likewise.
2560 * gthr-posix.h: Likewise.
2561 * gthr-posix95.h: Likewise.
2562 * gthr-rtems.h: Likewise.
2563 * gthr-single.h: Likewise.
2564 * gthr-solaris.h: Likewise.
2565 * gthr-tpf.h: Likewise.
2566 * gthr-vxworks.h: Likewise.
2567 * gthr-win32.h: Likewise.
2569 * libgcc2.c: Likewise.
2570 * libgcc2.h: Likewise.
2571 * libgcov.c: Likewise.
2572 * tsystem.h: Likewise.
2573 * typeclass.h: Likewise.
2574 * unwind-c.c: Likewise.
2575 * unwind-compat.h: Likewise.
2576 * unwind-dw2-fde-compat.c: Likewise.
2577 * unwind-dw2-fde-darwin.c: Likewise.
2578 * unwind-dw2-fde-glibc.c: Likewise.
2579 * unwind-dw2-fde.c: Likewise.
2580 * unwind-dw2-fde.h: Likewise.
2581 * unwind-dw2.c: Likewise.
2582 * unwind-dw2.h: Likewise.
2583 * unwind-generic.h: Likewise.
2584 * unwind-pe.h: Likewise.
2585 * unwind-sjlj.c: Likewise.
2586 * unwind.inc: Likewise.
2587 * config/arm/neon-gen.ml: Change generated copyright header to
2588 refer to version 3 of the GNU General Public License with
2589 version 3.1 of the GCC Runtime Library Exception and to point
2590 readers at the COPYING3 and COPYING3.RUNTIME files and the
2591 FSF's license web page.
2592 * config/arm/arm_neon.h: Regenerate.
2594 2009-04-09 Jakub Jelinek <jakub@redhat.com>
2596 * config/cris/cris.md: Change copyright header to refer to version
2597 3 of the GNU General Public License.
2598 * doc/install.texi2html: Change copyright header to refer to version
2599 3 of the GNU General Public License and to point readers at the
2600 COPYING3 file and the FSF's license web page.
2601 * config/vax/linux.h: Likewise.
2603 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
2605 * config/i386/i386.md (cmpcc): New.
2606 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
2607 (sync_compare_and_swap_cc*): Delete.
2609 * config/s390/s390.c (s390_compare_emitted): Remove.
2610 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
2611 s390_compare_emitted used to be handled. Assert that modes match.
2612 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
2613 refer to sync_compare_and_swap_ccsi.
2614 * config/s390/s390.h (s390_compare_emitted): Remove.
2615 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
2616 instead of s390_compare_emitted.
2617 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
2618 instead of s390_compare_emitted.
2619 * config/s390/s390.md (cmpcc): New.
2620 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
2621 CC_REGNUM, do not pretend it's set.
2622 (sync_compare_and_swap_cc*): Delete.
2623 * config/s390/predicates.md (cc_reg_operand): New.
2625 * expr.c (sync_compare_and_swap_cc): Delete.
2626 * optabs.h (sync_compare_and_swap_cc): Delete.
2627 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
2628 is being used with can_compare_p.
2629 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
2631 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
2632 look for a MODE_CC set instead. Use emit_store_flag.
2633 (expand_compare_and_swap_loop): Likewise, with some additional
2634 complication to avoid a force_reg when useless. Use
2635 emit_cmp_and_jump_insns.
2636 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
2637 * doc/md.texi (sync_compare_and_swap_cc): Merge with
2638 sync_compare_and_swap documentation.
2640 2009-04-09 Jan Hubicka <jh@suse.cz>
2642 * except.c (find_prev_try): Break out from ....
2643 (duplicate_eh_regions): ... here; properly update prev_try pointers
2644 when duplication part of tree.
2645 (dump_eh_tree): Improve dumping.
2646 (verify_eh_region): New.
2647 (verify_eh_tree): Use it.
2649 2009-04-06 Richard Guenther <rguenther@suse.de>
2651 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
2652 &ARRAY addresses by adjusting their types and prepending
2654 * tree-cfg.c (verify_gimple_assign_single): Verify that
2655 addresses are correct.
2657 2009-04-09 Richard Guenther <rguenther@suse.de>
2659 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
2660 indices into an array reference if possible.
2661 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
2662 Fold POINTER_PLUS_EXPR statements with invariant address.
2664 2009-04-09 Alan Modra <amodra@bigpond.net.au>
2667 * config.gcc (powerpc64-*-linux*): Always build biarch.
2669 2009-04-09 Joseph Myers <joseph@codesourcery.com>
2672 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
2673 it and pedwarn if this results in an INTEGER_CST.
2675 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2677 * doc/install.texi: Update minimum GMP version. Remove obsolete
2678 text in MPFR section.
2680 2009-04-08 Jakub Jelinek <jakub@redhat.com>
2682 * dwarf2out.c (class_scope_p): New static inline.
2683 (class_or_namespace_scope_p): Use it.
2684 (gen_variable_die): Use DW_TAG_member tag for static data member
2685 declarations instead of DW_TAG_variable.
2688 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
2691 2009-04-08 Richard Guenther <rguenther@suse.de>
2693 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
2694 valueize random data.
2696 2009-04-08 David Edelsohn <edelsohn@gnu.org>
2698 * config.gcc (aix tm_file): Add aix-stdint.h.
2699 (aix tm clause use_gcc_stdint): Set to wrap.
2700 * config/rs6000/aix-stdint.h: New file.
2702 2009-04-08 Richard Guenther <rguenther@suse.de>
2705 * tree-dfa.c (add_referenced_var): Do not recurse into
2706 global initializers.
2707 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
2709 (fold_const_aggregate_ref): Likewise.
2711 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
2713 * recog.c (ordered_comparison_operator): New.
2714 * gensupport.c (std_preds): Add it.
2715 * doc/md.texi (Machine-Independent Predicates): Document it.
2717 2009-04-08 Jan Hubicka <jh@suse.cz>
2719 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
2720 * function.h (rtl_eh): Remove exception_handler_label_map.
2721 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
2722 remove_exception_handler_label, for_each_eh_label_1): Remove.
2723 (rtl_remove_unreachable_regions): Remove.
2724 (convert_from_eh_region_ranges): Do not remove unreachable regions.
2725 (find_exception_handler_labels): Don't build the hashtable.
2726 (maybe_remove_eh_handler): Remove.
2727 (for_each_eh_label): Rewrite to walk the tree.
2728 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
2729 * except.h (maybe_remove_eh_handler): Remove.
2730 * passes.c (init_optimization_passes): Schedule second EH cleanup
2732 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
2733 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
2735 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
2737 * genoutput.c (validate_optab_operands): New.
2738 (gen_insn, gen_expand): Call it.
2740 * genflags.c (gen_insn): Detect misused iterators.
2741 (main): Pass line_no to gen_insn, exit with status 1 on error.
2743 * genextract.c (line_no): Make global.
2744 (VEC_safe_set_locstr): Change assertion to error message.
2745 (main): Exit with status 1 on error.
2747 2009-04-08 Joseph Myers <joseph@codesourcery.com>
2751 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
2752 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
2753 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
2754 * c-convert.c (convert): Do not call fold on results of conversion
2755 functions when the result is a C_MAYBE_CONST_EXPR.
2756 * c-parser.c (c_parser_postfix_expression): Do not fold condition
2757 of __builtin_choose_expr.
2758 * c-typeck.c (remove_c_maybe_const_expr): New.
2759 (build_unary_op, build_conditional_expr, build_compound_expr,
2760 build_binary_op, c_objc_common_truthvalue_conversion): Call
2761 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
2764 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
2766 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
2767 CODE to produce a new one. Add a prototype to use fold_convert_const
2769 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
2772 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
2773 mix declarations and code.
2775 2009-04-08 Ben Elliston <bje@au.ibm.com>
2777 * gcc.c: Replace `CC' with `GCC' throughout.
2779 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
2781 * doc/invoke.texi: Document Atom support.
2783 2009-04-07 Jason Merrill <jason@redhat.com>
2786 * c-common.h, c-common.c: Add flag_pretty_templates.
2787 * c-opts.c (c_common_handle_option): Set it.
2788 * c.opt: Add -fno-pretty-templates.
2789 * doc/invoke.texi (C++ Dialect Options): Likewise.
2791 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
2793 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
2794 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
2795 (ia64_expand_builtin): Likewise.
2797 2009-04-07 Martin Jambor <mjambor@suse.cz>
2799 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
2800 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
2801 ADDR_EXPRS are include too.
2803 2009-04-07 Richard Guenther <rguenther@suse.de>
2805 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
2806 decls are only used if passes as parameters or if they are
2807 local statics and the call is not to a builtin.
2808 (call_may_clobber_ref_p_1): Likewise.
2810 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
2812 * expr.c (do_store_flag): Remove last argument. Simplify code
2813 to avoid duplication of tests already done by can_compare_p.
2814 (expand_expr_real_1): Adjust caller.
2816 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
2818 * optabs.c (can_compare_p): Test the predicate of a
2819 cbranch and cstore pattern.
2821 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
2823 * expr.c (convert_move): Use emit_store_flag instead of
2826 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
2828 * config/i386/i386.c (ix86_compare_emitted): Remove.
2829 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
2830 ix86_compare_op0 like ix86_compare_emitted used to be handled.
2831 * config/i386/i386.h (ix86_compare_emitted): Remove.
2832 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
2833 instead of ix86_compare_emitted.
2834 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
2836 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
2838 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
2839 Add t-sysroot-suffix to tmake_file.
2840 * config/print-sysroot-suffix.sh: New file.
2841 * config/t-sysroot-suffix: New file.
2843 2009-04-07 Ben Elliston <bje@au.ibm.com>
2845 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
2846 as the latter produces a warning when the target does not support
2849 2009-04-07 Ben Elliston <bje@au.ibm.com>
2851 * dfp.c: Replace type punning assignments with memcpy throughout.
2852 * Makefile.in (dfp.o-warn): Remove.
2854 2009-04-07 Alan Modra <amodra@bigpond.net.au>
2857 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
2858 Include soft-fp/t-softfp after rs6000/t-linux64.
2860 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
2862 * stor-layout.c (set_sizetype): Use the full precision of their
2863 machine mode for bitsize types.
2865 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
2867 * config/i386/i386.md: Revert 2 accidental checkins.
2869 2009-04-06 Joey Ye <joey.ye@intel.com>
2870 Xuepeng Guo <xuepeng.guo@intel.com>
2871 H.J. Lu <hongjiu.lu@intel.com>
2873 Atom pipeline model, tuning and insn selection.
2874 * config.gcc (atom): Add atom config options and target.
2876 * config/i386/atom.md: New.
2878 * config/i386/i386.c (atom_cost): New cost.
2879 (m_ATOM): New macro flag.
2880 (initial_ix86_tune_features): Set m_ATOM.
2881 (x86_accumulate_outgoing_args): Likewise.
2882 (x86_arch_always_fancy_math_387): Likewise.
2883 (processor_target): Add Atom cost.
2884 (cpu_names): Add Atom cpu name.
2885 (override_options): Set Atom ISA.
2886 (ix86_issue_rate): New case PROCESSOR_ATOM.
2887 (ix86_adjust_cost): Likewise.
2889 * config/i386/i386.h (TARGET_ATOM): New target macro.
2890 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
2891 (TARGET_OPT_AGU): New target option.
2892 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
2893 (processor_type): Add PROCESSOR_ATOM.
2895 * config/i386/i386.md (cpu): Add new value "atom".
2896 (use_carry, movu): New attr.
2897 (atom.md): Include atom.md.
2898 (adddi3_carry_rex64): Set attr "use_carry".
2899 (addqi3_carry): Likewise.
2900 (addhi3_carry): Likewise.
2901 (addsi3_carry): Likewise.
2902 (*addsi3_carry_zext): Likewise.
2903 (subdi3_carry_rex64): Likewise.
2904 (subqi3_carry): Likewise.
2905 (subhi3_carry): Likewise.
2906 (subsi3_carry): Likewise.
2907 (x86_movdicc_0_m1_rex64): Likewise.
2908 (*x86_movdicc_0_m1_se): Likewise.
2909 (x86_movsicc_0_m1): Likewise.
2910 (*x86_movsicc_0_m1_se): Likewise.
2911 (*adddi_1_rex64): Emit add insn as much as possible.
2912 (*addsi_1): Likewise.
2913 (return_internal): Set atom_unit.
2914 (return_internal_long): Likewise.
2915 (return_pop_internal): Likewise.
2916 (*rcpsf2_sse): Set atom_sse_attr attr.
2917 (*qrt<mode>2_sse): Likewise.
2918 (*prefetch_sse): Likewise.
2920 * config/i386/i386-c.c (ix86_target_macros_internal): New case
2922 (ix86_target_macros_internal): Likewise.
2924 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
2925 (*prefetch_sse_rex): Likewise.
2926 (sse_rcpv4sf2): Likewise.
2927 (sse_vmrcpv4sf2): Likewise.
2928 (sse_sqrtv4sf2): Likewise.
2929 (<sse>_vmsqrt<mode>2): Likewise.
2930 (sse_ldmxcsr): Likewise.
2931 (sse_stmxcsr): Likewise.
2932 (*sse_sfence): Likewise.
2933 (sse2_clflush): Likewise.
2934 (*sse2_mfence): Likewise.
2935 (*sse2_lfence): Likewise.
2936 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
2937 (<sse>_movup<ssemodesuffixf2c>): Likewise.
2938 (avx_movdqu<avxmodesuffix>): Likewise.
2939 (avx_lddqu<avxmodesuffix>): Likewise.
2940 (sse2_movntv2di): Change attr "type" to "ssemov".
2941 (sse2_movntsi): Likewise.
2942 (rsqrtv8sf2): Change attr "type" to "sseadd".
2943 (sse3_addsubv2df3): Set attr "atom_unit".
2944 (sse3_h<plusminus_insn>v4sf3): Likewise.
2945 (*sse2_pmaddwd): Likewise.
2946 (*vec_extractv2di_1_rex64): Likewise.
2947 (*vec_extractv2di_1_avx): Likewise.
2948 (sse2_psadbw): Likewise.
2949 (ssse3_phaddwv8hi3): Likewise.
2950 (ssse3_phaddwv4hi3): Likewise.
2951 (ssse3_phadddv4si3): Likewise.
2952 (ssse3_phadddv2si3): Likewise.
2953 (ssse3_phaddswv8hi3): Likewise.
2954 (ssse3_phaddswv4hi3): Likewise.
2955 (ssse3_phsubwv8hi3): Likewise.
2956 (ssse3_phsubwv4hi3): Likewise.
2957 (ssse3_phsubdv4si3): Likewise.
2958 (ssse3_phsubdv2si3): Likewise.
2959 (ssse3_phsubswv8hi3): Likewise.
2960 (ssse3_phsubswv4hi3): Likewise.
2961 (ssse3_pmaddubsw128): Likewise.
2962 (sse3_pmaddubsw: Likewise.
2963 (ssse3_palignrti): Likewise.
2964 (ssse3_palignrdi): Likewise.
2966 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
2968 * doc/install.texi (Specific): Fix two cross-references to MinGW.
2970 2009-04-06 Richard Guenther <rguenther@suse.de>
2972 PR tree-optimization/28868
2973 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
2974 of which PHI results we inserted.
2975 (insert_into_preds_of_block): Record inserted PHIs.
2976 (eliminate): Eliminate redundant PHI nodes.
2977 (init_pre): Init inserted_phi_names.
2979 2009-04-06 Richard Guenther <rguenther@suse.de>
2981 PR tree-optimization/39643
2982 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
2983 IMAGPART_EXPRs of complex constants.
2984 (execute_fold_all_builtins): If we folded a call queue
2985 TODO_update_address_taken.
2987 2009-04-06 Jan Hubicka <jh@suse.cz>
2990 * except.c (remove_unreachable_regions): Propagate may_contain_throw
2993 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
2995 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
2997 (ic_invalidate_array): Likewise.
2999 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
3001 * calls.c (emit_library_call_value_1): Fix a problem with parameter
3002 alignment for library calls.
3004 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
3006 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
3007 (mingw32 tm clause use_gcc_stdint): Set to wrap.
3008 * config/i386/mingw-stdint.h: New file.
3010 2009-04-05 Richard Guenther <rguenther@suse.de>
3012 PR tree-optimization/39648
3013 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
3014 our &A vs. &A[0] IL deficiencies.
3016 2009-04-04 Jan Hubicka <jh@suse.cz>
3018 * except.c (sjlj_find_directly_reachable_regions): Be ready for
3019 removed toplevel regions.
3020 (sjlj_mark_call_sites): Likewise.
3022 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
3024 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
3025 (cygwin tm clause use_gcc_stdint): Set to wrap.
3026 * config/i386/cygwin-stdint.h: New file.
3028 2009-04-04 Richard Guenther <rguenther@suse.de>
3030 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
3031 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
3032 single-argument PHIs if we are in loop-closed SSA form.
3033 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
3034 for the pre-condition.
3035 (slpeel_tree_peel_loop_to_edge): Likewise.
3036 (vect_build_loop_niters): Take an optional sequence to append stmts.
3037 (vect_generate_tmps_on_preheader): Likewise.
3038 (vect_do_peeling_for_loop_bound): Take extra guards for the
3040 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
3041 the cost model check.
3042 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
3043 guards if we are going to peel. Do not apply versioning in that case.
3044 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
3045 (vect_do_peeling_for_loop_bound): Likewise.
3046 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
3047 loop bound only record extra pre-conditions, do not apply loop
3050 2009-04-04 Richard Guenther <rguenther@suse.de>
3052 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
3055 2009-04-04 Jan Hubicka <jh@suse.cz>
3057 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
3058 last_basic_block for size of bb->index indexed array.
3059 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
3060 compute_out, link_btr_uses, build_btr_def_use_webs,
3061 build_btr_def_use_webs, migrate_btr_defs): Likewise.
3063 2009-04-04 Jan Hubicka <jh@suse.cz>
3065 * except.c (remove_eh_handler_and_replace): Break out from ...
3066 (remove_eh_handler): ... here.
3067 (bring_to_root): New function.
3068 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
3069 handled ones, bring others to root of tree.
3071 2009-04-04 Jan Hubicka <jh@suse.cz>
3073 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
3074 (all_phis_safe_to_merge): New function.
3075 (update_info): New structure.
3076 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
3077 (cleanup_empty_eh): Update SSA if possible.
3079 2009-04-04 Richard Guenther <rguenther@suse.de>
3081 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
3082 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
3083 (append_vuse): Likewise.
3085 2009-04-04 Jakub Jelinek <jakub@redhat.com>
3087 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
3088 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
3089 instead of REG_UNSAVED for DW_CFA_undefined.
3090 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
3091 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
3094 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
3097 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
3098 * testsuite/gcc.c-torture/execute/pr39501.c: New file.
3099 * testsuite/gcc.c-torture/execute/pr39501.x: New file.
3101 2009-04-04 Richard Guenther <rguenther@suse.de>
3103 PR tree-optimization/8781
3104 PR tree-optimization/37892
3105 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
3106 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
3107 (valueize_refs): Call it for *& valueizations.
3108 (shared_reference_ops_from_ref): Rename to ...
3109 (valueize_shared_reference_ops_from_ref): ... this and valueize.
3110 (shared_reference_ops_from_call): Rename to ...
3111 (valueize_shared_reference_ops_from_call): ... this and valueize.
3112 (vn_reference_lookup): Update.
3113 (visit_reference_op_call): Likewise.
3114 * tree-ssa-pre.c (phi_translate_1): Fold *&.
3115 (eliminate): Value-replace the call address in call statements.
3117 2009-04-04 Richard Guenther <rguenther@suse.de>
3119 PR tree-optimization/39636
3120 * tree-ssa-forwprop.c
3121 (forward_propagate_addr_into_variable_array_index): Check for
3122 GIMPLE_ASSIGN before accessing the rhs code.
3124 2009-04-03 Jason Merrill <jason@redhat.com>
3126 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
3128 2009-04-03 Steve Ellcey <sje@cup.hp.com>
3130 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
3131 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
3132 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
3133 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
3134 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
3135 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
3136 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
3137 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
3138 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
3139 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
3140 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
3141 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
3142 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
3143 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
3144 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
3145 Use fr_reg_or_fp01_operand instead of fr_register_operand
3147 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
3148 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
3149 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
3151 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
3153 PR rtl-optimization/39607
3154 PR rtl-optimization/39631
3158 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
3159 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
3160 instead of DF_LR_OUT.
3161 * ira-lives.c (process_bb_node_lives): Ditto.
3162 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
3163 instead of DF_LR_{OUT,IN}.
3164 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
3165 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
3167 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
3169 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
3170 (execute_lower_omp): Always run but take the short way out if -fopenmp
3172 (gate_lower_omp): Remove, forcing the pass manager to always run the
3173 pass and always set PROP_gimple_lomp.
3174 (pass_lower_omp): Remove gate function.
3175 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
3176 PROP_trees. Instead, require it.
3177 * ipa-cp.c (pass_ipa_cp): Likewise.
3178 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
3179 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
3180 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
3181 and PROP_gimple_leh.
3183 2009-04-03 Richard Guenther <rguenther@suse.de>
3186 PR tree-optimization/23940
3187 PR tree-optimization/33237
3190 PR tree-optimization/36201
3191 PR tree-optimization/36230
3192 PR tree-optimization/38049
3193 PR tree-optimization/38207
3194 PR tree-optimization/38230
3195 PR tree-optimization/38301
3196 PR tree-optimization/38585
3198 PR tree-optimization/38985
3199 PR tree-optimization/39299
3200 * tree-ssa-structalias.h: Remove.
3201 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
3202 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
3203 (struct vuse_element_d): Remove.
3204 (struct vuse_vec_d): Likewise.
3205 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
3206 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
3207 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
3208 VUSE_ELEMENT_VAR): Likewise.
3209 (struct voptype_d): Likewise.
3210 (NUM_VOP_FREE_BUCKETS): Likewise.
3211 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
3212 (struct stmt_operands_d): Remove.
3213 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
3214 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
3215 VDEF_NUM, VDEF_VECT): Likewise.
3216 (copy_virtual_operands): Remove.
3217 (operand_build_cmp): Likewise.
3218 (create_ssa_artificial_load_stmt): Likewise.
3219 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
3220 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
3221 vuse_index and mayuse_index members. Pack and move done and iter_type
3222 members to the front.
3223 (SSA_OP_VMAYUSE): Remove.
3224 (SSA_OP_VIRTUAL_USES): Adjust.
3225 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
3226 (unlink_stmt_vdef): Declare.
3227 (add_to_addressable_set): Remove.
3228 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
3229 (vrp_visit_stmt): Likewise.
3230 * doc/tree-ssa.texi (Alias analysis): Update.
3231 * doc/invoke.texi (max-aliased-vops): Remove docs.
3232 (avg-aliased-vops): Likewise.
3233 * tree-into-ssa.c (syms_to_rename): Remove.
3234 (need_to_update_vops_p): Likewise.
3235 (need_to_initialize_update_ssa_p): Rename to ...
3236 (update_ssa_initialized_fn): ... this. Track function we are
3238 (symbol_marked_for_renaming): Simplify.
3239 (add_new_name_mapping): Do not set need_to_update_vops_p.
3240 (dump_currdefs): Use SYMS_TO_RENAME.
3241 (rewrite_update_stmt): Always walk all uses/defs.
3242 (dump_update_ssa): Adjust.
3243 (init_update_ssa): Take function argument. Track what we are
3245 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
3246 (create_new_def_for): Initialize for cfun, assert we are initialized
3248 (mark_sym_for_renaming): Simplify.
3249 (mark_set_for_renaming): Do not initialize update-ssa.
3250 (need_ssa_update_p): Simplify. Take function argument.
3251 (name_mappings_registered_p): Assert we ask for the correct function.
3252 (name_registered_for_update_p): Likewise.
3253 (ssa_names_to_replace): Likewise.
3254 (release_ssa_name_after_update_ssa): Likewise.
3255 (update_ssa): Likewise. Use SYMS_TO_RENAME.
3256 (dump_decl_set): Do not print a newline.
3257 (debug_decl_set): Do it here.
3258 (dump_update_ssa): And here.
3259 * tree-ssa-loop-im.c (move_computations): Adjust.
3260 (movement_possibility): Likewise.
3261 (determine_max_movement): Likewise.
3262 (gather_mem_refs_stmt): Likewise.
3263 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
3265 * tree-complex.c (update_all_vops): Remove.
3266 (expand_complex_move): Adjust.
3267 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
3268 Simplify test for memory referencing statement. Exclude
3269 non-invariant ADDR_EXPRs.
3270 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
3271 * tree-loop-distribution.c (generate_memset_zero): Adjust.
3272 (rdg_flag_uses): Likewise.
3273 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
3275 (tree_optimize_tail_calls_1): Also split the
3276 edge from the entry block if we have degenerate PHI nodes in
3277 the first basic block.
3278 * tree.c (init_ttree): Remove memory-tag related code.
3279 (tree_code_size): Likewise.
3280 (tree_node_structure): Likewise.
3281 (build7_stat): Re-write to be build6_stat.
3282 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
3283 (SSA_VAR_P): Adjust.
3284 (struct tree_memory_tag): Remove.
3285 (struct tree_memory_partition_tag): Likewise.
3286 (union tree_node): Adjust.
3287 (build7): Re-write to be build6.
3288 * tree-pass.h (pass_reset_cc_flags): Remove.
3289 (TODO_update_address_taken): New flag.
3290 (pass_simple_dse): Remove.
3291 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
3292 * params.h (MAX_ALIASED_VOPS): Remove.
3293 (AVG_ALIASED_VOPS): Likewise.
3294 * omp-low.c (expand_omp_taskreg): Update SSA form.
3295 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
3296 aliases the lhs in a copy stmt.
3297 * tree-ssa-dse.c (struct address_walk_data): Remove.
3298 (memory_ssa_name_same): Likewise.
3299 (memory_address_same): Likewise.
3300 (get_kill_of_stmt_lhs): Likewise.
3301 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
3302 unused stores. Look through PHI nodes into post-dominated regions.
3303 (dse_optimize_stmt): Simplify. Properly remove stores.
3304 (tree_ssa_dse): Compute dominators.
3305 (execute_simple_dse): Remove.
3306 (pass_simple_dse): Likewise.
3307 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
3308 gimple_loaded_syms and gimple_stored_syms computation.
3309 * toplev.c (dump_memory_report): Dump alias and pta stats.
3310 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
3311 (vn_reference_eq): Likewise.
3312 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
3313 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
3314 valueize_vuses): Remove.
3315 (get_def_ref_stmt_vuses): Simplify. Rename to ...
3316 (get_def_ref_stmt_vuse): ... this.
3317 (vn_reference_lookup_2): New function.
3318 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
3319 walking equivalent vuses. Simplify.
3320 (vn_reference_lookup): Likewise.
3321 (vn_reference_insert): Likewise.
3322 (vn_reference_insert_pieces): Likewise.
3323 (visit_reference_op_call): Simplify.
3324 (visit_reference_op_load): Likewise.
3325 (visit_reference_op_store): Likewise.
3326 (init_scc_vn): Remove shared_lookup_vuses initialization.
3327 (free_scc_vn): Remove shared_lookup_vuses freeing.
3328 (sort_vuses, sort_vuses_heap): Remove.
3329 (get_ref_from_reference_ops): Export.
3330 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
3331 vector with single vuse pointer.
3332 (vn_reference_lookup_pieces, vn_reference_lookup,
3333 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
3334 (shared_vuses_from_stmt): Remove.
3335 (get_ref_from_reference_ops): Declare.
3336 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
3337 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
3338 memory-tag related code.
3339 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
3340 (likely_value): Add comment, skip static-chain of call statements.
3341 (surely_varying_stmt_p): Adjust.
3342 (gimplify_and_update_call_from_tree): Likewise.
3343 (execute_fold_all_builtins): Do not rebuild alias info.
3344 (gimplify_and_update_call_from_tree): Properly update VOPs.
3345 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
3346 (copy_ref_info): Remove memory-tag related code.
3347 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
3348 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
3349 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
3351 * tree-ssa-dom.c (gimple_p): Remove typedef.
3352 (eliminate_redundant_computations): Adjust.
3353 (record_equivalences_from_stmt): Likewise.
3354 (avail_expr_hash): Likewise.
3355 (avail_expr_eq): Likewise.
3356 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
3357 (stmt_makes_single_load): Likewise.
3358 (stmt_makes_single_store): Likewise.
3359 * tree-ssa-alias.c: Rewrite completely.
3360 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
3361 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
3362 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
3363 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
3364 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
3365 Remove public functions.
3366 (pass_reset_cc_flags): Remove.
3367 (pass_build_alias): Move ...
3368 * tree-ssa-structalias.c (pass_build_alias): ... here.
3369 * tree-ssa-alias.c (may_be_aliased): Move ...
3370 * tree-flow-inline.h (may_be_aliased): ... here.
3371 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
3372 count_uses_and_derefs): Move ...
3373 * gimple.c: ... here.
3374 * gimple.h (count_uses_and_derefs): Declare.
3375 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
3376 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
3377 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
3378 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
3379 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
3380 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
3381 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
3383 * tree-dfa.c (refs_may_alias_p): Move ...
3384 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
3385 * tree-ssa-alias.h: New file.
3386 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
3387 (statement_sink_location): Likewise.
3388 * opts.c (decode_options): Do not adjust max-aliased-vops or
3389 avg-aliased-vops values.
3390 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
3391 (TV_CALL_CLOBBER): Likewise.
3392 (TV_FLOW_SENSITIVE): Likewise.
3393 (TV_FLOW_INSENSITIVE): Likewise.
3394 (TV_MEMORY_PARTITIONING): Likewise.
3395 (TV_ALIAS_STMT_WALK): New timevar.
3396 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
3397 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
3398 (get_address_description): Remove memory-tag related code.
3399 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
3400 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
3401 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
3402 and immediate uses in statements. Document.
3403 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
3404 (dump_symbols): Remove.
3405 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
3406 * alias.c (get_deref_alias_set): New function split out from ...
3407 (get_alias_set): ... here.
3408 * alias.h (get_deref_alias_set): Declare.
3409 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
3410 type parameter. Remove restrict pointer handling. Create a
3411 ref-all pointer in case type-based alias sets do not conflict.
3412 (vect_analyze_data_refs): Remove SMT related code.
3413 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
3414 (vectorizable_load): Likewise.
3415 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
3416 (DR_SYMBOL_TAG, DR_VOPS): Remove.
3417 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
3418 Ignore vops and SMTs.
3419 (dr_analyze_alias): Likewise..
3420 (free_data_ref): Likewise.
3421 (create_data_ref): Likewise.
3422 (analyze_all_data_dependences): Likewise.
3423 (get_references_in_stmt): Adjust.
3424 * tree-flow-inline.h (gimple_aliases_computed_p,
3425 gimple_addressable_vars, gimple_call_clobbered_vars,
3426 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
3427 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
3428 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
3429 gimple_mem_ref_stats): Remove.
3430 (gimple_vop): New function.
3431 (op_iter_next_use): Remove vuses and mayuses cases.
3432 (op_iter_next_def): Remove vdefs case.
3433 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
3434 (clear_and_done_ssa_iter): Do not set removed fields.
3435 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
3436 Assert we are not iterating over vuses or vdefs if not also
3437 iterating over uses or defs.
3438 (op_iter_init_use): Likewise.
3439 (op_iter_init_def): Likewise.
3440 (op_iter_next_vdef): Remove.
3441 (op_iter_next_mustdef): Likewise.
3442 (op_iter_init_vdef): Likewise.
3443 (compare_ssa_operands_equal): Likewise.
3444 (link_use_stmts_after): Handle vuse operand.
3445 (is_call_used): Use is_call_clobbered.
3446 (is_call_clobbered): Global variables are always call clobbered,
3447 query the call-clobbers bitmap.
3448 (mark_call_clobbered): Ignore global variables.
3449 (clear_call_clobbered): Likewise.
3450 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
3451 virtual operands sanity check.
3452 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
3454 (TARGET_MEM_REF): Remove TMR_TAG operand.
3455 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
3456 Remove call-clobber related code.
3457 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
3458 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
3459 partitions or escape reason.
3460 (get_single_def_stmt, get_single_def_stmt_from_phi,
3461 get_single_def_stmt_with_phi): Remove.
3462 (dump_referenced_vars): Tidy.
3463 (get_ref_base_and_extent): Allow bare decls.
3464 (collect_dfa_stats): Adjust.
3465 * graphite.c (rename_variables_in_stmt): Adjust.
3466 (graphite_copy_stmts_from_block): Likewise.
3467 (translate_clast): Likewise.
3468 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
3470 (translate_vuse_through_block): Use the oracle.
3471 (phi_translate_1): Adjust.
3472 (value_dies_in_block_x): Use the oracle. Cache the outcome
3474 (valid_in_sets): Check if the VUSE for
3475 a REFERENCE is available.
3476 (eliminate): Do not remove stmts during elimination,
3477 instead queue and remove them afterwards.
3478 (do_pre): Do not rebuild alias info.
3479 (pass_pre): Run TODO_rebuild_alias before PRE.
3480 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
3481 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
3482 (mark_all_v_defs_stmt): Remove.
3483 (mark_all_v_defs_seq): Adjust.
3484 (sra_replace): Likewise.
3485 (scalarize_use): Likewise.
3486 (scalarize_copy): Likewise.
3487 (scalarize_init): Likewise.
3488 (scalarize_ldst): Likewise.
3489 (todoflags): Remove.
3490 (tree_sra): Do not rebuild alias info.
3491 (tree_sra_early): Adjust.
3492 (pass_sra): Run TODO_update_address_taken before SRA.
3493 * tree-predcom.c (set_alias_info): Remove.
3494 (prepare_initializers_chain): Do not call it.
3495 (mark_virtual_ops_for_renaming): Adjust.
3496 (mark_virtual_ops_for_renaming_list): Remove.
3497 (initialize_root_vars): Adjust.
3498 (initialize_root_vars_lm): Likewise.
3499 (prepare_initializers_chain): Likewise.
3500 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
3501 (may_propagate_copy_into_stmt): Likewise.
3502 (merge_alias_info): Do nothing for now.
3503 (propagate_tree_value_into_stmt): Adjust.
3504 (stmt_may_generate_copy): Likewise.
3505 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
3506 not mark symbols for renaming.
3507 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
3508 with the same statement, make sure to update the new pointed-to one.
3509 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
3510 call statements, do not mark symbols for renaming.
3511 (mark_operand_necessary): Dump something.
3512 (ref_may_be_aliased): New function.
3513 (mark_aliased_reaching_defs_necessary_1): New helper function.
3514 (mark_aliased_reaching_defs_necessary): Likewise.
3515 (mark_all_reaching_defs_necessary_1): Likewise.
3516 (mark_all_reaching_defs_necessary): Likewise.
3517 (propagate_necessity): Do not process virtual PHIs. For
3518 non-aliased loads mark all reaching definitions as necessary.
3519 For aliased loads and stores mark the immediate dominating
3520 aliased clobbers as necessary.
3521 (visited): New global static.
3522 (perform_tree_ssa_dce): Free visited bitmap after propagating
3524 (remove_dead_phis): Perform simple dead virtual PHI removal.
3525 (remove_dead_stmt): Properly unlink virtual operands when
3527 (eliminate_unnecessary_stmts): Schedule PHI removal after
3529 * tree-ssa-ter.c (is_replaceable_p): Adjust.
3530 (process_replaceable): Likewise.
3531 (find_replaceable_in_bb): Likewise.
3532 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
3533 based on the single gimple vop.
3534 (verify_flow_insensitive_alias_info): Remove.
3535 (verify_flow_sensitive_alias_info): Likewise.
3536 (verify_call_clobbering): Likewise.
3537 (verify_memory_partitions): Likewise.
3538 (verify_alias_info): Likewise.
3539 (verify_ssa): Adjust..
3540 (execute_update_addresses_taken): Export. Update SSA
3541 manually. Optimize only when optimizing. Use a local bitmap.
3542 (pass_update_address_taken): Remove TODO_update_ssa, add
3544 (pass_update_address_taken): Just use TODO_update_address_taken.
3545 (init_tree_ssa): Do not initialize addressable_vars.
3546 (verify_ssa): Verify new VUSE / VDEF properties.
3547 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
3548 Do not call verify_alias_info.
3549 (delete_tree_ssa): Clear the VUSE, VDEF operands.
3550 Do not free the loaded and stored syms bitmaps. Reset the escaped
3551 and callused solutions. Do not free addressable_vars.
3552 Remove memory-tag related code.
3553 (warn_uninitialized_var): Aliases are always available.
3554 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
3555 * lambda-code.c (can_put_in_inner_loop): Adjust.
3556 (can_put_after_inner_loop): Likewise.
3557 (perfect_nestify): Likewise.
3558 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
3559 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
3560 (vectorizable_conversion): Do not mark symbols for renaming.
3561 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
3562 (expand_call_inline): Unlink the calls virtual operands before
3564 (tree_function_versioning): Do not call update_ssa if we are not
3565 updating clones. Simplify.
3566 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
3567 (propagate_with_phi): Likewise..
3568 * tree-outof-ssa.c (create_temp): Remove memory tag and call
3569 clobber code. Assert we are not aliased or global.
3570 * tree-flow.h: Include tree-ssa-alias.h
3571 (enum escape_type): Remove.
3572 (struct mem_sym_stats_d): Likewise.
3573 (struct mem_ref_stats_d): Likewise.
3574 (struct gimple_df): Add vop member. Remove global_var,
3575 call_clobbered_vars, call_used_vars, addressable_vars,
3576 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
3577 escaped and callused members.
3578 (struct ptr_info_def): Remove all members, add points-to solution
3580 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
3581 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
3582 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
3583 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
3584 (tree-ssa-alias.o): Likewise.
3585 (toplev.o): Add tree-ssa-alias.h
3586 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
3587 * gimple.c (gimple_set_bb): Fix off-by-one error.
3588 (is_gimple_reg): Do not handle memory tags.
3589 (gimple_copy): Also copy virtual operands.
3590 Delay updating the statement. Do not reset loaded and stored syms.
3591 (gimple_set_stored_syms): Remove.
3592 (gimple_set_loaded_syms): Likewise.
3593 (gimple_call_copy_skip_args): Copy the virtual operands
3594 and mark the new statement modified.
3595 * tree-ssa-structalias.c (may_alias_p): Remove.
3596 (set_uids_in_ptset): Take the alias set to prune with as
3597 parameter. Fold in the alias test of may_alias_p.
3598 (compute_points_to_sets): Compute whether a ptr is dereferenced
3600 (process_constraint): Deal with &ANYTHING on the lhs, reject all
3601 other ADDRESSOF constraints on the lhs.
3602 (get_constraint_for_component_ref): Assert that we don't get
3603 ADDRESSOF constraints from the base of the reference.
3604 Properly generate UNKNOWN_OFFSET for DEREF if needed.
3605 (struct variable_info): Remove collapsed_to member.
3606 (get_varinfo_fc): Remove.
3607 (new_var_info): Do not set collapsed_to.
3608 (dump_constraint): Do not follow cycles.
3609 (dump_constraint_graph): Likewise.
3610 (build_pred_graph): Likewise.
3611 (build_succ_graph): Likewise.
3612 (rewrite_constraints): Likewise.
3613 (do_simple_structure_copy): Remove.
3614 (do_rhs_deref_structure_copy): Remove.
3615 (do_lhs_deref_structure_copy): Remove.
3616 (collapse_rest_of_var): Remove.
3617 (do_structure_copy): Re-implement.
3618 (pta_stats): New global variable.
3619 (dump_pta_stats): New function.
3620 (struct constraint_expr): Make offset signed.
3621 (UNKNOWN_OFFSET): Define special value.
3622 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
3623 (solution_set_expand): New helper function split out from ...
3624 (do_sd_constraint): ... here.
3625 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
3626 (do_ds_constraint): Likewise.
3627 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
3628 and CALLUSED = *CALLUSED.
3629 (set_union_with_increment): Make inc argument signed.
3630 (type_safe): Remove.
3631 (get_constraint_for_ptr_offset): Handle unknown and negative
3633 (first_vi_for_offset): Handle offsets before start. Bail
3634 out early for offsets beyond the variable extent.
3635 (first_or_preceding_vi_for_offset): New function.
3636 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
3637 Together with ESCAPED = *ESCAPED this properly computes reachability.
3638 (find_what_var_points_to): New function.
3639 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
3640 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
3641 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
3642 pt_solutions_intersect): New functions.
3643 (compute_call_used_vars): Remove.
3644 (compute_may_aliases): New main entry into PTA computation.
3645 * gimple.h (gimple_p): New typedef.
3646 (struct gimple_statement_base): Remove references_memory_p.
3647 (struct gimple_statement_with_memory_ops_base): Remove
3648 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
3650 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
3651 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
3652 gimple_set_references_memory): Remove.
3653 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
3654 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
3656 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
3657 (verify_expr): Allow RESULT_DECL.
3658 (gimple_duplicate_bb): Do not copy virtual operands.
3659 (gimple_duplicate_sese_region): Adjust.
3660 (gimple_duplicate_sese_tail): Likewise.
3661 (mark_virtual_ops_in_region): Remove.
3662 (move_sese_region_to_fn): Do not call it.
3663 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
3664 and pass_simple_dse.
3665 (execute_function_todo): Handle TODO_update_address_taken,
3666 call execute_update_addresses_taken for TODO_rebuild_alias.
3667 (execute_todo): Adjust.
3668 (execute_one_pass): Init dump files early.
3669 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
3671 (create_general_new_stmt): Clear vops.
3672 * tree-ssa-reassoc.c (get_rank): Adjust.
3673 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
3674 symbols for renaming.
3675 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
3676 (PARAM_AVG_ALIASED_VOPS): Likewise.
3677 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
3678 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
3679 * tree-ssa-operands.c: Simplify for new virtual operand representation.
3680 (operand_build_cmp, copy_virtual_operands,
3681 create_ssa_artificial_load_stmt, add_to_addressable_set,
3682 gimple_add_to_addresses_taken): Remove public functions.
3683 (unlink_stmt_vdef): New function.
3685 2009-04-03 Alan Modra <amodra@bigpond.net.au>
3687 * config.gcc (powerpc-*-linux*): Merge variants.
3689 2009-04-02 Chao-ying Fu <fu@mips.com>
3690 James Grosbach <james.grosbach@microchip.com>
3692 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
3693 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
3695 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
3696 keep_interrupts_masked_p, use_debug_exception_return_p.
3697 (mips_attribute_table): Add interrupt, use_shadow_register_set,
3698 keep_interrupts_masked, use_debug_exception_return.
3699 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
3700 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
3702 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
3703 (mips_print_operand): Process COP0 registers to print $0 .. $31
3704 correctly for GAS to process.
3705 (mips_interrupt_extra_call_saved_reg_p): New function.
3706 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
3708 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
3709 (mips_compute_frame_info): Add supports for interrupt context that
3710 includes doubleword accumulators and COP0 registers.
3711 (mips_for_each_saved_acc): New function.
3712 (mips_for_each_saved_gpr_and_fpr): Change the function name from
3713 mips_for_each_saved_reg.
3714 (mips_save_reg): Save accumulators.
3715 (mips_kernel_reg_p): A new for_each_rtx callback.
3716 (mips_expand_prologue): Support interrupt handlers.
3717 (mips_restore_reg): Restore accumulators.
3718 (mips_expand_epilogue): Support interrupt handlers.
3719 (mips_can_use_return_insn): Return false for interrupt handlers.
3720 (mips_epilogue_uses): New function.
3721 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
3722 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
3723 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
3724 cop0_move): New instructions.
3725 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
3726 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
3728 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
3730 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
3731 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
3732 interrupt handlers, we use K0 as the temporary register.
3733 (EPILOGUE_USES): Change to a function call.
3734 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
3735 handlers, we use K0 as the temporary register.
3737 * doc/extend.texi (Function Attributes): Document interrupt,
3738 use_shadow_register_set, keep_interrupts_masked,
3739 use_debug_exception_return for MIPS attributes.
3741 2009-04-03 Alan Modra <amodra@bigpond.net.au>
3743 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
3744 Remove a number of t-files from tmake_file.
3745 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
3746 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
3747 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3748 target_prototype, not TARGET_PROTOTYPE.
3749 (LINK_OS_GNU_SPEC): Define.
3750 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
3751 and darwin-ldoubdle.c.
3753 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3756 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
3757 (cpp_options): Ditto.
3758 (default_compilers): Ditto.
3759 (display_help): Ditto.
3760 (process_command): Ditto.
3762 (set_input): Use lbasename instead of duplicate code.
3763 (save_temps_prefix): New static for -save-temps=obj.
3764 (save_temps_length): Ditto.
3766 * doc/invoke.texi (-save-temps=obj): Document new variant to
3769 2009-04-02 Jeff Law <law@redhat.com>
3771 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
3774 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
3776 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
3777 * configure: Regenerated.
3779 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
3781 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
3782 share the argument list.
3784 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
3788 2009-02-12 Diego Novillo <dnovillo@google.com>
3790 * varpool.c (debug_varpool): New.
3791 * cgraph.h (debug_varpool): Declare.
3793 2009-04-02 Jan Hubicka <jh@suse.cz>
3795 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
3798 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
3800 * config/i386/i386.c (ix86_abi): Move initialization to ...
3801 (override_options): Here.
3803 2009-04-02 Christian Bruel <christian.bruel@st.com>
3805 * config/sh/sh.c (sh_dwarf_register_span): New function.
3806 (TARGET_DWARF_REGISTER_SPAN): Define.
3807 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
3809 2009-04-02 Ira Rosen <irar@il.ibm.com>
3811 PR tree-optimization/39595
3812 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
3813 interleaved loads group is not greater than the SLP group size.
3815 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
3817 * builtins.c (is_builtin_name): New.
3818 (called_as_built_in): Use is_builtin_name.
3819 * tree.h (is_builtin_name): New.
3820 * varasm.c (incorporeal_function_p): Use is_builtin_name
3822 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
3824 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
3826 2009-04-02 Dodji Seketeli <dodji@redhat.com>
3829 * c-decl.c (clone_underlying_type): Move this ...
3830 * c-common.c (set_underlying_type): ... here.
3831 Also, make sure the function properly sets TYPE_STUB_DECL() on
3832 the newly created typedef variant type.
3833 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
3834 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
3837 2009-04-02 Richard Guenther <rguenther@suse.de>
3839 PR tree-optimization/37221
3840 * tree-flow.h (degenerate_phi_result): Declare.
3841 * tree-ssa-dom.c (degenerate_phi_result): Export.
3842 * tree-scalar-evolution.c (analyze_initial_condition): If
3843 the initial condition is defined by a degenerate PHI node
3844 use the degenerate value.
3846 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
3848 PR rtl-optimization/39588
3849 * combine.c (merge_outer_ops): Do not set the constant when this
3851 (simplify_shift_const_1): Do not modify it either in this case.
3853 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
3855 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
3856 tuning is deprecated if -mtune value is set to an Itanium1 variant.
3858 2009-04-01 Janis Johnson <janis187@us.ibm.com>
3861 * c-lex.c (interpret_float): Default (no suffix) is double.
3863 2009-04-1 Xinliang David Li <davidxl@google.com>
3865 * config/i386/i386.c (legitimate_constant_p): Recognize
3866 all one vector constant.
3868 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3870 * gcc/config/vax/vax.c: Add #includes to silence warnings.
3871 Change #include order to silence two warnings.
3873 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3875 * gcc/config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
3876 (ASM_SPEC): Pass -k to the assembler for PIC code.
3878 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3880 * gcc/config.gcc: Add vax-*-linux* to the switch.
3881 * gcc/config/vax/linux.h: New file. (TARGET_VERSION,
3882 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
3884 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3886 * gcc/config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
3887 Use predicate macros instead of GET_CODE() == foo.
3888 * gcc/config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
3889 ashlsi3, rotrsi3, <unnamed>): Likewise.
3891 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3893 * gcc/config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
3894 jbbccihi, jbbccisi): Remova trailing whitespace.
3895 * gcc/config/vax/constraints.md: Likewise.
3896 * gcc/config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
3897 * gcc/config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
3898 * gcc/config/vax/predicates.md: Likewise.
3899 * gcc/config/vax/vax.c (print_operand_address, vax_output_int_move,
3900 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
3901 * gcc/config/vax/vax.h: Likewise.
3902 * gcc/config/vax/vax.md (nonlocal_goto): Likewise.
3904 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3906 * gcc/config/vax/vax.c (vax_float_literal, vax_output_int_move)
3907 (indirectable_address_p, adjacent_operands_p): Add spaces around
3909 * gcc/config/vax/vax-protos.h (adjacent_operands_p): Likewise.
3911 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3913 * gcc/config/vax/vax.c (legitimate_constant_address_p,
3914 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
3915 index_term_p, reg_plus_index_p, legitimate_address_p,
3916 vax_mode_dependent_address_p): Update comments to match functions
3917 modified by the recent int->bool conversion.
3919 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3921 * gcc/config/vax/builtins.md: Update copyright message.
3922 * gcc/config/vax/constraints.md: Likewise.
3923 * gcc/config/vax/netbsd-elf.h: Likewise.
3924 * gcc/config/vax/predicates.md: Likewise.
3925 * gcc/config/vax/vax-protos.h: Likewise.
3926 * gcc/config/vax/vax.c: Likewise.
3927 * gcc/config/vax/vax.h: Likewise.
3928 * gcc/config/vax/vax.md: Likewise.
3929 * gcc/config/vax/vax.opt: Likewise.
3931 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3933 * gcc/config/vax/builtins.md (ffssi2, ffssi2_internal,
3934 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
3935 * gcc/config/vax/constraints.md (B, R): Likewise.
3936 * gcc/config/vax/predicates.md (external_memory_operand,
3937 nonimmediate_addsub_di_operand): Likewise.
3938 * gcc/config/vax/vax.c (vax_output_int_add): Likewise.
3939 * gcc/config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
3940 untyped_call): Likewise.
3942 2009-04-01 Matt Thomas <matt@3am-software.com>
3944 * config/vax/predicates.md: New file.
3945 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
3946 external_const_operand, nonsymbolic_operand, external_memory_operand,
3947 indirect_memory_operand, indexed_memory_operand,
3948 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
3949 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
3951 * config/vax/constraints.md: New file.
3952 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
3954 * config/vax/builtins.md: New file.
3955 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
3956 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
3958 * config/vax/vax.opt (mqmath): Add option.
3959 * config/vax/vax.md (isfx): Extend with DI.
3960 (VAXintQH, VAXintQHSD): Define.
3961 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
3962 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
3963 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
3964 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
3965 (movdi): Update constraints and use vax_output_int_move().
3966 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
3967 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
3968 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
3969 nonlocal_goto): New.
3970 (mov<mode>): Extend accepted operand types.
3971 (subdi3_old): Rename from subdi3, change update constraints and use
3972 a new implementation.
3973 * gcc/config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
3974 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
3975 MOVE_RATIO, CLEAR_RATIO): Define.
3976 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
3977 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
3978 (PRINT_OPERAND): Redefine using a function instead of inlined code.
3979 * gcc/config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3980 (split_quadword_operands): Make static and really allow variable
3982 (print_operand_address): Update for PIC generation.
3983 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
3984 indexable_address_p, fixup_mathdi_operand,
3985 vax_expand_addsub_di_operands, adjacent_operands_p): New.
3986 (vax_float_literal, legitimate_constant_p,
3987 indirectable_constant_address_p, index_term_p,
3988 reg_plus_index_p): Return bool instead of int.
3989 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
3991 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
3993 (vax_output_conditional_branch): Indent.
3994 (legitimate_constant_address_p, indirectable_constant_address_p,
3995 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
3996 vax_mode_dependent_address_p): Return bool instead of int, update for
3998 * config/vax/vax-protos.h (legitimate_constant_address_p,
3999 legitimate_constant_p, legitimate_address_p,
4000 vax_mode_dependent_address_p): Change declaration to bool.
4001 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
4002 vax_expand_addsub_di_operands, vax_output_int_subtract,
4003 vax_output_movmemsi): Declare.
4004 (split_quadword_operands, vax_float_literal): Delete declaration.
4005 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
4006 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
4007 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
4008 ASM_OUTPUT_DWARF_PCREL): Define.
4009 (ASM_SPEC): Change definition to allow PIC generation.
4011 2009-04-01 Steve Ellcey <sje@cup.hp.com>
4013 * doc/sourcebuild.texi: Update front-end requirements.
4015 2009-04-01 Jakub Jelinek <jakub@redhat.com>
4018 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
4019 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
4020 (booldi3_internal3): Use boolean_or_operator instead of
4023 2009-04-01 Joseph Myers <joseph@codesourcery.com>
4026 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
4027 declarator whose size is not an integer constant expression but
4028 folds to an integer constant, then treat it as a constant
4031 2009-04-01 Richard Guenther <rguenther@suse.de>
4033 * fold-const.c (fold_plusminus_mult_expr): Do not fold
4034 i * 4 + 2 to (i * 2 + 1) * 2.
4036 2009-04-01 Jakub Jelinek <jakub@redhat.com>
4039 * c-parser.c (c_parser_asm_statement): Skip until close paren and
4040 return if c_parser_asm_string_literal returned NULL.
4042 2009-04-01 Nick Clifton <nickc@redhat.com>
4044 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
4046 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
4047 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
4048 other typedefs to avoid conflicts with libgcc2.c. Define labels
4049 to gain 16-bit bit-manipulation functions from libgcc2.c and then
4051 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
4052 to gain 16-bit trapping arithmetic functions from libgcc2.c and
4055 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
4057 * varasm.c (default_function_rodata_section): Declare DOT as
4060 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
4061 Andrey Galkin <agalkin@hypercom.com>
4064 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
4065 Make object_name unique for each process.
4067 2009-04-01 Jakub Jelinek <jakub@redhat.com>
4070 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
4071 addressable variables in the parallel that could go out of scope while
4072 running queued tasks.
4074 2009-04-01 Anatoly Sokolov <aesok@post.ru>
4076 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
4077 (CASE_VALUES_THRESHOLD): Redefine.
4078 * config/avr/avr.c (avr_override_options): Remove initialization of
4079 avr_case_values_threshold variable.
4080 (avr_case_values_threshold): Remove variable. Add new function.
4081 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
4082 * config/avr/avr.opt (mno-tablejump): Remove option.
4083 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
4085 2009-04-01 DJ Delorie <dj@redhat.com>
4087 * varasm.c (default_function_rodata_section): Don't assume
4088 anything about where the first '.' in the section name is.
4090 2009-04-01 Alan Modra <amodra@bigpond.net.au>
4092 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
4093 rs6000_emit_stack_tie.
4095 2009-03-31 Ian Lance Taylor <iant@google.com>
4097 * tree-eh.c (tree_remove_unreachable_handlers): Compare
4098 gimple_code with GIMPLE_RESX, not RESX.
4100 2009-03-31 Joseph Myers <joseph@codesourcery.com>
4102 * c-common.c (c_get_ident): New.
4103 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
4105 2009-04-01 Ben Elliston <bje@au.ibm.com>
4107 * config/rs6000/sysv4.opt (msdata): Improve option description.
4109 2009-03-31 Steve Ellcey <sje@cup.hp.com>
4111 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
4112 (divdf3_internal_lat): Remove.
4113 (divxf3_internal_lat): Remove.
4114 (divxf3_internal_thr): Remove.
4115 (divxf): Use divxf3_internal.
4116 * config/ia64/div.md (divsf3_internal_lat): New.
4117 (divdf3_internal_lat): New.
4118 (divxf3_internal): New.
4120 2009-03-31 Joseph Myers <joseph@codesourcery.com>
4123 * Makefile.in (USE_GCC_STDINT): Define.
4124 (stmp-int-hdrs): Install stdint.h if applicable.
4125 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
4127 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
4128 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
4129 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
4130 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
4131 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
4132 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
4133 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
4134 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
4135 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
4136 (c_common_nodes_and_builtins): Initialize
4137 underlying_wchar_type_node. Do not initialize
4138 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
4139 nodes for new types.
4140 (c_stddef_cpp_builtins): Define macros for new types.
4141 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
4143 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
4144 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
4145 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
4146 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
4147 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
4148 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
4149 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
4150 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
4151 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
4152 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
4153 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
4154 int16_type_node, int32_type_node, int64_type_node,
4155 uint8_type_node, uint16_type_node, c_uint32_type_node,
4156 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
4157 int_least32_type_node, int_least64_type_node,
4158 uint_least8_type_node, uint_least16_type_node,
4159 uint_least32_type_node, uint_least64_type_node,
4160 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
4161 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
4162 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
4163 uintptr_type_node): Define.
4164 * c-cppbuiltin.c (builtin_define_constants,
4165 builtin_define_type_minmax): New.
4166 (builtin_define_stdint_macros): Define more macros.
4167 (c_cpp_builtins): Define more limit macros.
4169 (builtin_define_type_max): Define in terms of
4170 builtin_define_type_minmax. Remove is_long parameter. All
4172 * config.gcc (use_gcc_stdint): Define.
4173 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
4174 Add newlib-stdint.h for generic targets.
4175 * config/glibc-stdint.h, config/newlib-stdint.h,
4176 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
4177 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
4178 * config/score/score.h (UINTPTR_TYPE): Define.
4179 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
4180 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
4181 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
4182 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
4183 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
4184 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
4185 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
4186 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
4187 * config/spu/spu.h (STDINT_LONG32): Define.
4188 * configure.ac (use_gcc_stdint): Substitute.
4189 * configure: Regenerate.
4190 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
4191 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
4192 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
4193 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
4194 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
4195 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
4196 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
4197 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
4198 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
4199 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
4200 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
4201 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
4202 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
4203 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
4204 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
4205 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
4206 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
4207 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
4208 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
4209 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
4210 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
4211 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
4212 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
4213 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
4214 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
4215 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
4216 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
4217 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
4218 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
4220 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
4222 * loop-iv.c (suitable_set_for_replacement): Renamed from
4223 simplify_using_assignment; changed to return bool and to accept new
4224 args DEST and SRC. Return true iff we find a source/destination pair
4225 that can be used to make a replacement, and fill SRC and DEST if so.
4226 Remove arg ALTERED. Don't deal with altered regs here. All callers
4228 (simplify_using_initial_values): Deal with altered regs here and track
4229 more precisely the effect they have on the validity of our expression.
4231 * loop-iv.c (simplify_using_condition): A condition of the form
4232 (EQ REG CONST) can be used to simply make a substitution.
4233 (simplify_using_initial_values): Keep track of conditions we have seen
4234 and keep using them to simplify new expressions, while applying the
4235 same substitutions to them as to the expression.
4237 * simplify-rtx.c (simplify_relational_operation_1): Simplify
4238 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
4241 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
4242 changed. Use this when trying to improve the upper bound.
4243 Generate the comparison by using simplify_gen_relational.
4245 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
4247 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
4249 (simplify_using_assignment, simplify_using_initial_values): Call
4250 replace_in_expr to make replacements. Call replace_single_def_regs
4251 once on the initial version of the expression.
4253 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4256 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
4258 2009-03-31 Richard Guenther <rguenther@suse.de>
4261 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
4262 equality comparisons. Fold C - X CMP X if C % 2 == 1.
4264 2009-03-31 Richard Guenther <rguenther@suse.de>
4266 * tree.h (div_if_zero_remainder): Declare.
4267 * fold-const.c (div_if_zero_remainder): Export.
4268 * tree-ssa-forwprop.c
4269 (forward_propagate_addr_into_variable_array_index): Handle
4270 constant array index addition outside of the variable index.
4272 2009-03-31 Joseph Myers <joseph@codesourcery.com>
4275 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
4276 define_splits, floatunssi<mode>2): Require x87 conversions from
4277 DImode to be permitted.
4279 2009-03-31 Joseph Myers <joseph@codesourcery.com>
4281 PR preprocessor/15638
4282 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
4284 2009-03-31 Richard Guenther <rguenther@suse.de>
4288 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
4289 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
4290 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
4291 a separate statement.
4292 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
4293 (lookup_tmp_var): Likewise.
4294 (is_gimple_formal_tmp_or_call_rhs): Remove.
4295 (is_gimple_reg_or_call_rhs): Rename to ...
4296 (is_gimple_reg_rhs_or_call): ... this.
4297 (is_gimple_mem_or_call_rhs): Rename to ...
4298 (is_gimple_mem_rhs_or_call): ... this.
4299 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
4300 DECL_GIMPLE_REG_P only if is_formal is true.
4301 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
4302 for non-proper post-modify expression gimplification.
4303 (gimplify_self_mod_expr): For post-modify expressions gimplify
4304 the lvalue to a minimal lvalue.
4305 (rhs_predicate_for): Remove formal temp case.
4306 (gimplify_modify_expr_rhs): Likewise.
4307 (gimplify_addr_expr): Use is_gimple_reg.
4308 (gimplify_expr): Remove formal temp cases.
4309 (gimple_regimplify_operands): Likewise.
4310 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
4311 and FILTER_EXPR like constants.
4312 * gimple.c (walk_gimple_op): Fix val_only initialization, use
4314 (is_gimple_formal_tmp_rhs): Remove.
4315 (is_gimple_reg_rhs): Remove special casing.
4316 (is_gimple_mem_rhs): Fix.
4317 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
4318 (is_gimple_formal_tmp_var): Remove.
4319 (is_gimple_formal_tmp_reg): Likewise.
4320 (is_gimple_min_lval): Allow invariant component ref parts.
4321 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
4322 is_gimple_formal_tmp_reg): Remove declarations.
4323 * tree-cfg.c (verify_expr): Verify that variables with address
4324 taken do not have DECL_GIMPLE_REG_P set.
4325 * tree-mudflap.c (mf_build_check_statement_for): Use
4326 force_gimple_operand instead of gimplify_expr.
4328 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
4330 * modulo-sched.c (sms_schedule_by_order): Pass the actual
4331 schedulable rows to compute_split_row.
4333 2009-03-31 Ben Elliston <bje@au.ibm.com>
4336 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
4339 2009-03-31 Alan Modra <amodra@bigpond.net.au>
4341 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
4342 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
4343 * configure: Regenerate.
4344 * config.in: Regenerate.
4345 * config/rs6000/rs6000.opt (mtls-markers): Add.
4346 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
4347 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
4348 (tls_ld_aix, tls_ld_sysv): Likewise.
4349 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
4350 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
4352 2009-03-31 Alan Modra <amodra@bigpond.net.au>
4354 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
4356 2009-03-30 Jan Hubicka <jh@suse.cz>
4358 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
4360 (tree_remove_unreachable_handlers): Cleanup EH predecestor
4361 detection and label handling.
4363 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
4365 * ira-int.h (ira_allocno): Rename left_conflicts_num to
4366 left_conflicts_size.
4367 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
4368 ALLOCNO_LEFT_CONFLICTS_SIZE.
4370 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
4371 remove_allocno_from_bucket_and_push,
4372 allocno_spill_priority_compare, push_allocnos_to_stack,
4373 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
4374 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
4375 (setup_allocno_left_conflicts_num): Ditto. Rename to
4376 setup_allocno_left_conflicts_size.
4377 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
4378 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
4379 setup_allocno_left_conflicts_size instead of
4380 setup_allocno_left_conflicts_num.
4382 * ira-build.c (ira_create_allocno): Use
4383 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
4384 ALLOCNO_LEFT_CONFLICTS_NUM.
4386 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
4388 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
4389 instead of DF_LR_OUT.
4391 * ira-lives.c (process_bb_node_lives): Ditto.
4393 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
4394 instead of DF_LR_{OUT,IN}.
4396 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
4398 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
4400 2009-03-30 Jan Hubicka <jh@suse.cz>
4402 * except.c (label_to_region_map): Fix thinko.
4404 2009-03-30 Steve Ellcey <sje@cup.hp.com>
4407 * tree.h (tree_find_value): New declaration.
4408 * tree.c (tree_find_value): New function.
4409 * varasm.c (assemble_external): Avoid duplicate entries on lists.
4411 2009-03-30 Jakub Jelinek <jakub@redhat.com>
4414 * c-decl.c (struct c_binding): Add locus field.
4415 (bind): Add locus argument, set locus field from it.
4416 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
4417 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
4418 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
4419 implicitly_declare, undeclared_variable, lookup_label,
4420 declare_label, c_make_fname_decl, c_builtin_function,
4421 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
4424 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
4427 * config/i386/i386.c (classify_argument): Check total size of
4430 2009-03-30 Martin Jambor <mjambor@suse.cz>
4432 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
4433 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
4434 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
4437 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
4438 seen_variable_array_ref while also traversing a union.
4440 * tree-inline.c (optimize_inline_calls): Do not call
4441 cgraph_node_remove_callees.
4442 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
4443 (pass_remove_cgraph_callee_edges): New variable.
4444 * passes.c (init_optimization_passes): Add
4445 pass_remove_cgraph_callee_edges after early inlining and before all
4446 late intraprocedural passes.
4448 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
4450 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4452 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
4455 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4457 * combine.c (simplify_comparison): Use have_insn_for.
4458 * dojump.c (do_jump): Likewise.
4460 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4462 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
4463 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
4464 sparc_compare_op0 like sparc_compare_emitted used to be handled.
4465 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
4466 instead of sparc_compare_emitted.
4467 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
4468 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
4469 instead of sparc_compare_emitted.
4471 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4473 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
4474 enter/exit cfglayout mode.
4475 (pass_partition_block): Require it.
4476 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
4477 (combine_instructions): Track basic blocks instead of labels.
4478 (update_cfg_for_uncondjump): New.
4479 (try_combine): Use it. Update jumps after rescanning.
4480 (pass_combine): Require PROP_cfglayout.
4481 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
4483 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4485 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
4486 Provide/destroy PROP_cfglayout respectively.
4487 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
4488 * tree-pass.h (PROP_cfglayout): New.
4490 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4492 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
4493 fold_convert_const_fixed_from_fixed,
4494 fold_convert_const_fixed_from_int,
4495 fold_convert_const_fixed_from_real, fold_negate_const): Do not
4496 set TREE_CONSTANT_OVERFLOW.
4497 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
4498 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
4500 2009-03-30 Ira Rosen <irar@il.ibm.com>
4502 * tree-vect-loop-manip.c: New file.
4503 * tree-vectorizer.c: Update documentation and included files.
4504 (vect_loop_location): Make extern.
4505 (rename_use_op): Move to tree-vect-loop-manip.c
4506 (rename_variables_in_bb, rename_variables_in_loop,
4507 slpeel_update_phis_for_duplicate_loop,
4508 slpeel_update_phi_nodes_for_guard1,
4509 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
4510 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
4511 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
4512 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
4513 find_loop_location): Likewise.
4514 (new_stmt_vec_info): Move to tree-vect-stmts.c.
4515 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
4516 get_vectype_for_scalar_type, vect_is_simple_use,
4517 supportable_widening_operation, supportable_narrowing_operation):
4519 (bb_in_loop_p): Move to tree-vect-loop.c.
4520 (new_loop_vec_info, destroy_loop_vec_info,
4521 reduction_code_for_scalar_code, report_vect_op,
4522 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
4523 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
4524 (vect_supportable_dr_alignment): Likewise.
4525 * tree-vectorizer.h (tree-data-ref.h): Include.
4526 (vect_loop_location): Declare.
4527 Reorganize function declarations according to the new file structure.
4528 * tree-vect-loop.c: New file.
4529 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
4530 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
4531 * tree-vect-data-refs.c: New file.
4532 * tree-vect-patterns.c (timevar.h): Don't include.
4533 * tree-vect-stmts.c: New file.
4534 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
4535 tree-vect-slp.c, tree-vect-loop.c.
4536 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
4537 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
4538 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
4539 (tree-vect-analyze.o): Remove.
4540 (tree-vect-transform.o): Likewise.
4541 (tree-vect-data-refs.o): Add rule.
4542 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
4543 tree-vect-slp.o): Likewise.
4544 (tree-vect-patterns.o): Remove redundant dependencies.
4545 (tree-vectorizer.o): Likewise.
4546 * tree-vect-slp.c: New file.
4548 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4550 * optc-gen.awk: Warn if an option flag has multiple different
4553 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
4555 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
4556 -floop-block): Document dependences on PPL, CLooG and Graphite.
4558 2009-03-30 Joseph Myers <joseph@codesourcery.com>
4560 PR rtl-optimization/323
4561 * c-common.c (c_fully_fold, convert_and_check,
4562 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
4563 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
4564 * c-common.def (EXCESS_PRECISION_EXPR): New.
4565 * c-cppbuiltin.c (builtin_define_float_constants): Define
4566 constants with enough digits for long double.
4567 * c-lex.c (interpret_float): Interpret constant with excess
4568 precision where appropriate.
4569 * c-opts.c (c_common_post_options): Set
4570 flag_excess_precision_cmdline. Give an error for
4571 -fexcess-precision=standard for C++ for processors where the
4572 option is significant.
4573 * c-parser.c (c_parser_conditional_expression): Handle excess
4574 precision in condition.
4575 * c-typeck.c (convert_arguments): Handle arguments with excess
4577 (build_unary_op): Move excess precision outside operation.
4578 (build_conditional_expr): Likewise.
4579 (build_compound_expr): Likewise.
4580 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
4581 (build_modify_expr): Handle excess precision in RHS.
4582 (convert_for_assignment): Handle excess precision in converted
4584 (digest_init, output_init_element, process_init_element): Handle
4585 excess precision in initializer.
4586 (c_finish_return): Handle excess precision in return value.
4587 (build_binary_op): Handle excess precision in operands and add
4588 excess precision as needed for operation.
4589 * common.opt (-fexcess-precision=): New option.
4590 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
4591 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
4592 For standard excess precision, output explicit conversion to and
4593 truncation from XFmode.
4594 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
4595 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
4596 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
4597 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
4598 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
4599 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
4600 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
4601 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
4602 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
4603 define_splits, sqrt<mode>2): Disable where appropriate for
4604 standard excess precision.
4605 * convert.c (convert_to_real): Do not shorten arithmetic to type
4606 for which excess precision would be used.
4607 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
4608 * doc/invoke.texi (-fexcess-precision=): Document option.
4609 (-mfpmath=): Correct index entry.
4610 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
4611 flag_excess_precision): New.
4612 * langhooks.c (lhd_post_options): Set
4613 flag_excess_precision_cmdline.
4614 * opts.c (common_handle_option): Handle -fexcess-precision=.
4615 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
4616 init_excess_precision): New.
4617 (lang_dependent_init_target): Call init_excess_precision.
4618 * tree.c (excess_precision_type): New.
4619 * tree.h (excess_precision_type): Declare.
4621 2009-03-30 Joseph Myers <joseph@codesourcery.com>
4624 * c-typeck.c (build_component_ref): Do not copy qualifiers from
4625 non-lvalue to component.
4627 2009-03-29 Joseph Myers <joseph@codesourcery.com>
4629 PR preprocessor/34695
4630 * Makefile.in (c-opts.o): Depend on c-tree.h.
4631 * c-common.c: Move down include of diagnostic.h.
4632 (done_lexing, c_cpp_error): New.
4633 * c-common.h (done_lexing): Declare.
4634 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
4636 * c-opts.c: Include c-tree.h.
4637 (c_common_init_options): Set preprocessor error callback.
4638 (c_common_handle_option): Do not set preprocessor
4639 inhibit_warnings, warnings_are_errors, warn_system_headers,
4640 pedantic_errors or inhibit_warnings flags.
4641 (c_common_post_options): Do not check cpp_errors (parse_in).
4642 (c_common_finish): Do not output dependencies if there were
4643 errors. Do not check return value of cpp_finish.
4644 * c-ppoutput.c (pp_file_change): Set input_location.
4645 * c-tree.h (c_cpp_error): Declare.
4646 * diagnostic.c (diagnostic_set_info_translated): Also initialize
4648 (diagnostic_build_prefix): Check override_column.
4649 * diagnostic.h (diagnostic_info): Add override_column field.
4650 (diagnostic_override_column): Define.
4652 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
4654 * c-common.c (c_expand_expr, c_staticp): Remove.
4655 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
4656 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
4657 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
4658 * c-gimplify.c (gimplify_compound_literal_expr,
4659 optimize_compound_literals_in_ctor): Remove.
4660 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
4661 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
4662 * c-semantics.c (emit_local_var): Remove.
4664 * langhooks-def.h (lhd_expand_expr): Remove.
4665 * langhooks.c (lhd_expand_expr): Remove.
4666 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
4668 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
4669 handling from c-semantics.c; don't call into langhook.
4670 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
4671 * gimplify.c (gimplify_compound_literal_expr,
4672 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
4673 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
4674 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
4675 as was done in c-gimplify.c.
4676 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
4677 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
4678 Move from c-common.h.
4679 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
4681 * tree.c (staticp): Do not call langhook.
4682 * langhooks.c (lhd_staticp): Delete.
4683 * langhooks-def.h (lhd_staticp): Delete prototype.
4684 (LANG_HOOKS_STATICP): Delete.
4685 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
4687 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
4688 instead of DECL_STMTs.
4690 2009-03-29 Joseph Myers <joseph@codesourcery.com>
4698 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
4700 (fold_call_expr): Return a NOP_EXPR from folding rather than the
4701 contained expression.
4702 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
4703 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
4704 conditional expressions for C.
4705 (decl_constant_value_for_optimization): Move from
4706 decl_constant_value_for_broken_optimization in c-typeck.c. Check
4707 whether optimizing and that the expression is a VAR_DECL not of
4708 array type instead of doing such checks in the caller. Do not
4709 check pedantic. Call gcc_unreachable for C++.
4710 * c-common.def (C_MAYBE_CONST_EXPR): New.
4711 * c-common.h (c_fully_fold, c_save_expr,
4712 decl_constant_value_for_optimization): New prototypes.
4713 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
4714 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
4715 EXPR_INT_CONST_OPERANDS): Define.
4716 * c-convert.c (convert): Strip nops from expression.
4717 * c-decl.c (groktypename): Take extra parameters expr and
4718 expr_const_operands. Update call to grokdeclarator.
4719 (start_decl): Update call to grokdeclarator. Add statement for
4720 expressions used in type of decl.
4721 (grokparm): Update call to grokdeclarator.
4722 (push_parm_decl): Update call to grokdeclarator.
4723 (build_compound_literal): Add parameter non_const and build a
4724 C_MAYBE_COSNT_EXPR if applicable.
4725 (grokdeclarator): Take extra parameters expr and
4726 expr_const_operands. Track expressions used in declaration
4727 specifiers and declarators. Fold array sizes and track whether
4728 they are constant expressions and whether they are integer
4729 constant expressions.
4730 (parser_xref_tag): Set expr and expr_const_operands fields in
4732 (grokfield): Update call to grokdeclarator.
4733 (start_function): Update call to grokdeclarator.
4734 (build_null_declspecs): Set expr and expr_const_operands fields in
4736 (declspecs_add_type): Handle expressions in typeof specifiers.
4737 * c-parser.c (c_parser_declspecs): Set expr and
4738 expr_const_operands fields for declaration specifiers.
4739 (c_parser_enum_specifier): Likewise.
4740 (c_parser_struct_or_union_specifier): Likewise.
4741 (c_parser_typeof_specifier): Likewise. Update call to
4742 groktypename. Fold expression as needed. Return expressions with
4743 type instead of adding statements.
4744 (c_parser_attributes): Update calls to c_parser_expr_list.
4745 (c_parser_statement_after_labels): Fold expression before passing
4746 to objc_build_throw_stmt.
4747 (c_parser_condition): Fold expression.
4748 (c_parser_asm_operands): Fold expression.
4749 (c_parser_conditional_expression): Use c_save_expr. Update call
4750 to build_conditional_expr.
4751 (c_parser_alignof_expression): Update call to groktypename.
4752 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
4753 original_code. Fold expression argument of va_arg. Create
4754 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
4755 argument to va_arg. Update calls to groktypename. Fold array
4756 index for offsetof. Verify that first argument to
4757 __builtin_choose_expr has integer type.
4758 (c_parser_postfix_expression_after_paren_type): Update calls to
4759 groktypename and build_compound_literal. Handle expressions with
4760 side effects in type name.
4761 (c_parser_postfix_expression_after_primary): Update call to
4762 c_parser_expr_list. Set original_code for calls to
4763 __builtin_constant_p.
4764 (c_parser_expr_list): Take extra parameter fold_p. Fold
4765 expressions if requested.
4766 (c_parser_objc_type_name): Update call to groktypename.
4767 (c_parser_objc_synchronized_statement): Fold expression.
4768 (c_parser_objc_receiver): Fold expression.
4769 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
4770 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
4771 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
4772 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
4773 (struct c_typespec): Add elements expr and expr_const_operands.
4774 (struct c_declspecs): Add elements expr and expr_const_operands.
4775 (groktypename, build_conditional_expr, build_compound_literal):
4777 (in_late_binary_op): Declare.
4778 * c-typeck.c (note_integer_operands): New function.
4779 (in_late_binary_op): New variable.
4780 (decl_constant_value_for_broken_optimization): Move to c-common.c
4781 and rename to decl_constant_value_for_optimization.
4782 (default_function_array_conversion): Do not strip nops.
4783 (default_conversion): Do not call
4784 decl_constant_value_for_broken_optimization.
4785 (build_array_ref): Do not fold result.
4786 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
4787 result when operand is a VLA.
4788 (c_expr_sizeof_type): Update call to groktypename. Handle
4789 expressions included in type name. Use C_MAYBE_CONST_EXPR for
4790 result when operand names a VLA type.
4791 (build_function_call): Update call to build_compound_literal.
4792 Only fold result for calls to __builtin_* functions. Strip
4793 NOP_EXPR from INTEGER_CST returned from such functions. Fold
4794 the function designator.
4795 (convert_arguments): Fold arguments. Update call to
4796 convert_for_assignment.
4797 (build_unary_op): Handle increment and decrement of
4798 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
4799 decrement earlier. Fold operand of increment and decrement.
4800 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
4801 built for integer operand. Wrap returns that are INTEGER_CSTs
4802 without being integer constant expressions or that have integer
4803 constant operands without being INTEGER_CSTs.
4804 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
4805 (build_conditional_expr): Add operand ifexp_bcp. Track whether
4806 result is an integer constant expression or can be used in
4807 unevaluated parts of one and avoid folding and wrap as
4808 appropriate. Fold operands before possibly doing -Wsign-compare
4810 (build_compound_expr): Wrap result for C99 if operands can be used
4811 in integer constant expressions.
4812 (build_c_cast): Update call to digest_init. Do not ignore
4813 overflow from casting floating-point constants to integers. Wrap
4814 results that could be confused with integer constant expressions,
4815 null pointer constants or floating-point constants.
4816 (c_cast_expr): Update call to groktypename. Handle expressions
4817 included in type name.
4818 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
4819 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
4820 Update calls to convert_for_assignment.
4821 (convert_for_assignment): Take new parameter
4822 null_pointer_constant. Do not strip nops or call
4823 decl_constant_value_for_broken_optimization. Set
4824 in_late_binary_op for conversions to boolean.
4825 (store_init_value): Update call to digest_init.
4826 (digest_init): Take new parameter null_pointer_constant. Do not
4827 call decl_constant_value_for_broken_optimization. pedwarn for
4828 initializers not constant expressions. Update calls to
4829 convert_for_assignment.
4830 (constructor_nonconst): New.
4831 (struct constructor_stack): Add nonconst element.
4832 (really_start_incremental_init, push_init_level, pop_init_level):
4833 Handle constructor_nonconst and nonconst element.
4834 (set_init_index): Call constant_expression_warning for array
4836 (output_init_element): Fold value. Set constructor_nonconst as
4837 applicable. pedwarn for initializers not constant expressions.
4838 Update call to digest_init. Call constant_expression_warning
4839 where constant initializers are required.
4840 (process_init_element): Use c_save_expr.
4841 (c_finish_goto_ptr): Fold expression.
4842 (c_finish_return): Fold return value. Update call to
4843 convert_for_assignment.
4844 (c_start_case): Fold switch expression.
4845 (c_process_expr_stmt): Fold expression.
4846 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
4847 ensure statement expression is not evaluated in constant expression.
4848 (build_binary_op): Track whether results are integer constant
4849 expressions or may occur in such, disable folding and wrap results
4850 as applicable. Fold operands for -Wsign-compare warnings unless
4852 (c_objc_common_truthvalue_conversion): Handle results folded to
4853 integer constants that are not integer constant expressions.
4854 * doc/extend.texi: Document when typeof operands are evaluated,
4855 that condition of __builtin_choose_expr is an integer constant
4856 expression, and more about use of __builtin_constant_p in
4859 2009-03-29 Richard Guenther <rguenther@suse.de>
4861 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
4862 propagate addresses of array references.
4864 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
4866 * regmove.c (perhaps_ends_bb_p): Remove.
4867 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
4868 from INSN and check that the main loop stays within that basic block.
4869 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
4870 (regmove_forward_pass): Split out from regmove_optimize. Use
4871 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
4872 (regmove_backward_pass): Split out from regmove_optimize. Use
4873 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
4874 (regmove_optimize): Simplify.
4876 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
4879 * config/i386/i386.c (classify_argument): Ignore flexible array
4880 member in struct and warn ABI change.
4882 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
4884 * config/i386/i386-protos.h (ix86_agi_dependent): New.
4886 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
4887 (ix86_adjust_cost): Updated.
4889 2009-03-29 Jan Hubicka <jh@suse.cz>
4892 * tree-pass.h (pass_cleanup_eh): New function.
4893 (remove_unreachable_regions): Break code handling RTL
4894 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
4895 that can not be reached by runtime.
4896 (can_be_reached_by_runtime): New function.
4897 (label_to_region_map): New function.
4898 (num_eh_regions): New function.
4899 (rtl_remove_unreachable_regions): New function.
4900 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
4901 (remove_eh_region): New function.
4902 * except.h: Include sbitmap and vecprim.
4903 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
4904 num_eh_regions): Declare.
4905 * passes.c (init_optimization_passes): Schedule cleanup_eh.
4906 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
4907 * tree-eh.c (tree_remove_unreachable_handlers): New function.
4908 (tree_empty_eh_handler_p): New function.
4909 (cleanup_empty_eh): New function.
4910 (cleanup_eh): New function.
4911 (pass_cleanup_eh): New function.
4913 2009-03-29 Jan Hubicka <jh@suse.cz>
4915 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
4916 for removed regions.
4918 2009-03-29 Jan Hubicka <jh@suse.cz>
4920 * except.c (dump_eh_tree): Dump all datastructures.
4922 2009-03-29 Jan Hubicka <jh@suse.cz>
4924 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
4925 (duplicate_eh_regions_1): Likewise.
4926 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
4927 vector; call EH verification.
4928 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
4929 Be ready for region being removed.
4931 2009-03-29 Jan Hubicka <jh@suse.cz>
4933 * bitmap.c (bitmap_last_set_bit): New function.
4934 * bitmap.h (bitmap_last_set_bit): Declare.
4936 2009-03-29 David Ayers <ayers@fsfe.org>
4939 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
4940 by calling objc_compare_types and surpress warnings about
4941 incompatible C pointers that are compatible ObjC pointers.
4943 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
4945 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
4946 call initialize_inline_failed.
4947 (initialize_inline_failed): Move it from here ...
4948 * cgraph.c (initialize_inline_failed): ... to here.
4949 (cgraph_create_edge): Call initialize_inline_failed rather than
4950 setting inline_failed directly.
4952 2009-03-29 Ben Elliston <bje@au.ibm.com>
4955 * sysv4.opt (msdata): Improve comment.
4956 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
4957 * sysv4.h (SVR4_ASM_SPEC): Likewise.
4959 2009-03-29 Ben Elliston <bje@au.ibm.com>
4962 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
4963 load and store attributes.
4965 2009-03-29 Ben Elliston <bje@au.ibm.com>
4967 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
4968 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
4969 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
4970 * doc/extend.texi (X86 Built-in Functions): Add index entries for
4971 __builtin_infq and __builtin_huge_valq.
4973 2009-03-28 Anatoly Sokolov <aesok@post.ru>
4975 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
4977 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
4978 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
4980 2009-03-28 Xinliang David Li <davidxl@google.com>
4982 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
4983 (do_dbg_cnt): New function.
4985 2009-03-28 Jan Hubicka <jh@suse.cz>
4987 Merge from pretty-ipa:
4989 2009-03-27 Jan Hubicka <jh@suse.cz>
4991 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
4992 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
4993 * passes.c (function_called_by_processed_nodes_p): New.
4994 * ipa-pure-const.c (check_call): Fix handling of operands.
4995 (analyze_function): Dump debug output for skipped bodies.
4996 (local_pure_const): Use function_called_by_processed_nodes_p.
4997 * dwarf2out.c (reference_to_unused): Use output.
4998 * passes.c (do_per_function_toporder): Likewise.
5000 2008-11-12 Jan Hubicka <jh@suse.cz>
5002 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
5003 * ipa-pure-const.c (funct_state_d): Add can throw field; make
5004 state_set_in_source enum
5005 (check_decl): Ignore memory tags; do not set fake looping flags;
5007 (check_operand, check_tree, check_rhs_var, check_lhs_var,
5008 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
5009 (check_call, analyze_function): Rewrite.
5011 (add_new_function): Update call of analyze_function.
5012 (generate_summary): Add call of analyze_function.
5013 (propagate): Propagate can_throw; handle state_set_in_source correctly.
5014 (local_pure_const): New function.
5015 (pass_local_pure_const): New pass.
5016 * ipa-inline.c (inline_transform): Set after_inlining.
5017 * tree-eh.c (stmt_can_throw_external): New.
5018 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
5019 work with aliasing built.
5020 * tree-flow.h (stmt_can_throw_external): New.
5021 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
5022 and local pure/const pass in early and late optimization queue.
5024 2009-03-28 Martin Jambor <mjambor@suse.cz>
5026 * fold-const.c (get_pointer_modulus_and_residue): New parameter
5028 (fold_binary): Allow function decl aligment consideration is the
5029 second argument is integer constant one.
5030 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
5031 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
5032 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
5034 2009-03-28 Jan Hubicka <jh@suse.cz>
5036 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
5037 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
5038 * function.h (rtl_data): Add nothrow flag.
5039 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
5040 set DECL_NOTHROW for AVAILABLE functions.
5042 2009-03-28 Jakub Jelinek <jakub@redhat.com>
5044 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
5045 following vector keyword has expansion starting with pixel or bool
5046 keyword, expand vector to __vector and pixel or bool to __pixel or
5050 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
5051 warn_if_disallowed_function_p): Removed.
5052 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
5053 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
5054 warning_if_disallowed_function_p.
5055 * flags.h (warn_if_disallowed_function_p,
5056 warn_disallowed_functions): Removed.
5057 * common.opt (Wdisallowed-function-list=): Removed.
5058 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
5060 2009-03-28 Richard Guenther <rguenther@suse.de>
5062 PR tree-optimization/38723
5063 * tree-ssa-pre.c (compute_avail): Add all default definitions to
5066 2009-03-28 Jan Hubicka <jh@suse.cz>
5068 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
5069 test introduced by my previous patch.
5071 2009-03-28 Richard Guenther <rguenther@suse.de>
5073 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
5074 the PHIs value undefined.
5076 2009-03-28 Jan Hubicka <jh@suse.cz>
5078 * tree-pass.h (pass_fixup_cfg): New pass.
5079 * ipa-inline.c (inline_transform): Set
5080 always_inline_functions_inlined/after_inlining.
5081 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
5082 (pass_fixup_cfg): New pass.
5083 * passes.c (init_optimization_passes): Add fixup_cfg.
5085 2009-03-28 Richard Guenther <rguenther@suse.de>
5087 PR tree-optimization/38458
5088 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
5089 argument use the arguments copy-of value.
5091 2009-03-28 Richard Guenther <rguenther@suse.de>
5093 PR tree-optimization/38180
5094 * tree-ssa-ccp.c (get_default_value): Simplify.
5095 (likely_value): Likewise.
5096 (surely_varying_stmt_p): Properly handle VOP case.
5097 (ccp_initialize): Likewise.
5098 (ccp_fold): Handle propagating through *&.
5099 (fold_const_aggregate_ref): Also handle decls.
5101 2009-03-28 Jan Hubicka <jh@suse.cz>
5103 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
5104 * cgraph.h (cgraph_node): Likewise.
5105 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
5106 (cgraph_reset_node): Use process flag.
5107 (cgraph_mark_functions_to_output): Likewise.
5108 (cgraph_expand_function): Likewise.
5109 (cgraph_expand_all_functions): Likewise.
5110 (cgraph_output_in_order): Likewise.
5111 * dwarf2out.c (reference_to_unused): Likewise.
5112 * passes.c do_per_function_toporder): Likewise.
5114 2009-03-28 Jan Hubicka <jh@suse.cz>
5116 Bring from lto-branch:
5118 2008-09-03 Doug Kwan <dougkwan@google.com>
5120 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
5121 enums instead of reason strings.
5122 * cgraph.c (cgraph_create_edge): Same.
5123 (cgraph_inline_failed_string): New function.
5124 * cgraph.h (cgraph_inline_failed_t): New enum type.
5125 (cgraph_inline_failed_string): New prototype.
5126 (struct cgraph_edge): Change type of INLINED_FAILED from constant
5127 char pointer to cgraph_inline_failed_t.
5128 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
5129 (cgraph_default_inline_p): Ditto.
5130 * gcc/cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
5131 to cgraph_inline_failed_t pointer.
5132 * cif-code.def: New file.
5133 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
5135 (cgraph_check_inline_limits): Change type of REASON to pointer to
5136 cgraph_inline_failed_t. Replace reason strings with enums.
5137 (cgraph_default_inline_p): Ditto.
5138 (cgraph_recursive_inlining_p): Ditto.
5139 (update_caller_keys): Change type of FAILED_REASON to
5140 cgraph_inline_failed_t.
5141 (cgraph_set_inline_failed): Change type of REASON to pointer to
5142 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
5143 convert enums to strings for text output.
5144 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
5145 to be of type cgraph_inline_failed_t. Replace reason strings with
5146 enums. Call cgraph_inline_failed_string to covert enums
5147 to strings for text output.
5148 (cgraph_decide_inlining): Replace reason strings with enums.
5149 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
5150 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
5152 * tree-inline.c (expand_call_inline): Change type of REASON
5153 to cgraph_inline_failed_t. Replace reason strings with enums.
5154 Call cgraph_inline_failed_string for text output.
5155 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
5158 2009-03-28 Jan Hubicka <jh@suse.cz>
5160 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
5161 cgraph_clone_node): Remove master clone handling.
5162 (cgraph_is_master_clone, cgraph_master_clone): Remove.
5163 * cgraph.h (master_clone): Remove.
5164 (cgraph_is_master_clone, cgraph_master_clone): Remove.
5165 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
5166 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
5168 2009-03-28 Jan Hubicka <jh@suse.cz>
5170 * cgraph.c (cgraph_function_body_availability): Functions declared
5171 inline are always safe to assume that it is not going to be replaced.
5173 2009-03-28 Richard Guenther <rguenther@suse.de>
5175 PR tree-optimization/38513
5176 * tree-ssa-pre.c (eliminate): Remove redundant stores.
5177 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5178 EXC_PTR_EXPR and FILTER_EXPR.
5179 (get_ref_from_reference_ops): Likewise.
5181 2009-03-28 Richard Guenther <rguenther@suse.de>
5183 PR tree-optimization/38968
5184 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
5185 Use FLOOR_MOD_EXPR to compute misalignment.
5187 2009-03-28 Richard Guenther <rguenther@suse.de>
5189 PR tree-optimization/37795
5190 * tree.h (combine_comparisons): Declare.
5191 * fold-const.c (combine_comparisons): Export.
5192 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
5194 (ifcombine_iforif): Use combine_comparisons.
5196 2009-03-28 Jan Hubicka <jh@suse.cz>
5198 * tree-eh.c (inlinable_call_p): New function.
5199 (make_eh_edges): Use it.
5200 (verify_eh_edges): Use it.
5201 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
5202 * except.c (reachable_next_level): Add inlinable_function argument
5203 (sjlj_find_directly_reachable_regions): Update.
5204 (add_reachable_handler): Do not set saw_any_handlers.
5205 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
5206 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
5207 Add new inlinable call parameter.
5208 (can_throw_internal, can_throw_external): Update.
5209 * except.h (can_throw_internal_1, can_throw_external_1,
5210 foreach_reachable_handler): Update declaration.
5212 2009-03-28 Joseph Myers <joseph@codesourcery.com>
5214 * config/arm/t-arm-coff, config/h8300/coff.h,
5215 config/i386/i386-aout.h, config/i386/i386-coff.h,
5216 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
5217 config/pdp11/2bsd.h, config/rs6000/aix41.h,
5218 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
5219 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
5220 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
5221 sys-types.h: Remove.
5222 * Makefile.in: Remove protoize and fixproto support and references
5224 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
5225 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
5227 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
5228 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
5229 unprotoize$(exeext).
5230 (rest.encap): Don't depend on $(STMP_FIXPROTO)
5231 (.PHONY): Don't depend on proto.
5232 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
5233 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
5234 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
5235 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
5236 build/gen-protos.o, build/scan.o, xsys-protos.h,
5237 build/fix-header$(build_exeext), build/fix-header.o,
5238 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
5239 stmp-install-fixproto): Remove.
5240 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
5241 SYSCALLS.c or fixproto files.
5242 (install-common): Don't install protoize.
5243 (install-headers-tar, install-headers-cpio, install-headers-cp):
5244 Don't depend on $(STMP_FIXPROTO).
5245 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
5246 install fixproto files or write out fixproto settings.
5247 (uninstall): Don't uninstall protoize.
5248 * config.gcc (use_fixproto): Remove.
5249 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
5250 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
5251 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
5252 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
5253 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
5254 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
5255 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
5256 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
5257 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
5258 * config/t-vxworks (STMP_FIXPROTO): Remove.
5259 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
5260 STMP_FIXPROTO): Remove.
5261 * config.in, configure: Regenerate.
5262 * crtstuff.c (gid_t, uid_t): Don't undefine.
5263 * doc/install.texi: Change m68k-coff to m68k-elf in example.
5264 (arm-*-coff, arm-*-aout: Remove target entries.
5265 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
5266 Remove mention of AIX 4.1.
5267 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
5268 * doc/invoke.texi (Running Protoize): Remove.
5269 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
5270 (Protoize Caveats): Remove.
5271 * tsystem.h: Update comments on headers assumed to exist.
5273 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
5275 * genautomata.c: Add a new year to the copyright. Add a new
5277 (struct insn_reserv_decl): Add comments for member bypass_list.
5278 (find_bypass): Remove.
5279 (insert_bypass): New.
5280 (process_decls): Use insert_bypass.
5281 (output_internal_insn_latency_func): Output all bypasses with the
5282 same input insn in one switch case.
5284 * rtl.def (define_bypass): Describe bypass choice.
5285 * doc/md.texi (define_bypass): Ditto.
5287 2009-03-27 Richard Guenther <rguenther@suse.de>
5289 * gimplify.c (mark_addressable): Export.
5290 * tree-flow.h (mark_addressable): Declare.
5291 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
5292 * tree-ssa.c (verify_phi_args): Verify that address taken
5293 variables have TREE_ADDRESSABLE set.
5295 2009-03-27 Richard Guenther <rguenther@suse.de>
5297 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
5298 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
5299 Do not mark decls TREE_ADDRESSABLE.
5300 (build_fold_addr_expr): Adjust.
5301 (fold_addr_expr): Remove.
5302 (fold_unary): Use build_fold_addr_expr.
5303 (fold_comparison): Likewise.
5304 (split_address_to_core_and_offset): Likewise.
5305 * coverage.c (tree_coverage_counter_addr): Mark the array decl
5307 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
5308 (gimplify_modify_expr_to_memcpy): Mark source and destination
5310 * omp-low.c (create_omp_child_function): Mark the object decl
5312 (lower_rec_input_clauses): Mark the var we take the address of
5314 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
5316 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5319 * cfgexpand.c (expand_one_stack_var_at): Change alignment
5320 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
5322 2009-03-27 Richard Guenther <rguenther@suse.de>
5324 PR tree-optimization/39120
5325 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
5327 (handle_lhs_call): Process return constraints. Add escape
5328 constraints if necessary.
5329 (handle_const_call): Fill out return constraints. Make nested
5330 case more precise. Avoid consttmp if possible.
5331 (handle_pure_call): Fill out return constraints. Avoid
5332 callused if possible.
5333 (find_func_aliases): Simplify call handling.
5335 2009-03-27 Richard Guenther <rguenther@suse.de>
5337 PR tree-optimization/39120
5338 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
5339 as a representative.
5340 (solve_graph): Do propagate CALLUSED.
5341 (handle_pure_call): Use a scalar constraint from CALLUSED for
5343 (find_what_p_points_to): CALLUSED shall not appear in poins-to
5346 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5349 * c-common.c (handle_aligned_attribute): Properly check alignment
5350 overflow. Use (1U << i) instead of (1 << i).
5352 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
5354 * expr.h (get_mem_align_offset): Updated.
5356 * tree.h (tree_decl_common): Change align to "unsigned int" and
5357 move it before pointer_alias_set.
5359 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5360 Jakub Jelinek <jakub@redhat.com>
5363 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
5364 gr_register_operand with gr_reg_or_0_operand.
5365 (cmpxchg_rel_di): Likewise.
5366 (sync_lock_test_and_set<mode>): Likewise.
5368 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5370 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
5371 (true_regnum): Likewise.
5373 * rtlanal.c (subreg_info): Moved to ...
5374 * rtl.h (subreg_info): Here. New.
5375 (subreg_get_info): New.
5377 * rtlanal.c (subreg_get_info): Make it extern.
5379 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5382 * config/i386/i386.c (ix86_abi): New.
5383 (override_options): Handle -mabi=.
5384 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
5385 (ix86_call_abi_override): Likewise.
5386 (init_cumulative_args): Likewise.
5387 (function_arg_advance): Likewise.
5388 (function_arg_64): Likewise.
5389 (function_arg): Likewise.
5390 (ix86_pass_by_reference): Likewise.
5391 (ix86_function_value_regno_p): Likewise.
5392 (ix86_build_builtin_va_list_abi): Likewise.
5393 (setup_incoming_varargs_64): Likewise.
5394 (is_va_list_char_pointer): Likewise.
5395 (ix86_init_machine_status): Likewise.
5396 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
5397 (ix86_function_type_abi): Return enum calling_abi. Rewrite
5398 for 64bit. Replace DEFAULT_ABI with ix86_abi.
5399 (ix86_function_abi): Make it static and return enum calling_abi.
5400 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
5402 (ix86_fn_abi_va_list): Updated.
5404 * config/i386/i386.h (ix86_abi): New.
5405 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
5406 (CONDITIONAL_REGISTER_USAGE): Likewise.
5407 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
5408 (machine_function): Likewise.
5410 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
5412 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
5413 (STACK_BOUNDARY): Likewise.
5414 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
5416 * config/i386/i386.opt (mabi=): New.
5418 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
5419 return enum calling_abi.
5420 (ix86_function_type_abi): Likewise.
5421 (ix86_function_abi): Removed.
5423 * doc/invoke.texi: Document -mabi= option for x86.
5425 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5427 * builtins.c (real_dconstp): Delete.
5428 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
5430 2009-03-27 Dodji Seketeli <dodji@redhat.com>
5431 Jakub Jelinek <jakub@redhat.com>
5434 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
5435 (gen_subprogram_die): When a function is explicit, generate the
5436 DW_AT_explicit attribute.
5437 * langhooks.h (struct lang_hooks_for_decls): Add
5438 function_decl_explicit_p langhook.
5439 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
5440 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
5442 2009-03-27 Jakub Jelinek <jakub@redhat.com>
5444 * builtins.c (fold_builtin_memory_op): Optimize memmove
5445 into memcpy if we can prove source and destination don't overlap.
5447 * tree-inline.c: Include gt-tree-inline.h.
5448 (clone_fn_id_num): New variable.
5449 (clone_function_name): New function.
5450 (tree_function_versioning): Use it.
5451 * Makefile.in (GTFILES): Add tree-inline.c.
5453 2009-03-27 Mark Mitchell <mark@codesourcery.com>
5455 * BASE-VER: Change to 4.5.0.
5457 2009-03-27 Xinliang David Li <davidxl@google.com>
5459 PR tree-optimization/39557
5460 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
5462 2009-03-27 Xinliang David Li <davidxl@google.com>
5464 PR tree-optimization/39548
5465 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
5468 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5470 * c-common.c (pointer_int_sum): Use %wd on return from
5473 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
5475 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
5476 on return from tree_low_cst.
5478 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
5481 * ginclude/stdarg.h (va_copy): Define also for
5482 __GXX_EXPERIMENTAL_CXX0X__.
5484 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5487 * builtins.h (c_strlen): Do not warn here.
5488 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
5489 * c-common.c (pointer_int_sum): Take an explicit location.
5490 Warn about offsets out of bounds.
5491 * c-common.h (pointer_int_sum): Adjust declaration.
5493 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5495 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
5498 2009-03-26 Jakub Jelinek <jakub@redhat.com>
5501 * opts.c (warn_if_disallowed_function_p): Don't assume
5502 get_callee_fndecl must return non-NULL.
5504 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
5506 PR rtl-optimization/39522
5507 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
5508 when reg_reloaded_valid is set.
5510 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5512 * config/spu/divv2df3.c: New file.
5513 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
5514 (DPBIT_FUNCS): Filter out _div_df.
5516 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
5518 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
5519 a jump insn, count that jump in the distance to the loop start.
5521 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
5524 * config/sh/sh.c (calc_live_regs): Fix condition for global
5525 registers except PIC_OFFSET_TABLE_REGNUM.
5527 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
5530 * doc/invoke.texi (-mconsole): New.
5534 (-mnop-fun-dllimport): New.
5538 (sub section "i386 and x86-64 Windows Options"): New.
5540 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
5542 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
5543 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
5545 2009-03-25 Richard Guenther <rguenther@suse.de>
5548 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
5551 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
5553 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
5554 neither of haifa/selective schedulers are working.
5556 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5558 * doc/invoke.texi (Debugging Options): Fix description of
5559 -fno-merge-debug-strings.
5561 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
5563 * config/cris/libgcc.ver: New version-script.
5564 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
5566 * configure.ac <GAS features, nop mnemonic>: Add pattern
5567 crisv32-*-* for "nop".
5568 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
5569 * configure: Regenerate.
5571 2009-03-24 Ira Rosen <irar@il.ibm.com>
5573 PR tree-optimization/39529
5574 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
5575 mark_sym_for_renaming for the tag copied to the new vector
5578 2009-03-24 Arthur Loiret <aloiret@debian.org>
5580 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
5581 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
5582 EXTRA_SPEC_FUNCTIONS.
5583 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
5584 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
5585 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
5586 -march and -mtune options.
5588 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
5590 * config/m68k/t-rtems: Add m5329 multilib.
5592 2009-03-24 Dodji Seketeli <dodji@redhat.com>
5593 Jakub Jelinek <jakub@redhat.com>
5596 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
5599 2009-03-23 Jakub Jelinek <jakub@redhat.com>
5602 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
5603 instead of c_parser_expression_conv, if original_code isn't one of the
5604 4 allowed comparison codes, fail.
5606 2009-03-23 Richard Guenther <rguenther@suse.de>
5608 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
5609 * tree.h (struct tree_type): Likewise.
5610 * reload.h (struct insn_chain): Likewise.
5611 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
5612 * function.h (struct function): Likewise.
5613 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
5615 2009-03-23 Jakub Jelinek <jakub@redhat.com>
5617 PR tree-optimization/39516
5618 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
5620 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
5622 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
5623 should be set true if BITS_PER_WORD of target is bigger than 32
5625 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
5627 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
5628 Translate -B-options to -rpath-link. Correct existing
5629 rpath-link and conditionalize on !nostdlib.
5631 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5633 * doc/extend.texi (Function Attributes, Variable Attributes):
5635 * doc/invoke.texi (Debugging Options, Optimize Options)
5636 (i386 and x86-64 Options, MCore Options): Likewise.
5638 2009-03-20 Jakub Jelinek <jakub@redhat.com>
5641 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
5642 it for block local namespace aliases.
5643 (gen_decl_die): Pass context_die to gen_namespace_die.
5645 2009-03-19 Jakub Jelinek <jakub@redhat.com>
5648 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
5649 minimum or maximum value.
5651 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
5653 * reginfo.c (globalize_reg): Recompute derived reg sets.
5655 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
5658 * libgcc2.c (mprotect): Do not use signed arguments for
5659 VirtualProtect, use DWORD arguments. Also fix the 'may
5660 be used uninitialized' warning for the np variable.
5662 2009-03-19 Jakub Jelinek <jakub@redhat.com>
5665 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
5666 functions using regparm calling conventions when not optimizing.
5667 (ix86_function_sseregparm): Similarly for sseregparm calling
5670 2009-03-19 Li Feng <nemokingdom@gmail.com>
5673 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
5674 dependence if the first conflict is after niter iterations.
5676 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
5679 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
5680 functions with dynamic stack-pointer adjustments.
5682 2009-03-19 Ben Elliston <bje@au.ibm.com>
5684 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
5685 option; change to -msdata=data.
5687 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5689 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
5692 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
5695 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
5697 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
5699 * doc/invoke.texi (Code Gen Options): Expand discussion of
5702 2009-03-18 Jakub Jelinek <jakub@redhat.com>
5704 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
5705 * matrix-reorg.c (struct matrix_info): Likewise.
5706 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
5707 * rtl.h (struct mem_attrs): Likewise.
5708 * df.h (struct df): Likewise.
5709 * tree-data-ref.h (struct data_dependence_relation): Likewise.
5710 * ira-int.h (struct ira_allocno): Likewise.
5711 * df-scan.c (struct df_collection_rec): Likewise.
5712 * ira.c (struct equivalence): Likewise.
5713 * function.c (struct temp_slot): Likewise.
5714 * cfgloop.h (struct loop): Likewise.
5717 * function.c (use_register_for_decl): When not optimizing, disregard
5718 register keyword for variables with types containing methods.
5720 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
5723 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
5724 (is_simple_operand): Call contains_component_ref_p before calling data
5725 reference analysis that would fail on COMPONENT_REFs.
5727 * tree-vrp.c (search_for_addr_array): Fix formatting.
5729 2009-03-18 Richard Guenther <rguenther@suse.de>
5731 * tree-vect-transform.c (vect_loop_versioning): Fold the
5732 generated comparisons.
5733 * tree-vectorizer.c (set_prologue_iterations): Likewise.
5734 (slpeel_tree_peel_loop_to_edge): Likewise.
5736 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5739 * opts.c (print_specific_help): In addition to `undocumented',
5740 accept `separate' and `joined' flags if passed alone. Describe
5741 output by the first matched one of those.
5742 (common_handle_option): Skip over empty strings.
5743 * gcc.c (display_help): Fix help string for `--help='.
5744 * doc/invoke.texi (Option Summary, Overall Options): With
5745 `--help=', classes and qualifiers can both be repeated, but
5746 only the latter can be negated. One should not pass only
5747 negated qualifiers. Fix markup and examples.
5750 2008-10-14 Jakub Jelinek <jakub@redhat.com>
5752 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
5753 and -fhelp=separate.
5755 2009-03-17 Jing Yu <jingyu@google.com>
5758 * function.h (struct rtl_data): Move is_thunk from here...
5759 (struct function): ...to here.
5760 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
5761 * varasm.c (assemble_start_function): Change is_thunk from crtl to
5763 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
5765 (alpha_does_function_need_gp, alpha_start_function): Likewise.
5766 (alpha_output_function_end_prologue): Likewise.
5767 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
5768 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
5769 (rs6000_output_function_epilogue): Likewise.
5770 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
5772 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
5775 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
5776 from different units in a single alternative.
5777 (*truncdfsf_i387): Ditto.
5778 (*truncxfsf2_mixed): Ditto.
5779 (*truncxfdf2_mixed): Ditto.
5781 2009-03-17 Jakub Jelinek <jakub@redhat.com>
5783 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
5784 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
5787 * tree-ssa-live.c (remove_unused_locals): Don't remove local
5788 unused non-artificial variables when not optimizing.
5791 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
5792 DW_TAG_imported_module even if decl is IMPORTED_DECL with
5793 NAMESPACE_DECL in its DECL_INITIAL.
5796 * optabs.c (set_user_assembler_libfunc): New function.
5797 * expr.h (set_user_assembler_libfunc): New prototype.
5798 * c-common.c: Include libfuncs.h.
5799 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
5800 for memcmp, memset, memcpy, memmove and abort.
5801 * Makefile.in (c-common.o): Depend on libfuncs.h.
5804 * dwarf2out.c (gen_inlined_enumeration_type_die,
5805 gen_inlined_structure_type_die, gen_inlined_union_type_die,
5806 gen_tagged_type_instantiation_die): Removed.
5807 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
5810 2009-03-17 Janis Johnson <janis187@us.ibm.com>
5813 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
5815 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
5816 (check-parallel-%): Ditto.
5817 (check-consistency): Ditto.
5819 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
5821 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
5822 local variable rhs by NULL_TREE.
5824 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
5827 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
5829 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
5832 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
5834 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
5837 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
5838 for ms->sysv ABI calls only in 64bit mode.
5840 * config/i386/i386.md (untyped_call): Support 32bit.
5842 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
5844 * doc/extend.texi: Replace x86_65 with x86_64.
5846 2009-03-16 Jakub Jelinek <jakub@redhat.com>
5848 PR tree-optimization/39455
5849 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
5850 mismatches for POINTER_TYPE_P (type).
5851 (number_of_iterations_le): Likewise.
5853 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
5855 * config/picochip/picochip.c: Removed profiling support.
5856 * config/picochip/picochip.md: Removed profiling instruction.
5857 * config/picochip/picochip.h: Removed profiling builtin.
5859 2009-03-16 Joseph Myers <joseph@codesourcery.com>
5861 * doc/install.texi (--with-host-libstdcxx): Document.
5863 2009-03-14 Anatoly Sokolov <aesok@post.ru>
5866 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
5867 generate a warning if the function name does not begin with
5868 "__vector" and the function has either the 'signal' or 'interrupt'
5869 attribute, from here to ...
5870 (avr_declare_function_name): ...here. New function.
5871 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
5872 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
5874 2009-03-14 Jakub Jelinek <jakub@redhat.com>
5877 * cse.c (fold_rtx): Don't modify original const_arg1 when
5878 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
5879 separate variable instead.
5880 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
5881 from out of range shift counts.
5882 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
5884 2009-03-13 Catherine Moore <clm@codesourcery.com>
5886 * gcc/config/i386/x-mingw32 (host-mingw32.o): Replace
5887 diagnostic.h with $(DIAGNOSTIC_H).
5889 2009-03-12 Jakub Jelinek <jakub@redhat.com>
5892 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
5894 * config/i386/sync.md (sync_compare_and_swap<mode>,
5895 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
5896 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
5898 (sync_double_compare_and_swapdi_pic,
5899 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
5900 cmpxchg8b_pic_memory_operand instead of just memory_operand.
5902 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
5905 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
5907 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
5910 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
5911 (avx_addsubv4df3): Likewise.
5912 (*avx_addsubv4sf3): Likewise.
5913 (sse3_addsubv4sf3): Likewise.
5915 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
5918 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
5920 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
5923 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
5924 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
5925 registers for allocnos created from user-defined variables.
5927 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5930 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
5931 of non-integer mode as well.
5933 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
5935 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
5936 for functions for which the parameter types are unknown.
5938 2009-03-11 Jakub Jelinek <jakub@redhat.com>
5941 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
5942 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
5943 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
5944 * config/i386/i386.c (ix86_local_alignment): For
5945 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
5946 long long variables on the stack to avoid dynamic realignment.
5947 Allow the first argument to be a decl rather than type.
5948 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
5950 2009-03-11 Nick Clifton <nickc@redhat.com>
5953 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
5955 Add description to mno-lsim option.
5956 * config/mcore/mcore.h: Remove comment about deprecated m4align
5958 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
5959 * doc/invoke.texi: Add description of mno-lsim and
5960 mstack-increment options.
5962 * config/fr30/fr30.opt: Document the -mno-lsim option.
5963 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
5964 and -mno-lsim options.
5966 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5968 * fold-const.c (fold_comparison): Only call fold_inf_compare
5969 if the mode supports infinities.
5971 2009-03-11 Jason Merrill <jason@redhat.com>
5974 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
5975 end already did. Notice GIMPLE_CALL modifications of the result.
5976 Don't copy debug information from an ignored decl or a decl from
5979 2009-03-10 Richard Guenther <rguenther@suse.de>
5980 Nathan Froyd <froydnj@codesourcery.com>
5983 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
5984 (__divMODE3): Likewise.
5986 2009-03-09 Jakub Jelinek <jakub@redhat.com>
5988 PR tree-optimization/39394
5989 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
5990 DECL_SIZE_UNIT of variable length FIELD_DECLs.
5992 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5994 * recog.c (verfiy_changes): Disallow renaming of hard regs in
5995 inline asms for register asm ("") declarations.
5997 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
5999 * fold-const.c (fold_unary): Fix comment.
6001 2009-03-07 Jan Hubicka <jh@suse.cz>
6004 * tree-inline.c (setup_one_parameter): Do replacement of const
6005 argument by constant in SSA form.
6007 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6010 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
6011 determine alignment passed to assign_stack_local.
6012 (assign_parms_unsplit_complex): Likewise.
6013 * except.c (sjlj_build_landing_pads): Likewise.
6015 2009-03-06 Jakub Jelinek <jakub@redhat.com>
6018 * tree-flow.h (add_referenced_var): Return bool instead of void.
6019 * tree-dfa.c (add_referenced_var): Return result of
6020 referenced_var_check_and_insert call.
6021 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
6022 of referenced_var_check_and_insert.
6025 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
6026 (gen_variable_die): Emit DW_AT_location on abstract static variable's
6027 DIE, don't emit it if abstract origin already has it.
6028 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
6029 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
6031 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6033 * genpreds.c (needs_variable): Fix parentheses at variable name
6035 (write_tm_constrs_h): Indent generated code.
6037 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6039 * doc/extend.texi (Function Attributes): Add documentation
6042 2009-03-06 Jakub Jelinek <jakub@redhat.com>
6045 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
6046 take locus from its DECL_SOURCE_LOCATION instead of input_location.
6048 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
6050 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
6053 2009-03-05 Jakub Jelinek <jakub@redhat.com>
6056 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
6057 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
6059 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
6061 * config/i386/i386.md (R8_REG, R9_REG): New constants.
6062 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
6063 constants instead of magic numbers.
6064 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
6066 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
6067 (x86_64_ms_abi_int_parameter_registers): Ditto.
6068 (x86_64_int_return_registers): Ditto.
6069 (ix86_maybe_switch_abi): Ditto.
6070 (ix86_expand_call): Ditto for clobbered_registers array.
6071 (ix86_hard_regno_mode_ok): Ditto.
6072 (x86_extended_QIreg_mentioned_p): Ditto.
6074 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
6076 PR tree-optimization/39349
6077 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
6079 * combine.c (gen_lowpart_for_combine): Use omode when generating
6082 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
6084 PR rtl-optimization/39235
6085 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
6087 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
6089 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
6091 2009-03-04 Richard Guenther <rguenther@suse.de>
6093 PR tree-optimization/39362
6094 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
6095 that occur in abnormal PHIs should be varying.
6097 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
6099 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
6101 (simple_iv): Take loop as an argument instead of statement.
6102 * tree-scalar-evolution.h (simple_iv): Declaration changed.
6103 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
6105 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
6107 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
6108 * matrix-reorg.c (analyze_transpose): Ditto.
6109 * tree-data-ref.c (dr_analyze_innermost): Ditto.
6110 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
6111 * tree-predcom.c (ref_at_iteration): Ditto.
6112 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
6114 2009-03-04 Richard Guenther <rguenther@suse.de>
6116 PR tree-optimization/39358
6117 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
6118 escaped_id and callused_id.
6119 (solve_graph): Likewise.
6121 2009-03-04 Richard Guenther <rguenther@suse.de>
6123 PR tree-optimization/39339
6124 * tree-sra.c (try_instantiate_multiple_fields): Make it
6125 no longer ICE on the above.
6127 2009-03-03 Joseph Myers <joseph@codesourcery.com>
6129 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
6130 that fits within Pmode.
6132 2009-03-03 Steve Ellcey <sje@cup.hp.com>
6135 * tm.texi (LIBCALL_VALUE): Update description.
6137 2009-03-03 Steve Ellcey <sje@cup.hp.com>
6140 * doc/extend.texi (section): Update description.
6142 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
6145 * tree-inline.c (remapped_type): New.
6146 (can_be_nonlocal): Call remapped_type instead of remap_type.
6148 2009-03-03 Jakub Jelinek <jakub@redhat.com>
6151 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
6152 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
6154 2009-03-03 Richard Guenther <rguenther@suse.de>
6157 * tree.c (tree_nonartificial_location): New function.
6158 * tree.h (tree_nonartificial_location): Declare.
6159 * builtins.c (expand_builtin_memory_chk): Provide location
6160 of the call location for artificial function pieces.
6161 (maybe_emit_chk_warning): Likewise.
6162 (maybe_emit_sprintf_chk_warning): Likewise.
6163 (maybe_emit_free_warning): Likewise.
6164 * expr.c (expand_expr_real_1): Likewise.
6166 2009-03-03 Jakub Jelinek <jakub@redhat.com>
6168 PR tree-optimization/39343
6169 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
6170 COMPONENT_REF t has ARRAY_TYPE.
6172 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
6175 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
6176 when the type precision of the induction variable should be
6177 larger than the type precision of nit.
6178 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
6179 * graphite.c (graphite_loop_normal_form): Same.
6180 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
6182 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
6184 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
6185 (*call_1_rex64_ms_sysv): Use named constants instead of magic
6186 numbers to describe clobbered registers.
6187 (*call_value_0_rex64_ms_sysv): Ditto.
6188 * config/i386/mmx.md (mmx_emms): Ditto.
6191 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
6193 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
6196 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6198 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
6199 (spu_section_type_flags): New function.
6201 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
6203 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
6204 reg_class_contents of FLOAT_REGS into a temporary.
6206 2009-03-02 Richard Guenther <rguenther@suse.de>
6207 Ira Rosen <irar@il.ibm.com>
6209 PR tree-optimization/39318
6210 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
6211 information to the vectorized statement.
6213 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
6215 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
6216 variable. Use defined names instead of magic constants for REX SSE
6219 2009-03-01 Richard Guenther <rguenther@suse.de>
6221 PR tree-optimization/39331
6222 * omp-low.c (lower_send_shared_vars): Do not receive new
6223 values for the reference of DECL_BY_REFERENCE parms or results.
6225 2009-03-01 Jan Hubicka <jh@suse.cz>
6228 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
6229 BLOCK_NONLOCALIZED_VAR): New macros.
6230 (tree_block): Add nonlocalized_vars.
6231 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
6232 gen_decl_die): Add origin argument. Allow generation of die with
6233 origin at hand only.
6234 (gen_member_die, gen_type_die_with_usage, force_decl_die,
6235 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
6237 (gen_block_die): Fix checking for unused blocks.
6238 (process_scope_var): Break out from .... ; work with origins only.
6239 (decls_for_scope) ... here; process nonlocalized list.
6240 (dwarf2out_ignore_block): Look for nonlocalized vars.
6241 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
6243 (dump_scope_block): Dump them.
6244 * tree-inline.c (remap_decls): Handle nonlocalized vars.
6245 (remap_block): Likewise.
6246 (can_be_nonlocal): New predicate.
6247 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
6249 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6251 * configure: Regenerate.
6253 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6255 * optc-gen.awk: No need to duplicate option flags twice.
6256 Reuse help texts for duplicate options which do not have any.
6258 * gcc.c (display_help): Document --version.
6260 * gcc.c (main): If print_help_list and verbose_flag, ensure
6261 driver output comes before subprocess output.
6263 * optc-gen.awk: Assign all remaining fields to help string,
6264 space-separated, for multi-line help in *.opt.
6266 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
6267 -Wno-pedantic-ms-format is for MinGW targets only.
6269 * doc/options.texi (Option file format): Fix bad indentation,
6270 restoring dropped sentence.
6272 2009-02-28 Jan Hubicka <jh@suse.cz>
6274 * tree-inline.c (tree_function_versioning): Output debug info.
6276 2009-02-28 Jan Hubicka <jh@suse.cz>
6279 * tree-inline.c (setup_one_parameter): Do not copy propagate
6280 arguments when not optimizing.
6282 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
6285 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
6286 (avx_addsubv4df3): Likewise.
6287 (*avx_addsubv4sf3): Likewise.
6288 (sse3_addsubv4sf3): Likewise.
6289 (*avx_addsubv2df3): Likewise.
6290 (sse3_addsubv2df3): Likewise.
6291 (avx_unpckhps256): Correct item selectors.
6292 (avx_unpcklps256): Likewise.
6293 (avx_unpckhpd256): Likewise.
6294 (avx_unpcklpd256): Likewise.
6296 2009-02-28 Jan Hubicka <jh@suse.cz>
6298 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
6300 (copy_arguments_for_versioning): If var is declared don't declare it.
6301 (tree_function_versioning): First setup substitutions and then copy
6304 2009-02-27 Jan Hubicka <jh@suse.cz>
6307 * cgraph.h (varpool_output_debug_info): Remove.
6308 * cgraphunit.c (varpool_output_debug_info): Remove.
6309 * dwarf2out.c (deferred_locations_struct): New struct
6310 (deferred_locations): New type.
6311 (deferred_locations_list): New static var.
6312 (deffer_location): New function.
6313 (gen_variable_die): Use it.
6314 (decls_for_scope): Output info on local static vars.
6315 (dwarf2out_finish): Process deferred locations.
6316 * varpool.c (varpool_output_debug_info): Remove.
6318 2009-02-27 Jan Hubicka <jh@suse.cz>
6321 * tree.h (TREE_PROTECTED): Fix comment.
6322 (BLOCK_HANDLER_BLOCK): Remove.
6323 (struct tree_block): Remove handler_block add body_block.
6324 (inlined_function_outer_scope_p): New.
6325 (is_body_block): Remove.
6326 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
6327 * dwarf2out.c (is_inlined_entry_point): Remove.
6328 (add_high_low_attributes): Use inlined_function_outer_scope_p.
6329 (gen_block_die): Use is_inlined_entry_point check. Remove body block
6331 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
6332 * gimplify.c (gimplify_expr): Gimplify body blocks.
6333 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
6334 block with multiple subblocks.
6335 (dump_scope_block): Prettier output; dump more flags and info.
6336 (dump_scope_blocks): New.
6337 (remove_unused_locals): Use dump_scope_blocks.
6338 * tree-flow.h (dump_scope_blocks): Declare.
6339 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
6340 * stmt.c (is_body_block): Remove.
6341 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
6342 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
6344 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
6347 * graphite.c (graphite_loop_normal_form): Do not call
6348 number_of_iterations_exit from a gcc_assert.
6350 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6352 * gcc/config/s390/s390.c (s390_swap_cmp): Look for conditional
6353 jumps if COND is NULL.
6354 (find_cond_jump): New function.
6355 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
6356 * gcc/config/s390/s390.md: Remove z10_cobra attribute value.
6358 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
6360 * config/alpha/alpha.h (alpha_expand_mov): Return false if
6361 force_const_mem returns NULL_RTX.
6363 2009-02-26 Jan Hubicka <jh@suse.cz>
6366 * cgraph.h (varpool_output_debug_info): Remove.
6367 * cgraphunit.c (varpool_output_debug_info): Remove.
6368 * dwarf2out.c (deferred_locations_struct): New struct
6369 (deferred_locations): New type.
6370 (deferred_locations_list): New static var.
6371 (deffer_location): New function.
6372 (gen_variable_die): Use it.
6373 (decls_for_scope): Output info on local static vars.
6374 (dwarf2out_finish): Process deferred locations.
6375 * varpool.c (varpool_output_debug_info): Remove.
6377 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
6379 PR rtl-optimization/39241
6380 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
6381 to subreg_offset_representable_p.
6383 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
6385 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
6386 execute function prototype. Get f and nregs from max_reg_num
6387 and get_insns. Remove the first backward pass as it's dead,
6388 guard the forward pass by flag_expensive_optimizations.
6389 (rest_of_handle_regmove): Delete.
6390 (pass_regmove): Replace it with regmove_optimize.
6392 2009-02-25 Martin Jambor <mjambor@suse.cz>
6394 PR tree-optimization/39259
6395 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
6396 calls_alloca function flags.
6397 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
6400 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
6402 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
6403 flags_set_1_rtx, flags_set_1_set): Delete.
6404 (regmove_optimize): Do not call mark_flags_life_zones.
6406 2009-02-24 Julian Brown <julian@codesourcery.com>
6409 * config/arm/arm.c (require_pic_register): Only set
6410 cfun->machine->pic_reg once per function.
6412 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
6414 * doc/invoke.texi (Link Options): Document an easier way to pass
6415 options that take arguments to the GNU linker using -Xlinker and -Wl.
6417 2009-02-24 Steve Ellcey <sje@cup.hp.com>
6420 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
6422 2009-02-24 Richard Guenther <rguenther@suse.de>
6425 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
6427 2009-02-24 Richard Guenther <rguenther@suse.de>
6428 Zdenek Dvorak <ook@ucw.cz>
6430 PR tree-optimization/39233
6431 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
6432 from converting them to a generic type.
6434 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
6436 PR tree-optimization/39260
6437 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
6438 contains a condition with a real type.
6439 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
6441 2009-02-23 Jason Merrill <jason@redhat.com>
6444 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
6445 narrowing_initializer_constant_valid_p.
6446 (narrowing_initializer_constant_valid_p): Don't return
6447 null_pointer_node for adding a pointer to itself.
6449 2009-02-23 Jan Hubicka <jh@suse.cz>
6452 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
6455 2009-02-23 Jan Hubicka <jh@suse.cz>
6457 PR tree-optimization/37709
6458 * tree.c (block_ultimate_origin): Move here from dwarf2out.
6459 * tree.h (block_ultimate_origin): Declare.
6460 * dwarf2out.c (block_ultimate_origin): Move to tree.c
6461 * tree-ssa-live.c (remove_unused_scope_block_p):
6462 Eliminate blocks containig no instructions nor live variables nor
6464 (dump_scope_block): New function.
6465 (remove_unused_locals): Enable removal of dead blocks by default;
6466 enable dumping at TDF_DETAILS.
6468 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
6470 * config/i386/i386.c (classify_argument): Don't allow COImode
6472 (function_arg_advance_32): Don't allow OImode.
6473 (function_arg_32): Likewise.
6474 (function_value_32): Likewise.
6475 (return_in_memory_32): Likewise.
6476 (function_arg_64): Remove OImode comment.
6478 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
6481 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
6482 ix86_expand_vector_set for V4DImode in 64bit mode only.
6483 (ix86_expand_vector_init_one_var): Likewise.
6485 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
6487 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
6489 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
6492 * loop-iv.c: Revert last change.
6493 * emit-rtl.c: Likewise.
6495 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
6498 * config/i386/i386.c (type_natural_mode): Remove an extra
6499 space in the warning message.
6500 (function_value_32): Handle 32-byte vector modes.
6501 (return_in_memory_32): Likewise.
6503 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
6505 * loop-iv.c (truncate_value): New function.
6506 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
6508 (lowpart_subreg): Move to...
6509 * emit-rtl.c: ...here.
6511 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
6513 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
6514 accidental and undocumented change at revision 140860.
6516 2009-02-21 Joseph Myers <joseph@codesourcery.com>
6518 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
6519 take gimple_seq * arguments.
6520 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
6521 types_compatible_p langhook.
6523 2009-02-20 Mark Mitchell <mark@codesourcery.com>
6524 Joseph Myers <joseph@codesourcery.com>
6526 * config/arm/arm.c (arm_builtin_va_list): New function.
6527 (arm_expand_builtin_va_start): Likewise.
6528 (arm_gimplify_va_arg_expr): Likewise.
6529 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
6530 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
6531 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
6532 (va_list_type): New variable.
6533 (arm_mangle_type): Mangle va_list_type appropriately.
6535 2009-02-20 Jakub Jelinek <jakub@redhat.com>
6538 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
6539 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
6540 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
6541 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
6542 parameter to 1000 for -O1 by default.
6543 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
6545 * loop-invariant.c: Include params.h.
6546 (move_loop_invariants): Don't call move_single_loop_invariants on
6549 2009-02-20 Jaka Mocnik <jaka@xlab.si>
6551 * calls.c (emit_library_call_value_1): Use slot_offset instead of
6552 offset when calculating bounds for indexing stack_usage_map. Fixes
6553 a buffer overflow with certain target setups.
6555 2009-02-20 Jakub Jelinek <jakub@redhat.com>
6558 * calls.c (expand_call): Clear try_tail_call if caller and callee
6559 disagree in promotion of function return value.
6561 2009-02-19 Jakub Jelinek <jakub@redhat.com>
6564 * c-common.c (c_determine_visibility): If visibility changed and
6565 DECL_RTL has been already set, call make_decl_rtl to update symbol
6568 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
6571 * varasm.c (assemble_variable): Don't check DECL_NAME when
6572 globalizing a variable.
6574 2009-02-19 Joseph Myers <joseph@codesourcery.com>
6577 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
6578 expression before any __builtin_trap call.
6579 * c-typeck.c (build_function_call): Convert and check function
6580 arguments before generating a call to a trap. Evaluate the
6581 function arguments before the trap.
6583 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
6586 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
6587 (UNSPEC_FXAM_MEM): New unspec.
6588 (fxam<mode>2_i387_with_temp): New insn and split pattern.
6589 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
6590 memory using fxam<mode>2_i387_with_temp to remove excess precision.
6592 2009-02-19 Richard Guenther <rguenther@suse.de>
6594 PR tree-optimization/39207
6595 PR tree-optimization/39074
6596 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
6597 storedanything_tree): New.
6598 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
6599 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
6600 (build_succ_graph): Add edges from STOREDANYTHING to all
6602 (init_base_vars): Initialize STOREDANYTHING.
6603 (compute_points_to_sets): Free substitution info after
6604 building the succ graph.
6605 (ipa_pta_execute): Likewise.
6607 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
6609 (do_ds_constraint): Do not add to special var or non-pointer
6611 (type_could_have_pointers): Split out from ...
6612 (could_have_pointers): ... here. For arrays use the element type.
6613 (create_variable_info_for): Initialize may_have_pointers.
6614 (new_var_info): Likewise.
6615 (handle_lhs_call): Make the HEAP variable unknown-sized.
6616 (intra_create_variable_infos): Use a type with pointers for
6617 PARM_NOALIAS, make it unknown-sized.
6619 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
6622 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
6624 2009-02-18 Jason Merrill <jason@redhat.com>
6627 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
6628 value if DECL_EXTERNAL.
6629 * tree-sra.c (sra_walk_gimple_assign): Likewise.
6630 * target.h (gcc_target::binds_local_p): Clarify "module".
6631 * tree.h (TREE_PUBLIC): Clarify "module".
6633 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
6636 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
6637 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
6639 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
6642 * c.opt (Wabi): Support C and ObjC.
6645 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
6647 * config/i386/i386.c (classify_argument): Warn once about the ABI
6648 change when passing union with long double.
6650 * doc/invoke.texi: Update -Wabi for warning psABI changes.
6652 2009-02-18 Joseph Myers <joseph@codesourcery.com>
6655 * c-parser.c (c_parser_compound_statement): Always enter and leave
6658 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6661 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
6663 2009-02-18 Jakub Jelinek <jakub@redhat.com>
6665 PR tree-optimization/36922
6666 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
6667 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
6670 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
6672 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
6675 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
6677 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
6679 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
6681 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
6684 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
6685 Richard Sandiford <rdsandiford@googlemail.com>
6687 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
6688 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
6689 (loongson_biadd): ...this.
6691 2009-02-17 Richard Guenther <rguenther@suse.de>
6693 PR tree-optimization/39202
6694 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
6695 a var make sure to follow existing collapses.
6697 2009-02-17 Richard Guenther <rguenther@suse.de>
6700 * langhooks.c (lhd_print_error_function): Check for NULL block.
6702 2009-02-17 Richard Guenther <rguenther@suse.de>
6704 PR tree-optimization/39204
6705 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
6708 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
6710 * config/soft-fp/double.h: Update from glibc CVS.
6712 2009-02-17 Richard Guenther <rguenther@suse.de>
6714 PR tree-optimization/39207
6715 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
6716 strict-aliasing warnings for pointers pointing to NULL.
6718 2009-02-16 Joseph Myers <joseph@codesourcery.com>
6721 * c-parser.c (c_parser_braced_init): Call pop_init_level when
6722 skipping until next close brace.
6724 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
6727 * config/i386/i386.c (ix86_expand_push): Set memory alignment
6728 to function argument boundary.
6730 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
6732 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
6733 in the lea_add. Reload eventually constraints it properly.
6734 * config/picochip/constraints.md : Remove the target constraint
6735 "b", since it is not needed anymore.
6737 2009-02-16 Jakub Jelinek <jakub@redhat.com>
6739 * gthr-dce.h: Uglify function parameter and local variable names.
6740 * gthr-gnat.h: Likewise.
6741 * gthr-mipssde.h: Likewise.
6742 * gthr-nks.h: Likewise.
6743 * gthr-posix95.h: Likewise.
6744 * gthr-posix.h: Likewise.
6745 * gthr-rtems.h: Likewise.
6746 * gthr-single.h: Likewise.
6747 * gthr-solaris.h: Likewise.
6748 * gthr-tpf.h: Likewise.
6749 * gthr-vxworks.h: Likewise.
6750 * gthr-win32.h: Likewise.
6752 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
6755 * config/i386/i386.md: Restrict the new peephole2 to move
6756 between MMX/SSE registers.
6758 2009-02-15 Richard Guenther <rguenther@suse.de>
6761 2009-02-13 Richard Guenther <rguenther@suse.de>
6763 * configure.ac: Enable LFS.
6764 * configure: Re-generate.
6765 * config.in: Likewise.
6767 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6769 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
6770 spu_srqwbyte, spu_srqwbytebc): Define.
6771 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
6772 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
6773 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
6774 "shrqby_<mode>"): New insn-and-split patterns.
6775 * config/spu/spu.c (expand_builtin_args): Determine and return
6776 number of operands using spu_builtin_description data.
6777 (spu_expand_builtin_1): Use it.
6779 2009-02-13 Steve Ellcey <sje@cup.hp.com>
6782 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
6785 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
6788 * config/i386/i386.c (override_options): Correct warning
6789 messages for -malign-loops, -malign-jumps and -malign-functions.
6791 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
6794 * config/i386/i386.md: Restrict the new peephole2 to move
6795 between the general purpose registers.
6797 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
6800 * config/i386/i386.c (type_natural_mode): Add a new argument.
6801 Return the original mode and warn ABI change if vector size is 32byte.
6802 (function_arg_advance): Updated.
6803 (function_arg): Likewise.
6804 (ix86_function_value): Likewise.
6805 (ix86_return_in_memory): Likewise.
6806 (ix86_sol10_return_in_memory): Likewise.
6807 (ix86_gimplify_va_arg): Likewise.
6808 (function_arg_32): Don't warn ABX ABI change here.
6809 (function_arg_64): Likewise.
6811 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
6813 * loop-iv.c (implies_p): In the final case, test that operands 0
6814 of the two comparisons match.
6816 * config/bfin/bfin.c (find_prev_insn_start): New function.
6817 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
6818 (find_next_insn_start): Move.
6820 2009-02-13 Richard Guenther <rguenther@suse.de>
6822 * configure.ac: Enable LFS.
6823 * configure: Re-generate.
6824 * config.in: Likewise.
6826 2009-02-13 Joseph Myers <joseph@codesourcery.com>
6829 * c-parser.c (c_parser_parms_list_declarator): Discard pending
6830 sizes on syntax error after some arguments have been parsed.
6832 2009-02-12 Jakub Jelinek <jakub@redhat.com>
6834 * doc/invoke.texi (-fira): Remove.
6836 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
6838 * caller-save.c: Replace regclass.c with reginfo.c in comments.
6839 * recog.c: Likewise.
6842 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
6844 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
6845 (umul_ppmm): Likewise.
6846 (count_leading_zeros): Likewise.
6847 (count_trailing_zeros): Likewise.
6848 (UMUL_TIME): Likewise.
6850 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
6852 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
6853 soft-fp/t-softfp to tmake_file.
6855 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
6856 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
6857 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
6858 IA64_BUILTIN_INFQ]: New.
6859 (ia64_init_builtins): Initialize __builtin_infq,
6860 __builtin_fabsq and __builtin_copysignq if not HPUX.
6861 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
6862 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
6864 * config/ia64/lib1funcs.asm (__divtf3): Define only if
6866 (__fixtfti): Likewise.
6867 (__fixunstfti): Likewise.
6868 (__floattitf): Likewise.
6870 * config/ia64/libgcc-glibc.ver: New.
6871 * config/ia64/t-fprules-softfp: Likewise.
6872 * config/ia64/sfp-machine.h: Likewise.
6874 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
6875 (LIBGCC2_TF_CEXT): Likewise.
6876 (TF_SIZE): Likewise.
6877 (TARGET_INIT_LIBFUNCS): Likewise.
6879 * config/ia64/t-glibc (SHLINB_MAPFILES):
6880 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
6882 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
6884 * config/i386/i386.c (construct_container): Rewrite processing
6885 BLKmode with X86_64_SSE_CLASS.
6887 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
6890 * config/i386/i386.md: Replace simplify_replace_rtx with
6891 replace_rtx in the new peephole2.
6893 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
6895 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
6896 loop unrolling do not happen at -O2.
6898 2009-02-12 Michael Matz <matz@suse.de>
6900 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
6902 2009-02-12 Jakub Jelinek <jakub@redhat.com>
6904 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
6907 2009-02-12 Ben Elliston <bje@au.ibm.com>
6909 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
6910 patterns when updating the back chain. Missed in the 2009-02-10
6913 2009-02-11 Janis Johnson <janis187@us.ibm.com>
6915 * doc/extend.texi (Decimal Floating Types): Update identifier of
6916 draft TR and list of missing support.
6918 2009-02-11 Jakub Jelinek <jakub@redhat.com>
6921 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
6922 bit to variable length decl's flags, add it also to its
6923 pointer replacement variable.
6925 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
6926 Jakub Jelinek <jakub@redhat.com>
6929 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
6930 (memory_blockage): New expander.
6931 (*memory_blockage): New insn pattern.
6932 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
6933 instead of general blockage at the end of function prologue when
6934 frame pointer is used to access red zone area. Do not emit blockage
6935 when profiling, it is emitted in generic code.
6936 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
6937 function epilogue when frame pointer is used to access red zone area.
6939 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
6942 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
6943 by arithmetic with memory operands.
6944 * config/i386/predicates.md (commutative_operator): New.
6946 2009-02-10 Janis Johnson <janis187@us.ibm.com>
6948 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
6951 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
6953 * alias.h (record_alias_subset): Declare.
6954 * alias.c (record_alias_subset): Make global.
6956 2009-02-10 Nick Clifton <nickc@redhat.com>
6958 * tree-parloops.c: Change license to GPLv3.
6959 * ipa-struct-reorg.c: Change license to GPLv3.
6960 * ipa-struct-reorg.h: Change license to GPLv3.
6962 2009-02-10 Steve Ellcey <sje@cup.hp.com>
6965 * c-decl.c (start_struct): Return NULL on error.
6967 2009-02-10 Jakub Jelinek <jakub@redhat.com>
6970 * cfgloopmanip.c (remove_path): Call remove_bbs after
6971 cancel_loop_tree, not before it.
6974 * function.h (struct function): Add has_local_explicit_reg_vars bit.
6975 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
6976 VAR_DECLs were seen.
6977 * tree-ssa-live.c (remove_unused_locals): Recompute
6978 cfun->has_local_explicit_reg_vars.
6979 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
6980 copies or clearings if cfun->has_local_explicit_reg_vars.
6982 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
6985 * config/i386/i386.c (expand_prologue): Emit blockage at the end
6986 of function prologue when frame pointer is used to access
6989 2009-02-10 Richard Guenther <rguenther@suse.de>
6992 * gimplify.c (gimple_regimplify_operands): Always look if
6993 we need to create a temporary.
6995 2009-02-10 Richard Guenther <rguenther@suse.de>
6997 PR tree-optimization/39132
6998 * tree-loop-distribution.c (todo): New global var.
6999 (generate_memset_zero): Trigger TODO_rebuild_alias.
7000 (tree_loop_distribution): Return todo.
7002 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
7005 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
7006 (x86_64_reg_class_name): Removed.
7007 (classify_argument): Return 0 if bytes > 32. Return 0 if the
7008 first one isn't X86_64_SSE_CLASS or any other ones aren't
7009 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
7010 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
7011 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
7012 and 3 X86_64_SSEUP_CLASS.
7013 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
7014 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
7016 2009-02-10 Ben Elliston <bje@au.ibm.com>
7018 * config/rs6000/rs6000.md (allocate_stack): Always use an update
7019 form instruction to update the stack back chain word, even if the
7020 user has disabled the generation of update instructions.
7021 (movdi_<mode>_update_stack): New.
7022 (movsi_update_stack): Likewise.
7023 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
7024 always use an update form instruction to update the stack back
7027 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
7030 * graphite.c (if_region_set_false_region): After moving a region in
7031 the false branch of a condition, remove the empty dummy basic block.
7032 (gloog): Remove wrong fix for PR38953.
7034 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7036 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
7037 generation due to implicit sign extension.
7039 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
7042 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
7043 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
7045 2009-02-09 Richard Guenther <rguenther@suse.de>
7048 * convert.c (convert_to_real): Disable (float)fn((double)x)
7049 to fnf(x) conversion if errno differences may occur and
7050 -fmath-errno is set.
7052 2009-02-07 Anatoly Sokolov <aesok@post.ru>
7054 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
7055 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
7056 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
7058 2009-02-06 Joseph Myers <joseph@codesourcery.com>
7061 * c-common.c (handle_alias_attribute): Disallow attribute for
7062 anything not a FUNCTION_DECL or VAR_DECL.
7064 2009-02-06 Janis Johnson <janis187@us.ibm.com>
7067 * real.c (do_compare): Special-case compare of zero against
7068 decimal float value.
7070 2009-02-06 Joseph Myers <joseph@codesourcery.com>
7073 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
7074 as indicating flexible array members unless the field itself is
7075 being declarared as the incomplete array.
7077 2009-02-06 Jan Hubicka <jh@suse.cz>
7079 PR tree-optimization/38844
7080 * ipa-inline.c (try_inline): Stop inlining recursion when edge
7083 2009-02-06 Richard Guenther <rguenther@suse.de>
7086 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
7087 fork because we may expand it as __gcov_fork.
7089 2009-02-06 Nick Clifton <nickc@redhat.com>
7091 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
7093 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
7095 PR tree-optimization/35659
7096 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
7097 vn_phi_eq): Shortcut if hashcode does not match.
7098 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
7100 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
7101 and avoid iterative_hash_expr.
7102 (FOR_EACH_VALUE_ID_IN_SET): New.
7103 (value_id_compare): Remove.
7104 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
7105 sort expressions by value id.
7107 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
7110 * config/sh/predicates.md (general_movsrc_operand): Don't check
7111 the subreg of system registers here.
7113 2009-02-05 Jakub Jelinek <jakub@redhat.com>
7116 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
7119 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
7121 PR rtl-optimization/39110
7122 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
7123 addresses, not aligned ones.
7125 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
7126 Richard Guenther <rguenther@suse.de>
7128 PR tree-optimization/39100
7129 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
7130 comment says and add edges.
7132 2009-02-05 Joseph Myers <joseph@codesourcery.com>
7135 * c-common.c (handle_tls_model_attribute): Ignore attribute for
7136 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
7138 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
7140 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
7141 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
7142 register_bb_in_sese, new_sese, free_sese): Moved.
7143 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
7144 outermost_loop_in_scop, build_scop_iteration_domain,
7145 expand_scalar_variables_ssa_name, get_vdef_before_scop,
7146 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
7147 Use loop_in_sese_p instead of loop_in_scop_p.
7148 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
7149 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
7150 (scopdet_basic_block_info): Fix bug in scop detection.
7151 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
7152 eq_loop_to_cloog_loop): Remove.
7153 (nb_loops_around_loop_in_scop, nb_loop
7154 ref_nb_loops): Moved here...
7155 * graphite.h (ref_nb_loops): ... from here.
7156 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
7157 (loop_domain_dim, loop_iteration_vector_dim): Remove.
7158 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
7159 * testsuite/gcc.dg/graphite/scop-19.c: New
7161 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
7162 Hans-Peter Nilsson <hp@axis.com>
7164 PR rtl-optimization/37889
7165 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
7166 Move offset handling from PLUS to before the switch. Use new
7167 arguments when considering SYMBOL_REFs too.
7168 (rtx_addr_can_trap_p): Pass dummy offset and size.
7169 (enum may_trap_p_flags): Remove.
7170 (may_trap_p_1): Pass size from MEM_SIZE.
7172 PR rtl-optimization/38921
7173 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
7174 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
7175 * rtlanal.c (may_trap_after_code_motion_p): Delete.
7176 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
7178 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
7180 AVX Programming Reference (January, 2009)
7181 * config/i386/sse.md (*vpclmulqdq): New.
7183 2009-02-04 Jakub Jelinek <jakub@redhat.com>
7185 PR tree-optimization/38977
7186 PR gcov-profile/38292
7187 * calls.c (special_function_p): Disregard __builtin_ prefix.
7189 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
7191 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
7192 non-indexable addresses even before reload.
7194 2009-02-03 Joseph Myers <joseph@codesourcery.com>
7197 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
7198 as having variable size. Do not give an error for unnamed
7199 parameters with [*] declarators. Give a warning for type names
7200 with [*] declarators and mark them as variable size.
7201 * c-parser.c (c_parser_sizeof_expression): Do not give an error
7202 for sizeof applied to [*] type names.
7204 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
7207 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
7209 2009-02-03 Jakub Jelinek <jakub@redhat.com>
7211 * gcc.c (process_command): Update copyright notice dates.
7212 * gcov.c (print_version): Likewise.
7213 * gcov-dump.c (print_version): Likewise.
7214 * mips-tfile.c (main): Likewise.
7215 * mips-tdump.c (main): Likewise.
7217 2009-02-03 Joseph Myers <joseph@codesourcery.com>
7220 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
7221 for composite type involving a zero-length array type.
7223 2009-02-03 Jakub Jelinek <jakub@redhat.com>
7226 * function.c (match_asm_constraints_1): Skip over
7227 initial optional % in the constraint.
7230 * c-parser.c (c_parser_postfix_expression): If fixed point is not
7231 supported, don't accept FIXED_CSTs.
7232 * c-decl.c (finish_declspecs): Error if fixed point is not supported
7233 and _Sat is used without _Fract/_Accum. Set specs->type to
7234 integer_type_node for cts_fract/cts_accum if fixed point is not
7237 2009-02-02 Catherine Moore <clm@codesourcery.com>
7239 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
7241 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
7243 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
7244 (ABI_HAS_64BIT_SYMBOLS): Use it.
7245 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
7247 2009-02-02 Paul Brook <paul@codesourcery.com>
7249 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
7251 2009-02-02 Jakub Jelinek <jakub@redhat.com>
7254 * recog.h (asm_operand_ok): Add constraints argument.
7255 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
7256 recurse on matching constraint.
7257 (check_asm_operands): Pass constraints as 3rd argument to
7258 asm_operand_ok. Don't look up matching constraint here.
7259 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
7262 2009-02-02 Ben Elliston <bje@au.ibm.com>
7264 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
7265 TARGET_NARROW_VOLATILE_BITFIELD macro names.
7267 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7269 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
7270 information. Remove some obsolete information. Reorganize.
7272 * config/pa/fptr.c: Revert license to GPL 2.
7273 * config/pa/milli64.S: Likewise.
7275 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
7278 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
7279 LIBRARY name in, instead of hard-coding it.
7280 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
7281 extra target make frag to tmake_files according to EH model.
7282 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
7283 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
7284 frags that define makefile variable EH_MODEL appropriately.
7285 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
7286 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
7287 to "-sjlj" according to type of EH configured.
7288 (LIBGCC_SONAME): Concatenate it to shared library base name.
7289 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
7290 to "_sjlj" according to type of EH configured.
7291 (LIBGCC_SONAME): Concatenate it to shared library base name.
7292 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
7293 (SHLIB_LINK): Add missing semicolon to if-else construct.
7294 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
7295 string value of "pe_dll" command-line option.
7296 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
7297 (SHLIB_SONAME): Use it when overriding t-cygming default.
7298 (SHLIB_IMPLIB): Override t-cygming default.
7299 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
7300 string value of "pe_dll" command-line option.
7302 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
7305 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
7306 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
7308 2009-01-31 Richard Guenther <rguenther@suse.de>
7310 PR tree-optimization/38937
7311 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
7312 computing the transitive closure.
7314 2009-01-30 Richard Guenther <rguenther@suse.de>
7316 PR tree-optimization/39041
7317 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
7318 Propagate variable indices only if the types match for this stmt.
7320 2009-01-30 Jakub Jelinek <jakub@redhat.com>
7323 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
7324 inline but never defined.
7326 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
7328 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
7329 (*insv_h_di_reg_extimm): New insn.
7330 (*insv_l<mode>_reg_extimm): New insn.
7332 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
7334 * config/picochip/picochip.c (flag_conserve_stack): set
7335 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
7336 fconserve-stack. Reduce call-overhead used by inliner.
7338 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
7341 * common.opt (flag_conserve_stack): Initialised to zero.
7343 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
7346 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
7347 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
7350 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
7352 * ira-color.c (allocno_reload_assign): Update comments.
7353 * regmove.c (regmove_optimize): Likewise.
7357 2009-01-29 Robert Millan <rmh@aybabtu.com>
7359 * gcc/config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
7360 * gcc/config/i386/kopensolaris-gnu.h: New file. Undefine
7361 `MD_UNWIND_SUPPORT'.
7362 * gcc/config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
7364 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
7366 PR tree-optimization/39007
7367 * tree-loop-distribution.c (generate_builtin): Use
7368 recompute_dominator to compute the immediate dominator of the
7369 basic block just after the loop.
7371 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7373 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
7374 (ASM_OUTPUT_DWARF_PCREL): Define.
7376 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
7378 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
7379 * doc/passes.texi: Remove entries about regclass, local-alloc, and
7380 global. Modify entries about regmove and IRA.
7382 * ra-conflict.c: Remove the file.
7384 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
7386 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
7387 (pass_regclass_init): Rename to pass_reginfo_init.
7389 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
7391 * toplev.h (flag_ira): Remove.
7393 * caller-save.c (setup_save_areas): Remove flag_ira.
7395 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
7397 * global.c: Remove the file.
7399 * opts.c (decode_options): Remove flag_ira.
7401 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
7403 * regmove.c: Modify file description.
7404 (find_use_as_address, try_auto_increment): Define them only if
7405 AUTO_INC_DEC is defined.
7406 (replacement_quality, replace_in_call_usage, fixup_match_1,
7407 stable_and_no_regs_but_for_p): Remove.
7408 (reg_set_in_bb): Make it static.
7409 (regmove_optimize): Remove flag_ira and code which worked for
7412 * local-alloc.c: Remove the file.
7414 * common.opt (fira): Remove.
7416 * ira.c: Include except.h.
7417 (eliminable_regset): Move from global.c.
7418 (mark_elimination): Ditto. Remove flag_ira.
7419 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
7420 equiv_mem_modified, validate_equiv_mem_from_store,
7421 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
7422 contains_replace_regs, memref_referenced_p, memref_used_between_p,
7423 no_equiv, recorded_label_ref): Move from local-alloc.c.
7424 (update_equiv_regs): Ditto. Make it static.
7425 (print_insn_chain, print_insn_chains): Move it from global.c.
7426 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
7427 (build_insn_chain): Ditto. Make it static.
7428 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
7429 Rename to init_live_subregs.
7430 (gate_ira): Remove flag_ira.
7432 * regclass.c: Rename reginfo.c. Change file description.
7433 (FORBIDDEN_INC_DEC_CLASSES): Remove.
7434 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
7435 (init_reg_sets_1): Remove code for evaluation of
7436 reg_class_superclasses and losing_caller_save_reg_set.
7437 (init_regs): Remove init_reg_autoinc.
7438 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
7439 ok_for_base_p_nonstrict): Remove.
7440 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
7441 (pass_regclass_init): Rename to pass_reginfo_init. Modify
7442 corresponding entries.
7443 (dump_regclass, record_operand_costs, scan_one_insn,
7444 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
7445 record_address_regs, auto_inc_dec_reg_p): Remove.
7446 (gt-regclass.h): Rename to gt-reginfo.h.
7448 * rtl.h (dump_global_regs, retry_global_alloc,
7449 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
7451 * Makefile.in (RA_H): Remove.
7452 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
7453 Rename regclass.o to reginfo.o.
7454 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
7456 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
7457 (GTFILES): Rename regclass.c to reginfo.c.
7459 * passes.c (init_optimization_passes): Remove pass_local_alloc and
7460 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
7462 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
7463 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
7465 (finish_spills): Ditto. Remove code for !flag_ira.
7467 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
7470 * doc/invoke.texi (rtl debug options): Complete rewrite.
7471 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
7473 * mode-switching.c (pass_mode_switching): Rename pass from
7474 "mode-sw" to "mode_sw".
7475 * except.c (pass_convert_to_eh_ranges): Rename pass from
7476 "eh-ranges" to "eh_ranges".
7477 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
7481 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
7482 Alexander Monakov <amonakov@ispras.ru>
7485 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
7487 (move_exprs_to_boundary): Change return type and pass through
7488 should_move from move_op. Relax assert. Update usage ...
7489 (schedule_expr_on_boundary): ... here. Use should_move instead of
7491 (move_op_orig_expr_found): Indicate that insn was disconnected from
7493 (code_motion_process_successors): Do not call after_merge_succs
7494 callback if original expression was not found when traversing any of
7496 (code_motion_path_driver): Change return type. Update prototype.
7497 (move_op): Update comment. Add a new parameter (should_move). Update
7498 prototype. Set *should_move based on indication provided by
7499 move_op_orig_expr_found.
7501 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
7503 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
7504 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
7505 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
7506 * config/rs6000/rs6000.c (rs6000_override_options): Default
7507 avoid-indexed-addresses on for Power6, off for everything else.
7508 (avoiding_indexed_address_p): New function.
7509 (rs6000_legitimize_address): Use it.
7510 (rs6000_legitimate_address): Likewise.
7511 * config/rs6000/rs6000.md (movXX_updateX): Likewise
7513 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
7515 PR tree-optimization/38997
7516 * tree-loop-distribution.c (generate_memset_zero): Use
7517 POINTER_PLUS_EXPR for a pointer addition.
7519 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
7521 * config/s390/s390.md (bswap<mode>2): New pattern added.
7523 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
7525 * config/s390/s390.md (*tls_load_31): Added type attribute.
7527 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
7529 * config/s390/s390.md: Fix a few comments.
7531 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
7533 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
7534 (*tm<mode>_full): Fixed z10prop attribute.
7535 (*tst<mode>_extimm): Fixed z10prop attribute.
7536 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
7537 (*tstqiCCT_cconly): Fixed z10prop attribute.
7538 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
7539 (*movsi_larl): Fixed z10prop attribute.
7540 (*movsi_zarch): Fixed z10prop attribute.
7541 (*movsi_eas): Fixed z10prop attribute.
7542 (*movhi): Fixed z10prop attribute.
7543 (*movqi): Fixed z10prop attribute.
7544 (*movstrictqi): Fixed z10prop attribute.
7545 (*mov<mode>): Fixed z10prop attribute.
7546 (*movcc): Fixed z10prop attribute.
7547 (*sethighpartdi_64): Fixed z10prop attribute.
7548 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
7549 (*negdi2_sign_cc): Fixed z10prop attribute.
7550 (*negdi2_sign): Fixed z10prop attribute.
7551 (*absdi2_sign_cc): Fixed z10prop attribute.
7552 (*absdi2_sign): Fixed z10prop attribute.
7553 (*negabsdi2_sign_cc): Fixed z10prop attribute.
7554 (*negabsdi2_sign): Fixed z10prop attribute.
7555 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
7556 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
7557 (doloop_si64): Fixed z10prop attribute.
7558 (doloop_si31): Fixed z10prop attribute.
7559 (doloop_long): Fixed z10prop attribute.
7560 (indirect_jump): Fixed z10prop attribute.
7561 (nop): Fixed z10prop attribute.
7562 (main_base_64): Fixed z10prop attribute.
7563 (reload_base_64): Fixed z10prop attribute.
7565 2009-01-28 Jakub Jelinek <jakub@redhat.com>
7567 PR rtl-optimization/38740
7568 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
7570 * config/mips/mips.c (mips_reorg): Likewise.
7572 2009-01-28 Richard Guenther <rguenther@suse.de>
7574 PR tree-optimization/38926
7575 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
7576 with the correct value id to a value.
7577 (do_regular_insertion): Use the value number of edoubleprime
7578 for the value number of the expr.
7581 2008-08-21 Richard Guenther <rguenther@suse.de>
7583 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
7584 a PHI ask VN if it is already available.
7585 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
7586 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
7588 2009-01-28 Jakub Jelinek <jakub@redhat.com>
7591 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
7592 set to varying whenever max has TREE_OVERFLOW set, similarly
7593 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
7595 2009-01-28 Richard Guenther <rguenther@suse.de>
7598 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
7599 uninitialized aggregate uses in call arguments.
7601 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
7603 PR tree-optimization/38984
7604 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
7605 the nothing_id variable if -fno-delete-null-pointer-checks.
7607 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
7610 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
7611 (set_got_offset_rex64): Ditto.
7613 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
7616 * doc/extend.texi: Improve local variable with asm reg.
7618 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
7620 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
7621 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
7622 was not supplied then set warn_packed_bitfield_compat to the
7624 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
7627 2009-01-27 Richard Guenther <rguenther@suse.de>
7629 PR tree-optimization/38503
7630 * cfgexpand.c (expand_gimple_basic_block): Ignore
7631 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
7632 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
7633 variables that cannot have TBAA applied.
7634 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
7637 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
7640 * calls.c (initialize_argument_information): Do not wrap complex
7641 arguments in SAVE_EXPR.
7643 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
7645 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
7646 (INSTALL_LIBGCC): Revert typo commit.
7648 2009-01-26 Richard Guenther <rguenther@suse.de>
7650 PR tree-optimization/38745
7651 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
7652 from special handling.
7654 2009-01-26 Richard Guenther <rguenther@suse.de>
7656 PR tree-optimization/38745
7657 * tree-ssa.c (execute_update_addresses_taken): Do not include
7658 variables that cannot possibly be a register in not_reg_needs.
7659 Do not clear TREE_ADDRESSABLE on vars that may not become
7661 * tree-ssa.c (update_alias_info_1): Include those in the set
7662 of addressable vars.
7664 2009-01-26 Richard Guenther <rguenther@suse.de>
7667 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
7668 * tree-ssa-dse.c: Include langhooks.h
7669 (execute_simple_dse): Remove stores with zero size.
7671 2009-01-24 Jakub Jelinek <jakub@redhat.com>
7674 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
7677 2009-01-24 Julian Brown <julian@codesourcery.com>
7679 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
7680 config/arm/linux-atomic.c.
7681 * config/arm/linux-atomic.c: New.
7683 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
7685 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
7686 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
7687 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
7689 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
7692 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
7695 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
7697 PR tree-optimization/38953
7698 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
7699 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
7700 (gloog): Split the exit of the scop when the scop exit is a loop exit.
7701 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
7704 2009-01-24 Paul Brook <paul@codesourcery.com>
7706 * config/arm/neon.md (neon_type): Move to arm.md.
7707 (neon_mov<VSTRUCT>): Add neon_type attribute.
7708 * config/arm/arm.md (neon_type): Move to here.
7709 (conds): Add "unconditioal" and use as default for NEON insns.
7711 2009-01-24 Ben Elliston <bje@au.ibm.com>
7713 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
7714 void *' warning from -Wc++-compat.
7715 * Makefile.in (dominance.o-warn): Remove.
7717 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
7719 PR tree-optimization/38932
7720 * fold-const.c (fold_unary_ignore_overflow): New.
7721 * tree.h (fold_unary_ignore_overflow): Declare.
7722 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
7723 * tree-ssa-sccvn.c (visit_reference_op_load,
7724 simplify_unary_expression): Likewise.
7726 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
7728 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
7729 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
7730 regardless of their type.
7731 * c-common.c (handle_packed_attribute): Don't ignore packed on
7733 * c.opt (Wpacked-bitfield-compat): New warning option.
7734 * stor-layout.c (place_field): Warn if offset of a field changed.
7735 * doc/extend.texi (packed): Mention the ABI change.
7736 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
7737 (Warning Options): Add it to the list.
7739 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
7741 * c-opts.c (c_common_post_options): Fix a typo in comments.
7743 2009-01-22 Steve Ellcey <sje@cup.hp.com>
7746 * gimplify.c (gimplify_init_constructor): Fix promotion of const
7747 variables to static.
7748 * doc/invoke.texi (-fmerge-all-constants): Update description.
7750 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
7753 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
7754 (*movdi_1_rex64): Use type "mmx" for alternative 5.
7756 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
7758 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
7760 (LOCAL_ALIGNMENT): Similarly.
7762 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
7763 Joseph Myers <joseph@codesourcery.com>
7765 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
7766 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
7767 * config/arm/arm-tune.md: Regenerate.
7768 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
7771 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
7773 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
7774 version number to five.
7776 2009-01-22 Dodji Seketeli <dodji@redhat.com>
7779 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
7780 * c-common.c (set_underlying_type): Likewise.
7781 (is_typedef_decl ): Likewise
7783 (set_underlying_type): Likewise.
7784 (is_typedef_type): Likewise.
7786 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
7789 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
7792 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
7795 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
7796 (LIBGCC_SPEC): Don't define.
7797 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
7799 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
7801 PR rtl-optimization/38879
7802 * alias.c (base_alias_check): Unaligned access via AND address can
7803 alias all surrounding object types except those with sizes equal
7804 or wider than the size of unaligned access.
7806 2009-01-21 Dodji Seketeli <dodji@redhat.com>
7809 * c-decl.c (clone_underlying_type): Move this ...
7810 * c-common.c (set_underlying_type): ... here.
7811 Also, make sure the function properly sets TYPE_STUB_DECL() on
7812 the newly created typedef variant type.
7813 (is_typedef_decl ): New entry point.
7814 * tree.h: Added a new member member_types_needing_access_check to
7815 struct tree_decl_non_common.
7816 (set_underlying_type): New entry point.
7817 (is_typedef_type): Likewise.
7819 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
7821 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
7822 Check whether two instructions have memory references that
7823 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
7824 are helper functions for traversing.
7825 * alias.h (insn_alias_sets_confilict_p): New prototypes.
7826 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
7827 not to draw dependency edge for instructions with non-conflicting
7830 2009-01-20 Joseph Myers <joseph@codesourcery.com>
7833 * longlong.h: Update copyright years. Use soft-fp license notice.
7834 Sync __clz_tab declaration with glibc.
7836 2009-01-20 Steve Ellcey <sje@cup.hp.com>
7839 * doc/extend.texi (syscall_linkage): New.
7840 (version_id): Modify.
7842 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
7843 Richard Guenther <rguenther@suse.de>
7845 PR tree-optimization/38747
7846 PR tree-optimization/38748
7847 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
7848 conversion if the base address is an indirect reference and the
7849 aliasing sets could cause issues.
7851 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
7853 * common.opt (fgraphite, fgraphite-identity): Add comment for
7854 explaining why these options are not documented.
7856 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
7858 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
7859 gimple_call_lhs is NULL.
7861 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
7864 * emit-rtl.c (adjust_address_1): Make sure memref is never
7867 2009-01-20 Ben Elliston <bje@au.ibm.com>
7869 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
7870 const qualifier from arg parameter. Remove unnecessary cast to char *.
7871 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
7872 const qualifier from arg 2.
7874 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
7876 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
7878 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
7881 * rtl.h (reinit_regs): New prototype.
7882 * regclass.c: Include ira.h.
7884 * Makefile.in (regclass.o): Add ira.h.
7885 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
7887 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
7890 * c-common.c (handle_aligned_attribute): Use
7891 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
7892 default alignment value.
7894 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
7896 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
7897 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
7899 * doc/extend.texi: Update __attribute__ ((aligned)). Document
7900 __BIGGEST_ALIGNMENT__.
7902 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
7904 2009-01-18 Richard Guenther <rguenther@suse.de>
7906 PR tree-optimization/38819
7907 * tree-flow.h (operation_could_trap_helper_p): Declare.
7908 * tree-eh.c (operation_could_trap_helper_p): Export.
7909 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
7910 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
7911 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
7912 are about to insert a possibly trapping instruction and fail
7915 2009-01-18 Andreas Schwab <schwab@suse.de>
7917 * doc/install.texi (Configuration): Remove obsolete paragraph
7918 about use of --with-gnu-ld with --with-gnu-as.
7920 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
7922 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
7923 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
7924 Follow spelling conventions.
7926 2009-01-18 Ben Elliston <bje@au.ibm.com>
7928 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
7929 C++ warning about implicit conversion from void * to struct
7931 (bitmap_obstack_free): Likewise for bitmap_element *.
7932 * Makefile.in (bitmap.o-warn): Remove.
7934 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
7936 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
7938 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
7939 Tobias Grosser <tobi.grosser@amd.com>
7941 * graphite.c (graphite_trans_scop_block): Do not block single
7944 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
7946 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
7947 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
7948 test with assertion.
7950 2009-01-16 Richard Guenther <rguenther@suse.de>
7952 PR tree-optimization/38835
7954 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
7955 and INT + PTR -> (INT)(PTR p+ INT) folding.
7956 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
7958 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
7961 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
7962 the subreg from a lowpart subreg if it is also casting the value.
7964 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
7965 Tobias Grosser <tobi.grosser@amd.com>
7967 * graphite.c (compare_prefix_loops): New.
7968 (build_scop_canonical_schedules): Rewritten.
7969 (graphite_transform_loops): Move build_scop_canonical_schedules
7970 after build_scop_iteration_domain.
7972 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
7973 Tobias Grosser <tobi.grosser@amd.com>
7975 * graphite.c (add_conditions_to_domain): Add the loops to
7976 the dimension of the iteration domain. Do copy the domain
7977 only when it exists.
7978 (build_scop_conditions_1): Do not call add_conditions_to_domain.
7979 (add_conditions_to_constraints): New.
7980 (can_generate_code_stmt, can_generate_code): Removed.
7981 (gloog): Do not call can_generate_code.
7982 (graphite_transform_loops): Call add_conditions_to_constraints
7983 after building the iteration domain.
7985 2009-01-16 Jakub Jelinek <jakub@redhat.com>
7987 PR tree-optimization/38789
7988 * tree-ssa-threadedge.c
7989 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
7990 __builtin_constant_p.
7992 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7994 * dce.c (delete_unmarked_insns): Reversed the order that insns are
7995 examined before deleting them.
7997 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
7999 * function.c (aggregate_value_p): Correctly extract the function
8000 type from CALL_EXPR_FN lookup.
8002 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
8004 * config/picochip/picochip.c (picochip_override_options): Revert
8005 CFI asm flag disable commited previously.
8007 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
8008 Tobias Grosser <tobi.grosser@amd.com>
8009 Jan Sjodin <jan.sjodin@amd.com>
8011 * graphite.c (scan_tree_for_params): On substractions negate
8012 all the coefficients of the term.
8013 (clast_to_gcc_expression_red): New. Handle reduction expressions
8014 of more than two operands.
8015 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
8016 (get_vdef_before_scop): Handle also the case of default definitions.
8018 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
8020 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
8021 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
8022 Also use them when walking CALL_INSN_FUNCTION_USAGE.
8024 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
8025 Joey Ye <joey.ye@intel.com>
8028 * cfgexpand.c (expand_stack_alignment): Don't update stack
8029 boundary nor check incoming stack boundary here.
8030 (gimple_expand_cfg): Update stack boundary and check incoming
8031 stack boundary here.
8033 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
8035 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
8037 2009-01-14 Jakub Jelinek <jakub@redhat.com>
8039 PR rtl-optimization/38245
8040 * calls.c (expand_call): Add stack arguments to
8041 CALL_INSN_FUNCTION_USAGE even for pure calls (when
8042 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
8043 in regs and partially in memory or BLKmode arguments.
8044 (emit_library_call_value_1): Add stack arguments to
8045 CALL_INSN_FUNCTION_USAGE even for pure calls (when
8046 ACCUMULATE_OUTGOING_ARGS).
8047 * dce.c: Include tm_p.h.
8048 (find_call_stack_args): New function.
8049 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
8051 (mark_insn): Call find_call_stack_args for CALL_Ps.
8052 (prescan_insns_for_dce): Walk insns backwards in bb rather than
8053 forwards. Allocate and free arg_stores bitmap if needed, pass it
8054 down to deletable_insn_p, don't mark stores set in arg_stores
8055 bitmap, clear the bitmap at the beginning of each bb.
8056 * Makefile.in (dce.o): Depend on $(TM_P_H).
8058 2009-01-14 Michael Meissner <gnu@the-meissners.org>
8061 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
8062 to make sure the insn is a conditional test (bug 22599). Reformat a
8065 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
8068 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
8069 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
8070 (gloog): Do not call cleanup_tree_cfg.
8071 (graphite_transform_loops): Call cleanup_tree_cfg after all
8072 scops have been code generated.
8074 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
8075 * doc/gty.texi (Invoking the garbage collector): Added new node
8076 and section documenting ggc_collect.
8078 2009-01-14 Richard Guenther <rguenther@suse.de>
8080 PR tree-optimization/38826
8082 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
8083 initialization notes only if we actually emitted a warning.
8084 (intra_create_variable_infos): Add constraints for a result decl
8085 that is passed by hidden reference.
8086 (build_pred_graph): Mark all related variables non-direct on
8089 2009-01-14 Nick Clifton <nickc@redhat.com>
8091 * ira-conflicts.c: Include addresses.h for the definition of
8093 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
8094 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
8096 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
8099 * Makefile.in (ira-lives.o): Add except.h.
8101 * ira-lives.c: Include except.h.
8102 (process_bb_node_lives): Process can_throw_internal.
8104 2009-01-13 Jakub Jelinek <jakub@redhat.com>
8106 PR rtl-optimization/38774
8107 * combine.c (simplify_set): When undoing cc_use change, don't do
8108 PUT_CODE on the newly created comparison, but instead put back the
8111 2009-01-13 Joseph Myers <joseph@codesourcery.com>
8113 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
8114 values. Remove duplicate arm8 entry.
8116 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
8118 PR tree-optimization/38786
8119 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
8120 the SSA_NAME case of expand_scalar_variables_expr.
8121 Set the type of an expression to the type of its assign statement.
8122 (expand_scalar_variables_expr): Also gather the scalar computation
8123 used to index the memory access. Do not pass loop_p.
8124 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
8125 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
8126 the gimple_stmt_iterator where it inserts new code.
8128 (copy_bb_and_scalar_dependences): Do not pass loop_p.
8129 (translate_clast): Update call to copy_bb_and_scalar_dependences.
8131 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
8133 * graphite.h (debug_value): Removed.
8134 * graphite.c (debug_value): Removed.
8136 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
8138 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
8139 ldrd/strd with two 32-bit instructions.
8141 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
8143 * config/arm/arm.c (struct processors): Pass for speed down into
8144 cost helper functions.
8145 (const_ok_for_op): Handle COMPARE and inequality nodes.
8146 (arm_rtx_costs_1): Rewrite.
8147 (arm_size_rtx_costs): Update prototype.
8148 (arm_rtx_costs): Pass speed down to helper functions.
8149 (arm_slowmul_rtx_costs): Rework cost calculations.
8150 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
8151 (arm_9e_rtx_costs): Likewise.
8153 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
8155 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
8156 relocations of local symbols wider than UNITS_PER_WORD are not valid.
8157 (alpha_legitimize_address): Do not split local symbols wider than
8158 UNITS_PER_WORD into HIGH/LO_SUM parts.
8160 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
8163 * gcc.c (process_command): Replace call to execvp with calls
8164 to pex_one and exit.
8166 2009-01-03 Anatoly Sokolov <aesok@post.ru>
8169 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
8170 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
8171 variant for devices with 3-byte PC.
8172 (__tablejump_elpm__): New.
8174 2009-01-12 Jakub Jelinek <jakub@redhat.com>
8177 * c-parser.c (c_parser_postfix_expression): Allow `->' in
8178 offsetof member-designator, handle it as `[0].'.
8180 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8182 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
8183 function when not using named sections on targets with named sections
8184 if branch distance is less than 262132.
8186 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
8188 * combine.c (combine_instructions): Recompute
8189 optimize_this_for_speed_p for each BB in the main combine loop.
8191 2009-01-12 Tomas Bily <tbily@suse.cz>
8194 * tree-loop-distribution.c (prop_phis): New function.
8195 (generate_builtin): Call prop_phis.
8196 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
8198 2009-01-12 Jakub Jelinek <jakub@redhat.com>
8200 PR tree-optimization/38807
8201 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
8202 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
8204 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
8206 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
8207 subreg of op0 to the original op0.
8209 2009-01-11 Laurent GUERBY <laurent@guerby.net>
8211 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
8213 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
8216 * gcc/mips-tfile.c (parse_def): Fix parsing of def strings
8217 starting with digits.
8219 2009-01-10 Jakub Jelinek <jakub@redhat.com>
8222 * config/arm/arm.c (arm_is_long_call_p): Don't call
8223 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
8225 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
8227 * regrename.c (regrename_optimize): Fix dumping.
8228 (find_oldest_value_reg): Preserve REG_POINTER.
8229 (copy_hardreg_forward_1): Likewise.
8231 2009-01-09 Diego Novillo <dnovillo@google.com>
8233 * gimple.h (struct gimple_statement_base) <uid>: Document
8234 the restrictions on its use.
8236 (gimple_set_uid): Tidy.
8238 2009-01-09 Jakub Jelinek <jakub@redhat.com>
8240 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
8241 zero guard even if align_bytes != 0 and count is smaller than
8244 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
8246 PR rtl-optimization/38495
8247 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
8248 (add_range_and_copies_from_move_list): Print all added ranges.
8249 Add ranges to memory optimized destination.
8251 2009-01-09 Jakub Jelinek <jakub@redhat.com>
8255 * config/i386/i386.c (override_options): Reject
8256 -mstringop-strategy=rep_8byte with -m32.
8257 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
8258 to 1. Do count comparison against epilogue_size_needed at compile
8259 time even when count_exp was constant forced into register. For
8260 size_needed don't jump to epilogue, instead just avoid aligning
8261 and invoke the body algorithm. If need_zero_guard, add zero guard
8262 even if count is non-zero, but smaller than size_needed + number of
8263 bytes that could be stored for alignment.
8264 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
8265 to 1. If need_zero_guard, add zero guard even if count is non-zero,
8266 but smaller than size_needed + number of bytes that could be stored
8267 for alignment. Compare size_needed with epilogue_size_needed instead
8268 of desired_align - align, don't adjust size_needed, pass
8269 epilogue_size_needed to the epilogue expanders.
8272 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
8274 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8276 * pa.c (last_address): Change to unsigned.
8277 (update_total_code_bytes): Change argument to unsigned. Don't
8278 check if insn addresses are set.
8279 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
8280 addresses are not set.
8281 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
8283 2009-01-09 Nick Clifton <nickc@redhat.com>
8285 * config/sh/symbian.c: Replace uses of DECL_INLINE with
8286 DECL_DECLARED_INLINE_P.
8288 2009-01-09 Jakub Jelinek <jakub@redhat.com>
8291 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
8292 GET_MODE (op0) in operand_subword_force calls.
8295 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
8296 fold_convert arg0 operands to TREE_TYPE (op0) first.
8298 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
8300 * params.def (ira-max-conflict-table-size): Decrease default value
8303 2009-01-08 Jakub Jelinek <jakub@redhat.com>
8305 PR tree-optimization/37031
8306 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
8308 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
8309 allocate it using gc instead of heap, use VEC_quick_push instead of
8311 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
8312 instead of heap, use VEC_quick_push instead of VEC_safe_push.
8313 * tree-data-ref.h (struct access_matrix): Change matrix to gc
8314 allocated vector from heap allocated.
8315 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
8316 * tree-loop-linear.c (linear_transform_loops): Allocate nest
8317 vector only after perfect_loop_nest_depth call.
8319 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
8320 Jan Sjodin <jan.sjodin@amd.com>
8322 PR tree-optimization/38559
8323 * graphite.c (debug_value, copy_constraint,
8324 swap_constraint_variables, scale_constraint_variable, ): New.
8325 (get_lower_bound, get_upper_bound): Removed.
8326 (graphite_trans_bb_strip_mine): Clean up this code that works
8327 only for constant number of iterations. Fully copy upper and
8328 lower bound constraints, not only the constant part of them.
8329 * graphite.h (debug_value): Declared.
8331 2009-01-08 Ira Rosen <irar@il.ibm.com>
8333 PR tree-optimization/37194
8334 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
8335 Don't add the cost of cost model guard in prologue to scalar
8336 outside cost in case of known number of iterations.
8338 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
8339 Alan Modra <amodra@bigpond.net.au>
8341 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
8342 non-word-aligned REG+CONST addressing.
8344 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
8347 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
8348 free_after_compilation when outputting a thunk.
8349 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
8350 Do not call free_after_compilation here.
8352 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
8354 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
8355 (ix86_valid_target_attribute_inner_p): Ditto.
8357 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
8359 PR tree-optimization/38492
8360 PR tree-optimization/38498
8361 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
8362 * tree-chrec.h (scev_is_linear_expression): Declared.
8363 * graphite.c (graphite_cannot_represent_loop_niter): New.
8364 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
8365 (graphite_loop_normal_form): Use gcc_assert.
8366 (scan_tree_for_params): Use CASE_CONVERT.
8367 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
8368 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
8369 Use gcc_assert. Discard scops that contain unhandled cases.
8370 (build_scop_conditions): Return a boolean status for unhandled cases.
8371 (strip_mine_profitable_p): Print the loop number, not its depth.
8372 (is_interchange_valid): Pass the depth of the loop nest, don't
8373 recompute it wrongly.
8374 (graphite_trans_bb_block): Same.
8375 (graphite_trans_bb_block): Print tentative of loop blocking.
8376 (graphite_trans_scop_block): Do not print that the loop has been
8378 (graphite_transform_loops): Do not handle scops that contain condition
8381 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
8383 AVX Programming Reference (December, 2008)
8384 * config/i386/avxintrin.h (_mm256_stream_si256): New.
8385 (_mm256_stream_pd): Likewise.
8386 (_mm256_stream_ps): Likewise.
8388 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
8389 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
8390 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
8391 (bdesc_special_args): Add __builtin_ia32_movntdq256,
8392 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
8393 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
8394 (ix86_expand_special_args_builtin): Likewise.
8396 * config/i386/sse.md (AVXMODEDI): New.
8397 (avx_movnt<mode>): Likewise.
8398 (avx_movnt<mode>): Likewise.
8399 (<sse>_movnt<mode>): Remove AVX support.
8400 (sse2_movntv2di): Likewise.
8402 2009-01-07 Richard Guenther <rguenther@suse.de>
8405 * fold-const.c (extract_muldiv): Remove obsolete comment.
8406 (fold_plusminus_mult_expr): Undo MINUS_EXPR
8407 to PLUS_EXPR canonicalization for the canonicalization.
8409 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
8411 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
8412 hosted cross-compilers generating less efficient code.
8414 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
8416 * function.h (rtl_data): Add a dbr_scheduled_p field.
8417 * reorg.c (dbr_schedule): Set it.
8418 (gate_handle_delay_slots): Check it.
8419 * config/mips/mips.c (mips_base_delayed_branch): Delete.
8420 (mips_reorg): Check flag_delayed_branch instead of
8421 mips_base_delayed_branch.
8422 (mips_override_options): Don't set mips_base_delayed_branch
8423 or flag_delayed_branch.
8425 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
8427 PR rtl-optimization/38426.
8428 * ira.c (ira): Set current_function_is_leaf earlier.
8430 2009-01-06 Jakub Jelinek <jakub@redhat.com>
8432 PR rtl-optimization/38722
8433 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
8434 too early, only set a flag and modify after last possible
8437 2009-01-06 Janis Johnson <janis187@us.ibm.com>
8440 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
8441 * real.c (decimal_single_format): Correct values of emin and emax.
8442 (decimal_double_format): Ditto.
8443 (decimal_quad_format): Ditto.
8444 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
8445 computation of DECnn_MIN and DECnn_MAX for corrected values of
8446 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
8447 __DECnn_MIN__, and adjust its computation for the corrected value
8450 2009-01-06 Jan Hubicka <jh@suse.cz>
8453 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
8455 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
8457 * doc/contrib.texi (Contributors): Slightly adjust the end note.
8458 Add Robert Clark to the list of testers.
8460 2009-01-06 Jan Hubicka <jh@suse.cz>
8461 Kai Tietz <kai.tietz@onevision.com>
8463 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
8464 * config/i386/i386.c (ix86_expand_call): Add clobbers.
8466 2009-01-06 Jan Hubicka <jh@suse.cz>
8467 Kai Tietz <kai.tietz@onevision.com>
8469 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
8471 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
8472 (ix86_nsaved_regs): Count only general purpose regs.
8473 (ix86_nsaved_sseregs): New.
8474 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
8475 to 16 for w64; compute padding and size of sse reg save area.
8476 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
8477 general purpose regs.
8478 (ix86_emit_save_sse_regs_using_mov): New.
8479 (ix86_expand_prologue): Save SSE regs if needed.
8480 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
8481 (ix86_emit_restore_sse_regs_using_mov): New.
8482 (ix86_expand_epilogue): Save SSE regs if needed.
8484 2009-01-06 Jan Hubicka <jh@suse.cz>
8485 Kai Tietz <kai.tietz@onevision.com>
8487 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
8488 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
8489 functions when accumulate outgoing args is off.
8491 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
8494 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
8495 before using pseudos_have_intersected_live_ranges_p.
8497 * ira-int.h (ira_assert): Always define.
8499 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
8501 AVX Programming Reference (December, 2008)
8502 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
8503 (_mm256_permute2_pd): Likewise.
8504 (_mm_permute2_ps): Likewise.
8505 (_mm256_permute2_ps): Likewise.
8506 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
8507 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
8509 * config/i386/i386.c (ix86_builtins): Remove
8510 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
8511 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
8512 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
8513 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
8514 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
8515 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
8516 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
8517 __builtin_ia32_vpermil2ps256.
8518 (ix86_init_mmx_sse_builtins): Updated.
8519 (ix86_expand_args_builtin): Likewise.
8521 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8523 * pa.c (output_call): Relocate non-jump insns in the delay slot of
8524 long absolute calls when generating PA 2.0 code.
8526 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
8528 PR rtl-optimization/38583
8529 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
8531 * params.def (ira-max-conflict-table-size): New.
8533 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
8535 * ira.h (ira_conflicts_p): New external definition.
8537 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
8538 table. Report this. Return result of building.
8539 (ira_build_conflicts): Use ira_conflicts_p. Check result of
8540 building conflict table.
8542 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
8543 (ira_color): Use ira_conflicts_p.
8545 * global.c: Include ira.h.
8546 (pseudo_for_reload_consideration_p, build_insn_chain): Use
8549 * Makefile.in (global.o): Add ira.h.
8551 * ira-build.c (mark_all_loops_for_removal,
8552 propagate_some_info_from_allocno): New.
8553 (remove_unnecessary_allocnos): Call
8554 propagate_some_info_from_allocno.
8555 (remove_low_level_allocnos): New.
8556 (remove_unnecessary_regions): Add parameter. Call
8557 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
8558 parameter to remove_unnecessary_regions.
8559 (ira_build): Remove all regions but root if the conflict table was
8560 not built. Update conflict hard regs for allocnos crossing calls.
8562 * ira.c (ira_conflicts_p): New global.
8563 (ira): Define and use ira_conflicts_p.
8565 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
8566 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
8567 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
8569 2009-01-06 Ben Elliston <bje@au.ibm.com>
8571 * gengtype-lex.l (YY_NO_INPUT): Define.
8573 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
8576 * c-common.c (handle_vector_size_attribute): Also reject
8579 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
8581 PR tree-optimization/38492
8582 * graphite.c (rename_map_elt, debug_rename_elt,
8583 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
8584 rename_map_elt_info, eq_rename_map_elts,
8585 get_new_name_from_old_name, bb_in_sese_p): Moved around.
8586 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
8587 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
8588 (sese_build_livein_liveouts): New.
8589 (new_sese, free_sese): New.
8590 (new_scop): Call new_sese.
8591 (free_scop): Call free_sese.
8592 (rename_variables_from_edge, rename_phis_end_scop): Removed.
8593 (register_old_new_names): Renamed register_old_and_new_names.
8594 (register_scop_liveout_renames, add_loop_exit_phis,
8595 insert_loop_close_phis, struct igp,
8596 default_liveout_before_guard, add_guard_exit_phis,
8597 insert_guard_phis, copy_renames): New.
8598 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
8599 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
8600 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
8601 (scop_adjust_phis_for_liveouts): New.
8602 (gloog): Call scop_adjust_phis_for_liveouts.
8604 * graphite.h (struct sese): Documented. Added fields liveout,
8606 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
8607 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
8608 (struct scop): Added field liveout_renames.
8609 (SCOP_LIVEOUT_RENAMES): New.
8611 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
8613 PR tree-optimization/38510
8614 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
8615 (translate_clast): Call recompute_all_dominators before
8617 (gloog): Call recompute_all_dominators before graphite_verify.
8619 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
8620 Jan Sjodin <jan.sjodin@amd.com>
8622 PR tree-optimization/38500
8623 * graphite.c (create_sese_edges): Call fix_loop_structure after
8626 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
8628 * config.gcc: Add m32r*-*-rtems*.
8629 * config/m32r/rtems.h: New file.
8631 2009-01-05 Ben Elliston <bje@au.ibm.com>
8633 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
8634 (.po.pox): Likewise.
8635 (po/gcc.pot): Likewise.
8637 2009-01-04 David S. Miller <davem@davemloft.net>
8639 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
8640 (STARTING_FRAME_OFFSET): Always set to zero.
8642 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
8644 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
8645 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
8646 fixed-point types, and vectors of the same.
8648 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
8650 * config/mips/sync.md (*mb_barrier): Rename to...
8651 (*memory_barrier): ...this.
8653 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
8655 * doc/extend.texi (Function Attributes): Move @cindex after @item
8656 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
8657 and put in alphabetical order. Fix 'target' name and put in order.
8658 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
8661 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
8663 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
8664 (memory_barrier): Expand as unspec instead of unspec_volatile.
8665 Remove mem:BLK from insn operands. Use Pmode scratch register.
8666 (*memory_barrier): Define as unspec instead of unspec_volatile.
8667 Use (match_dup 0) as input operand.
8669 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
8670 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
8671 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
8672 scratch register. Remove operand 1.
8673 (*stbar): Define as unspec instead of unspec_volatile.
8674 Use (match_dup 0) as input operand, remove (const_int 8).
8675 (*membar): Define as unspec instead of unspec_volatile.
8676 Use (match_dup 0) as input operand, remove input operand 2.
8678 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
8679 (memory_barrier): Expand as unspec instead of unspec_volatile.
8680 Remove mem:BLK from insn operands. Use Pmode scratch register.
8681 (*memory_barrier): Define as unspec instead of unspec_volatile.
8682 Use (match_dup 0) as input operand.
8684 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
8685 Remove mem:BLK from insn operands. Use Pmode scratch register.
8686 Set volatile flag on operand 0.
8687 (*memory_barrier): New insn pattern.
8689 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
8691 (*memory_barrier): Use (match_dup 0) as input operand.
8693 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
8694 Remove mem:BLK from insn operands. Use Pmode scratch register.
8695 Set volatile flag on operand 0.
8696 (*mb_internal): New insn pattern.
8698 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
8700 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
8703 * function.c (struct temp_slot): Move to the section of the file
8704 that deals with temp slots. Remove field 'address'.
8705 (temp_slot_address_table): New hash table of address -> temp slot.
8706 (struct temp_slot_address_entry): New struct, items for the table.
8707 (temp_slot_address_compute_hash, temp_slot_address_hash,
8708 temp_slot_address_eq, insert_temp_slot_address): Support functions
8710 (find_temp_slot_from_address): Rewrite to use the new hash table.
8711 (remove_unused_temp_slot_addresses): Remove addresses of temp
8712 slots that have been made available.
8713 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
8714 worker function for remove_unused_temp_slot_addresses.
8715 (assign_stack_temp_for_type): Don't clear the temp slot address list.
8716 Add the temp slot address to the address -> temp slot map.
8717 (update_temp_slot_address): Update via insert_temp_slot_address.
8718 (free_temp_slots): Call remove_unused_temp_slot_addresses.
8719 (pop_temp_slots): Likewise.
8720 (init_temp_slots): Allocate the address -> temp slot map, or empty
8721 the map if it is already allocated.
8722 (prepare_function_start): Initialize temp slot processing.
8724 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
8727 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
8728 Calculate the size of all stack vars assuming no packing of stack
8729 vars will happen, replacing a quadratic algorithm with a linear one.
8731 2009-01-03 Jakub Jelinek <jakub@redhat.com>
8734 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
8737 2009-01-03 Diego Novillo <dnovillo@google.com>
8739 * doc/contrib.texi: Update contributions.
8741 2009-01-03 Jakub Jelinek <jakub@redhat.com>
8744 * builtins.c (fold_builtin_memory_op): Give up if either operand
8745 is volatile. Set srctype or desttype to non-qualified version
8749 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
8752 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
8754 PR rtl-optimization/35805
8755 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
8756 problem if fast dce is able to remove any instructions.
8757 * dce.c (dce_process_block): Fix dump message.
8759 2009-01-02 Mark Mitchell <mark@codesourcery.com>
8762 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
8764 2009-01-02 Jakub Jelinek <jakub@redhat.com>
8767 * tree-flow.h (op_code_prio, op_prio): New prototypes.
8768 * tree-pretty-print.c (op_code_prio): New function.
8769 (op_prio): No longer static. Use op_code_prio.
8770 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
8771 Use op_prio and op_code_prio to determine if () should be
8772 printed around operand(s) or not.
8774 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
8775 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
8776 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
8777 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
8778 pp_character instead of pp_string for single letter printing.
8780 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8782 * doc/extend.texi: Fix '#pragma GCC option' typo.
8784 2009-01-02 Richard Guenther <rguenther@suse.de>
8786 * doc/install.texi (--enable-checking): Mention different
8788 (--enable-stage1-checking): Document.
8790 2009-01-01 Andrew Pinski <pinskia@gmail.com>
8793 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
8794 case to be an error.
8796 2009-01-02 Ben Elliston <bje@au.ibm.com>
8798 * config/fp-bit.h (pack_d): Constify argument.
8799 * config/fp-bit.c (makenan): Constify return type. Remove casts.
8800 (isnan): Constify argument.
8804 (_fpadd_parts): Constify return type.
8805 (_fpmul_parts): Likewise.
8806 (_fpdiv_parts): Likewise.
8808 2009-01-01 Jakub Jelinek <jakub@redhat.com>
8811 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
8812 warn about overwriting initializer with side-effects or
8813 -Woverride-init if !IMPLICIT.
8814 (output_init_element): Likewise. Pass IMPLICIT down to
8816 (process_init_element): Add IMPLICIT argument. Pass it down
8817 to output_init_element.
8818 (push_init_element, pop_init_level, set_designator): Adjust
8819 process_init_element callers.
8820 (set_nonincremental_init, set_nonincremental_init_from_string):
8821 Adjust add_pending_init callers.
8822 (output_pending_init_elements): Adjust output_init_element callers.
8823 * c-tree.h (process_init_element): Adjust prototype.
8824 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
8825 process_init_element callers.
8828 Copyright (C) 2009 Free Software Foundation, Inc.
8830 Copying and distribution of this file, with or without modification,
8831 are permitted in any medium without royalty provided the copyright
8832 notice and this notice are preserved.