OSDN Git Service

Missed commit with patch.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-06-11  Richard Henderson  <rth@redhat.com>
2
3         * common.opt (gdwarf-): Accept a version number.
4         * doc/invoke.texi (gdwarf-): Update docs.
5         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
6         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
7         version level, and record it.
8
9         * dwarf2.h (DW_CIE_VERSION): Remove.
10         * dwarf2out.c (DWARF_VERSION): Remove.
11         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
12         (output_call_frame_info): Use CIE version 3 for dwarf3,
13         or if the return register column is out of range for version 1.
14         (dwarf_stack_op_name): Add all dwarf3 values.
15         (DEBUG_PUBTYPES_SECTION): New.
16         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
17         encoding change for dwarf3.
18         (output_die) [dw_val_class_die_ref]: Likewise.
19         (output_compilation_unit_header): Emit correct version for dwarf3.
20         (output_line_info): Likewise.
21         (output_pubnames): Update for DWARF_VERSION removal.
22         (output_aranges): Likewise.
23         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
24         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
25         (dwarf2out_finish): Likewise.
26
27 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
28
29         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
30         in r148403.
31
32 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
33
34         PR c/39252
35         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
36         * builtins.c (expand_builtin_unreachable): New function.
37         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
38         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
39         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
40         successors.
41         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
42         searching for missing barriers.
43
44 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
45
46         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
47         when -fprofile-generate* was passed.
48         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
49
50 2009-06-11  Anthony Green  <green@moxielogic.com>
51
52         * config/moxie/moxie.md: Define length attribute for all
53         instructions.
54         (rCC): Define.
55         (*b<cond:code>): Support limited branch ranges for new PC-relative
56         branch instructions.
57         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
58
59 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
60
61         * config/i386/i386.c (min_insn_size): Use get_attr_length
62         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
63         For __asm return 0.
64
65         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
66         instead of emit_insn_before.
67
68 2009-06-10  Ian Lance Taylor  <iant@google.com>
69
70         PR bootstrap/40408
71         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
72         GIMPLE_SWITCH.
73
74 2009-06-10  Revital Eres  <eres@il.ibm.com>
75
76         * passes.c (init_optimization_passes): Reschedule
77         predictive-commoning pass before complete unroll pass.
78
79 2009-06-10  Martin Jambor  <mjambor@suse.cz>
80
81         * cgraph.c (cgraph_node_can_be_local_p): New function.
82         (cgraph_make_node_local): New function.
83         * cgraph.h (cgraph_node_can_be_local_p): Declare.
84         (cgraph_make_node_local): Declare.
85
86 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
87
88         * tree.h (tree_base): Add packed_flag and user_align fields.
89         Decrease size of spare field.
90         (TYPE_USER_ALIGN): Use user_align from tree_base.
91         (DECL_USER_ALIGN): Likewise.
92         (TYPE_PACKED): Use packed_flag from tree_base.
93         (DECL_PACKED): Likewise.
94         (tree_type): Delete packed_flag and user_align fields.  Widen
95         precision field.  Widen mode field and shuffle fields to align
96         mode on an 8-bit boundary.
97         (tree_decl_common): Delete decl_flag_1 and user_align fields.
98         Renumber decl_flag_* fields.  Fix comments.  Widen
99         decl_common_unused field.
100         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_*
101         fields.
102         (DECL_EXTERNAL): Likewise.
103         (DECL_BIT_FIELD): Likewise.
104         (DECL_NONADDRESSABLE_P): Likewise.
105         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
106         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
107
108 2009-06-10  Ian Lance Taylor  <iant@google.com>
109
110         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
111         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
112         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
113         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
114         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
115         DEF_VEC_ALLOC_FUNC_P.
116         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
117         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
118         DEF_VEC_ALLOC_FUNC_O.
119         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
120         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
121         DEF_VEC_ALLOC_FUNC_I.
122         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
123         (vec_stack_p_reserve_exact_1): Declare.
124         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
125         (vec_stack_free): Declare.
126         (VEC_stack_alloc): Define.
127         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
128         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
129         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
130         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
131         for void_p.
132         (stack_vecs): New static variable.
133         (vec_stack_p_reserve_exact_1): New function.
134         (vec_stack_o_reserve_1): New static function.
135         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
136         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
137         (vec_stack_free): New function.
138         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
139         (VEC_df_ref_stack_alloc): Define.
140         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
141         DEF_VEC_ALLOC_P_STACK.
142         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
143         (struct df_collection_rec): Change _vec fields to VEC.  Remove
144         _use fields.
145         (df_free_collection_rec): Adjust for new fields.
146         (df_insn_rescan): Use new df_collection_rec fields.
147         (df_notes_rescan, df_canonize_collection_rec): Likewise.
148         (df_ref_create_structure, df_ref_record): Likewise.
149         (df_get_conditional_uses, df_get_call_refs): Likewise.
150         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
151         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
152         (df_record_exit_block_uses, df_bb_verify): Likewise.
153         (df_swap_refs): Change ref_vec parameter to VEC.  Change all
154         callers.
155         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
156         Remove count parameter.  Change return type to void.  Change all
157         callers.
158         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
159         Remove count parameter.  Change return type to void.  Change all
160         callers.
161         (df_install_refs): Change old_vec parameter to VEC.  Remove count
162         parameter.  Change all callers.
163         (df_install_mws): Change old_vec parameter to VEC.  Remove count
164         parameter.  Change all callers.
165         (df_refs_verify): Change new_rec parameter to VEC.  Change call
166         callers.
167         (df_mws_verify): Likewise.
168
169 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
170
171         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
172
173 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
174
175         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
176
177 2009-06-10  Anthony Green  <green@moxielogic.com>
178
179         * config/moxie/crti.asm: New file.
180         * config/moxie/crtn.asm: New file.
181         * config/moxie/moxie.c: New file.
182         * config/moxie/moxie.h: New file.
183         * config/moxie/sfp-machine.h: New file.
184         * config/moxie/moxie-protos.h: New file.
185         * config/moxie/t-moxie: Created.
186         * config/moxie/t-moxie-softfp: Created.
187         * config/moxie/moxie.md: Created.
188         * config/moxie/constraints.md: Created.
189         * config.gcc: Add moxie support.
190         * doc/md.texi (Machine Constraints): Add moxie constraints.
191         * doc/contrib.texi (Contributors): Mention moxie port.
192         * doc/install.texi (Specific): Mention the moxie port.
193
194 2009-06-09  Ian Lance Taylor  <iant@google.com>
195
196         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
197         compiling with C++.
198         * optabs.c (optab_table): Only use designated initializers if
199         HAVE_DESIGNATED_INITIALIZERS is defined.
200         (convert_optab_table): Likewise.
201         (init_optabs): Always call init_insn_codes if
202         HAVE_DESIGNATED_INITIALIZERS is not defined.
203
204 2009-06-09  Ian Lance Taylor  <iant@google.com>
205
206         * targhooks.c (default_builtin_vectorized_function): Change fn
207         parameter to unsigned int.
208         (default_builtin_vectorized_conversion): Change code parameter to
209         unsigned int.
210         (default_builtin_reciprocal): Change fn parameter to unsigned int.
211         * targhooks.h: Update declarations.
212         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
213         parameter to unsigned int.
214
215         * c-typeck.c (comptypes_check_enum_int): New static function.
216         (comptypes_internal): Add enum_and_int_p parameter.  Change all
217         callers.
218         (comp_target_types): Add location parameter.  Change all callers.
219         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
220         Change all callers.
221         (function_types_compatible_p, type_lists_compatible_p): Likewise.
222         (build_conditional_expr): Add colon_loc parameter.  Change all
223         callers.
224         (convert_for_assignment): Add location parameter.  Change all
225         callers.
226         * c-parser.c (c_parser_conditional_expression): Pass location of
227         colon to build_conditional_expr.
228         * c-tree.h (build_conditional_expr): Update declaration.
229
230 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
231
232         * graphite.c: Revert previous patch.
233
234 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
235
236         PR bootstrap/40103
237         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
238
239 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
240
241         * tree-ssa-loop-prefetch.c
242         (loop_prefetch_arrays): Fixed a portability problem in printf format
243         string.
244
245 2009-06-09  Martin Jambor  <mjambor@suse.cz>
246
247         PR tree-optimization/40351
248         * tree-sra.c (propagate_subacesses_accross_link): Check that a refrence
249         to a potential artifical subaccess can be constructed.
250
251 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
252
253         * config/sh/sh-protos.h (sh_optimization_options): Declare.
254         (sh_override_options): Likewise.
255         * config/sh/sh.c: Include params.h.
256         (sh_optimization_options): New.
257         (sh_override_options): Likewise.
258         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
259         (OVERRIDE_OPTIONS): Use sh_override_options.
260
261 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
262
263         * dwarf2out.c (emit_cfa_remember): New variable.
264         (add_fde_cfi): If emit_cfa_remember, recurse to add
265         DW_CFA_remember_state first.
266         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
267         instead just set emit_cfa_remember.
268
269 2009-06-08  Jan Hubicka  <jh@suse.cz>
270
271         PR debug/40126
272         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
273
274 2009-06-08  Jan Hubicka  <jh@suse.cz>
275
276         PR middle-end/39834
277         * cgraphunit.c (save_inline_function_body): Do not copy transform hooks
278         for saved inline bodies.
279         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
280         for given function.
281
282 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
283
284         * jump.c (returnjump_p): Handle delayed branches.  Add missing
285         function comment.
286
287 2009-06-08  Jan Hubicka  <jh@suse.cz>
288
289         PR middle-end/40102
290         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
291         original node might've been modified.
292         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
293
294 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
295
296         * tree-object-size.c (addr_object_size): Add OSI argument.
297         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
298         (compute_builtin_object_size, expr_object_size): Adjust callers.
299         (plus_stmt_object_size): Call addr_object_size instead of
300         compute_builtin_object_size.
301
302 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
303             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
304         
305         * tree-ssa-loop-prefetch.c 
306         (gather_memory_references): Introduced a counter for the number of 
307         memory references.
308         (anything_to_prefetch_p): Introduced a counter for the number of 
309         prefetches.
310         (is_loop_prefetching_profitable): New function with a cost model 
311         for prefetching.
312         (loop_prefetch_arrays): Use the new cost model to determine if 
313         prefetching is profitable.
314         * params.def (MIN_INSN_TO_PREFETCH_RATIO, 
315         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
316         * params.h (MIN_INSN_TO_PREFETCH_RATIO, 
317         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
318         * doc/invoke.texi (MIN_INSN_TO_PREFETCH_RATIO, 
319         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
320         
321 2009-06-08  Michael Matz  <matz@suse.de>
322
323         PR debug/40012
324         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
325         partitions use the same.
326         (expand_one_var): Deal with DECL_RTL sometimes begin set also
327         for basevars of SSA_NAMEs.
328         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
329         to not expand them twice.
330         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
331         multiple places.
332
333 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
334
335         * common.opt (fcompare-debug=, fcompare-debug-second): New.
336         (fdump-final-insns=, gtoggle): New.
337         * doc/invoke.texi: Document them.
338         * final.c (rest_of_clean_state): Dump final insn stream.
339         * gcc.c (invoke_as): Hook in -fcompare-debug.
340         (static_spec_functions): Add compare-debug-dump-opt,
341         compare-debug-self-opt and compare-debug-auxbase-opt.
342         (compare_debug, compare_debug_second, compare_debug_opt): New.
343         (switches_debug_check, n_switches_debug_check): New.
344         (debug_auxbase_opt, debug_check_temp_file): New.
345         (process_command): Handle -fno-compare-debug, -fcompare-debug and
346         -fcompare-debug=*.
347         (do_self_spec): Handle arguments after switches.
348         (do_spec_1): Add .gk extension to temp file basenames for compare.
349         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
350         (cc1_options): Use it instead of normal auxbase computation for
351         the second compare-debug compilation.
352         (compare_files): New.
353         (main): Set up and implement compare debug mode.
354         (compare_debug_dump_opt_spec_function): New.
355         (compare_debug_self_opt_spec_function): New.
356         (compare_debug_auxbase_opt_spec_function): New.
357         * toplev.c (process_options): Handle flag_gtoggle,
358         flag_dump_final_insns.
359         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
360         during -fcompare-debug-second compilation.
361
362 2009-06-07  Ian Lance Taylor  <iant@google.com>
363
364         * dwarf2.h (enum dwarf_location_atom): Add
365         INTERNAL_DW_OP_tls_addr.
366         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
367
368         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
369         with no default node.  Change warning with %H to warning_at.
370         Don't clear warn_switch around case checking.
371         * doc/invoke.texi (Warning Options): Clarify distinction between
372         -Wswitch and -Wswitch-enum.
373
374 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
375
376         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
377
378 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
379
380         * gbl-ctors.h: Add header guard.
381
382 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
383
384         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
385         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
386         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
387         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
388         prototypes for removed functions.
389         (expressions_equal_p): Move to ...
390         * tree-ssa-sccvn.h: ... here and ...
391         * matrix-reorg.c: ... adjust includes.
392
393 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
394
395         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
396
397 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
398
399         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
400         (finish_function): Remove erroneous whitespace.
401
402 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
403
404         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
405         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
406
407 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
408
409         * errors.c (internal_error): Commentary typo fix.
410         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
411         * tree-ssa-pre.c: Ditto.
412
413 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
414
415         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
416         them is supposed to hold actual statements.
417
418 2009-06-06  Ian Lance Taylor  <iant@google.com>
419
420         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
421         empty statements can now have attributes.
422
423 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
424
425         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
426         * config/mips/mips.md: Ditto.
427
428 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
429
430         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
431         _RELOCATABLE.
432         (__eabi_uconvert): Likewise.
433
434 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
435
436         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
437         CFI_* definitions with IN_GCC.
438
439 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
440
441         * xcoffout.h (xcoffout_source_line): Update prototype.
442
443 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
444
445         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
446         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
447
448 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
449
450         PR middle-end/40340
451         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
452         inlined_function_outer_scope_p blocks for artificial inlines
453         even at -g0/-g1.
454         * tree.c (tree_nonartificial_location): Rewrite using
455         block_nonartificial_location.
456
457 2009-06-05  Revital Eres  <eres@il.ibm.com>
458             Leehod Baruch  <leehod@il.ibm.com>
459
460         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
461         (expand_expr_real_1): Remove comment.
462         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
463         Vectorize misaligned access when the target supports it.
464         (vect_supportable_dr_alignment): Check for unaligned access
465         support.
466         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
467         and remove asset.
468
469 2009-06-05  Julian Brown  <julian@codesourcery.com>
470
471         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
472         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
473
474 2009-06-05  Richard Guenther  <rguenther@suse.de>
475
476         PR bootstrap/40350
477         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
478         as possibly unused.
479
480 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
481
482         * config/s390/s390.c (global_not_special_regno_p): New static inline.
483         (save_gprs): Don't tell unwinder when a global register is saved.
484         (s390_emit_epilogue): Emit needed epilogue unwind info.
485
486 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
487
488         * dwarf2out.c (deferred_asm_name): New.
489         (add_name_and_src_coords_attributes): Defer creation of
490         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
491         computed yet.
492         (move_linkage_attr): New.
493         (dwarf2out_finish): Revisit deferrals and emit attributes at the
494         right place.
495
496 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
497
498         * tree-nested.c (finalize_nesting_tree_1): Declare the
499         frame_decl in the binding tree.
500
501 2009-06-04  Cary Coutant  <ccoutant@google.com>
502
503         * basic-block.h (struct basic_block_def): Add discriminator field.
504         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
505         callers.
506         * debug.c (do_nothing_debug_hooks): Add additional entry.
507         (debug_nothing_int_charstar_int): New function.
508         * debug.h (struct gcc_debug_hooks): Add parameter to source_line
509         hook.
510         (debug_nothing_int_charstar_int): New declaration.
511         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
512         discriminator value in .loc directive.
513         * final.c (last_discriminator): New variable.
514         (discriminator): New variable.
515         (final_start_function): Initialize above variables, pass current
516         discriminator to debug hook.
517         (notice_source_line): Check for discriminator change.
518         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
519         * sdbout.c (sdbout_source_line): New parameter.
520         * tree-cfg.c (struct locus_discrim_map): New structure type.
521         (discriminator_per_locus): New hash table.
522         (build_gimple_cfg): Allocate and free discriminator hash table.
523         (make_edges): Call assign_discriminator.
524         (locus_map_hash): New function.
525         (locus_map_eq): New function.
526         (next_discriminator_for_locus): New function.
527         (same_line_p): New function.
528         (assign_discriminator): New function.
529         (make_cond_expr_edges): Call assign_discriminator.
530         (make_gimple_switch_edges): Likewise.
531         (first_non_label_stmt): New function.
532         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
533         all callers.
534         * xcoffout.c (xcoffout_source_line): Add new parameter.
535
536         * configure.ac (gcc_cv_as_discriminator): New configury check for
537         gas support for discriminator.
538         * configure: Regenerate.
539         * config.in: Regenerate.
540
541 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
542
543         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
544         val after checking for integers.
545
546 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
547
548         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
549         X64_REGPARM_MAX.
550         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
551         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
552         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
553         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
554         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
555         X64_SSE_REGPARM_MAX.
556         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
557         X64_SSE_REGPARM_MAX.
558
559 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
560
561         * gcc.c (report_times_to_file): New.
562         (execute): Implement it.
563         (process_command): Support -time=.
564         * doc/invoke.texi: Document it.
565
566 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
567
568         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
569         that have value exprs.
570
571 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
572
573         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
574         declarations for constants until...
575         (dw2_output_indirect_constant_1): ... this point.
576
577 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
578
579         PR target/10242
580         * arm.md (arm_addsi3): Don't try to split an add with an
581         eliminable register until after reload has completed.
582
583 2009-06-03  Ian Lance Taylor  <iant@google.com>
584
585         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
586         * genattrtab.c (write_length_unit_log): Likewise.
587         * genchecksum.c (dosum): Likewise.
588         * gengtype.c (write_rtx_next): Likewise.
589         (finish_root_table, write_roots): Likewise.
590         * gimple.c (gimple_ops_offset_): Likewise.
591         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
592         * config/arc/arc.c (arc_attribute_table): Likewise.
593         * config/arm/arm.c (arm_attribute_table): Likewise.
594         * config/avr/avr.c (avr_attribute_table): Likewise.
595         * config/crx/crx.c (crx_attribute_table): Likewise.
596         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
597         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
598         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
599         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
600         * config/sh/sh.c (sh_attribute_table): Likewise.
601         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
602         * config/spu/spu.c (spu_attribute_table): Likewise.
603         * config/v850/v850.c (v850_attribute_table): Likewise.
604
605         * config/alpha/alpha.c (vms_attribute_table): Make static.
606         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
607         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
608         * config/mips/mips.c (mips_attribute_table): Likewise.
609
610         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
611         $(SYSTEM_H).
612         (cc1-checksum.o): Likewise.
613
614 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
615
616         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
617
618 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
619
620         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
621         insn if it is changing sp.  Use gen_add3_insn instead of
622         conditionally gen_addsi3 and gen_adddi3.
623         (offset_below_red_zone_p): New static inline function.
624         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
625         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
626         * config/rs6000/ppc-asm.h: Include auto-host.h.
627         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
628         CFI_RESTORE): Define.
629         * config/rs6000/crtresxgpr.asm: Add unwind info.
630         * config/rs6000/crtresxfpr.asm: Likewise.
631         * config/rs6000/crtresgpr.asm: Likewise.
632         * config/rs6000/crtresfpr.asm: Likewise.
633         * config/rs6000/crtsavgpr.asm: Likewise.
634         * config/rs6000/crtsavfpr.asm: Likewise.
635
636         * dwarf2out.c (output_cfi_directive): Pass 1 instead of
637         0 to second argument of DWARF2_FRAME_REG_OUT macros.
638
639 2009-06-03  Julian Brown  <julian@codesourcery.com>
640
641         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
642         words or less (including TImode) in core registers.
643
644 2009-06-03  Richard Guenther  <rguenther@suse.de>
645
646         PR middle-end/40328
647         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
648
649 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
650
651         * statistics.c (statistics_counter_event): Do not record event 
652         in pass dump if its number == -1.
653         (curr_statistics_hash): Add assert that we never get passes 
654         with static number == -1.
655
656 2009-06-03  Richard Guenther  <rguenther@suse.de>
657             Andrey Belevantsev  <abel@ispras.ru>
658
659         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only 
660         non-BLKmode arrays addressable.
661
662 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
663
664         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
665         * config/m68k/m68k.h: ... here.
666         * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
667         m68k and fido.
668
669 2009-06-03  Martin Jambor  <mjambor@suse.cz>
670
671         PR tree-optimization/40323
672         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
673         assignment.
674
675 2009-06-03  Richard Guenther  <rguenther@suse.de>
676
677         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
678         consistently.
679
680 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
681
682         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
683         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
684         JUMP_TABLE_DATA_P where applicable.
685         * config/sh/sh.c: Ditto.
686         * config/sh/sh.h: Ditto.
687         * config/sh/sh.md: Ditto.
688         * config/sh/symbian.c: Ditto.
689
690 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
691
692         * config/i386/driver-i386.c (describe_cache): Optimize
693         concatenation of strings.  Use snprintf instead of sprintf.
694         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
695         target when not compiling with GCC.
696
697 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
698
699         * config/sh/sh.c: Revert last change.
700         (sh_expand_epilogue): Emit a blockage insn before the frame
701         pointer adjustment unconditionally.
702
703 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
704
705         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
706         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
707         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
708         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
709         to COLLECT_GCC_OPTIONS.
710
711 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
712
713         * collect2.c (target_system_root): New variable.
714         (main): Handle --sysroot=.
715         (ignore_library): Strip the sysroot from the library path.
716
717 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
718
719         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
720         (collect2.o): Depend on collect2-aix.h.
721         (collect2-aix.o): New rule.
722         * collect2-aix.h: New file.
723         * collect2-aix.c: Likewise.
724         * collect2.c: Include collect2-aix.h.  Don't undefine
725         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
726         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
727         Use TARGET_AIX_VERSION instead of _AIX51.
728         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
729         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
730         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
731         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
732         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
733
734 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
735
736         * collect2.c (ignore_library): Avoid premature post-increment
737         and null deference.
738
739 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
740
741         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
742         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
743         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
744         CROSS_DIRECTORY_STRUCTURE too.
745         (LINK_LIBG_SPEC): Likewise.
746         (LIB_SPEC): Add %R to sysroot paths.
747         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
748         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
749         * config/rs6000/aix51.h: As for aix43.h.
750         * config/rs6000/aix52.h: Likewise.
751         * config/rs6000/aix53.h: Likewise.
752         * config/rs6000/aix61.h: Likewise.
753         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
754         to the beginning of sysroot paths.
755
756 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
757
758         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
759         INSN_LISTs that are out of the REG_NOTE range.
760
761 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
762
763         * loop-unroll.c (struct iv_to_split): Add pointer to next.
764         (struct var_to_expand): Likewise.
765         (struct opt_info): Add head and tail for linked lists of the above.
766         (analyze_insn_to_expand_var): Initialize next.
767         (analyze_iv_to_split_insn): Likewise.
768         (analyze_insns_in_loop): Create linked lists.
769         (allocate_basic_variable): Simplify for use without hash table.
770         (insert_var_expansion_initialization): Likewise, make it type-safer.
771         (combine_var_copies_in_loop_exit): Likewise.
772         (apply_opt_in_copies): Walk lists rather than hash tables.
773         (release_var_copies): Simplified and inlined by hand into...
774         (free_opt_info): ... this function.
775
776 2009-06-02  Richard Guenther  <rguenther@suse.de>
777
778         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
779         for field decls.
780
781 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
782
783         * cfgexpand.c (gimple_expand_cfg): Discard the source location
784         only for builtins that are not overridden.
785
786 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
787
788         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
789         label string.
790
791 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
792
793         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
794
795 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
796
797         * combine.c (move_deaths): Compare LUIDs within the same BB only.
798
799 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
800
801         * common.opt (fdump-unnumbered-links): New.
802         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
803         * print-rtl.c (flag_dump_unnumbered_links): New.
804         (print_rtx): Test it.
805
806 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
807
808         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
809         push/pop multiple to 8-byte alignment.
810
811 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
812
813         * config/i386/i386.c (queued_cfa_restores): New static variable.
814         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
815         functions.
816         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
817         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
818         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
819         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
820         note unconditionally.
821         (ix86_emit_restore_regs_using_mov): Likewise.
822         (ix86_emit_restore_sse_regs_using_mov): Likewise.
823         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
824         it through to ix86_emit_restore_reg_using_pop.
825         (ix86_emit_leave): Add RED_OFFSET argument.  Call
826         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
827         instead of adding REG_CFA_OFFSET note unconditionally.
828         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
829         the above functions.  Call ix86_add_queued_cfa_restore_notes when
830         needed.
831
832         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
833         force output of the label even for dwarf2out_do_cfi_asm.
834         (add_fde_cfi): If -g2 and above and cfi might change CFA,
835         force creation of CFI label and chain DW_CFA_set_loc jumping to it
836         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
837         caller.
838         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
839         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
840         dwarf2out_cfi_label callers.
841         * tree.h (dwarf2out_cfi_label): Adjust prototype.
842         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
843         Adjust dwarf2out_cfi_label callers.
844         * config/vax/vax.c (vax_output_function_prologue): Likewise.
845
846         * config/i386/i386.h (struct machine_cfa_state,
847         struct machine_function): Guard with ifndef USED_FOR_TARGET
848         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
849
850         PR other/40024
851         * emutls.c (__emutls_get_address): Change arr->size to mean number
852         of allocated arr->data entries instead of # of slots + 1.
853
854         PR middle-end/40316
855         * recog.c (peep2_reinit_state): New function.
856         (peephole2_init_state): Use it at the end of a basic block and also
857         when seeing a RTX_FRAME_RELATED_P insn.
858
859 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
860
861         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
862         fixuns_truncrfdi2): New.
863         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
864         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
865         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
866         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
867         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
868         *recip_approx): Remove.
869         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
870         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
871         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
872         move to div.md.
873         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
874         setf_exp_rf): New.
875
876 2009-06-01  Ian Lance Taylor  <iant@google.com>
877
878         * attribs.c (register_attribute): Use CONST_CAST.
879         * collect2.c (main): Use CONST_CAST2.
880         (scan_prog_file): Likewise.
881         * gcc.c (process_command, main): Likewise.
882         * toplev.c (toplev_main): Likewise.
883
884         * c-typeck.c (handle_warn_cast_qual): New static function,
885         partially broken out of build_c_cast.
886         (build_c_cast): Call handle_warn_cast_qual.
887         * doc/invoke.texi (Warning Options): Document new effect of
888         -Wcast-qual.
889
890 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
891
892         * diagnostic.c (diagnostic_build_prefix): Always print columns.
893         (diagnostic_report_current_module): Print columns.
894         * common.opt (flag_show_column): Enable by default.
895
896 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
897
898         * alias.c (find_base_term): Check for NULL term before returning.
899
900 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
901
902         Revert due to PR40320:
903         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
904         * calls.c (emit_library_call_value_1): Don't force_operand for move
905         and push insns.
906
907 2009-06-01  Olivier Hainque  <hainque@adacore.com>
908             Eric Botcazou  <ebotcazou@adacore.com>
909
910         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
911         to be processed as a bitfield for constructor output purposes.
912         * output.h (initializer_constant_valid_for_bitfield_p): Declare
913         new function.
914         * varasm.c (oc_local_state): New type, output_constructor
915         local state to support communication with helpers.
916         (oc_outer_state): New type, output_constructor outer state of
917         relevance in recursive calls.
918         (output_constructor_array_range): New output_constructor helper,
919         extracted code for an array range element.
920         (output_constructor_regular_field): New output_constructor helper,
921         extracted code for an element that is not a bitfield.
922         (output_constructor_bitfield): New output_constructor helper,
923         extracted code for a bitfield element.  Accept an OUTER state
924         argument for recursive processing.  Recurse on record or array
925         CONSTRUCTOR values, possibly past noop conversions.
926         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
927         VALUE is a valid constant-valued expression for use in a static
928         bit-field initializer.
929         (output_constructor): Rework to use helpers.  Accept and honor an
930         OUTER state argument for recursive calls.  Return total size.  Be
931         prepared for nested constructors initializing bitfields.
932         (output_constant): Feed OUTER in calls to output_constructor.
933
934 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
935
936         * calls.c (emit_library_call_value_1): Don't force_operand for move
937         and push insns.
938
939 2009-06-01  Nick Clifton  <nickc@redhat.com>
940
941         * doc/invoke.texi (IA-64 Options): Fix typo.
942
943 2009-06-01  Ira Rosen  <irar@il.ibm.com>
944
945         PR tree-optimization/39129
946         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the 
947         printed message.
948         (vect_do_peeling_for_loop_bound): Use 
949         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
950         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
951         (vect_loop_versioning): Likewise.
952         (vect_create_cond_for_alias_checks): Fix indentation.
953         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the 
954         macros.
955         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
956         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
957         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to 
958         "control flow in loop".
959         (vect_estimate_min_profitable_iters): Use 
960         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
961         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
962         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
963         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
964         * tree-vect-stmts.c (vectorizable_store): Replace the check that the 
965         statement belongs to a group of strided accesses with the exact code 
966         check.
967         (vectorizable_load): Likewise.
968         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
969         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
970
971 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
972
973         * config/freebsd-stdint.h: New file.
974         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
975         Add freebsd-stdint.h to tm_file.
976
977 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
978
979         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
980         (thumb2_extendhidi2): Likewise.
981
982 2009-05-31  Ian Lance Taylor  <iant@google.com>
983
984         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
985
986 2009-05-31  Ian Lance Taylor  <iant@google.com>
987
988         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
989         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
990         (ipa-reference.o): Depend upon gt-ipa-reference.h.
991
992 2009-05-31  Jason Merrill  <jason@redhat.com>
993
994         * tree-pretty-print.c (print_call_name): Take the callee, not the
995         call itself.  Make non-static.  Use dump_function_name for functions.
996         (dump_generic_node): Adjust.
997         * diagnostic.h: Declare print_call_name.
998         * gimple-pretty-print.c (dump_gimple_call): Use it.
999
1000 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
1001
1002         * config/sh/sh.md (ashldi3_std): New define_expand.
1003         (ashldi3): Use it.
1004
1005 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
1006
1007         PR target/40313
1008         * config/sh/sh.c: Include debug.h.
1009         (sh_expand_epilogue): Emit a blockage insn before the frame
1010         pointer adjustment also when dwarf2out_do_frame returns true.
1011
1012 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
1013
1014         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
1015         (thumb2_extendqidi2): New pattern.
1016
1017 2009-05-31  Ira Rosen  <irar@il.ibm.com>
1018
1019         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
1020         mark phis for renaming.
1021         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
1022         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
1023         Call mark_sym_for_renaming.
1024         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
1025         * tree-vect-loop.c (vect_transform_loop): Remove
1026         vect_memsyms_to_rename initialization and a call to
1027         mark_set_for_renaming.
1028
1029 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
1030
1031         PR middle-end/40304
1032         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
1033         frame related even if !set_cfa && style < 0.
1034
1035 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
1036
1037         * config/i386/mingw-tls.c: New file.
1038         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
1039         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
1040         defining _WIN32 but not __CYGWIN__.
1041
1042 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1043
1044         * configure.ac: Add MPC support.
1045         
1046         * config.in, configure: Regenerate.     
1047
1048 2009-05-29  Richard Henderson  <rth@redhat.com>
1049
1050         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
1051         NOTE_INSN_BASIC_BLOCK.
1052         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
1053         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
1054         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
1055         to be deleted.
1056         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
1057         add in_use field.
1058         (add_cfi): Disable check redefining cfa away from drap.
1059         (lookup_cfa_1): Add remember argument; handle remember/restore.
1060         (lookup_cfa): Pass remember argument.
1061         (cfa_remember): New.
1062         (compute_barrier_args_size_1): Remove sibcall check.
1063         (dwarf2out_frame_debug_def_cfa): New.
1064         (dwarf2out_frame_debug_adjust_cfa): New.
1065         (dwarf2out_frame_debug_cfa_offset): New.
1066         (dwarf2out_frame_debug_cfa_register): New.
1067         (dwarf2out_frame_debug_cfa_restore): New.
1068         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
1069         (dwarf2out_begin_epilogue): New.
1070         (dwarf2out_frame_debug_restore_state): New.
1071         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
1072         DW_CFA_restore_state.
1073         (output_cfi_directive): Likewise.
1074         (convert_cfa_to_fb_loc_list): Likewise.
1075         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
1076         * dwarf2out.h: Update.
1077         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
1078         (copy_insn_1): Early out for null.
1079         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
1080         and dwarf2out_frame_debug_restore_state.
1081         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
1082         (prologue_insn_hash, epilogue_insn_hash): New.
1083         (free_after_compilation): Adjust freeing accordingly.
1084         (record_insns): Create hash table if needed; push insns into
1085         hash instead of array.
1086         (maybe_copy_epilogue_insn): New.
1087         (contains): Search hash table instead of array.
1088         (sibcall_epilogue_contains): Remove.
1089         (thread_prologue_and_epilogue_insns): Split eh_return insns
1090         and mark them as epilogues.
1091         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
1092         scanning in terms of basic blocks.
1093         * insn-notes.def (CFA_RESTORE_STATE): New.
1094         * jump.c (returnjump_p_1): Accept EH_RETURN.
1095         (eh_returnjump_p_1, eh_returnjump_p): New.
1096         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
1097         CFA_REGISTER, CFA_RESTORE): New.
1098         * rtl.def (EH_RETURN): New.
1099         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
1100
1101         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
1102         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
1103
1104         * config/i386/i386.c (gen_push): Update cfa state.
1105         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
1106         add a CFA_ADJUST_CFA note.
1107         (ix86_dwarf_handle_frame_unspec): Remove.
1108         (ix86_expand_prologue): Update cfa state.
1109         (ix86_emit_restore_reg_using_pop): New.
1110         (ix86_emit_restore_regs_using_pop): New.
1111         (ix86_emit_leave): New.
1112         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
1113         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
1114         * config/i386/i386.h (struct machine_cfa_state): New.
1115         (ix86_cfa_state): New.
1116         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
1117         (eh_return_internal): Merge from eh_return_<mode>,
1118         use eh_return rtx, split w/ epilogue.
1119
1120 2009-05-29  Ian Lance Taylor  <iant@google.com>
1121
1122         * builtins.c (validate_gimple_arglist): Don't use va_arg with
1123         enum type.
1124         * calls.c (emit_library_call_value_1): Likewise.
1125
1126         * c-typeck.c (c_build_va_arg): New function.
1127         * c-tree.h (c_build_va_arg): Declare.
1128         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
1129         instead of build_va_arg.
1130
1131 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
1132
1133         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
1134         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
1135         (ptr_difference_cost): Use affine combinations to compute it.
1136         (difference_cost): Likewise.
1137         (get_computation_cost_at): Compute more accurate cost for addresses
1138         if the ratio is a multiplier allowed in addresses.
1139         For non-addresses, consider that an additional offset or symbol is
1140         added only once.
1141
1142 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
1143
1144         * config/i386/i386.c (ix86_decompose_address): Avoid useless
1145         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
1146
1147         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
1148         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
1149         (prefix_rex): For UNIT_MMX don't imply the prefix by default
1150         if MODE_DI.
1151         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
1152         to 1 for TYPE_SSE{IADD1,CVT1}.
1153         (prefix_vex_imm8): Removed.
1154         (length_vex): Only pass 1 as second argument to
1155         ix86_attr_length_vex_default if prefix_extra is 0.
1156         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
1157         (length): For prefix vex computation use length_immediate
1158         attribute instead of prefix_vex_imm8.
1159         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
1160         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
1161         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
1162         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
1163         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
1164         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
1165         a space in between the operands.
1166         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
1167         if one operand is 0xff and the other one si, di, bp or sp.
1168         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
1169         other one si, di, bp or sp.
1170         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
1171         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
1172         type and mode attributes.
1173         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
1174         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
1175         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
1176         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
1177         prefix_data16 attribute iff MODE_DF.
1178         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
1179         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
1180         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
1181         constm128_operand in length_immediate computation.
1182         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
1183         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
1184         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
1185         length_immediate attribute to 1.
1186         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
1187         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
1188         for certain alternatives.
1189         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
1190         prefix_data16 attribute if MODE_V1DF.
1191         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
1192         length_immediate to 1.
1193         (set_got_rex64, set_rip_rex64): Remove length attribute, set
1194         length_address to 4, set mode attribute to MODE_DI.
1195         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
1196         (fxam<mode>2_i387): Set length attribute to 4.
1197         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
1198         *prefetch_3dnow_rex): Override length_address attribute.
1199         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
1200         attributes.
1201         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
1202         (constm128_operand): Removed.
1203         * config/i386/i386.c (memory_address_length): For
1204         disp && !index && !base in 64-bit mode account for SIB byte if
1205         print_operand_address can't optimize disp32 into disp32(%rip)
1206         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
1207         for fs: or gs: segment.
1208         (ix86_attr_length_immediate_default): When checking if shortform
1209         is possible, truncate immediate to the length of the non-shortened
1210         immediate.
1211         (ix86_attr_length_address_default): Ignore MEM_P operands
1212         with X constraint.
1213         (ix86_attr_length_vex_default): Only check for DImode on
1214         GENERAL_REG_P operands.
1215         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
1216         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
1217         (sse_cvttps2pi): Clear prefix_rep attribute.
1218         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
1219         attribute.
1220         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
1221         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
1222         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
1223         iff operand 2 is const_int_operand.
1224         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
1225         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
1226         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
1227         instead of vex.
1228         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
1229         prefix_data16.
1230         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
1231         prefix_data16 attribute for movlpd and movhpd instructions.
1232         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
1233         length_immediate for shufpd instruction.
1234         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
1235         (avx_cmpp<avxmodesuffixf2c><mode>3,
1236         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
1237         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
1238         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
1239         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
1240         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
1241         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
1242         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
1243         prefix_data16 attribute for the first alternative to 1.
1244         (*avx_loadlps): Override length_immediate for the first alternative.
1245         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
1246         attributes for second alternative.
1247         (*vec_concatv2sf_sse4_1): Override length_immediate and
1248         prefix_data16 attributes for second alternative.
1249         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
1250         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
1251         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
1252         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
1253         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
1254         prefix_data16 and length_immediate to 1.
1255         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
1256         to 1.
1257         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
1258         prefix_extra attribute for variants that don't have 0f prefix alone.
1259         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
1260         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
1261         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
1262         *sse4_1_pextrd): Set length_immediate to 1.
1263         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
1264         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
1265         to 1.
1266         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
1267         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
1268         length_immediate to 1 for second alternative.
1269         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
1270         prefix_extra and length_immediate attributes for the first
1271         alternative.
1272         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
1273         first alternative.
1274         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
1275         to 1 for the first and third alternative.
1276         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
1277         alternative.
1278         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
1279         attribute.
1280         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
1281         attribute to 0.
1282         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
1283         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
1284         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
1285         *avx_psign<mode>3): Set prefix_extra attribute to 1.
1286         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
1287         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
1288         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
1289         ssse3_psign<mode>3): Override prefix_rex attribute.
1290         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
1291         (ssse3_palignrti): Override length_immediate to 1.
1292         (ssse3_palignrdi): Override length_immediate to 1, override
1293         prefix_rex attribute.
1294         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
1295         (sse4a_extrqi): Override length_immediate to 2.
1296         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
1297         (sse4a_insertq): Override prefix_data16 to 0.
1298         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
1299         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
1300         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
1301         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
1302         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
1303         and length_immediate to 1.
1304         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
1305         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
1306         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
1307         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
1308         and length_immediate to 1.
1309         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
1310         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
1311         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
1312         avx_ptest256): Override prefix_extra to 1.
1313         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
1314         Override prefix_data16 and length_immediate to 1.
1315         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
1316         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
1317         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
1318         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
1319         prefix_data16 to 0 and prefix_extra to 2.
1320         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
1321         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
1322         attribute.
1323         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
1324         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
1325         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
1326         and prefix_extra to 2.
1327         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
1328         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
1329         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
1330         avx_vpermilvar<mode>3,
1331         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
1332         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
1333         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
1334         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
1335         Override prefix_extra to 1.
1336         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
1337         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
1338         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
1339         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
1340         prefix_extra and length_immediate to 1.
1341         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
1342         modrm to 0.
1343         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
1344         to 1 for the first alternative.
1345         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
1346         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
1347         cases.
1348         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
1349         *movv2sf_internal_avx, *movv2sf_internal): Override
1350         prefix_rep attribute for certain alternatives.
1351         (*mov<mode>_internal): Override prefix_rep or prefix_data16
1352         attributes for certain alternatives.
1353         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
1354         attributes for certain alternatives.
1355         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
1356         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
1357         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
1358         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
1359         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
1360         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
1361         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
1362         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
1363         length_immediate to 1 if operand 2 is const_int_operand.
1364         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
1365         *vec_extractv2si_1): Set length_immediate attribute to 1.
1366         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
1367         using old 3DNOW insn rather than SSE/3DNOW_A.
1368         (mmx_emms, mmx_femms): Clear modrm attribute.
1369
1370 2009-05-29  Martin Jambor  <mjambor@suse.cz>
1371
1372         * tree-sra.c:  New implementation of SRA.
1373
1374         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
1375         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
1376         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
1377         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
1378         (SRA_MAX_STRUCTURE_COUNT): Removed.
1379         (SRA_FIELD_STRUCTURE_RATIO): Removed.
1380         * doc/invoke.texi (sra-max-structure-size): Removed.
1381         (sra-field-structure-ratio): Removed.
1382
1383 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
1384
1385         PR middle-end/40291
1386         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
1387         before expansion.
1388
1389 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
1390
1391         PR rtl-optimization/40101
1392         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
1393         seqno.  Adjust comment.
1394         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when 
1395         inserting bookkeeping before a jump, the jump is not scheduled.
1396         When no positive seqno found, provide a value.  Add comment.
1397
1398 2009-05-29  Richard Guenther  <rguenther@suse.de>
1399
1400         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
1401         short-cutting on the first component.
1402
1403 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
1404
1405         PR middle-end/39958
1406         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
1407         for trees other than decls/types.
1408
1409 2009-05-29  Richard Guenther  <rguenther@suse.de>
1410
1411         * tree-ssa-operands.c (get_expr_operands): Do not handle
1412         INDIRECT_REFs in the handled-component case.  Remove
1413         unused get_ref_base_and_extent case.
1414         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
1415         tree_low_cst and host_integerp where possible.
1416         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
1417         codes for equivalence.
1418         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
1419
1420 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
1421
1422         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
1423         to tmake_file for i[34567]86-*-cygwin*. 
1424
1425 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
1426
1427         PR target/40017
1428         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
1429         (altivec_categorize_keyword, init_vector_keywords,
1430         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
1431         similar to bool.
1432
1433 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
1434
1435         * tree.c (handle_dll_attribute): Check if node is
1436         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
1437
1438 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
1439
1440         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
1441         component.
1442         (thumb2_zero_extendqidi2): Likewise.
1443
1444 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
1445
1446         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
1447         instead of gen_movrt.
1448         * config/sh/sh.md (movrt): Remove.
1449
1450 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
1451
1452         * doc/invoke.texi (IA-64 Options):
1453         Add -msdata, -mfused-madd, -mno-inline-float-divide, 
1454         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
1455         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
1456         -msched-prefer-non-control-spec-insns,
1457         -msched-stop-bits-after-every-cycle,
1458         -msched-count-spec-in-critical-path,
1459         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
1460         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
1461         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
1462         and -msched-spec-verbose.
1463
1464 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
1465
1466         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
1467         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
1468         error if used.
1469         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
1470
1471 2009-05-28  Richard Guenther  <rguenther@suse.de>
1472
1473         * tree-ssa-alias.c (ao_ref_init): New function.
1474         (ao_ref_base): Likewise.
1475         (ao_ref_base_alias_set): Likewise.
1476         (ao_ref_alias_set): Likewise.
1477         (refs_may_alias_p_1): Change signature.
1478         (refs_may_alias_p): Adjust.
1479         (refs_anti_dependent_p): Likewise.
1480         (refs_output_dependent_p): Likewise.
1481         (call_may_clobber_ref_p_1): Change signature.
1482         (call_may_clobber_ref_p): Adjust.
1483         (stmt_may_clobber_ref_p_1): New function split out from ...
1484         (stmt_may_clobber_ref_p): ... here.
1485         (maybe_skip_until): Adjust signature.
1486         (get_continuation_for_phi): Likewise.
1487         (walk_non_aliased_vuses): Likewise.
1488         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
1489         (ao_ref_init): Declare.
1490         (ao_ref_base): Likewise.
1491         (ao_ref_alias_set): Likewise.
1492         (stmt_may_clobber_ref_p_1): Likewise.
1493         (walk_non_aliased_vuses): Adjust.
1494         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
1495         (get_ref_from_reference_ops): remove.
1496         (vn_reference_lookup_2): Adjust signature.
1497         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
1498         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
1499         (vn_reference_lookup): Adjust.
1500         (vn_reference_insert): Likewise.
1501         (vn_reference_insert_pieces): Adjust signature.
1502         (visit_reference_op_call): Adjust.
1503         * tree-ssa-pre.c (get_expr_type): Simplify.
1504         (phi_translate_1): Adjust.
1505         (compute_avail): Likewise.
1506         (translate_vuse_through_block): Do not re-build trees.
1507         (value_dies_in_block_x): Likewise.
1508         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
1509         fields.
1510         (vn_reference_lookup_pieces): Adjust declaration.
1511         (vn_reference_insert_pieces): Likewise.
1512
1513 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
1514
1515         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
1516         with checking disabled.
1517
1518 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
1519
1520         PR target/37216
1521
1522         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
1523         macro definition for support of three-operand format aligned
1524         .comm directive in assembler on cygwin/pe/mingw target OS.
1525         * configure:  Regenerate.
1526         * config.h:  Regenerate.
1527
1528         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
1529         aligned form of .comm directive if -mpe-aligned-commons is in effect.
1530         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
1531
1532         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
1533         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
1534
1535 2009-05-28  Ira Rosen  <irar@il.ibm.com>
1536
1537         PR tree-optimization/40254
1538         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
1539         in analysis of basic blocks.
1540
1541 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
1542
1543         PR middle-end/33699
1544         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
1545         * target-def.h (TARGET_CONST_ANCHOR): New macro.
1546         (TARGET_INITIALIZER): Use it.
1547         * cse.c (CHEAPER): Move it up to the other macros.
1548         (insert): Rename this ...
1549         (insert_with_costs): ... to this.  Add cost parameters.  Update
1550         function comment.
1551         (insert): New function.  Call insert_with_costs.
1552         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
1553         find_reg_offset_for_const, try_const_anchors): New functions.
1554         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
1555         when using a const-anchor.  Call insert_const_anchors.
1556         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
1557         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
1558
1559 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
1560
1561         * tree-inline.c (remap_decls): Enable nonlocalized variables
1562         when not optimizing.
1563
1564 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
1565
1566         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
1567         Simplify other tests involving optimize.
1568
1569 2009-05-27  Tom Tromey  <tromey@redhat.com>
1570
1571         * unwind-dw2.c (_Unwind_DebugHook): New function.
1572         (uw_install_context): Call _Unwind_DebugHook.
1573
1574 2009-05-27  Tom Tromey  <tromey@redhat.com>
1575
1576         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
1577
1578 2009-05-27  Ian Lance Taylor  <iant@google.com>
1579
1580         * Makefile.in (LINKER, LINKER_FLAGS): Define.
1581         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
1582         (ALL_LINKERFLAGS): Define.
1583         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
1584         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
1585         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
1586         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
1587         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
1588         $(LINKER_FOR_BUILD).
1589         (build/gcov-iov$(build_exeext)): Likewise.
1590
1591 2009-05-27  Julian Brown  <julian@codesourcery.com>
1592
1593         * gcse.c (target.h): Include.
1594         (can_assign_to_reg_without_clobbers_p): Check that the target allows
1595         copy of argument to a pseudo register.
1596
1597 2009-05-27  Diego Novillo  <dnovillo@google.com>
1598
1599         * tree-ssa-live.c (dump_scope_block): Document arguments.
1600         (dump_scope_blocks): Document.
1601         (debug_scope_blocks): New.
1602         * tree-flow.h (debug_scope_blocks): Declare.
1603
1604 2009-05-21  Denis Chertykov  <denisc@overta.ru>
1605
1606         * doc/contrib.texi (Contributors): Add myself to the list.
1607
1608 2009-05-27  Olivier Hainque  <hainque@adacore.com>
1609
1610         * expr.c (target_align): New function.  Alignment the TARGET of an
1611         assignment may be assume to have.
1612         (highest_pow2_factor_for_target): Use it instead of relying on
1613         immediate tree attributes of TARGET, not necessarily honored when
1614         intermediate bitfields are involved.
1615         
1616 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1617
1618         PR target/40266
1619         * config/i386/driver-i386.c (host_detect_local_cpu): Support
1620         AVX, SSE4, AES, PCLMUL and POPCNT.
1621
1622 2009-05-27  Diego Novillo  <dnovillo@google.com>
1623
1624         * tree-pretty-print.c (dump_location): New.
1625         (dump_generic_node): Call it.
1626         Factor code to handle BLOCK nodes ...
1627         (dump_block_node): ... here.
1628
1629 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
1630
1631         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
1632         with it.
1633         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
1634         included.
1635         * gcc-plugin.h: Include config.h and system.h.
1636         (IN_GCC): Define if not defined.
1637
1638 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
1639
1640         PR middle-end/40249
1641         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
1642         with -fno-inline.
1643
1644 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
1645
1646         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
1647         applicable.
1648         * config/m32r/m32r.h: Ditto.
1649         * config/m32r/m32r.md: Ditto.
1650         * config/m32r/predicates.md: Ditto.
1651
1652 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
1653
1654         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
1655
1656 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
1657
1658         * doc/plugins.texi
1659         (Loading plugins): typo.
1660         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
1661         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
1662         (Interacting with the GCC Garbage Collector): Added new section.
1663         (Giving information about a plugin): Added new section for
1664         PLUGIN_INFO.
1665         * ggc.h (ggc_register_root_tab): Added declaration.
1666         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
1667         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
1668         (register_callback): Improved comment in declaration.
1669         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
1670         (extra_root_vec) Added static variable for dynamic roots registration.
1671         (ggc_register_root_tab) Added new routine.
1672         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
1673         PLUGIN_GGC_MARKING event.
1674         * ggc-zone.c: Include plugin.h.
1675         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
1676         * ggc-page.c: Include plugin.h.
1677         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
1678         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
1679         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
1680         (register_callback): check lack of callbacks for
1681         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
1682         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
1683         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
1684         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
1685         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
1686         dependency on plugin.h.
1687         (plugin.o): Added dependency on ggc.h...
1688
1689 2009-05-26  Richard Guenther  <rguenther@suse.de>
1690
1691         PR middle-end/40248
1692         Revert
1693         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
1694         with mismatched comparison modes.
1695
1696         * expr.c (expand_expr_real_1): Expand the operand of a
1697         VIEW_CONVERT_EXPR in its natural mode.
1698
1699 2009-05-26  Ian Lance Taylor  <iant@google.com>
1700
1701         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
1702         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
1703         (ALL_COMPILERFLAGS): Define.
1704         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
1705         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
1706         (collect2$(exeext), collect2.o): Likewise.
1707         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
1708         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
1709         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
1710         (libbackend.o, intl.o, cppdefault.o): Likewise.
1711         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
1712         (build/%.o): Use $(COMPILER_FOR_BUILD).
1713         (build/gen%$(build_exeext)): Likewise.
1714         (build/gcov-iov$(build_exeext)): LIkewise.
1715         * config/t-darwin (darwin.o): Use $(COMPILER).
1716         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
1717         * config/t-sol2 (sol2-c.o): Likewise.
1718         (sol2.o): Likewise.
1719         * config/t-vxworks (vxworks.o): Likewise.
1720         * config/x-darwin (host-darwin.o): Likewise.
1721         * config/x-hpux (host-hpux.o): Likewise.
1722         * config/x-linux (host-linux.o): Likewise.
1723         * config/x-solaris (host-solaris.o): Likewise.
1724         * config/alpha/x-alpha (driver-alpha.o): Likewise.
1725         * config/arm/t-arm (arm-c.o): Likewise.
1726         * config/arm/t-pe (pe.o): Likewise.
1727         * config/arm/t-wince-pe (pe.o): Likewise.
1728         * config/i386/t-cygming (winnt.o): Likewise.
1729         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
1730         * config/i386/t-cygwin (cygwin1.o): Likewise.
1731         (cygwin2.o): Likewise.
1732         * config/i386/t-i386 (i386-c.o): Likewise.
1733         * config/i386/t-interix (winnt.o): Likewise.
1734         * config/i386/t-netware (netware.o): Likewise.
1735         * config/i386/t-nwld (nwld.o): Likewise.
1736         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
1737         * config/i386/x-i386 (driver-i386.o): Likewise.
1738         * config/i386/x-cygwin (host-cygwin.o): Likewise.
1739         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
1740         * config/ia64/t-ia64 (ia64-c.o): Likewise.
1741         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
1742         * config/mips/x-native (driver-native.o): Likewise.
1743         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
1744         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
1745         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
1746         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
1747         * config/score/t-score-elf (score7.o): Likewise.
1748         (score3.o): Likewise.
1749         * config/sh/t-sh (sh-c.o): Likewise.
1750         * config/sh/t-symbian (sh-c.o): Likewise.
1751         (symbian.o): Likewise.
1752         * config/spu/t-spu-elf (spu-c.o): Likewise.
1753         * config/v850/t-v850 (v850-c.o): Likewise.
1754         * config/v850/t-v850e (v850-c.o): Likewise.
1755
1756 2009-05-26  Richard Guenther  <rguenther@suse.de>
1757
1758         PR tree-optimization/40122
1759         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
1760         VECTOR_CSTs if possible.
1761         (fold_gimple_assign): Likewise.
1762
1763 2009-05-26  Richard Guenther  <rguenther@suse.de>
1764
1765         PR middle-end/40252
1766         * fold-const.c (fold_binary): Use the correct types for building
1767         rotates.
1768
1769 2009-05-26  Richard Guenther  <rguenther@suse.de>
1770
1771         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
1772         redundant calls to merge_alias_info.
1773         (bump_vector_ptr): Likewise.
1774         * tree-ssa-copy.c (merge_alias_info): Remove.
1775         (replace_exp_1): Remove call to merge_alias_info.
1776         (propagate_tree_value): Likewise.
1777         (fini_copy_prop): Propagate points-to info.
1778         * tree-flow.h (merge_alias_info): Remove.
1779
1780 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
1781
1782         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
1783
1784 2009-05-25  Jan Hubicka  <jh@suse.cz>
1785
1786         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
1787         * cgraph.h (struct inline_summary): New filed self_wize,
1788         size_inlining_benefit, self_time and time_inlining_benefit.
1789         (struct cgraph_global_info): Replace insns by time ans size fields.
1790         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
1791         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
1792         (ipcp_update_callgraph): Do not touch function bodies.
1793         * ipa-inline.c: Include except.h
1794         (MAX_TIME): New constant.
1795         (overall_insns): Remove.
1796         (leaf_node_p): New.
1797         (overall_size, max_benefit): New static variables.
1798         (cgraph_estimate_time_after_inlining): New function.
1799         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
1800         (cgraph_clone_inlined_nodes): Update size.
1801         (cgraph_mark_inline_edge): Update size.
1802         (cgraph_estimate_growth): Use size info.
1803         (cgraph_check_inline_limits): Check size.
1804         (cgraph_default_inline_p): Likewise.
1805         (cgraph_edge_badness): Compute badness based on benefit and size cost.
1806         (cgraph_decide_recursive_inlining): Check size.
1807         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
1808         and times.
1809         (cgraph_decide_inlining): Likewise.
1810         (cgraph_decide_inlining_incrementally): Likewise; honor
1811         PARAM_EARLY_INLINING_INSNS.
1812         (likely_eliminated_by_inlining_p): New predicate.
1813         (estimate_function_body_sizes): New function.
1814         (compute_inline_parameters): Use it.
1815         * except.c (must_not_throw_labels): New function.
1816         * except.h (must_not_throw_labels): Declare.
1817         * tree-inline.c (init_inline_once): Kill inlining_weigths
1818         * tree-ssa-structalias.c: Avoid uninitialized warning.
1819         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
1820         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
1821         (PARAM_INLINE_CALL_COST): Remove.
1822         (PARAM_EARLY_INLINING_INSNS): New.
1823
1824 2009-05-25  Richard Guenther  <rguenther@suse.de>
1825
1826         PR tree-optimization/36327
1827         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
1828         callback for reference translation or lookup at the point of may-defs.
1829         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
1830         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
1831         for union COMPONENT_REFs.
1832         (vn_reference_lookup_3): New callback.  Lookup from memset
1833         and CONSTRUCTOR assignment, translate through struct copies.
1834         (vn_reference_lookup_pieces): Make sure to not free the
1835         passed operands array.  Adjust walk_non_aliased_vuses call.
1836         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
1837         make sure we do not leak memory.
1838
1839 2009-05-25  Richard Guenther  <rguenther@suse.de>
1840
1841         * tree-ssa-alias.h (dump_points_to_solution): Declare.
1842         * tree-inline.c (expand_call_inline): Reset the escaped and
1843         callused solutions.
1844         * tree-ssa-structalias.c (pass_build_ealias): New.
1845         * tree-pass.h (pass_build_ealias): Declare.
1846         * passes.c (init_optimization_passes): Add PTA during 
1847         early optimizations.
1848         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
1849         and CALLUSED solutions.
1850         (dump_points_to_solution): New function, split out from ...
1851         (dump_points_to_info_for): ... here.
1852         * tree-parloops.c (parallelize_loops): Reset the escaped and
1853         callused solutions.
1854
1855 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1856
1857         PR bootstrap/40027
1858         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
1859         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
1860
1861 2009-05-25  Ira Rosen  <irar@il.ibm.com>
1862
1863         PR tree-optimization/40238
1864         * tree-vect-stmts.c (vect_init_vector): Insert initialization
1865         statements after basic block's labels.
1866         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info() 
1867         to free the allocated memory.
1868
1869 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
1870
1871         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
1872         return address with a USE.
1873
1874 2009-05-24  Richard Guenther  <rguenther@suse.de>
1875
1876         PR middle-end/40233
1877         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
1878         array type from the main variant of the inner type.
1879
1880 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1881
1882         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
1883         definition to bool (from int) to un-break build.
1884         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
1885
1886 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
1887
1888         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
1889         discard_stmt_changes): Delete.
1890         * tree-ssa-operands.c (scb_stack): Delete.
1891         (init_ssa_operands): Do not initialize it.
1892         (fini_ssa_operands): Do not free it.
1893         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
1894
1895         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with 
1896         update_stmt, remove the others.  Fix comments.
1897         * tree-dfa.c (optimize_stack_restore): Likewise.
1898         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
1899         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
1900         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
1901         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
1902         Likewise.
1903         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
1904         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
1905         (dom_opt_finalize_block): Likewise, adjusting access to
1906         stmts_to_rescan.
1907         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
1908         (stmts_to_rescan): Change item type to gimple.
1909         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
1910
1911 2009-05-24  Ira Rosen  <irar@il.ibm.com>
1912
1913         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
1914         * tree-pass.h (pass_slp_vectorize): New pass.
1915         * params.h (SLP_MAX_INSNS_IN_BB): Define.
1916         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
1917         * tree-vectorizer.c (timevar.h): Include.
1918         (user_vect_verbosity_level): Declare.
1919         (vect_location): Fix comment.
1920         (vect_set_verbosity_level): Update user_vect_verbosity_level
1921         instead of vect_verbosity_level.
1922         (vect_set_dump_settings): Add an argument. Ignore user defined
1923         verbosity if dump flags require higher level of verbosity. Print to
1924         stderr only for loop vectorization.
1925         (vectorize_loops): Update call to vect_set_dump_settings.
1926         (execute_vect_slp): New function.
1927         (gate_vect_slp): Likewise.
1928         (struct gimple_opt_pass pass_slp_vectorize): New.
1929         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
1930         access its members.
1931         (vec_info_for_bb): New function.
1932         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
1933         (VECTORIZATION_ENABLED): New macro.
1934         (SLP_ENABLED, SLP_DISABLED): Likewise.
1935         (vect_is_simple_use): Add bb_vec_info argument.
1936         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
1937         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
1938         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
1939         vect_schedule_slp, vect_analyze_slp): Likewise.
1940         (vect_analyze_stmt): Add slp_tree argument.
1941         (find_bb_location): Declare.
1942         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
1943         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
1944         (vect_analyze_loop_operations, vect_analyze_loop,
1945         get_initial_def_for_induction, vect_create_epilog_for_reduction,
1946         vect_finalize_reduction, vectorizable_reduction,
1947         vectorizable_live_operation, vect_transform_loop): Likewise.
1948         * tree-data-ref.c (dr_analyze_innermost): Update comment,
1949         skip evolution analysis if analyzing a basic block.
1950         (dr_analyze_indices): Likewise.
1951         (initialize_data_dependence_relation): Skip the test whether the
1952         object is invariant for basic blocks.
1953         (compute_all_dependences): Skip dependence analysis for data
1954         references in basic blocks.
1955         (find_data_references_in_stmt): Don't fail in case of invariant
1956         access in basic block.
1957         (find_data_references_in_bb): New function.
1958         (find_data_references_in_loop): Move code to
1959         find_data_references_in_bb and add a call to it.
1960         (compute_data_dependences_for_bb): New function.
1961         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
1962         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
1963         that STEP is 0.
1964         (vect_analyze_data_ref_dependence): Check for interleaving in case of
1965         unknown dependence in basic block and fail in case of dependence in
1966         basic block.
1967         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
1968         dependence instances from either loop or basic block vectorization
1969         info.
1970         (vect_compute_data_ref_alignment): Check if it is loop vectorization
1971         before calling nested_in_vect_loop_p.
1972         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
1973         dependence instances from either loop or basic block vectorization
1974         info.
1975         (vect_verify_datarefs_alignment): Likewise.
1976         (vect_enhance_data_refs_alignment): Adjust function calls.
1977         (vect_analyze_data_refs_alignment): Likewise.
1978         (vect_analyze_group_access): Fix printing. Skip different checks if
1979         DR_STEP is 0. Keep strided stores either in loop or basic block
1980         vectorization data structure. Fix indentation.
1981         (vect_analyze_data_ref_access): Fix comments, allow zero step in
1982         basic blocks.
1983         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
1984         dependence instances from either loop or basic block vectorization
1985         info.
1986         (vect_analyze_data_refs): Update comment. Call
1987         compute_data_dependences_for_bb to analyze basic blocks.
1988         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
1989         case of loop vectorization. In case of basic block vectorization use
1990         data-ref itself as a base.
1991         (vect_create_data_ref_ptr): In case of basic block vectorization:
1992         don't advance the pointer, add new statements before the current
1993         statement.  Adjust function calls.
1994         (vect_supportable_dr_alignment): Support only aligned accesses in
1995         basic block vectorization.
1996         * common.opt (ftree-slp-vectorize): New flag.
1997         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
1998         (vect_pattern_recog_1): Likewise.
1999         * tree-vect-stmts.c (process_use): Likewise.
2000         (vect_init_vector): Add new statements in the beginning of the basic
2001         block in case of basic block SLP.
2002         (vect_get_vec_def_for_operand): Adjust function calls.
2003         (vect_finish_stmt_generation): Likewise.
2004         (vectorizable_call): Add assert that it is loop vectorization, adjust
2005         function calls.
2006         (vectorizable_conversion, vectorizable_assignment): Likewise.
2007         (vectorizable_operation): In case of basic block SLP, take
2008         vectorization factor from statement's type and skip the relevance
2009         check. Adjust function calls.
2010         (vectorizable_type_demotion): Add assert that it is loop
2011         vectorization, adjust function calls.
2012         (vectorizable_type_promotion): Likewise.
2013         (vectorizable_store): Check for outer loop only in case of loop
2014         vectorization. Adjust function calls. For basic blocks, skip the
2015         relevance check and don't advance pointers.
2016         (vectorizable_load): Likewise.
2017         (vectorizable_condition): Add assert that it is loop vectorization,
2018         adjust function calls.
2019         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
2020         that it is not reduction, get vector type, call only supported
2021         functions, skip loop specific parts.
2022         (vect_transform_stmt): Check for outer loop only in case of loop
2023         vectorization.
2024         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
2025         (vect_is_simple_use): Fix comment, add new argument, fix conditions
2026         for external definition.
2027         * passes.c (pass_slp_vectorize): New pass.
2028         * tree-vect-slp.c (find_bb_location): New function.
2029         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
2030         check for patterns only in loops.
2031         (vect_build_slp_tree): Add argument, adjust function calls, fail in
2032         case of multiple types in basic block SLP.
2033         (vect_mark_slp_stmts_relevant): New function.
2034         (vect_supported_load_permutation_p): Fix comment.
2035         (vect_analyze_slp_instance): Add argument. In case of basic block
2036         SLP, take vectorization factor from statement's type, check that
2037         unrolling factor is 1. Adjust function call. Save SLP instance in
2038         either loop or basic block vectorization structure. Return FALSE,
2039         if SLP failed.
2040         (vect_analyze_slp): Add argument. Get strided stores groups from
2041         either loop or basic block vectorization structure. Return FALSE
2042         if basic block SLP failed.
2043         (new_bb_vec_info): New function.
2044         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
2045         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
2046         (vect_schedule_slp): Add argument. Get SLP instances from either
2047         loop or basic block vectorization structure. Set vectorization factor
2048         to be 1 for basic block SLP.
2049         (vect_slp_transform_bb): New function.
2050         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
2051
2052 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
2053
2054         * final.c (shorten_branches): Do not align labels for jump tables.
2055         (final_scan_insn): Use JUMP_TABLE_DATA_P.
2056
2057 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
2058
2059         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
2060         Remove outdated reference to flow.c and fix nits.
2061         * doc/gccint.texi: Tweak RTL description.
2062         * doc/rtl.texi: Likewise.
2063
2064 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
2065
2066         * config/avr/avr.c: Change my email address.
2067         * config/avr/avr.h: Likewise.
2068         * config/avr/avr.md: Likewise.
2069         * config/avr/avr-protos.h: Likewise.
2070         * config/avr/libgcc.S: Likewise.
2071
2072 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
2073
2074         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
2075         (spu_split_load, spu_split_store): Change return type to int.
2076         (spu_split_convert): Declare.
2077         * config/spu/predicates.md (spu_mem_operand): Remove.
2078         (spu_mov_operand): Update.
2079         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
2080         * config/spu/spu.c (regno_aligned_for_load): Remove.
2081         (reg_aligned_for_addr, spu_expand_load): Define.
2082         (spu_expand_extv): Reimplement and handle MEM.
2083         (spu_expand_insv): Handle MEM.
2084         (spu_sched_reorder): Handle insn's with length 0.
2085         (spu_legitimate_address_p): Reimplement.
2086         (store_with_one_insn_p): Return TRUE for any mode with size
2087         larger than 16 bytes.
2088         (address_needs_split): Define.
2089         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
2090         operands.
2091         (spu_convert_move): Define.
2092         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
2093         (spu_split_store): Change all MEM's to TImode.
2094         (spu_init_expanders): Preallocate registers that correspond to
2095         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
2096         mark_reg_pointer.
2097         (spu_split_convert): Define.
2098         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
2099         (_move<mode>, _movdi, _movti): Update predicate and condition.
2100         (load, store): Change to define_split.
2101         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
2102         extend<mode>ti2.
2103         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
2104         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
2105         define_insn_and_split of lshr<mode>3.
2106         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
2107         (<v>ashr<mode>3_imm): Define.
2108         (extv, extzv, insv): Allow MEM operands.
2109         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
2110         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
2111         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
2112         (_spu_convert2): Change to define_insn_and_split and remove the
2113         corresponding define_peephole2.
2114         (stack_protect_set, stack_protect_test, stack_protect_test_si):
2115         Change predicates to memory_operand.
2116
2117 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
2118
2119         * config/arm/thumb2.md: Add 16-bit multiply instructions.
2120
2121 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
2122
2123         PR tree-optimization/40219
2124         * tree.c (iterative_hash_expr): Make sure the builtin function is
2125         a normal builtin function and not a front end or back end builtin
2126         before indexing into the built_in_decls array.
2127
2128 2009-05-22  Richard Guenther  <rguenther@suse.de>
2129
2130         PR middle-end/38964
2131         * alias.c (write_dependence_p): Do not use TBAA for answering
2132         anti-dependence or output-dependence.
2133         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
2134         (emit_pointer_definition): Remove.
2135         (emit_alias_warning): Likewise.
2136         (find_what_var_points_to): Remove TBAA pruning code.
2137         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
2138         violations.
2139         (compute_points_to_sets): Remove code computing the set of
2140         dereferenced pointers.
2141         * tree-data-ref.c (dr_may_alias_p): Properly use the split
2142         oracle for querying anti and output dependencies.
2143         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
2144         if TBAA may be applied.
2145         (refs_anti_dependent_p): New function.
2146         (refs_output_dependent_p): Likewise.
2147         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
2148         (refs_output_dependent_p): Likewise.
2149         * doc/tree-ssa.texi (Memory model): New section.
2150         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
2151         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
2152         * cfgexpand.c (expand_gimple_basic_block): Do not handle
2153         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
2154         * expr.c (expand_expr_real_1): Likewise.
2155         * gimple-low.c (lower_stmt): Likewise.
2156         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
2157         (dump_gimple_cdt): Remove.
2158         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
2159         (gimple_size): Likewise.
2160         (walk_gimple_op): Likewise.
2161         (is_gimple_stmt): Likewise.
2162         (walk_stmt_load_store_addr_ops): Likewise.
2163         (gimple_build_cdt): Remove.
2164         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
2165         * gimple.h (gimple_cdt_new_type): Remove.
2166         (gimple_cdt_new_type_ptr): Likewise.
2167         (gimple_cdt_set_new_type): Likewise.
2168         (gimple_cdt_location): Likewise.
2169         (gimple_cdt_location_ptr): Likewise.
2170         (gimple_cdt_set_location): Likewise.
2171         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
2172         * tree-cfg.c (remove_useless_stmts_1): Do not handle
2173         GIMPLE_CHANGE_DYNAMIC_TYPE.
2174         (verify_types_in_gimple_stmt): Likewise.
2175         * tree-inline.c (estimate_num_insns): Likewise.
2176         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
2177         (copy_decl_to_var): Likewise.
2178         (copy_result_decl_to_var): Likewise.
2179         * tree-pretty-print.c (dump_generic_node): Do not handle
2180         CHANGE_DYNAMIC_TYPE_EXPR.
2181         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
2182         * tree-ssa-operands.c (get_expr_operands): Likewise.
2183         * tree-ssa-structalias.c (struct variable_info): Remove
2184         no_tbaa_pruning member.
2185         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
2186         (unify_nodes): Do not copy it.
2187         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
2188         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
2189         (set_uids_in_ptset): Do not check it.
2190         (find_what_var_points_to): Likewise.
2191         (compute_tbaa_pruning): Remove.
2192         (compute_points_to_sets): Do not call it.
2193         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
2194         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
2195         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
2196         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
2197         (DECL_NO_TBAA_P): Likewise.
2198         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
2199         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
2200         (expand_omp_atomic_pipeline): Do not set it.
2201         * print-tree.c (print_node): Do not dump it.
2202         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
2203         redundant check.
2204
2205 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
2206
2207         PR target/39856
2208         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
2209         for clobber.
2210
2211 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
2212
2213         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
2214         non-external.
2215
2216 2009-05-22  Ben Elliston  <bje@au.ibm.com>
2217
2218         * Makefile.in (bversion.h, s-bversion): New targets.
2219         (TOPLEV_H): Add bversion.h.
2220         * toplev.h: Include "bversion.h".
2221         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
2222         the __format__ attribute only if compiling with the same version
2223         of GCC as the sources (the "build version").
2224
2225 2009-05-22  Ben Elliston  <bje@au.ibm.com>
2226
2227         * c-format.c (handle_format_attribute): Fix comment typo.
2228
2229 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
2230
2231         PR target/37846
2232         * config/ia64/ia64.opt (mfused-madd): New.
2233         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
2234         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
2235         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
2236         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
2237         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
2238         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
2239         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
2240         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms 
2241         instruction if !TARGET_FUSED_MADD.
2242         (fpma, fpms): Remove colon from name.
2243
2244 2009-05-22  Richard Guenther  <rguenther@suse.de>
2245
2246         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
2247         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
2248         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
2249         TARGET_MEM_REF.
2250         (create_expression_by_pieces): Only convert if necessary.
2251         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
2252         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
2253
2254 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
2255
2256         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
2257         regular pattern from a template and rename it ...
2258         (*extzv_truncsi_exts): ... to this.
2259
2260 2009-05-21  Richard Guenther  <rguenther@suse.de>
2261
2262         * cgraph.h (struct cgraph_node): Remove inline_decl member.
2263         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
2264         (cgraph_default_inline_p): Likewise.
2265         (cgraph_decide_inlining_incrementally): Likewise.
2266
2267 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2268             Uros Bizjak  <ubizjak@gmail.com>
2269
2270         * config/i386/cpuid.h (bit_MOVBE): New.
2271
2272         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2273
2274         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
2275         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
2276         (ix86_handle_option): Handle OPT_mmovbe.
2277         (ix86_target_string): Add -mmovbe.
2278         (pta_flags): Add PTA_MOVBE.
2279         (processor_alias_table): Add PTA_MOVBE to "atom".
2280         (override_options): Handle PTA_MOVBE.
2281
2282         * config/i386/i386.h (TARGET_MOVBE): New.
2283
2284         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
2285         (*bswapsi_movbe): New.
2286         (*bswapdi_movbe): Likewise.
2287         (bswapdi2): Renamed to ...
2288         (*bswapdi_1): This.
2289         (bswapdi2): New expander.
2290
2291         * config/i386/i386.opt (mmovbe): New.
2292
2293         * doc/invoke.texi: Document -mmovbe.
2294
2295 2009-05-21  Taras Glek  <tglek@mozilla.com>
2296
2297         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
2298         * gcc-plugin.h (plugin_init): Updated signature.
2299         * gcc-plugin.h (plugin_name_args): Moved to this header.
2300         * doc/plugins.texi (plugin_init): Updated documention to reflect
2301         API change.
2302         * doc/plugins.texi (plugin_name_args): Added to documention.
2303
2304 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
2305
2306         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
2307         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
2308
2309 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
2310
2311         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
2312         JUMP_TABLE_DATA_P predicates where applicable.
2313         * config/i386/predicates.md: Ditto.
2314         * config/i386/sse.md: Ditto.
2315
2316 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
2317
2318         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
2319         operand2 -128 override length_immediate attribute to 1.
2320         * config/i386/predicates.md (constm128_operand): New predicate.
2321
2322         * config/i386/i386.c (memory_address_length): Handle %r12
2323         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
2324         also check REGNO.
2325         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
2326         mode look through optional ZERO_EXTEND and SUBREG.
2327         * config/i386/i386.md (R12_REG): New define_constant.
2328         (prefix_data16): For sse unit set also for MODE_TI insns.
2329         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
2330         insns set if operand 1 is ext_QIreg_operand.
2331         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
2332         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
2333         immediate.
2334         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
2335         mode from MODE_DI to MODE_SI.
2336         (movdi_1_rex64): Override modrm and length_immediate attributes
2337         only for movabs (TYPE_IMOV, alternative 2).
2338         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
2339         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2340         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2341         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2342         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
2343         prefix_rex attribute if DImode.
2344         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
2345         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
2346         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
2347         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
2348         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
2349         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
2350         Likewise.  For TYPE_IMOV clear length_immediate attribute.
2351         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
2352         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
2353         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
2354         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
2355         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
2356         or one operand TYPE_ISHIFT.
2357         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
2358         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
2359         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
2360         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
2361         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
2362         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
2363         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
2364         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
2365         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
2366         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
2367         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
2368         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
2369         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
2370         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
2371         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
2372         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
2373         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
2374         set mode attribute, don't override length attribute.
2375         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
2376         to 1.
2377         (return_internal_long): Set length attribute to 2 instead of 1.
2378         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
2379         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
2380         prefix_rex attribute.
2381         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
2382         New predicates.
2383         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
2384
2385 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2386
2387         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
2388
2389 2009-05-20  Ian Lance Taylor  <iant@google.com>
2390
2391         * tree.c (build_tree_list_vec_stat): New function.
2392         (ctor_to_vec): New function.
2393         (build_nt_call_vec): New function.
2394         (build_call_array): Change args to be a const pointer.
2395         (build_call_vec): New function.
2396         * tree.h (build_nt_call_vec): Declare.
2397         (build_tree_list_vec_stat): Declare.
2398         (build_tree_list_vec): Define.
2399         (build_call_array): Update declaration.
2400         (build_call_vec): Declare.
2401         (ctor_to_vec): Declare.
2402         * c-common.c (tree_vector_cache): New static variable.
2403         (make_tree_vector): New function.
2404         (release_tree_vector): New function.
2405         (make_tree_vector_single): New function.
2406         (make_tree_vector_copy): New function.
2407         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
2408         (make_tree_vector_single, make_tree_vector_copy): Declare.
2409         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
2410         (c_parser_expr_list): Don't manage cache here, instead call
2411         make_tree_vector.
2412         (c_parser_release_expr_list): Remove static function.
2413         (c_parser_vec_to_tree_list): Remove static function.
2414         (c_parser_attributes): Call build_tree_list_vec instead of
2415         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
2416         c_parser_release_expr_list.
2417         (c_parser_postfix_expression_after_primary): Likewise.
2418         (c_parser_objc_keywordexpr): Likewise.
2419
2420 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
2421
2422         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
2423         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
2424         TARGET_CONVERT_TO_TYPE.
2425         * hooks.c (hook_tree_const_tree_null): Define.
2426         * hooks.h (hook_tree_const_tree_null): Declare.
2427         * target.h (struct gcc_target):  Add invalid_parameter_type,
2428         invalid_return_type, promoted_type, and convert_to_type fields.
2429         * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
2430         (TARGET_INVALID_RETURN_TYPE): Define.
2431         (TARGET_PROMOTED_TYPE): Define.
2432         (TARGET_CONVERT_TO_TYPE): Define.
2433         (TARGET_INITIALIZER): Update for new fields.
2434         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
2435         (grokparms): Check targetm.invalid_parameter_type.
2436         * c-typeck.c (default_conversion): Check targetm.promoted_type.
2437         * c-convert.c (convert): Check targetm.convert_to_type.
2438
2439 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
2440
2441         * config/mips/mips.md (*extenddi_truncate<mode>,
2442         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
2443         defintions.
2444         (*extendhi_truncateqi): New define_insn_and_sptit.
2445
2446 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
2447
2448         PR middle-end/40204
2449         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
2450         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
2451
2452 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
2453
2454         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
2455         the operand of VIEW_CONVERT_EXPR.
2456
2457 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2458
2459         * config/i386/driver-i386.c (host_detect_local_cpu): Check
2460         extended family and model for Intel processors.  Support Intel Atom.
2461
2462 2009-05-20  Olivier Hainque  <hainque@adacore.com>
2463
2464         * gstab.h (stab_code_type): Define, to be used instead of the
2465         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
2466         notice.
2467         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
2468         occurrences by stab_code_type.
2469         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
2470
2471 2009-05-20  Martin Jambor  <mjambor@suse.cz>
2472
2473         * tree-flow.h (insert_edge_copies_seq): Undeclare.
2474         (sra_insert_before): Likewise.
2475         (sra_insert_after): Likewise.
2476         (sra_init_cache): Likewise.
2477         (sra_type_can_be_decomposed_p): Likewise.
2478         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
2479         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
2480         (sra_insert_before): Likewise.
2481         (sra_insert_after): Likewise.
2482         (sra_init_cache): Likewise.
2483         (insert_edge_copies_seq): Made static and moved upwards.
2484
2485         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
2486         case.
2487
2488         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
2489
2490         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
2491         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
2492         simple copies.
2493
2494 2009-05-20  Richard Guenther  <rguenther@suse.de>
2495
2496         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
2497         with mismatched comparison modes.
2498
2499 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2500
2501         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
2502         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
2503         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
2504         with shifts for Thumb2.
2505         (orsi_notsi): New for orn.
2506         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
2507         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
2508         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
2509         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
2510         Don't invert remainder for IOR.
2511         
2512 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
2513
2514         PR tree-optimization/40087
2515         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
2516         number_of_iterations_ne): Rename never_infinite argument.
2517         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
2518         number_of_iterations_le): Handle pointer-type ivs when
2519         exit_must_be_taken is false.
2520         (number_of_iterations_cond):  Do not always assume that
2521         exit_must_be_taken if the control variable is a pointer.
2522
2523 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2524
2525         * c-typeck.c (build_binary_op): Allow % on integal vectors.
2526         * doc/extend.texi (Vector Extension): Document that % is allowed too.
2527
2528 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2529
2530         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
2531         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
2532
2533 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2534
2535         PR c/40172
2536         * c.opt (Wlogical-op): Disabled by default.
2537         * c-opt (c_common_post_options): Do not enable Wlogical-op with
2538         Wextra.
2539         * doc/invoke.texi (Wlogical-op): Likewise.
2540         
2541 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
2542
2543         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
2544         into CASE_CONVERT.
2545         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
2546         Propagate the type of the first operand.
2547         <ASSERT_EXPR>: Simplify.
2548         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
2549         Rewrite using the RHS code as discriminant.
2550         <NOP_EXPR>: Turn into CASE_CONVERT.
2551         <PLUS_EXPR>: Propagate the type of the first operand.
2552
2553 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
2554
2555         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
2556         (ia64_dconst_0_375): New.
2557         * config/ia64/ia64.c (ia64_override_options): Remove
2558         -minline-sqrt-min-latency warning.
2559         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
2560         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
2561         * config/ia64/ia64.md (*sqrt_approx): Remove.
2562         (sqrtsf2): Remove #if 0.
2563         (sqrtsf2_internal_thr): Rewrite and move to div.md.
2564         (sqrtdf): Remove assert.
2565         (sqrtdf2_internal_thr): Rewrite and move to div.md.
2566         (sqrtxf2): Remove #if 0.
2567         (sqrtxf2_internal_thr): Rewrite and move to div.md.
2568         * div.md (sqrt_approx_rf): New.
2569         (sqrtsf2_internal_thr): New implementation.
2570         (sqrtsf2_internal_lat): New.
2571         (sqrtdf2_internal_thr: New implementation.
2572         (sqrtxf2_internal): New implementation.
2573
2574 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
2575             Hans-Peter Nilsson  <hp@axis.com>
2576
2577         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
2578         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
2579         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
2580         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
2581         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
2582         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
2583         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
2584         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
2585         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
2586         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
2587         * c-common.c: ...from here.
2588
2589 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2590
2591         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
2592
2593 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2594
2595         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
2596
2597 2009-05-19  Ben Elliston  <bje@au.ibm.com>
2598
2599         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
2600         assignments with memcpy calls.
2601         (add_fdes): Likewise.
2602         (binary_search_unencoded_fdes): Likewise.
2603         (linear_search_fdes): Eliminate type puns.
2604         
2605 2009-05-19  Richard Guenther  <rguenther@suse.de>
2606
2607         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
2608         not falsely claim to have propagated into all uses.
2609
2610 2009-05-19  Ben Elliston  <bje@au.ibm.com>
2611
2612         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
2613         version to v3.0.
2614
2615 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
2616
2617         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
2618         * config/sh/sh.c (sh_legitimate_address_p): Make static.
2619         (TARGET_LEGITIMATE_ADDRESS_P): New.
2620         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2621         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
2622         
2623 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
2624
2625         PR debug/40109
2626         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
2627         child of the containing namespace's DIE.
2628
2629 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
2630
2631         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
2632         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
2633         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
2634         extend patterns.
2635
2636 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2637
2638         PR target/39942
2639         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
2640         gen_align with gen_pad.
2641         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
2642         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
2643
2644         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
2645         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
2646
2647         * config/i386/i386.md (align): Renamed to ...
2648         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
2649         ASM_OUTPUT_MAX_SKIP_PAD.
2650
2651 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
2652
2653         * config.gcc: Fix variable syntax.
2654
2655         PR target/39531
2656         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
2657         before calling exact_log2.
2658         (output_iorsi3): Likewise.
2659         (output_xorsi3): Likewise.
2660
2661 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
2662
2663         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
2664         for the none zero constant operand except for EQ and NE
2665         comprisons even when the first operand is R0.
2666
2667 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
2668
2669         * config/s390/2064.md: Remove trailing whitespaces.
2670         * config/s390/2084.md: Likewise.
2671         * config/s390/constraints.md: Likewise.
2672         * config/s390/fixdfdi.h: Likewise.
2673         * config/s390/libgcc-glibc.ver: Likewise.
2674         * config/s390/s390-modes.def: Likewise.
2675         * config/s390/s390-protos.h: Likewise.
2676         * config/s390/s390.c: Likewise.
2677         * config/s390/s390.h: Likewise.
2678         * config/s390/s390.md: Likewise.
2679         * config/s390/tpf-unwind.h: Likewise.
2680
2681 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
2682
2683         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
2684
2685 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
2686
2687         M68K TLS support.
2688         * configure.ac (m68k-*-*): Check if binutils support TLS.
2689         * configure: Regenerate.
2690         * config/m68k/predicates.md (symbolic_operand): Extend comment.
2691         * config/m68k/constraints.md (Cu): New constraint.
2692         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
2693         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
2694         (movsi): Handle TLS symbols.
2695         (addsi3_5200): Handle XTLS symbols, indent.
2696         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
2697         (m68k_tls_reference_p): Declare.
2698         (m68k_legitimize_address): Declare.
2699         (m68k_unwrap_symbol): Declare.
2700         * config/m68k/m68k.opt (mxtls): New option.
2701         * config/m68k/m68k.c (ggc.h): Include.
2702         (m68k_output_dwarf_dtprel): Implement hook.
2703         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
2704         (m68k_expand_prologue): Load GOT pointer when function needs it.
2705         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
2706         (m68k_legitimate_constant_address_p): Same.
2707         (m68k_decompose_address): Handle TLS references.
2708         (m68k_get_gp): New static function.
2709         (enum m68k_reloc): New contants.
2710         (TLS_RELOC_P): New macro.
2711         (m68k_wrap_symbol): New static function.
2712         (m68k_unwrap_symbol): New function.
2713         (m68k_final_prescan_insn_1): New static function.
2714         (m68k_final_prescan_insn): New function.
2715         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
2716         functions.
2717         (legitimize_pic_address): Handle TLS references..
2718         (m68k_tls_get_addr, m68k_get_tls_get_addr)
2719         (m68k_libcall_value_in_a0_p)
2720         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
2721         (m68k_call_m68k_read_tp): Helper variables and functions for ...
2722         (m68k_legitimize_tls_address): Handle TLS references.
2723         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
2724         New functions.
2725         (m68k_legitimize_address): Handle TLS symbols.
2726         (m68k_get_reloc_decoration): New static function.
2727         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
2728         UNSPEC_RELOC32.
2729         (m68k_output_dwarf_dtprel): Implement hook.
2730         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
2731         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
2732         m68k_call_* routines.
2733         (sched_attr_op_type): Handle TLS symbols.
2734         (gt-m68k.h): Include.
2735         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
2736         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
2737
2738 2009-05-18  Martin Jambor  <mjambor@suse.cz>
2739
2740         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
2741         (visit_store_addr_for_mod_analysis): New function.
2742         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
2743         (determine_cst_member_ptr): Use gimple_assign_single_p.
2744         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
2745         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
2746         operands.  Don't check number of operands of a NOP_EXPR.
2747
2748 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
2749
2750         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
2751
2752 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2753
2754         PR c/40172
2755         * c-common.c (warn_logical_operator): Don't warn if one of
2756         expression isn't always true or false.
2757
2758 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
2759
2760         * config/i386/biarch32.h: New file.
2761         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
2762
2763 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
2764
2765         * config/mips/mips.md (*zero_extend<mode>_trunchi,
2766         *zero_extend<mode>_truncqi): Merge these into ...
2767         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
2768         Name the pattern following this as *zero_extendhi_truncqi.
2769
2770 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
2771
2772         PR middle-end/39301
2773         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
2774         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
2775         (output_info): Make field HOST_WIDEST_INT.
2776         (print_statistics): Use HOST_WIDEST_INT_PRINT.
2777         (dump_bitmat_statistics): Same.
2778
2779 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
2780
2781         * config.gcc (use_gcc_stdint):  Set to wrap.
2782         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
2783         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
2784         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
2785         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
2786         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
2787         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
2788         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
2789         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
2790
2791 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
2792
2793         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
2794         tune_64.
2795         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
2796         Move definitions earlier.
2797         (OPT_ARCH64, OPT_ARCH32): Define.
2798         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
2799         and tune_64.
2800
2801 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
2802
2803         PR target/40153
2804         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
2805         implies.
2806
2807 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
2808
2809         * arm.md (movdi2): Copy non-reg values to DImode registers.
2810
2811 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
2812
2813         PR target/39942
2814         * final.c (label_to_max_skip): New function.
2815         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
2816         CODE_LABEL_NUMBER <= max_labelno.
2817         * output.h (label_to_max_skip): New prototype.
2818         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
2819         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
2820         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
2821         Handle CODE_LABELs with >= 16 byte alignment or with
2822         max_skip == (1 << align) - 1.
2823         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
2824         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
2825
2826         PR target/39942
2827         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
2828         .p2align 3 if MAX_SKIP is smaller than 7.
2829         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
2830
2831 2009-05-15  Ian Lance Taylor  <iant@google.com>
2832
2833         * alias.c (struct alias_set_entry_d): Rename from struct
2834         alias_set_entry.  Change all uses.
2835         * except.c (struct call_site_record_d): Rename from struct
2836         call_site_record.  Change all uses.
2837         * except.h (struct eh_region_d): Rename from struct eh_region.
2838         Change all uses.
2839         * gcse.c (struct hash_table_d): Rename from struct hash_table.
2840         Change all uses.
2841         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
2842         ivtype_map_elt.  Change all uses.
2843         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
2844         Change all uses.
2845         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
2846         * graphite.h (struct name_tree_d): Rename from struct name_tree.
2847         Change all uses.
2848         (struct sese_d): Rename from struct sese.  Change all uses.
2849         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
2850         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
2851         * optabs.h (struct optab_d): Rename from struct optab.  Change all
2852         uses.
2853         (struct convert_optab_d): Rename from struct convert_optab.
2854         Change all uses.
2855         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
2856         ipa_opt_pass.  Change all uses.
2857         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
2858         all uses.
2859
2860         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
2861         defined as a typedef.
2862         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
2863         defined as a tag.
2864
2865 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2866
2867         PR 16302
2868         * fold-const.c (make_range,build_range_check,merge_ranges): Move
2869         declaration to...
2870         (merge_ranges): Returns bool. 
2871         * tree.h (make_range): .. to here.
2872         (build_range_check): Likewise.
2873         (merge_ranges): Likewise. Renamed from merge_ranges.
2874         * c-typeck.c (parser_build_binary_op): Update calls to
2875         warn_logical_operator.
2876         * c-common.c (warn_logical_operator): Add new warning.
2877         * c-common.h (warn_logical_operator): Update declaration.
2878         
2879 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2880
2881         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
2882         
2883 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2884
2885         * doc/install.texi: Document MPC requirements, flags etc.
2886
2887         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
2888         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
2889         Evaluate constant arguments.
2890         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
2891         (fold_builtin_1): Likewise, also evaluate constant arguments.
2892         Remove superfluous break.
2893         (do_mpc_ckconv): New.
2894         * real.h: Include mpc.h.
2895         * toplev.c (print_version): Output MPC version info if available.
2896
2897 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
2898
2899         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
2900
2901 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2902
2903         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
2904         only once.
2905
2906 2009-05-15  Jan Hubicka  <jh@suse.cz>
2907
2908         * doc/invoke.texi (max-early-inliner-iterations): New flag.
2909         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
2910         (try_inline): Fix return value.
2911         (cgraph_decide_inlining_incrementally): Honor new value.
2912         (cgraph_early_inlining): Handle indirect inlining.
2913         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
2914
2915 2009-05-15  Jan Hubicka  <jh@suse.cz>
2916
2917         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
2918         * cgraphunit.c (cgraph_finalize_function): Set it.
2919         (cgraph_expand_function): Use it.
2920
2921 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
2922
2923         * real.c (encode_ieee_half): Define.
2924         (decode_ieee_half): Define.
2925         (ieee_half_format): Define.
2926         (arm_half_format): Define.
2927         * real.h (ieee_half_format): Declare.
2928         (arm_half_format): Declare.
2929
2930 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
2931
2932         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
2933         swapped, and reversed optabs exist before trying to use them.
2934
2935 2009-05-15  Paul Brook  <paul@codesourcery.com>
2936             Sandra Loosemore  <sandra@codesourcery.com>
2937
2938         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
2939         loads.  Allow PRE_DEC.
2940         (output_move_neon): Handle PRE_DEC.
2941         (arm_print_operand): Add 'A' for neon structure loads.
2942         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
2943         * config/arm/neon.md (neon_mov): Update comment.
2944         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
2945         calls.
2946         (Um): New constraint.
2947
2948 2009-05-15  Jan Hubicka  <jh@suse.cz>
2949
2950         Revert the following patch until testsuite fallout is fixed:
2951         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
2952         * cgraph.h (struct inline_summary): New filed self_wize,
2953         size_inlining_benefit, self_time and time_inlining_benefit.
2954         (struct cgraph_global_info): Replace insns by time ans size fields.
2955         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
2956         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
2957         (ipcp_update_callgraph): Do not touch function bodies.
2958         * ipa-inline.c: Include except.h
2959         (MAX_TIME): New constant.
2960         (overall_insns): Remove
2961         (overall_size, max_benefit): New static variables.
2962         (cgraph_estimate_time_after_inlining): New function.
2963         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
2964         (cgraph_clone_inlined_nodes): Update size.
2965         (cgraph_mark_inline_edge): Update size.
2966         (cgraph_estimate_growth): Use size info.
2967         (cgraph_check_inline_limits): Check size.
2968         (cgraph_default_inline_p): Likewise.
2969         (cgraph_edge_badness): Compute badness based on benefit and size cost.
2970         (cgraph_decide_recursive_inlining): Check size.
2971         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
2972         and times.
2973         (cgraph_decide_inlining): Likewise.
2974         (cgraph_decide_inlining_incrementally): Likewise; honor
2975         PARAM_EARLY_INLINING_INSNS.
2976         (likely_eliminated_by_inlining_p): New predicate.
2977         (estimate_function_body_sizes): New function.
2978         (compute_inline_parameters): Use it.
2979         * except.c (must_not_throw_labels): New function.
2980         * except.h (must_not_throw_labels): Declare.
2981         * tree-inline.c (init_inline_once): Kill inlining_weigths
2982         * tree-ssa-structalias.c: Avoid uninitialized warning.
2983         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
2984         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
2985         (PARAM_INLINE_CALL_COST): Remove.
2986         (PARAM_EARLY_INLINING_INSNS): New.
2987
2988 2009-05-15  Richard Guenther  <rguenther@suse.de>
2989
2990         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
2991         not TODO_update_ssa.
2992
2993 2009-05-15  Richard Guenther  <rguenther@suse.de>
2994
2995         PR tree-optimization/39999
2996         * gimple.h (gimple_expr_type): Use the expression type looking
2997         through useless conversions.
2998         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
2999         (vn_nary_op_insert_stmt): Likewise.
3000         (simplify_binary_expression): Likewise.
3001
3002 2009-05-15  Richard Guenther  <rguenther@suse.de>
3003
3004         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
3005         New options, enabled by default.
3006         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
3007         Document.
3008         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
3009         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
3010         * tree-ssa-structalias.c (gate_tree_pta): New function.
3011         (pass_build_alias): Use it.
3012
3013 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
3014
3015         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
3016         recurse on an invariant address if a conversion from a pointer
3017         type to a wider integer type is involved.
3018
3019 2009-05-15  Jan Hubicka  <jh@suse.cz>
3020
3021         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
3022         * cgraph.h (struct inline_summary): New filed self_wize,
3023         size_inlining_benefit, self_time and time_inlining_benefit.
3024         (struct cgraph_global_info): Replace insns by time ans size fields.
3025         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
3026         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
3027         (ipcp_update_callgraph): Do not touch function bodies.
3028         * ipa-inline.c: Include except.h
3029         (MAX_TIME): New constant.
3030         (overall_insns): Remove
3031         (overall_size, max_benefit): New static variables.
3032         (cgraph_estimate_time_after_inlining): New function.
3033         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
3034         (cgraph_clone_inlined_nodes): Update size.
3035         (cgraph_mark_inline_edge): Update size.
3036         (cgraph_estimate_growth): Use size info.
3037         (cgraph_check_inline_limits): Check size.
3038         (cgraph_default_inline_p): Likewise.
3039         (cgraph_edge_badness): Compute badness based on benefit and size cost.
3040         (cgraph_decide_recursive_inlining): Check size.
3041         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
3042         and times.
3043         (cgraph_decide_inlining): Likewise.
3044         (cgraph_decide_inlining_incrementally): Likewise; honor
3045         PARAM_EARLY_INLINING_INSNS.
3046         (likely_eliminated_by_inlining_p): New predicate.
3047         (estimate_function_body_sizes): New function.
3048         (compute_inline_parameters): Use it.
3049         * except.c (must_not_throw_labels): New function.
3050         * except.h (must_not_throw_labels): Declare.
3051         * tree-inline.c (init_inline_once): Kill inlining_weigths
3052         * tree-ssa-structalias.c: Avoid uninitialized warning.
3053         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
3054         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
3055         (PARAM_INLINE_CALL_COST): Remove.
3056         (PARAM_EARLY_INLINING_INSNS): New.
3057         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
3058         (inline-call-cost): Remove.
3059         (early-inlining-insns): New.
3060
3061 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
3062
3063         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
3064         for bounds.
3065         (print_int_cst_bounds_in_octal_p): Likewise.
3066         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
3067         with subtypes.
3068         * dwarf2out.c (base_type_die): Likewise.
3069         (is_subrange_type): Delete.
3070         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
3071         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
3072         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
3073         if the destination type is boolean.
3074         (build_range_check): Do not special-case subtypes.
3075         (fold_sign_changed_comparison): Likewise.
3076         (fold_unary): Likewise.
3077         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
3078         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
3079         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
3080         * tree.c (subrange_type_for_debug_p): New predicate based on the
3081         former is_subrange_type.
3082         * tree.h (subrange_type_for_debug_p): Declare.
3083         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
3084         (convert_affine_scev): Remove call to above function.
3085         (chrec_convert_aggressive): Likewise.
3086         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
3087         false for conversions involving subtypes.
3088         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
3089         (vrp_val_min): Likewise.
3090         (needs_overflow_infinity): Likewise.
3091         (extract_range_from_unary_expr): Likewise.
3092
3093 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
3094
3095         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
3096         * config/frv/frv.c: Likewise.
3097         * config/s390/s390.c: Likewise.
3098         * config/sparc/sparc.h: Likewise.
3099         * config/i386/i386.h: Likewise.
3100         * config/i386/i386.c: Likewise.
3101         * config/crx/crx.c: Likewise.
3102         * config/m68hc11/m68hc11.h: Likewise.
3103         * config/iq2000/iq2000.c: Likewise.
3104         * config/mn10300/mn10300.h: Likewise.
3105         * config/mn10300/mn10300.c: Likewise.
3106         * config/m68k/m68k.c: Likewise.
3107         * config/rs6000/rs6000.c: Likewise.
3108         * config/rs6000/xcoff.h: Likewise.
3109         * config/rs6000/linux64.h: Likewise.
3110         * config/rs6000/sysv4.h: Likewise.
3111         * config/score/score3.c: Likewise.
3112         * config/score/score7.c: Likewise.
3113         * config/score/score.c: Likewise.
3114         * config/arm/arm.md: Likewise.
3115         * config/mips/mips.c: Likewise.
3116         * config/mips/mips.md: Likewise.
3117         * config/bfin/bfin.h: Likewise.
3118         * config/pa/pa.c: Likewise.
3119         * config/pa/constraints.md: Likewise.
3120
3121         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
3122         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
3123         * config/pdp11/pdp11.h: Use memory_address_p instead.
3124
3125 2009-05-14  Ian Lance Taylor  <iant@google.com>
3126
3127         * passes.c (finish_optimization_passes): Change i to int.
3128         * plugin.c (plugins_active_p): Change event to int.
3129         (dump_active_plugins): Likewise.
3130         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
3131         Add cast.
3132         * tree.c (tree_range_check_failed): Change c to unsigned int.
3133         (omp_clause_range_check_failed): Likewise.
3134         (build_common_builtin_nodes): Change mode to int.  Add cast.
3135         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
3136         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
3137
3138         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
3139         ++ or -- with a variable of enum type.
3140
3141 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
3142
3143         PR driver/40144
3144         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
3145
3146 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
3147
3148         * store-motion.c: Do not include params.h
3149         * Makefile.in: Fix dependencies for various files.
3150
3151 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
3152
3153         * auto-inc-dec.c: Fix pass description, remove apparent
3154         accidental duplication.
3155
3156 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3157
3158         PR middle-end/40147
3159         * ipa-utils.h (memory_identifier_string): Moved to ...
3160         * tree.h (memory_identifier_string): Here.  Add GTY(()).
3161
3162 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
3163
3164         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
3165         in the former documentation of...
3166         (GO_IF_LEGITIMATE_ADDRESS): ... this.
3167         * ira-conflicts.c (get_dup_num): Use address_operand.
3168         * targhooks.c (default_legitimate_address_p): New.
3169         * targhooks.h (default_legitimate_address_p): New.
3170         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
3171         Call hook.
3172         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
3173         * target.h (struct target): Add legitimate_address_p.
3174         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
3175         (TARGET_INITIALIZER): Include it.
3176
3177         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3178         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
3179         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
3180         (TARGET_LEGITIMATE_ADDRESS_P): New.
3181
3182         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3183         (REG_OK_STRICT_P): Delete.
3184         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
3185         (frv_legitimate_address_p_1): ... this.
3186         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
3187         (frv_legitimate_address_p_1): ... the renamed old
3188         frv_legitimate_address_p.
3189         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
3190         (TARGET_LEGITIMATE_ADDRESS_P): New.
3191
3192         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3193         * config/s390/s390-protos.h (legitimate_address_p): Remove.
3194         * config/s390/s390.c (legitimate_address_p): Rename to...
3195         (s390_legitimate_address_p): ... this, make static.
3196         (legitimize_address): Adjust call.
3197         (TARGET_LEGITIMATE_ADDRESS_P): New.
3198         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
3199
3200         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3201         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
3202         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
3203         (TARGET_LEGITIMATE_ADDRESS_P): New.
3204
3205         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3206         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
3207         * config/spu/spu.c (spu_legitimate_address): Rename to...
3208         (spu_legitimate_address_p): ... this, make static.
3209         (TARGET_LEGITIMATE_ADDRESS_P): New.
3210
3211         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3212         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
3213         * config/sparc/sparc.c (legitimate_address_p): Rename to...
3214         (sparc_legitimate_address_p): ... this, make static and return bool.
3215         (legitimize_address): Adjust call.
3216         (TARGET_LEGITIMATE_ADDRESS_P): New.
3217
3218         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3219         * config/i386/i386-protos.h (legitimate_address_p): Remove.
3220         * config/i386/i386.c (legitimate_address_p): Rename to...
3221         (ix86_legitimate_address_p): ... this, make static.
3222         (constant_address_p): Move after it, adjust call.
3223         (TARGET_LEGITIMATE_ADDRESS_P): New.
3224
3225         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3226         * config/avr/avr-protos.h (legitimate_address_p): Remove.
3227         * config/avr/avr.c (legitimate_address_p): Rename to...
3228         (avr_legitimate_address_p): ... this, make static.
3229         (legitimize_address): Adjust call.
3230         (TARGET_LEGITIMATE_ADDRESS_P): New.
3231
3232         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3233         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
3234         * config/crx/crx.c (crx_legitimate_address_p): Make static.
3235         (TARGET_LEGITIMATE_ADDRESS_P): New.
3236
3237         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3238         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
3239         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
3240         (TARGET_LEGITIMATE_ADDRESS_P): New.
3241
3242         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3243         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
3244         Remove.
3245         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
3246         Make static.
3247         (TARGET_LEGITIMATE_ADDRESS_P): New.
3248
3249         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3250         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
3251         Remove.
3252         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
3253         Rename to...
3254         (m68hc11_legitimate_address_p): ... this, make static.
3255         (go_if_legitimate_address_internal): Rename to...
3256         (m68hc11_legitimate_address_p_1): ... this.
3257         (legitimize_address): Adjust call.
3258         (TARGET_LEGITIMATE_ADDRESS_P): New.
3259
3260         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3261         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
3262         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
3263         (TARGET_LEGITIMATE_ADDRESS_P): New.
3264
3265         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3266         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
3267         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
3268         (mn10300_legitimate_address_p): ... this, make static.
3269         (TARGET_LEGITIMATE_ADDRESS_P): New.
3270
3271         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3272         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
3273         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
3274         (TARGET_LEGITIMATE_ADDRESS_P): New.
3275
3276         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3277         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
3278         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
3279         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3280         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
3281         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
3282         (rs6000_legitimate_address_p): ... this, make static.
3283         (TARGET_LEGITIMATE_ADDRESS_P): New.
3284         (REG_MODE_OK_FOR_BASE_P): Delete.
3285         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
3286
3287         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3288         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
3289         Delete.
3290         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
3291         static, adjust types.
3292         (TARGET_LEGITIMATE_ADDRESS_P): New.
3293
3294         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3295         * config/score/score.c (score_address_p): Rename to...
3296         (score_legitimate_address_p): ... this.
3297         (TARGET_LEGITIMATE_ADDRESS_P): New.
3298         * config/score/score3.c (score3_address_p): Rename to...
3299         (score3_legitimate_address_p): ... this.
3300         * config/score/score7.c (score7_address_p): Rename to...
3301         (score7_legitimate_address_p): ... this.
3302
3303         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
3304         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
3305         GO_IF_LEGITIMATE_ADDRESS): Delete.
3306         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
3307         thumb2_legitimate_address_p): Delete.
3308         (arm_legitimate_address_p): Rename to...
3309         (arm_legitimate_address_outer_p): ... this.
3310         * config/arm/constraints.md ("Uq"): Adjust call.
3311         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
3312         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
3313         to...
3314         (arm_legitimate_address_outer_p): ... this.
3315         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
3316         static.
3317         (TARGET_LEGITIMATE_ADDRESS_P): New.
3318
3319         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3320         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
3321         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
3322         (TARGET_LEGITIMATE_ADDRESS_P): New.
3323
3324         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3325         * config/vax/vax-protos.h (legitimate_address_p): Remove.
3326         * config/vax/vax.c (legitimate_address_p): Rename to...
3327         (vax_legitimate_address_p): ... this, make static.
3328         (TARGET_LEGITIMATE_ADDRESS_P): New.
3329
3330         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3331         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
3332         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
3333         (TARGET_LEGITIMATE_ADDRESS_P): New.
3334
3335         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3336         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
3337         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
3338         (mmix_legitimate_address_p): ... this, make static.
3339         (TARGET_LEGITIMATE_ADDRESS_P): New.
3340
3341         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3342         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
3343         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
3344         (TARGET_LEGITIMATE_ADDRESS_P): New.
3345
3346 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
3347
3348         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
3349         of MODE_COMPLEX_INT.
3350
3351 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3352
3353         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
3354         LCT_NORMAL in function call.
3355         * mips-tdump.c (print_file_desc): Add cast to enum type.
3356         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
3357         (mark_stabs): Add casts to enum types.
3358         (parse_stabs_common): Add casts to enum types.
3359
3360 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
3361
3362         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
3363         Check for invalid values of LETTER.
3364
3365 2009-05-13  Taras Glek  <tglek@mozilla.com>
3366
3367         * attribs.c (register_attribute): moved out attribute registration
3368         into register_attribute.
3369         * doc/plugins.texi: Documented register_attribute and
3370         PLUGIN_ATTRIBUTES.
3371         * gcc-plugin.h: Added forward decl for register_attribute.
3372         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
3373         * plugin.c (register_callback, invoke_plugin_callbacks): Added
3374         PLUGIN_ATTRIBUTES boilerplate.
3375
3376 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
3377
3378         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
3379         values even in sentinel and empty entries.
3380         (ms_printf_flag_specs):  Likewise.
3381         (ms_scanf_flag_specs):  Likewise.
3382         (ms_strftime_flag_specs):  Likewise.
3383         (ms_print_char_table):  Likewise.
3384         (ms_scan_char_table):  Likewise.
3385         (ms_time_char_table):  Likewise.
3386
3387 2009-05-13  Doug Kwan  <dougkwan@google.com>
3388
3389         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
3390
3391 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
3392
3393         * config/mips/mips.md (store): Add attributes for QI and HI.
3394         Update comment.
3395         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
3396         (truncdi<mode>2): ... this new pattern.
3397
3398 2009-05-13  Brad Hards  <bradh@kde.org>
3399
3400         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
3401
3402 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
3403             Ben Elliston <bje@au.ibm.com>
3404
3405         PR middle-end/40035
3406         * dse.c (check_mem_read_rtx): Guard against width == -1.
3407
3408 2009-05-13  Michael Matz  <matz@suse.de>
3409
3410         PR middle-end/39976
3411         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
3412         (trivially_conflicts_p): New function.
3413         (insert_backedge_copies): Use it.
3414
3415 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
3416
3417         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
3418         (handle_stdc_pragma): Use new enum constant names.
3419         (handle_pragma_float_const_decimal64): Ditto.
3420
3421 2009-05-13  Ian Lance Taylor  <iant@google.com>
3422
3423         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
3424         tree.def.
3425
3426 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
3427
3428         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
3429         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
3430         multilibs.
3431         * config/m68k/m68k.h (FL_UCLINUX): Define.
3432
3433 2009-05-13  Jan Hubicka  <jh@suse.cz>
3434
3435         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
3436
3437 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
3438
3439         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
3440         unless -fschedule-insns is specified.
3441
3442 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
3443
3444         PR target/39561
3445         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
3446         TARGET_EXPAND_CBRANCHDI4.
3447         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
3448         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
3449         (cmpeqdi): Fix comment.
3450
3451 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
3452
3453         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
3454         (sh_legitimate_address_p): Likewise.
3455         * config/sh/sh.c (sh_legitimate_index_p): New.
3456         (sh_legitimate_address_p): Likewise.
3457         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
3458         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
3459         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
3460         (MAYBE_BASE_REGISTER_RTX_P): New macro.
3461         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
3462         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
3463         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
3464         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
3465         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
3466
3467 2009-05-12  Jan Hubicka  <jh@suse.cz>
3468
3469         * tree-inline.c (estimate_operator_cost): Add operands;
3470         when division happens by constant, it is cheap.
3471         (estimate_num_insns): Loads and stores are not having cost of 0;
3472         EH magic stuff is cheap; when computing runtime cost of switch,
3473         use log2 base of amount of its cases; builtin_expect has cost of 0;
3474         compute cost for moving return value of call.
3475         (init_inline_once): Initialize time_based flags.
3476         * tree-inline.h (eni_weights_d): Add time_based flag.
3477
3478 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
3479
3480         * df-core.c: Update head documentation.
3481
3482 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
3483
3484         PR bootstrap/40118
3485         * rs6000.c (rs6000_generate_compare): Use op1b instead of
3486         shadowing exisiting variable op1.
3487
3488 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
3489
3490         PR target/37179
3491         * config/i386/driver-i386.c (processor_signatures): New enum.
3492         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
3493         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
3494         processor signature to detect geode processor.
3495
3496 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
3497
3498         Revert:
3499
3500         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
3501
3502         * optabs.c (prepare_cmp_insn): Temporarily disable test that
3503         causes spurious differences between trunk and cond-optab branch.
3504
3505 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
3506
3507         * dojump.c (compare_from_rtx): Delete.
3508         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
3509         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
3510         if the comparison does not satisfy the predicate; test predicates for
3511         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
3512         further if one existing pattern fails.
3513         * expr.h (compare_from_rtx): Delete.
3514         (prepare_operand): Declare it.
3515         * optabs.c: Change "lib call" to "libcall" throughout.
3516         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
3517         HAVE_conditional_trap, emit_cmp_insn): Delete.
3518         (can_compare_p): Delete cmp_optab case.
3519         (prepare_float_lib_cmp): Return an rtx and a machine mode.
3520         Accept other parameters by value.
3521         (prepare_operand): Make non-static.
3522         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
3523         other parameters by value.  Try to widen operands here based on
3524         an optab_methods argument and looking at cbranch_optab.
3525         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
3526         loop.  Use cbranch_optab directly.
3527         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
3528         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
3529         assertion.
3530         (emit_conditional_move, emit_conditional_add): Inline what's needed
3531         of compare_from_rtx, using new prepare_cmp_insn for the rest.
3532         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
3533         with COMPARE.  Move cmov_optab and cstore_optab above
3534         with cbranch_optab, move cmp_optab down with ucmp_optab,
3535         remove tst_otpab.  Do not initialize trap_rtx.
3536         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
3537         for trap code.  Do not check HAVE_conditional_trap.  Use
3538         prepare_cmp_insn.  Accept no predicate for operand 3.
3539         * optabs.h (OTI_cmp): Mark as used only for libcalls.
3540         (OTI_ctrap, ctrap_optab): New.
3541         (tst_optab): Delete.
3542         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
3543         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
3544         with lookup of ctrap_optab.
3545         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
3546         Delete.
3547         (ctrap_optab): New.
3548
3549         * combine.c (combine_simplify_rtx, simplify_set): Do not
3550         special case comparing against zero for cc0 machines.
3551         * simplify-rtx.c (simplify_binary_operation_1): Never remove
3552         COMPARE on cc0 machines.
3553         (simplify_relational_operation): Return a new expression when
3554         a COMPARE could be removed.
3555         * final.c (final_scan_insn): Compare cc_status values
3556         against LHS of a (compare FOO (const_int 0)) cc0 source.
3557         Also check if cc_status.value is the full compare.
3558
3559         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
3560         (cstoreMM4): Document.
3561         (conditional_trap): Document ctrapMM4 instead.
3562         (sync_compare_and_swapMM): Refer to cbranchcc4.
3563         (Dependent Patterns): Eliminate obsolete information referring to
3564         the old jump optimization phase.
3565         (Canonicalization): Include cbranchcc4 case, omit canonicalization
3566         of compares with 0 on cc0 machines.
3567         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
3568         avoiding references to cc0.  Remove text about storing operands
3569         in cmpMM.
3570         * doc/tm.texi (Condition Codes): Include blurb on different
3571         condition code representations, separate into subsections for
3572         CC0, MODE_CC and conditional execution.
3573
3574         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
3575         alpha_emit_setcc): Accept operands and a machine mode.
3576         * config/alpha/alpha.c (alpha_emit_conditional_branch):
3577         Get code/op0/op1 from operands, use machine mode argument
3578         instead of alpha_compare.fp_p.  Emit the branch here.
3579         (alpha_emit_setcc): Likewise, and return boolean.
3580         (alpha_emit_conditional_move): Likewise.  Assert that
3581         cmp_op_mode == cmp_mode, and simplify accordingly.
3582         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
3583         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
3584         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
3585         Delete.
3586         (stack probe test): Use cbranchdi4.
3587         * config/alpha/predicates.md (alpha_cbranch_operator): New.
3588
3589         * config/arc/arc.c (gen_compare_reg): Do not emit cmp. 
3590         * config/arc/arc.h (movsicc, movsfcc): Use it.
3591         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
3592         (cbranchsi4, cstoresi4): New.
3593         (cmpsi, bCC and sCC expanders): Remove. 
3594
3595         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
3596         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
3597         * config/arm/predicates.md (arm_comparison_operator): Only include
3598         floating-point operators if there is a hardware floating-point unit.
3599         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
3600         deferring to cbranch_cc and cstore_cc respectively.
3601         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
3602         cbranch_cc, cstore_cc): New.
3603         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
3604         arm_compare_op1.
3605         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
3606
3607         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
3608         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
3609         as an argument.
3610         (adjust_insn_length): Adjust calls.
3611         (avr_reorg): Handle (compare (foo) (const_int 0)).
3612         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
3613         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
3614         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
3615         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
3616         (bCC): Remove.
3617         (cbranchqi4, cbranchhi4, cbranchsi4): New.
3618         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
3619
3620         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
3621         (cbranchsi4, cstorebi4, cstoresi4): New.
3622         (movbisi): This insn is duplicate, split it to zero_extend.
3623         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
3624         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
3625         (bfin_optimize_loop): Use cbranch expander.
3626         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
3627         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
3628         (bfin_bimode_comparison_operator): ... this.
3629         (bfin_direct_comparison_operator): New.
3630  
3631         * config/cris/cris.c (cris_normal_notice_update_cc): Look
3632         inside (compare FOO (const_int 0)).
3633         (cris_rtx_costs): Handle ZERO_EXTRACT.
3634         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
3635         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
3636         (*tstdi_v32): Delete.
3637         (*cmpdi_non_v32): Add M alternative for operand 1.
3638         (cmpsi, cmp<mode>): Make private.
3639         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
3640         with COMPARE.
3641         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
3642
3643         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
3644         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
3645         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
3646         (cc_reg_operand): New.
3647         (any_cond): Delete.
3648         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
3649         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
3650         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
3651         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
3652         crx_expand_scond): Delete.
3653
3654         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
3655         (cbranchsi4): New.
3656         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
3657         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
3658
3659         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
3660         cstoresi4, cstoresf4, cstoredf4): New.
3661         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
3662         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
3663         Receive the entire operands array.
3664         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
3665         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
3666         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
3667         Get test/op0/op1 from the operands array.
3668         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
3669
3670         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
3671         (h8300_expand_store): New.
3672         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
3673         (const_int 0)).
3674         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
3675         (h8300_expand_store): New.
3676         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
3677         or do not try to produce (set (cc0) REG).
3678         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
3679         change a compare into a move to a scratch register.  Disable some
3680         peepholes when comparing with zero.
3681         (tstsi, tsthi, tstsi, cmpqi): Make private.
3682         (cmphi): Delete.
3683         (bCC, sCC): Delete.
3684         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
3685         cstoresi4): New.
3686
3687         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
3688         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
3689         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
3690         (ix86_emit_i387_log1p): Use cbranchxf2.
3691         (ix86_expand_setcc): Return void.
3692         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
3693         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
3694         cmp<MODEF>, cmpcc): Remove.
3695         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
3696         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
3697         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
3698         (sCC and bCC expanders): Remove.
3699         (stack_protect_test): Use cbranchcc4.
3700
3701         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
3702         Delete.
3703         (ia64_expand_compare): Accept three rtx by reference and return void.
3704         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
3705         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
3706         from *expr.  Update *expr with the BImode comparison to do.
3707         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
3708         cmptf, bCC, sCC, conditional_trap): Delete.
3709         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4, 
3710         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
3711         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
3712         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
3713         * config/ia64/predicates.md (ia64_cbranch_operator): New.
3714
3715         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
3716         type of last argument.
3717         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
3718         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
3719         use machine mode argument instead of branch_type.  Remove dead
3720         code for floating-point comparisons.
3721         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
3722         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
3723         Remove.
3724         (cbranchsi4, cstoresi4): New.
3725         * config/iq2000/predicates.md (reg_or_const_operand): New.
3726
3727         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
3728         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
3729         (b<code>_op): Rewrite to...
3730         (bcc_op): ... this, using match_operator.
3731         (s<code>_op): Rewrite to...
3732         (scc_op): ... this, using match_operator.
3733         (s<code>_24_op): Rewrite to...
3734         (scc_op_24): ... this, using match_operator.
3735         (s<code>_<mode>): Rewrite to...
3736         (cstore<mode>4): ... this, using match_operator.
3737         (s<code>_<mode>_24): Rewrite to...
3738         (cstore<mode>4_24): ... this, using match_operator.
3739         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
3740         m32c_unpend_compare, m32c_expand_scc): Delete.
3741         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
3742         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
3743         (m32c_expand_movcc): Change NE to EQ if necessary.
3744         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
3745
3746         * config/m32r/m32r-protos.h (gen_cond_store): New.
3747         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
3748         (gen_cond_store): New, from sCC patterns.
3749         (m32r_expand_block_move): Use cbranchsi4.
3750         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
3751         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
3752         (cbranchsi4, cstoresi4): New.
3753         
3754         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
3755         Delete.
3756         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
3757         (m68hc11_notice_update_cc): Look into a compare with 0.
3758         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
3759         Delete.
3760         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
3761         cmphi, cmpqi, bCC): Delete.
3762         (cbranchsi4, cbranchhi4, cbranchqi4): New.
3763         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
3764         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
3765         sets with COMPARE.
3766
3767         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
3768         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
3769         * config/m68k/constraints.md (H): New.
3770         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
3771         the define_insn below.
3772         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
3773         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
3774         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
3775         patterns): Wrap RHS with COMPARE.
3776         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
3777         (*cmpdi_internal): Name this pattern.
3778         (cmpdi): Change to define_insn.
3779         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
3780         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
3781         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
3782         predicate.
3783         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
3784         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
3785         (conditional_trap): Change to...
3786         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
3787         (*conditional_trap): Use the ordered_comparison_operator and
3788         const1_operand predicates.
3789         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
3790         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
3791         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
3792         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
3793
3794         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
3795         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
3796         (mcore_gen_compare): New. 
3797         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
3798         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
3799         (mcore_gen_compare): ... this.
3800         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
3801         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
3802         (stack probe pattern): Use cbranchsi4.
3803
3804         * config/mips/predicates.md (mips_cstore_operator): New.
3805         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
3806         * config/mips/mips.md (any_cond): Delete.
3807         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
3808         always succeed.
3809         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
3810         fixuns_truncsfdi2): Use cbranch patterns.
3811         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete. 
3812         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
3813         Adjust call to mips_expand_conditional_branch.
3814         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
3815         cstore<GPR:mode>4.
3816         * config/mips/mips-protos.h (mips_expand_conditional_branch,
3817         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
3818         * config/mips/mips.c (cmp_operands): Delete.
3819         (mips_emit_compare): Get comparison operands from *op0/*op1.
3820         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
3821         that it succeeds.  Use op0/op1 instead of cmp_operands.
3822         (mips_expand_conditional_branch, mips_expand_conditional_move,
3823         mips_expand_conditional_trap): Likewise.
3824         (mips_block_move_loop): Use cbranch patterns. 
3825         * config/mips/mips.h (cmp_operands): Delete.
3826
3827         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
3828         (mmix_gen_compare_reg): Just return a register in the right CC mode.
3829         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
3830         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
3831         (*cmpcc_folded): Rename to...
3832         (*cmpdi_folded): this.
3833         (*cmpcc): Rename to...
3834         (*cmps): ... this.
3835         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
3836         (bCC): Remove.
3837         (cbranchdi4): New.
3838         (cbranchdf4): New.  Handle invalid comparisons here.
3839         * config/mmix/predicates.md (float_comparison_operator): New.
3840
3841         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
3842         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
3843         * config/mn10300/mn10300.md (tst): Delete.
3844         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
3845         Name these patterns and wrap RHS in a compare.
3846         (*cmpsi): Make this pattern private.  Include tst.
3847         (*cmpsf): Make this pattern private.
3848         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
3849         (compare with zero peepholes): Likewise.
3850         (bCC): Remove.
3851         (cbranchsi4, cbranchsf4): New.
3852         (casesi): Use cbranchsi4.
3853
3854         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
3855         hppa_branch_type): Delete.
3856         (return_addr_rtx): Use cbranchsi4.
3857         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
3858         Emit CCFPmode comparison here.
3859         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
3860         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
3861         hppa_branch_type): Delete.
3862         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
3863         (movsicc, movdicc): Remove references to hppa_compare_op0,
3864         hppa_compare_op1 and compare_from_rtx.
3865         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
3866         (casesi): Use cbranchsi4.
3867
3868         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
3869         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
3870         * config/pdp11/pdp11.md (register_or_const0_operand): New.
3871         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
3872         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
3873         (bCC): Delete.
3874         (cbranchdf4, cbranchhi4, cbranchqi4): New.
3875         (*branch, *branch_inverted): New.
3876
3877         * config/picochip/picochip.md (cbranchhi4): Use
3878         ordered_comparison_operator.
3879         (cmphi, bCC): Remove.
3880
3881         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
3882         (trap_comparison_operator): Delete.
3883         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
3884         rs6000_emit_cbranch): Accept mode and operands.
3885         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
3886         rs6000_compare_fp_p): Delete.   
3887         (rs6000_generate_compare): Accept mode and comparison.  Extract code
3888         and op0/op1 from there.  Replace references to rs6000_compare_op0
3889         and rs6000_compare_op1.
3890         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
3891         extract result from passed operands.
3892         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
3893         extract loc from passed operands.
3894         (rs6000_emit_cmove): Likewise.
3895         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
3896         rs6000_compare_fp_p): Delete.
3897         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
3898         (cbranch<GPR>4, cbranch<FP>4): New.
3899         (cstore<mode>4): New.  Consolidate here all choices about when to use
3900         portable or specialized sCC sequences.
3901         (stack_protect_test): Use cbranchsi4.
3902         (conditional_trap): Replace with ctrap<GPR>4.
3903         (conditional trap insn): Replace trap_comparison_operator with
3904         ordered_comparison_operator. 
3905
3906         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
3907         (s390_emit_prologue): Use ctrap.
3908         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
3909         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
3910         New predicates replacing...
3911         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
3912         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
3913         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
3914         (add<mode>cc): Do not use s390_compare_op0/op1.
3915         (s<code>): Change to...
3916         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
3917         (seq): Change to...
3918         (cstorecc4): ... this.  Handle EQ or NE equally.
3919         (*sne): Un-privatize for use in cstorecc4.
3920         (b<code>): Change to...
3921         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
3922         (conditional_trap): Replace with...
3923         (ctrap<GPR>4, ctrap<FP>4): ... these.
3924         (stack_protect): Use cbranchcc4.
3925
3926         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
3927         * config/score/score-protos.h (score_gen_cmp): Delete.
3928         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
3929         (score_block_move-loop): Use cbranchsi4.
3930         * config/score/score.md (cbranchsi4): New.
3931         (cmpsi, bCC): Delete.
3932         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
3933         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
3934         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
3935         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
3936         * config/score/score3.h (score3_gen_cmp): Delete.
3937         * config/score/score7.h (score7_gen_cmp): Delete.
3938
3939         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
3940         (sh_emit_scc_to_t): ... this.  Return void.
3941         (from_compare): Rename to...
3942         (sh_emit_compare_and_branch): ... this.
3943         (sh_emit_compare_and_set): New.
3944         (sh_expand_t_scc): Accept operands.
3945         * config/sh/predicates.md (sh_float_comparison_operator): New.
3946         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
3947         (prepare_scc_operands): Rename to...
3948         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
3949         arguments.
3950         (sh_emit_cheap_store_flag): New.
3951         (sh_emit_set_t_insn): New.
3952         (from_compare): Rename to...
3953         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
3954         handling of TARGET_SH2E floating point to avoid recursive call.
3955         Generate branch here.
3956         (sh_emit_compare_and_set): New.
3957         (sh_expand_t_scc): Get op0/op1 from arguments.
3958         (sh_emit_cheap_store_flag): New.
3959         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
3960         cases.
3961         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
3962         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
3963         (movsicc, movdicc): Do nothing when it recreated operands from
3964         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
3965         prepare_scc_operands (now sh_emit_scc_to_t).
3966         (udivdi3): Use cstoresi4.
3967         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
3968         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
3969         (cbranchint4_media, cbranchfp4_media): New.
3970         (casesi): Use cbranchdi4.
3971         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
3972         Delete.
3973         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
3974         (movnegt): Remove second operand.
3975         (cbranchsf4, cbranchdf4): New.
3976         (stack_protect): Use cbranchdi4/cbranchsi4.
3977
3978         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
3979         (gen_compare_reg): Accept comparison, extract part of it to...
3980         (gen_compare_reg_1): ... this. 
3981         (gen_compare_operator): Delete.
3982         (gen_v9_scc): Accept separate destination, comparison code and arms.
3983         Do not use sparc_compare_op0/sparc_compare_op1.
3984         (emit_scc_insn, emit_conditional_branch_insn): New.
3985         (emit_v9_brxx): Make static.  Remove useless assertion.
3986         (sparc_emit_float_lib_cmp): Return RTL instead of calling
3987         emit_cmp_insn.
3988         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
3989         * config/sparc/sparc-protos.h (gen_compare_reg,
3990         sparc_emit_float_lib_cmp): Adjust prototype.
3991         (emit_scc_insn, emit_conditional_branch_insn): New.
3992         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
3993         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
3994         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
3995         iterators to the top.
3996         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
3997         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
3998         snedi_special_trunc): Delete.
3999         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
4000         and snedi_special_trunc.
4001         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
4002         cbranchdi4, cbranch<F:mode>4): New.
4003         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
4004         here.  Use gen_compare_reg instead of gen_compare_operator.
4005         (conditional_trap): Replace with...
4006         (ctrapsi4, ctrapdi4): ... this.
4007         (stack_protect_test): Use cbranchcc4.
4008
4009         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
4010         argument to rtx.
4011         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove. 
4012         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
4013         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
4014         from operands[0] or operands[3] depending on is_set.
4015         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
4016         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
4017         cmpdf, bCC), sCC: Remove.
4018         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4, 
4019         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
4020         cstoredf4): New.
4021         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
4022         spu_emit_branch_or_set.
4023
4024         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
4025         Add two arguments.
4026         * config/stormy16/stormy16.h (xstormy16_compare_op0,
4027         xstormy16_compare_op1): Delete.
4028         * config/stormy16/stormy16.c (xstormy16_compare_op0,
4029         xstormy16_compare_op1): Delete. 
4030         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
4031         Adjust calls.
4032         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
4033         (cmphi, cmpsi, bCC): Remove.
4034
4035         * config/v850/v850.md (tstsi, cmpsi): Fold into...
4036         (*cmpsi): ... this one.
4037         (cbranchsi4, cstoresi4): New.
4038         (bCC expanders): Delete.
4039         (sCC insns): Fold into...
4040         (*setcc): ... this one.
4041         (casesi): Do not use gen_cmpsi and gen_bgtu. 
4042         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
4043         (movsicc): Simplify.
4044         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
4045
4046         * config/vax/vax-protos.h (cond_name): New.
4047         (vax_output_conditional_branch): Remove.
4048         * config/vax/vax.c (cond_name): New.
4049         (vax_output_conditional_branch): Remove.
4050         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
4051         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
4052         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
4053         (bit<VAXint>): Wrap source with (compare).
4054         (b<code> and following unnamed pattern): Rename to *branch and
4055         *branch_reversed.  Change macroization to match_operator.
4056         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
4057
4058         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
4059         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
4060         Change last argument to machine_mode.
4061         (xtensa_expand_scc): Add machine_mode argument.
4062         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
4063         (gen_conditional_move, xtensa_expand_conditional_branch,
4064         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
4065         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
4066         Adjust operand numbers.
4067         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
4068         Delete.
4069         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
4070         (cmpsi, cmpsf, b<code>, s<code>): Delete.
4071         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
4072
4073 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
4074
4075         * optabs.c (prepare_cmp_insn): Temporarily disable test that
4076         causes spurious differences between trunk and cond-optab branch.
4077
4078 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
4079
4080         PR target/37137
4081         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
4082
4083 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
4084
4085         * tree.c (iterative_hash_pointer): Delete.
4086         (iterative_hash_expr): Short-circuit handling of NULL pointer.
4087         Hash UIDs and versions of SSA names.  Don't special-case built-in
4088         function declarations.
4089
4090 2009-05-11  Ian Lance Taylor  <iant@google.com>
4091
4092         PR bootstrap/40103
4093         * graphite.c: Force -Wc++-compat to only be a warning before
4094         #including "cloog/cloog.h".
4095
4096 2009-05-11  Martin Jambor  <mjambor@suse.cz>
4097
4098         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
4099         
4100 2009-05-11  Jan Hubicka  <jh@suse.cz>
4101
4102         * tree-ssa-loop-ivcanon.c: Include target.h
4103         (struct loop_size): new structure.
4104         (constant_after_peeling): New predicate.
4105         (tree_estimate_loop_size): New function.
4106         (estimated_unrolled_size): Rewrite for new estimates.
4107         (try_unroll_loop_completely): Use new estimates.
4108         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
4109
4110 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4111
4112         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
4113         libcpp interface change.
4114         (spu_macro_to_expand): Likewise.
4115
4116 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
4117
4118         PR tree-optimization/40026
4119         * gimplify.c (gimplify_init_constructor): Change initial conditional
4120         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
4121         optimize_compound_literals_in_ctor.
4122
4123 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
4124
4125         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
4126         New devices.
4127         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
4128
4129 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
4130
4131         * tree-vect-data-refs.c (vect_analyze_group_access): Use
4132         HOST_WIDE_INT for gap.
4133
4134 2009-05-11  Ira Rosen  <irar@il.ibm.com>
4135
4136         PR tree-optimization/40074
4137         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
4138         account in group size and step comparison.
4139
4140 2009-05-11  Richard Guenther  <rguenther@suse.de>
4141
4142         * passes.c (init_optimization_passes): Strip now incorrect comment.
4143         (execute_function_todo): Do not set PROP_alias.
4144         * tree-pass.h (PROP_alias): Remove.
4145         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
4146         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
4147         * tree-nrv.c (pass_return_slot): Likewise.
4148         * tree-object-size.c (pass_object_sizes): Likewise.
4149         * tree-ssa-dom.c (pass_dominator): Likewise.
4150         (pass_phi_only_cprop): Likewise.
4151         * tree-ssa-dse.c (pass_dse): Likewise.
4152         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
4153         (pass_cselim): Likewise.
4154         * tree-ssa-pre.c (pass_pre): Likewise.
4155         (pass_fre): Likewise.
4156         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
4157         * tree-ssa-sink.c (pass_sink_code): Likewise.
4158         * tree-stdarg.c (pass_stdarg): Likewise.
4159         * tree-tailcall.c (pass_tail_calls): Likewise.
4160         * tree-vrp.c (pass_vrp): Likewise.
4161
4162 2009-05-10  Ian Lance Taylor  <iant@google.com>
4163
4164         * basic-block.h (enum profile_status): Break out of struct
4165         control_flow_graph.
4166         * cgraph.h (struct inline_summary): Break out of struct
4167         cgraph_local_info.
4168         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
4169         of struct cgraph_order_sort.
4170         * combine.c (enum undo_kind): New enum, broken out of struct undo.
4171         * cse.c (struct branch_path): Break out of struct
4172         cse_basic_block_data.
4173         * except.h (enum eh_region_type): Break out of struct eh_region.
4174         * gcc.c (enum add_del): Break out of struct modify_target.
4175         * genrecog.c (enum decision_type): Break out of struct decision_test.
4176         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
4177         ggc_pch_data.
4178         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
4179         * regmove.c (enum match_use): New enum, broken out of struct match.
4180         * sched-int.h (enum post_call_group): New enum, broken out of
4181         struct deps.
4182         (struct deps_reg): Break out of struct deps.
4183         * target.h (struct asm_int_op): Break out of struct gcc_target.
4184         * tree-eh.c (struct goto_queue_node): Break out of struct
4185         leh_tf_state.
4186         * tree-inline.h (enum copy_body_cge_which): Break out of
4187         copy_body_data.
4188         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
4189
4190         * c-decl.c (in_struct, struct_types): New static variables.
4191         (pushtag): Add loc parameter.  Change all callers.
4192         (lookup_tag): Add ploc parameter.  Change all callers.
4193         (check_compound_literal_type): New function.
4194         (parser_xref_tag): Add loc parameter.  Change all callers.  If
4195         -Wc++-compat, warn about struct/union/enum types defined within a
4196         struct or union.
4197         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
4198         and loc parameters.  Change all callers.  Change error calls to
4199         error_at, using loc.  For a redefinition, if the location of the
4200         original definition is known, report it.  Set in_struct and
4201         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
4202         (finish_struct): Add new parameters enclosing_in_struct and
4203         enclosing_struct_types.  Change all callers.  Set
4204         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
4205         in the struct.  If in a struct, add this struct to struct_types.
4206         (start_enum): Add loc parameter.  Change all callers.  Use
4207         error_at for errors, using loc.  For a redefinition, if the
4208         location of the original definition is known, report it.  If in a
4209         struct, add this enum type to struct_types.  If -Wc++-compat warn
4210         if in sizeof, typeof, or alignof.
4211         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
4212         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
4213         (c_parser_enum_specifier): Get enum location for start_enum.
4214         (c_parser_struct_or_union_specifier): Get struct location for
4215         start_struct.  Save in_struct and struct_types status between
4216         start_struct and finish_struct.
4217         (c_parser_cast_expression): Get location of cast.
4218         (c_parser_alignof_expression): Get location of type.
4219         (c_parser_postfix_expression): Likewise.
4220         (c_parser_postfix_expression_after_paren_type): Add type_loc
4221         parameter.  Change all callers.  Call check_compound_literal_type.
4222         Use type_loc for error about variable size type.
4223         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
4224         of an enum constant from an enum type defined in a struct or union.
4225         (c_cast_expr): Add loc parameter.  Change all callers.  If
4226         -Wc++-compat, warn about defining a type in a cast.
4227         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
4228         (start_enum, start_struct, finish_struct): Update declarations.
4229         (parser_xref_tag, c_cast_expr): Update declarations.
4230         (check_compound_literal_type): Declare.
4231
4232 2009-05-11  Ben Elliston  <bje@au.ibm.com>
4233
4234         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
4235         for recent libcpp interface change.
4236         (rs6000_macro_to_expand): Likewise.
4237
4238 2009-05-10  Michael Matz  <matz@suse.de>
4239
4240         PR target/40031
4241         * config/arm/arm.c (require_pic_register): Emit on entry edge,
4242         not at entry of function.
4243
4244 2009-05-10  Richard Guenther  <rguenther@suse.de>
4245
4246         PR tree-optimization/40081
4247         Revert
4248         * tree-sra.c (instantiate_element): Instantiate scalar replacements
4249         using the main variant of the element type.  Do not fiddle with
4250         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
4251
4252         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
4253         structs with volatile fields.
4254
4255 2009-05-10  Jan Hubicka  <jh@suse.cz>
4256
4257         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
4258         (estimate_move_cost): Assert that it does not get called for
4259         VOID_TYPE_P.
4260         (estimate_num_insns): Skip VOID types in argument handling.
4261         (optimize_inline_calls): Delete unreachable blocks and verify that
4262         callgraph is valid.
4263
4264 2009-05-10  Jan Hubicka  <jh@suse.cz>
4265
4266         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
4267         * cgraph.c (cgraph_mark_address_taken_node): New function.
4268         (dump_cgraph_node): Dump new flag.
4269         * cgraph.h (struct cgraph_node): Add address_taken.
4270         (cgraph_mark_address_taken_node): New function.
4271         * ipa.c (cgraph_postorder): Prioritize functions with address taken
4272         since new direct calls can be born.
4273
4274 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
4275
4276         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
4277         tok->val.node.node.
4278
4279 2009-05-10  Jan Hubicka  <jh@suse.cz>
4280
4281         PR middle-end/40084
4282         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
4283         argument; rewrite.
4284         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
4285         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
4286         * tree-inline.c (copy_bb): Set frequency correctly.
4287         (fold_marked_statements): Update call to
4288         cgraph_update_edges_for_call_stmt.
4289
4290 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
4291
4292         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
4293         identifiers in diagnostics.
4294         * config/arm/arm.c (arm_handle_fndecl_attribute,
4295         arm_handle_isr_attribute): Likewise.
4296         * config/avr/avr.c (avr_handle_progmem_attribute,
4297         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
4298         * config/bfin/bfin.c (handle_int_attribute,
4299         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
4300         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
4301         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
4302         Likewise.
4303         * config/darwin.c (darwin_handle_kext_attribute,
4304         darwin_handle_weak_import_attribute): Likewise.
4305         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
4306         h8300_handle_eightbit_data_attribute,
4307         h8300_handle_tiny_data_attribute): Likewise.
4308         * config/i386/i386.c (ix86_handle_cconv_attribute,
4309         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
4310         * config/i386/winnt.c (ix86_handle_shared_attribute,
4311         ix86_handle_selectany_attribute): Likewise.
4312         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
4313         * config/m32c/m32c.c (function_vector_handler): Likewise.
4314         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
4315         m68hc11_handle_fntype_attribute): Likewise.
4316         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
4317         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
4318         * config/mips/mips.c (mips_insert_attributes,
4319         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
4320         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
4321         rs6000_handle_struct_attribute): Likewise.
4322         * config/sh/sh.c (sh_insert_attributes,
4323         sh_handle_resbank_handler_attribute,
4324         sh_handle_interrupt_handler_attribute,
4325         sh2a_handle_function_vector_handler_attribute,
4326         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
4327         Likewise.
4328         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
4329         * config/spu/spu.c (spu_handle_fndecl_attribute,
4330         spu_handle_vector_attribute): Likewise.
4331         * config/stormy16/stormy16.c
4332         (xstormy16_handle_interrupt_attribute): Likewise.
4333         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
4334         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
4335
4336 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
4337
4338         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
4339         (pp_translate_identifiers): New.
4340         (pp_identifier): Only conditionally translate identifier to locale
4341         character set.
4342         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
4343         (pp_base_tree_identifier): Only conditionally translate identifier
4344         to locale character set.
4345         * c-pretty-print.c (M_): Define.
4346         (pp_c_type_specifier, pp_c_primary_expression): Mark English
4347         fragments for conditional translation with M_.
4348         * tree-pretty-print.c (maybe_init_pretty_print): Disable
4349         identifier translation.
4350
4351 2009-05-10  Richard Guenther  <rguenther@suse.de>
4352
4353         PR tree-optimization/40081
4354         * tree-sra.c (instantiate_element): Instantiate scalar replacements
4355         using the main variant of the element type.  Do not fiddle with
4356         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
4357
4358 2009-05-09  Jan Hubicka  <jh@suse.cz>
4359
4360         PR middle-end/40080
4361         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
4362         indirect calls; verify cgraph afterwards.
4363
4364 2009-05-09  Jan Hubicka  <jh@suse.cz>
4365
4366         PR bootstrap/40082
4367         * ipa.c (update_inlined_to_pointer): New function.
4368         (cgraph_remove_unreachable_nodes): Use it.
4369
4370 2009-05-09  Jan Hubicka  <jh@suse.cz>
4371
4372         * tree-eh.c (struct leh_state): Remove prev_try.
4373         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
4374         not track prev_try.
4375         * except.c (gen_eh_region_cleanup, duplicate_eh_regions, 
4376         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
4377         remove_eh_handler_and_replace, foreach_reachable_handler,
4378         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
4379         * except.h (struct eh_region): Remove eh_region_u_cleanup.
4380         (gen_eh_region_cleanup): Update prototype.
4381
4382 2009-05-09  Jan Hubicka  <jh@suse.cz>
4383
4384         PR middle-end/40043
4385         * except.c (copy_eh_region): Always set prev_try.
4386         (redirect_eh_edge_to_label): Find outer try.
4387         (foreach_reachable_handler): When looking for prev try
4388         handle case where previous try is not going to be taken.
4389
4390 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
4391
4392         PR tree-optimization/40049
4393         * tree-vect-stmts.c (vectorizable_operation): If the machine has
4394         only vector/vector shifts, convert the type of the constant to the
4395         appropriate type to avoid building incorrect trees, which
4396         eventually have problems with garbage collection.
4397
4398 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
4399
4400         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
4401         -1 for complex floating-point types if honoring signed zeros.
4402
4403 2009-05-08  Jan Hubicka  <jh@suse.cz>
4404
4405         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
4406         argument; handle correctly when profile is absent.
4407         (build_cgraph_edges): Update.
4408         (rebuild_cgraph_edges): Update.
4409         * cgraph.c: Do not include varray.h.
4410         (cgraph_set_call_stmt_including_clones): New function.
4411         (cgraph_create_edge_including_clones): Likewise
4412         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
4413         (cgraph_update_edges_for_call_stmt): Handle clones.
4414         (cgraph_remove_node): Handle clone tree.
4415         (cgraph_remove_node_and_inline_clones): New function.
4416         (dump_cgraph_node): Dump clone tree.
4417         (cgraph_clone_node): Handle clone tree.
4418         (clone_function_name): Bring here from tree-inline.c.
4419         (cgraph_create_virtual_clone): New function.
4420         * cgraph.h (ipa_replace_map): Move here from ipa.h.
4421         (cgraph_clone_info): New function.
4422         (strut cgraph_node): Add clone_info and new clone tree pointers.
4423         (cgraph_remove_node_and_inline_clones,
4424         cgraph_set_call_stmt_including_clones,
4425         cgraph_create_edge_including_clones,
4426         cgraph_create_virtual_clone): Declare.
4427         (cgraph_function_versioning): Use VEC argument.
4428         (compute_call_stmt_bb_frequency): Update prototype.
4429         (cgraph_materialize_all_clones): New function.
4430         * ipa-cp.c (ipcp_update_cloned_node): Remove.
4431         (ipcp_create_replace_map): Update to VECtors.
4432         (ipcp_update_callgraph): Use virtual clones.
4433         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
4434         (ipcp_update_profiling): Do not update local profiling.
4435         (ipcp_insert_stage): Use VECtors and virtual clones.
4436         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
4437         (clone_of_p): New function.
4438         (cgraph_preserve_function_body_p): Use clone tree.
4439         (cgraph_optimize): Materialize clones.
4440         (cgraph_function_versioning): Update for VECtors.
4441         (save_inline_function_body): Use clone tree.
4442         (cgraph_materialize_clone): New function.
4443         (cgraph_materialize_all_clones): Likewise.
4444         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
4445         * ipa.c: Include gimple.h.
4446         (cgraph_remove_unreachable_nodes): Use clone tree.
4447         * ipa-prop.c (ipa_note_param_call): Update call to
4448         compute_call_stmt_bb_frequencycall.
4449         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
4450         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
4451         (copy_bb): Handle updating of clone tree; add new edge when new call
4452         appears.
4453         (expand_call_inline): Be strict about every call having edge.
4454         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
4455         (delete_unreachable_blocks_update_callgraph): New function.
4456         (tree_function_versioning): Use VECtors; always remove unreachable
4457         blocks and fold conditionals.
4458         * tree-inline.h: Do not include varray.h.
4459         (tree_function_versioning): Remove.
4460         * Makefile.in (GTFILES): Remove tree-inline.c
4461         * passes.c (do_per_function): Do only functions having body.
4462         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
4463         tree.
4464
4465 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
4466             Andrew Morrow  <acm@google.com>
4467
4468         PR c/36892
4469         * c-common.c (c_common_attribute_table): Permit deprecated
4470         attribute to take an optional argument.
4471         (handle_deprecated_attribute): If the optional argument to
4472         __attribute__((deprecated)) is not a string ignore the attribute
4473         and emit a warning.
4474
4475         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
4476         * c-typeck.c (build_component_ref): Likewise.
4477         (build_external_ref): Likewise.
4478
4479         * toplev.c (warn_deprecated_use): Add an attribute argument.
4480         Emit the message associated with __attribute__((deprecated)).
4481
4482         * toplev.h (warn_deprecated_use): Updated.
4483
4484         * doc/extend.texi: Document new optional parameter to
4485         __attribute__((deprecated))
4486
4487 2009-05-08  Michael Eager <eager@eagercon.com>
4488
4489         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
4490         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
4491
4492 2009-05-08  Richard Guenther  <rguenther@suse.de>
4493
4494         PR tree-optimization/40062
4495         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
4496         Avoid exponential behavior.
4497
4498 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
4499
4500         PR rtl-optimization/33928
4501         PR 26854
4502         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
4503         process_uses, build_single_def_use_links): New.
4504         (update_df): Update use_def_ref.
4505         (forward_propagate_into): Use get_def_for_use instead of use-def
4506         chains.
4507         (fwprop_init): Call build_single_def_use_links and let it initialize
4508         dataflow.
4509         (fwprop_done): Free use_def_ref.
4510         (fwprop_addr): Eliminate duplicate call to df_set_flags.
4511         * df-problems.c (df_rd_simulate_artificial_defs_at_top, 
4512         df_rd_simulate_one_insn): New.
4513         (df_rd_bb_local_compute_process_def): Update head comment.
4514         (df_chain_create_bb): Use the new RD simulation functions.
4515         * df.h (df_rd_simulate_artificial_defs_at_top, 
4516         df_rd_simulate_one_insn): New.
4517         * opts.c (decode_options): Enable fwprop at -O1.
4518         * doc/invoke.texi (-fforward-propagate): Document this.
4519
4520 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
4521
4522         PR c/24581
4523         * c-typeck.c (build_binary_op): Handle arithmetic between one real
4524         and one complex operand specially.
4525         * tree-complex.c (some_nonzerop): Do not identify a real value as
4526         zero if flag_signed_zeros.
4527
4528 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
4529
4530         PR rtl-optimization/33928
4531         * loop-invariant.c (record_use): Fix && vs. || mishap.
4532
4533 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
4534
4535         PR rtl-optimization/33928
4536         * loop-invariant.c (struct use): Add addr_use_p.
4537         (struct def): Add n_addr_uses.
4538         (struct invariant): Add cheap_address.
4539         (create_new_invariant): Set cheap_address.
4540         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
4541         (record_uses): Pass df_ref to record_use.
4542         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
4543         used only as such.
4544
4545 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
4546
4547         * config/sh/sh.c: Do not include c-pragma.h.
4548
4549 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4550
4551         * config/spu/spu.c: Remove include of c-common.h.
4552
4553 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
4554
4555         PR c/39037
4556         * c-common.h (mark_valid_location_for_stdc_pragma,
4557         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
4558         clear_float_const_decimal64, float_const_decimal64_p): New.
4559         * c.opt (Wunsuffixed-float-constants): New.
4560         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
4561         unsuffixed float constant, handle new warning.
4562         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
4563         * c-decl.c (c_scope): New flag float_const_decimal64.
4564         (set_float_const_decimal64, clear_float_const_decimal64,
4565         float_const_decimal64_p): New.
4566         (push_scope): Set new flag.
4567         * c-parser.c (c_parser_translation_unit): Mark when it's valid
4568         to use STDC pragmas.
4569         (c_parser_external_declaration): Ditto.
4570         (c_parser_compound_statement_nostart): Ditto.
4571         * c-pragma.c (valid_location_for_stdc_pragma,
4572         mark_valid_location_for_stdc_pragma,
4573         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
4574         handle_pragma_float_const_decimal64): New.
4575         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
4576         * cp/semantics.c (valid_location_for_stdc_pragma_p,
4577         set_float_const_decimal64, clear_float_const_decimal64,
4578         float_const_decimal64_p): New dummy functions.
4579         * doc/extend.texi (Decimal Float): Remove statement that the
4580         pragma, and suffix for double constants, are not supported.
4581         * doc/invoke.texi (Warning Options): List new option.
4582         (-Wunsuffixed-float-constants): New.
4583
4584 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
4585
4586         * config/i386/i386.c: Do not include c-common.h.
4587
4588 2009-05-07  Mark Heffernan  <meheff@google.com>
4589
4590         * doc/invoke.texi (Debugging Options): Document change of debugging
4591         dump location.
4592         * opts.c (decode_options): Make dump_base_name relative to
4593         aux_base_name directory.
4594
4595 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
4596
4597         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
4598         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
4599
4600 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
4601
4602         * Makefile.in (install-plugin): Simplify a bit.
4603
4604 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
4605
4606         * Makefile.in (OBJS-common): Add regcprop.o.
4607         (regcprop.o): New.
4608         * timevar.def (TV_CPROP_REGISTERS): New.
4609         * regrename.c (regrename_optimize): Return 0.
4610         (rest_of_handle_regrename): Delete.
4611         (pass_rename_registers): Point to regrename_optimize.
4612         (struct value_data_entry, struct value_data, 
4613         kill_value_one_regno, kill_value_regno, kill_value,
4614         set_value_regno, init_value_data, kill_clobbered_value,
4615         kill_set_value, kill_autoinc_value, copy_value,
4616         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
4617         replace_oldest_value_reg, replace_oldest_value_addr,
4618         replace_oldest_value_mem, copyprop_hardreg_forward_1,
4619         debug_value_data, validate_value_data): Move...
4620         * regcprop.c: ... here.
4621         (rest_of_handle_cprop): Delete.
4622         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
4623
4624 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
4625
4626         PR middle-end/40057
4627         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
4628         GEN_INT for 1 << bitnum.
4629         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
4630         build_int_cst_type.
4631
4632 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
4633
4634         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
4635         Remove wrong description of "nand" operation.
4636
4637 2009-05-06  Richard Guenther  <rguenther@suse.de>
4638             Adam Nemet  <anemet@caviumnetworks.com>
4639
4640         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
4641         comment.  Add that if LHS is not a gimple register, then RHS1 has
4642         to be a single object (GIMPLE_SINGLE_RHS).
4643
4644 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
4645
4646         * expr.c (get_def_for_expr): Move it up in the file.
4647         (store_field): When expanding a bit-field store, look at the
4648         defining gimple stmt for the masking conversion.
4649
4650 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
4651
4652         PR middle-end/39986
4653         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
4654         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
4655         32-bit memcpy into long.
4656
4657 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
4658
4659         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
4660         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
4661         new_reg_loc_descr.
4662         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
4663         instead of appending DW_OP_deref*.
4664
4665 2009-05-06  Michael Matz  <matz@suse.de>
4666
4667         PR middle-end/40021
4668         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
4669         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
4670
4671 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
4672
4673         * Makefile.in (install-plugin): Fix srcdir handling.
4674
4675 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
4676
4677         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
4678         when processing for not_regs_needed bitmap.
4679         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
4680         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while 
4681         handling it for rhs. 
4682
4683 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
4684
4685         * config/i386/i386.md (unnamed inc/dec peephole): Use
4686         optimize_insn_for_size_p instead of optimize_size.
4687         * config/i386/predicates.md (incdec_operand): Likewise.
4688         (aligned_operand): Likewise.
4689         * config/i386/sse.md (divv8sf3): Likewise.
4690         (sqrtv8sf2): Likewise.
4691
4692 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
4693
4694         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
4695
4696         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
4697
4698 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
4699
4700         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
4701         ssemodesuffixf2c with avxmodesuffixf2c.
4702
4703 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
4704
4705         PR c/40032
4706         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
4707
4708 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
4709
4710         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
4711         (struct tree_base): Adjust spacing for 8 bit boundaries.
4712         (struct tree_decl_common): Add decl_by_reference_flag bit.
4713         (DECL_BY_REFERENCE): Adjust.
4714         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
4715         print DECL_BY_REFERENCE bit.
4716         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
4717         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
4718         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
4719         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
4720         unconditionally.
4721
4722         PR middle-end/39666
4723         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
4724         range of the type, but default label is missing, add it with one
4725         of the existing labels instead of adding a new label for it.
4726
4727 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
4728
4729         * dwarf.h: Remove.
4730
4731 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
4732
4733         * Makefile.in (enable_plugin, plugin_includedir): New.
4734         (install): Depend on install-plugin.
4735         (PLUGIN_HEADERS): New.
4736         (install-plugin): New.
4737         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
4738
4739 2009-05-05  Richard Guenther  <rguenther@suse.de>
4740
4741         PR tree-optimization/40022
4742         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
4743         the only vuse.
4744         (phivn_valid_p): Fix tuplification error, simplify.
4745         (phiprop_insert_phi): Add dumps.
4746         (propagate_with_phi): Simplify.
4747
4748 2009-05-05  Richard Guenther  <rguenther@suse.de>
4749
4750         PR middle-end/40023
4751         * builtins.c (gimplify_va_arg_expr): Properly build the address.
4752
4753 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
4754
4755         * tree.h (strip_float_extensions): Remove duplicate declaration.
4756         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
4757         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
4758         block_ultimate_origin): Rearrange the declarations line to match the
4759         comment that indicates the .c file which the functions are defined.
4760         (dwarf2out_*, set_decl_rtl): Add comment.
4761         (get_base_address): Adjust comment.
4762         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
4763         declarations line and add comment.
4764         (is_builtin_name): Add blank after function name, for clarity.
4765
4766 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
4767
4768         * attribs.c (decl_attributes): Use %qE for identifiers in
4769         diagnostics.
4770         * cgraphunit.c (verify_cgraph_node): Translate function names to
4771         locale character set in diagnostics.
4772         * coverage.c (get_coverage_counts): Use %qE for identifiers in
4773         diagnostics.
4774         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
4775         Document that functions are named in UTF-8.
4776         * expr.c (expand_expr_real_1): Translate function names to locale
4777         character set in diagnostics.
4778         * gimplify.c (omp_notice_variable, omp_is_private,
4779         gimplify_scan_omp_clauses): Use %qE for identifiers in
4780         diagnostics.
4781         * langhooks.c (lhd_print_error_function): Translate function names
4782         to locale character set.
4783         * langhooks.h (decl_printable_name): Document that return value is
4784         in internal character set.
4785         * stmt.c: Include pretty-print.h
4786         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
4787         diagnostics.
4788         (resolve_operand_name_1): Translate named operand name to locale
4789         character set.
4790         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
4791         diagnostics.
4792         * toplev.c (announce_function): Translate function names to locale
4793         character set.
4794         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
4795         (default_tree_printer): Use pp_identifier or translate identifiers
4796         to locale character set.  Mark "<anonymous>" for translation.
4797         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
4798         for identifiers in diagnostics.
4799         * tree.c (handle_dll_attribute): Use %qE for identifiers in
4800         diagnostics.
4801         * varasm.c (output_constructor): Use %qE for identifiers in
4802         diagnostics.
4803
4804 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
4805
4806         * configure.ac: use ` ` instead of $()
4807         * configure: Regenerate.
4808
4809 2009-05-05  Ben Elliston  <bje@au.ibm.com>
4810
4811         * config/pa/linux-atomic.c: Eliminate conditional include of
4812         errno.h on non-LP64 systems to simplify build requirements.
4813
4814 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
4815
4816         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
4817         diagnostics.
4818         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
4819         and pass value to identifier_to_locale.
4820         (warn_variable_length_array): Make name a tree.
4821         (grokdeclarator): Separate diagnostic texts for named and unnamed
4822         declarators.  Use %qE for named declarators.
4823         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
4824         diagnostics.
4825         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
4826         identifiers in diagnostics.
4827         * c-typeck.c (push_member_name, start_init): Pass identifiers to
4828         identifier_to_locale.  Mark "anonymous" strings for translation.
4829
4830 2009-05-04  Michael Eager <eager@eagercon.com>
4831
4832         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
4833         address for DImode/DFmode only if double-precision FP regs.
4834
4835 2009-05-04  Michael Eager <eager@eagercon.com>
4836
4837         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
4838         TARGET_SINGLE_FLOAT check.
4839
4840 2009-05-04  Michael Eager <eager@eagercon.com>
4841
4842         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
4843
4844 2009-05-04  Michael Eager <eager@eagercon.com>
4845
4846         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
4847         * config/rs6000/t-xilinx: New
4848
4849 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
4850
4851         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
4852         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
4853         * gcc/explow.c (memory_address): Use target hook.
4854         * gcc/targhooks.c (default_legitimize_address): New.
4855         * gcc/targhooks.h (default_legitimize_address): New.
4856         * gcc/target.h (legitimize_address): New.
4857         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
4858         (TARGET_INITIALIZER): Include it.
4859         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
4860
4861         * config/bfin/bfin-protos.h (legitimize_address): Remove.
4862         * config/bfin/bfin.c (legitimize_address): Remove.
4863         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
4864         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
4865         Remove.
4866         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
4867         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
4868
4869         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
4870         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
4871         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
4872         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
4873         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
4874         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
4875         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
4876         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
4877         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
4878         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
4879         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
4880         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
4881         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
4882         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
4883         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
4884         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
4885         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
4886         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
4887         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
4888         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
4889         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
4890         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
4891         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
4892
4893         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
4894         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
4895         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
4896         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
4897         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
4898         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
4899         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
4900         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
4901         (thumb_legitimize_address): Delete.
4902         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
4903         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
4904         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
4905         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
4906         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
4907         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
4908         Delete.
4909         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
4910         Delete.
4911
4912         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
4913         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
4914         * config/m32r/m32r.c (m32r_legitimize_address): New.
4915         * config/m68k/m68k.c (m68k_legitimize_address): New.
4916         * config/score/score.c (score_legitimize_address): Standardize.
4917         * config/score/score3.c (score3_legitimize_address): Standardize.
4918         * config/score/score3.h (score3_legitimize_address): Adjust.
4919         * config/score/score7.c (score7_legitimize_address): Standardize.
4920         * config/score/score7.h (score7_legitimize_address): Adjust.
4921         * config/sh/sh.c (sh_legitimize_address): New.
4922         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
4923
4924         * gcc/config/s390/s390.c (legitimize_address): Rename to...
4925         (s390_legitimize_address): ... this.
4926         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
4927         (sparc_legitimize_address): ... this.
4928         * gcc/config/i386/i386.c (legitimize_address): Rename to...
4929         (ix86_legitimize_address): ... this.
4930         * gcc/config/avr/avr.c (legitimize_address): Rename to...
4931         (avr_legitimize_address): ... this.
4932         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
4933         (mn10300_legitimize_address): ... this.
4934         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
4935         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
4936         (alpha_expand_mov): Adjust call.
4937
4938         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
4939         * config/spu/spu.c (spu_legitimize_address): Likewise.
4940         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
4941         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
4942
4943 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
4944
4945         * intl.c (locale_encoding, locale_utf8): New.
4946         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
4947         * intl.h (locale_encoding, locale_utf8): Declare.
4948         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
4949         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
4950         New.
4951         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
4952         argument.
4953         (pp_tree_identifier): Define to call pp_base_tree_identifier.
4954         (pp_base_tree_identifier): Declare as function.
4955         (identifier_to_locale): Declare.
4956         * Makefile.in (pretty-print.o): Update dependencies.
4957         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
4958
4959 2009-05-04  Richard Guenther  <rguenther@suse.de>
4960
4961         PR middle-end/40015
4962         * builtins.c (fold_builtin_memory_op): Do not decay to element
4963         type if the size matches the whole array.
4964
4965 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
4966
4967         * expmed.c (synth_mult): When trying out a shift, pass the result
4968         of a signed shift.
4969
4970 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
4971
4972         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
4973         (shiftsub1_cost): New.
4974         (init_expmed): Compute shiftsub1_cost.
4975         (synth_mult): Optimize multiplications by constants of the form
4976         -(2^^m-1) for some constant positive integer m.
4977
4978 2009-05-03  Richard Guenther  <rguenther@suse.de>
4979
4980         PR c/39983
4981         * c-typeck.c (array_to_pointer_conversion): Do not built
4982         ADDR_EXPRs of arrays of pointer-to-element type.
4983         * c-gimplify.c (c_gimplify_expr): Revert change fixing
4984         up wrong ADDR_EXPRs after-the-fact.
4985         * c-common.c (strict_aliasing_warning): Strip pointer
4986         conversions for obtaining the original type.
4987         * builtins.c (fold_builtin_memset): Handle array types.
4988         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
4989         and array types
4990
4991 2009-05-03  Richard Guenther  <rguenther@suse.de>
4992
4993         PR middle-end/23329
4994         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
4995         Do not lose casts from array types with unknown extent to array
4996         types with known extent.
4997         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
4998         alias set compatibility.
4999
5000 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5001
5002         * flags.h (extra_warnings): Delete.
5003         * toplev.c (process_options): Handle Wuninitialized here.
5004         * opts.c (extra_warnings): Delete.
5005         (set_Wextra): Delete.
5006         (common_handle_option): -Wextra can be handled automatically.
5007         * c-opts.c (c_common_handle_option): Delete obsolete code.
5008         (c_common_post_options): Simplify comment.
5009         * common.opt (W): Add Var.
5010         (Wextra): Add Var.
5011         (Wuninitialized): Initialize to -1.
5012
5013 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
5014             Richard Guenther  <rguenther@suse.de>
5015
5016         * expr.c (get_def_for_expr): New function.
5017         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
5018         SSA rather than trees.
5019         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
5020         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
5021         
5022 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
5023
5024         * c-common.c (reswords): Add _Imaginary.
5025         * c-common.c (enum rid): Add RID_IMAGINARY.
5026
5027 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
5028
5029         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
5030         Patch by Richard Guenther.
5031
5032 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
5033
5034         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
5035         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
5036         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
5037         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
5038         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
5039         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
5040         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
5041         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
5042         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
5043         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
5044         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
5045         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
5046         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
5047         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
5048         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
5049         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
5050         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
5051         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
5052
5053 2009-05-02  Richard Guenther  <rguenther@suse.de>
5054
5055         PR tree-optimization/39940
5056         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
5057         doing so.
5058
5059 2009-05-02  Richard Guenther  <rguenther@suse.de>
5060
5061         PR middle-end/40001
5062         * tree-ssa.c (execute_update_addresses_taken): Properly check
5063         if we can mark a variable DECL_GIMPLE_REG_P.
5064         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
5065         back to the end of the function.
5066         (is_gimple_reg_type): Remove complex type special casing.
5067         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
5068         if not optimizing.
5069
5070 2009-05-02  Ben Elliston  <bje@au.ibm.com>
5071
5072         * doc/collect2.texi (Collect2): Document search path behaviour
5073         when configured with --with-ld.
5074
5075 2009-05-02  Jan Hubicka  <jh@suse.cz>
5076
5077         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
5078         parameter; update callers.
5079         (coalesce_cost_edge): EH edges are costier because they needs
5080         splitting even if not critical and even more costier when there are
5081         multiple EH predecestors.
5082
5083 2009-05-02  Jan Hubicka  <jh@suse.cz>
5084
5085         * except.c (remove_eh_handler_and_replace): Handle updating after
5086         removing TRY blocks.
5087
5088 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
5089
5090         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
5091
5092 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
5093
5094         * varasm.c: Do not include c-pragma.h.
5095         * attribs.c: Do not incude c-common.h.
5096
5097 2009-05-01  Michael Matz  <matz@suse.de>
5098
5099         * calls.c (initialize_argument_information): Handle SSA names like
5100         decls with a non MEM_P DECL_RTL.
5101
5102 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
5103
5104         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
5105         * ipa-utils.c: Likewise.
5106         * ipa-type-escape.c: Likewise.
5107         * cgraphunit.c Do not include c-common.h.
5108         * ipa-pure-const.c: Likewise.
5109         * tree-if-conv.c: Likewise.
5110         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
5111         * ipa-struct-reorg.c: Likewise.
5112         * tree-nomudflap.c: Likewise.
5113         * tree-ssa-structalias.c: Likewise.
5114
5115 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
5116
5117         * store-motion.c: Many cleanups to make this pass a first-class
5118         citizen instead of an appendix to gcse load motion.  Add TODO list
5119         to make this pass faster/cleaner/better.
5120
5121         (struct ls_expr): Post gcse.c-split cleanups.
5122         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
5123         "stores" field to "avail_stores".
5124         (pre_ldst_mems): Rename to store_motion_mems.
5125         (pre_ldst_table): Rename to store_motion_mems_table.
5126         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
5127         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
5128         (ldst_entry): Rename to st_expr_entry, update users.
5129         (free_ldst_entry): Rename to free_st_expr_entry, update users.
5130         (free_ldst_mems): Rename to free_store_motion_mems, update users.
5131         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
5132         update caller.
5133         (first_ls_expr): Rename to first_st_expr, update users.
5134         (next_ls_expr): Rename to next_st_expr, update users.
5135         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
5136         fields properly for store motion instead of names inherited from load
5137         motion in gcse.c.
5138         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
5139         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
5140         are done with it.
5141
5142         (ae_kill): Rename to st_kill, update users.
5143         (ae_gen): Rename to st_avloc, update users.
5144         (transp): Rename to st_transp, update users.
5145         (pre_insert_map): Rename to st_insert_map, update users.
5146         (pre_delete_map): Rename to st_delete_map, update users.
5147         (insert_store, build_store_vectors, free_store_memory,
5148         one_store_motion_pass): Update for abovementioned changes.
5149
5150         (gcse_subst_count, gcse_create_count): Remove.
5151         (one_store_motion_pass): New statistics counters "n_stores_deleted"
5152         and "n_stores_created", local variables.
5153
5154         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
5155         use for_each_rtx.
5156
5157         (regvec, compute_store_table_current_insn): Remove.
5158         (reg_set_info, reg_clear_last_set): Remove.
5159         (compute_store_table): Use DF caches instead of local dataflow
5160         solvers.
5161
5162 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
5163
5164         * c-objc-common.c (c_tree_printer): Print identifiers with
5165         pp_identifier, not pp_string.  Mark "({anonymous})" for
5166         translation.
5167         * c-pretty-print.c (pp_c_ws_string): New.
5168         (pp_c_cv_qualifier, pp_c_type_specifier,
5169         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
5170         pp_c_storage_class_specifier, pp_c_function_specifier,
5171         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
5172         pp_c_primary_expression, pp_c_postfix_expression,
5173         pp_c_unary_expression, pp_c_shift_expression,
5174         pp_c_relational_expression, pp_c_equality_expression,
5175         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
5176         use pp_string and pp_c_ws_string in place of pp_identifier and
5177         pp_c_identifier for non-identifiers.  Mark English strings for
5178         translation.
5179         * c-pretty-print.h (pp_c_ws_string): Declare.
5180
5181 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
5182             Roland McGrath <roland@redhat.com>
5183
5184         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
5185         (ENABLE_LD_BUILDID): New configuration option.
5186         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
5187         (LINK_BUILDID_SPEC): New macro.
5188         (init_spec): If defined, prepend it between LINK_EH_SPEC and
5189         link_spec.
5190         * doc/install.texi: Document --enable-linker-build-id option.
5191         * configure: Rebuild.
5192         * config.in: Rebuild.
5193
5194 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
5195
5196         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
5197         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
5198         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
5199         MIPS_GP_SAVE_AREA_SIZE.
5200         * config/mips/mips.c (struct mips_frame_info): Update comment
5201         before arg_pointer_offset and hard_frame_pointer_offset.
5202         (mips_compute_frame_info): Update diagram before function: to
5203         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
5204         indicate the position of frame_pointer_rtx with -fstack-protector and
5205         to show args_size.  Don't allocate cprestore area for leaf functions
5206         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
5207         cprestore_size.
5208         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
5209
5210 2009-04-30  Michael Matz  <matz@suse.de>
5211
5212         PR tree-optimization/39955
5213         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
5214
5215 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
5216
5217         * ira.c (setup_cover_and_important_classes):  Use safe macro
5218         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
5219         directly.
5220         * genpreds.c (write_tm_preds_h):  Output suitable definition of
5221         REG_CLASS_FOR_CONSTRAINT.
5222
5223 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
5224
5225         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
5226         instead of an int.
5227         * bitmap.c (bitmap_descriptor): Likewise.
5228         * ggc-common.c (loc_descriptor): Likewise.
5229         * varray.c (varray_descriptor): Likewise.
5230         * vec.c (vec_descriptor): Likewise.
5231
5232 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
5233
5234         * Makefile.in (dce.o): Add $(EXCEPT_H).
5235         * dce.c: Include except.h and delete redundant vector definitions.
5236         (deletable_insn_p): Return false for non-call insns that can throw
5237         if DF is running.
5238
5239 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
5240
5241         * gcse.c (ae_gen): Remove.
5242         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
5243         and make non-static function to make it available in store-motion.c.
5244         Update call sites with search-and-replace.
5245         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
5246         extract_mentioned_regs, extract_mentioned_regs_helper,
5247         find_moveable_store, compute_store_table, load_kills_store, find_loads,
5248         store_killed_in_insn, store_killed_after, store_killed_before,
5249         build_store_vectors, insert_insn_start_basic_block, insert-store,
5250         remove_reachable_equiv_notes, replace_store_insn, delete_store,
5251         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
5252         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
5253         * store-motion.c: ...new file.  Also copy data structures from gcse.c
5254         and clean up to remove parts not used by store motion.
5255         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
5256         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
5257
5258 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5259
5260         PR target/38571
5261         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
5262         when optimizing for size.
5263
5264 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
5265
5266         * gcse.c (gcse_constant_p): Fix typo in last change.
5267
5268 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
5269
5270         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
5271
5272 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
5273
5274         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
5275
5276 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
5277
5278         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
5279         CONST_HIGH_PART result.
5280
5281 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
5282
5283         * config/avr/avr.c (initial_elimination_offset): Rename to
5284         avr_initial_elimination_offset.
5285         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
5286         change return type to bool.
5287         (avr_can_eliminate): New function.
5288         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
5289         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
5290         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
5291         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
5292         avr_initial_elimination_offset.
5293         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
5294         (avr_initial_elimination_offset): Define.
5295
5296 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
5297             Steven Bosscher  <steven@gcc.gnu.org>
5298
5299         PR rtl-optimization/39938
5300         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
5301         * cfgrtl.c: Include insn-attr.h.
5302         (rest_of_pass_free_cfg): New function.
5303         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
5304         * resource.c (init_resource_info): Remove call to df_analyze.
5305
5306 2009-04-29  Richard Guenther  <rguenther@suse.de>
5307
5308         PR target/39943
5309         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
5310         allow conversion to signed integers.
5311
5312 2009-04-29  Richard Guenther  <rguenther@suse.de>
5313
5314         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
5315         shifts of floating point vectors if the shift amount is
5316         a constant multiple of the element size.
5317
5318 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
5319             Michael Matz  <matz@suse.de>
5320
5321         PR middle-end/39927
5322         PR bootstrap/39929
5323         * tree-outof-ssa.c (emit_partition_copy): New function.
5324         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
5325         insert_part_to_rtx_on_edge): Perform the partition base var
5326         copy using emit_partition_copy.
5327         (insert_value_copy_on_edge): Convert constants to the right mode.
5328         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
5329         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
5330
5331 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
5332
5333         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
5334         scan backwards to try to find a constant to initialize it.
5335
5336         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
5337         insn before the loop_end instruction, don't look past labels.
5338
5339 2009-04-29  Richard Guenther  <rguenther@suse.de>
5340
5341         PR middle-end/39937
5342         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
5343         loose type conversions.
5344         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
5345         stmts only if there are no uses of its definition.
5346
5347 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
5348
5349         * config/bfin/bfin.h (splitting_loops): Declare.
5350         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
5351         Reorder bit definitions to be ascending.
5352         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
5353         * config/bfin/bfin.c (splitting_loops): New variable.
5354         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
5355         (struct loop_info): Remove members INIT and LOOP_INIT.
5356         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
5357         the LSETUP sequence.  Allow LC to be loaded from any register, but
5358         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
5359         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
5360         set to 1.
5361         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
5362         of reload_completed.
5363
5364         From Jie Zhang:
5365         * config/bfin/bfin.md (movsi_insn): Refine constraints.
5366
5367 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
5368
5369         * Makefile.in (PLUGIN_VERSION_H): New.
5370         (OBJS-common): Remove plugin-version.o.
5371         (plugin.o): Depend on (PLUGIN_VERSION_H).
5372         (plugin-version.o): Remove.
5373         * configure: Regenerate
5374         * configure.ac: Create plugin-version.h.
5375         * gcc-plugin.h (plugin_gcc_version): Remove.
5376         (plugin_default_version_check): Change signature.
5377         * plugin-version.c: Remove.
5378         * plugin.c: Include plugin-version.h.
5379         (str_plugin_gcc_version_name): Remove.
5380         (try_init_one_plugin): Pass gcc version to plugin_init.
5381         (plugin_default_version_check): Both gcc and plugin versions are now
5382         arguments.
5383
5384 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
5385         
5386         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
5387         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
5388         Remove special case testing for last insn of inner loops. Don't fail
5389         if the loop ends with a jump, emit an extra nop instead.
5390
5391         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
5392         DREGS rather than comparing directly.  Remove code that tries to
5393         account for latencies.
5394
5395 2009-04-29  Richard Guenther  <rguenther@suse.de>
5396
5397         PR tree-optimization/39941
5398         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
5399         eliminating an indirect call.
5400
5401 2009-04-29  Richard Guenther  <rguenther@suse.de>
5402
5403         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
5404         parameter.  Allow invariants as base if !require_lvalue.
5405         (verify_gimple_assign_single): Adjust.
5406
5407 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
5408
5409         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
5410         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
5411         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
5412         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
5413         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
5414         a VEC_SELECT.
5415         * config/bfin/bfin.c (bfin_expand_builtin,
5416         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
5417
5418 2009-04-28  Richard Guenther  <rguenther@suse.de>
5419
5420         * tree-vect-loop.c (get_initial_def_for_induction): Use
5421         correct types for pointer increment.
5422
5423 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5424
5425         * toplev.c (print_version): Update GMP version string calculation.
5426
5427 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
5428
5429         PR rtl-optimization/39938
5430         * resource.c (init_resource_info): Add call to df_analyze.
5431
5432 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
5433
5434         * config/alpha/alpha.md (usegp): Cast the result of
5435         alpha_find_lo_sum_using_gp to enum attr_usegp.
5436         * config/alpha/alpha.c (override_options): Remove end-of-structure
5437         marker element from cpu_table.  Use array size of cpu_table to handle
5438         -mcpu and -mtune options.
5439         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
5440
5441 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
5442
5443         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
5444         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
5445         tune_32 and tune_64.
5446         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
5447         support on PowerPC.
5448         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
5449         * config/rs6000/option-defaults.h: ... here.  New file.
5450         (OPT_64, OPT_32): Define.
5451         (MASK_64BIT): Define to 0 if not already defined.
5452         (OPT_ARCH64, OPT_ARCH32): Define.
5453         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
5454         and tune_64.
5455
5456 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5457
5458         * config/arm/arm.c (arm_override_options): Emit error on using
5459         fpa with AAPCS.
5460
5461 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
5462
5463         PR rtl-optimization/39914
5464         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
5465         registers for allocnos created from user-defined variables only
5466         when not optimizing.
5467
5468 2009-04-28  Richard Guenther  <rguenther@suse.de>
5469
5470         PR middle-end/39937
5471         * fold-const.c (fold_binary): Use distribute_real_division only
5472         on float types.
5473
5474 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
5475
5476         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
5477         add hpux-stdint.h to tm_file.
5478         (hppa[12]*-*-hpux11*): Ditto.
5479         (ia64*-*-hpux*): Ditto.
5480         * config/hpux-stdint.h: New.
5481         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
5482         __STDC_EXT__ for all compiles.
5483         * config/pa/pa-hpux.h: Ditto.
5484         * config/pa/pa-hpux10.h: Ditto.
5485         * config/pa/pa-hpux11.h: Ditto.
5486
5487 2009-04-28  Catherine Moore  <clm@codesourcery.com>
5488
5489         * debug.h (set_name): Add comment.
5490
5491 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
5492
5493         PR target/39929
5494         * config/darwin.c (machopic_gen_offset): Check
5495         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
5496         * config/arm/arm.c (require_pic_register): Likewise.
5497
5498 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
5499
5500         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
5501         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
5502         m32c_promote_prototypes): Delete.
5503
5504 2009-04-28  Michael Matz  <matz@suse.de>
5505
5506         PR middle-end/39922
5507         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
5508         constants.
5509
5510 2009-04-28  Richard Guenther  <rguenther@suse.de>
5511
5512         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
5513
5514 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5515
5516         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
5517         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
5518         * config/arm/arm-tune.md: Regenerate.
5519
5520 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
5521
5522         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
5523         block if there are complex incoming edges.
5524         (sel_merge_blocks): Remove useless assert.
5525         (sel_redirect_edge_and_branch): Check that edge was redirected.
5526         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
5527         (sel_find_rgns): Delete declaration.
5528         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
5529         the region when it is not a preheader.
5530
5531 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
5532
5533         PR c/39323
5534         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
5535
5536 2009-04-28  Richard Guenther  <rguenther@suse.de>
5537
5538         * tree.h (SSA_NAME_VALUE): Remove.
5539         (struct tree_ssa_name): Remove value_handle member.
5540         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
5541         array for jump threading.
5542         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
5543         SSA_NAME_VALUEs.
5544         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
5545         * tree-flow.h (threadedge_initialize_values): Declare.
5546         (threadedge_finalize_values): Likewise.
5547         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
5548         (SSA_NAME_VALUE): Define.
5549         (threadedge_initialize_values): New function.
5550         (threadedge_finalize_values): Likewise.
5551         * tree-ssa-dom.c (ssa_name_values): New global variable.
5552         (SSA_NAME_VALUE): Define.
5553         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
5554
5555 2009-04-28  Ira Rosen  <irar@il.ibm.com>
5556
5557         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5558         Use REPORT_VECTORIZED_LOCATIONS instead 
5559         REPORT_VECTORIZED_LOOPS.
5560         * tree-vectorizer.c (vect_verbosity_level): Make static.
5561         (vect_loop_location): Rename to vect_location.
5562         (vect_set_verbosity_level): Update comment.
5563         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
5564         and vect_location.
5565         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
5566         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
5567         instead REPORT_UNVECTORIZED_LOOPS.
5568         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
5569         and vect_loop_def to vect_external_def and vect_internal_def.
5570         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
5571         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and 
5572         REPORT_UNVECTORIZED_LOCATIONS.
5573         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
5574         and vect_used_in_loop and to vect_unused_in_scope and 
5575         vect_used_in_scope.
5576         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
5577         (vect_verbosity_level): Remove declaration.
5578         (vect_analyze_operations): Likewise.
5579         (vect_analyze_stmt): Declare.
5580         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
5581         REPORT_UNVECTORIZED_LOCATIONS.
5582         (vect_get_loop_niters): Fix indentation.
5583         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
5584         (vect_analyze_loop_operations): New function.
5585         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
5586         vect_analyze_operations.
5587         (vect_is_simple_reduction): Use new names.
5588         (vectorizable_live_operation, vect_transform_loop): Likewise.
5589         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
5590         to specify whether the data references can be a part of interleaving
5591         chain.
5592         (vect_analyze_data_ref_dependence): Use new names.
5593         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
5594         (vect_create_addr_base_for_vector_ref): Remove redundant code.
5595         * tree-vect-patterns.c (widened_name_p): Use new names.
5596         (vect_recog_dot_prod_pattern): Likewise.
5597         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
5598         (process_use, vect_mark_stmts_to_be_vectorized, 
5599         vect_model_simple_cost, vect_model_store_cost,
5600         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
5601         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
5602         vectorizable_operation, vectorizable_type_demotion,
5603         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
5604         vectorizable_condition): Likewise.
5605         (vect_analyze_operations): Split into vect_analyze_loop_operations
5606         and ...
5607         (vect_analyze_stmt): ... new function.
5608         (new_stmt_vec_info): Use new names.
5609         (vect_is_simple_use): Use new names and fix comment.
5610         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
5611         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
5612
5613 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
5614
5615         PR target/39911
5616         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
5617         and integer modes for x87 operands.  Do not ICE for unsupported size,
5618         generate error instead.  Generate error for unsupported operand types.
5619         ['z']: Do not handle HImode memory operands specially.  Warning
5620         for floating-point operands.  Fallthru to 'Z' for unsupported operand
5621         types.  Do not ICE for unsupported size, generate error instead.
5622         (output_387_binary_op): Use %Z to output operands.
5623         (output_fp_compare): Ditto.
5624         (output_387_reg_move): Ditto.
5625
5626 2009-04-28  Ben Elliston  <bje@au.ibm.com>
5627
5628         PR c++/35652
5629         Revert:
5630
5631         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5632
5633         * builtins.c (c_strlen): Do not warn here.
5634         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
5635         * c-common.c (pointer_int_sum): Take an explicit location.
5636         Warn about offsets out of bounds.
5637         * c-common.h (pointer_int_sum): Adjust declaration.
5638
5639 2009-04-27  Ian Lance Taylor  <iant@google.com>
5640
5641         * collect2.c (is_ctor_dtor): Change type of ret field in struct
5642         names to symkind.
5643         * dce.c (run_fast_df_dce): Change type of old_flags to int.
5644         * df-core.c (df_set_flags): Change return type to int.  Change
5645         type of old_flags to int.
5646         (df_clear_flags): Likewise.
5647         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
5648         (df_get_conditional_uses): Likewise.
5649         * df.h (df_set_flags, df_clear_flags): Update declarations.
5650         * dwarf2out.c (struct indirect_string_node): Change type of form
5651         field to enum dwarf_form.
5652         (AT_string_form): Change return type to enum dwarf_form.
5653         * fixed-value.c (fixed_compare): Add cast to enum type.
5654         * fwprop.c (update_df): Change 0 to VOIDmode.
5655         * gensupport.c: Change 0 to UNKNOWN.
5656         * gimple.h (gimple_cond_code): Add cast to enum type.
5657         * haifa-sched.c (reemit_notes): Add cast to enum type.
5658         * hooks.c (hook_int_void_no_regs): Remove function.
5659         * hooks.h (hook_int_void_no_regs): Remove declaration.
5660         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
5661         * predict.c (combine_predictions_for_insn): Add casts to enum type.
5662         * real.c (real_arithmetic): Add cast to enum type.
5663         (real_compare): Likewise.
5664         * target.h (struct gcc_target): Change return type of
5665         branch_target_register_class to enum reg_class.
5666         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
5667         default_branch_target_register_class.
5668         * targhooks.c (default_branch_target_register_class): New function.
5669         * targhooks.h (default_branch_target_register_class): Declare.
5670         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
5671         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
5672         cast to int.
5673         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
5674         ERROR_MARK.
5675         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
5676         vect_uninitialized_def.  Change 0 to ERROR_MARK.
5677         * tree-vect-stmts.c (supportable_widening_operation): Don't
5678         initialize icode1 and icode2.
5679         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
5680         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
5681         and to STD_C89.
5682         (cmn_err_flag_specs): Change 0 to STD_C89.
5683         (cmn_err_char_table): Likewise.
5684         * config/arm/arm.c (get_arm_condition_code): Change type of code
5685         to enum arm_cond_code.
5686         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
5687         (IWMMXT_BUILTIN2): Likewise.
5688         (neon_builtin_type_bits): Don't define typedef.
5689         (neon_builtin_datum): Change type of bits field to int.
5690         (arm_expand_neon_args): Add cast to enum type.
5691         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
5692         TLS_MODEL_NONE.
5693         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
5694         casts to enum type.
5695         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
5696         MIPS_FP_COND_f.
5697         * config/mips/mips.md (jal_macro): Return enum constant.
5698         (single_insn): Likewise.
5699         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
5700         CODE_FOR_nothing.
5701         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5702         casts to enum type.
5703         * config/s390/s390.c (s390_tune_flags): Change type to int.
5704         (s390_arch_flags): Likewise.
5705         (s390_handle_arch_option): Change flags field of struct pta to int.
5706         * config/s390/s390.h (s390_tune_flags): Update declaration.
5707         (s390_arch_flags): Likewise.
5708         * config/sh/sh.c (prepare_move_operands): Compare
5709         tls_symbolic_operand result with enum constant.
5710         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
5711         (sh_expand_prologue): Add cast to enum type.
5712         (sh_expand_epilogue): Likewise.
5713         (tls_symbolic_operand): Change return type to enum tls_model.
5714         (fpscr_set_from_mem): Add cast to enum type.
5715         (legitimize_pic_address): Compare tls_symbolic_operand result with
5716         enum constant.
5717         (sh_target_reg_class): Change return type to enum reg_class.
5718         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
5719         PROCESSOR_xxx.
5720         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
5721         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
5722         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
5723         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
5724         (delayed_branch, tls_call_delay): Likewise.
5725         (eligible_for_sibcall_delay): Likewise.
5726         (eligible_for_return_delay): Likewise. 
5727         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
5728         (spu_expand_builtin_1): Likewise.
5729
5730         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
5731         for all types of conversions.
5732         (output_init_element): Issue -Wc++-compat warning if needed when
5733         initializing a bitfield with enum type.
5734         * c-parser.c (c_parser_expression): Set original_type to
5735         original_type of right hand operand of comman operator.
5736
5737 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5738
5739         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
5740         grammar nits.
5741         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
5742         * doc/cpp.texi (Standard Predefined Macros)
5743         (Implementation-defined behavior): Likewise.
5744         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
5745         * doc/gimple.texi (GIMPLE Exception Handling)
5746         (@code{GIMPLE_ASSIGN}): Likewise.
5747         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
5748         * doc/invoke.texi (Warning Options, Optimize Options)
5749         (AVR Options, Darwin Options): Likewise.
5750         (Optimize Options): Reformulate -fwhole-program description.
5751         * doc/loop.texi (Lambda): Likewise.
5752         * doc/md.texi (Output Template, Define Constraints)
5753         (Standard Names, Insn Splitting): Likewise.
5754         * doc/options.texi (Option properties): Likewise.
5755         * doc/passes.texi (Tree-SSA passes): Likewise.
5756         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
5757         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
5758         (File Names and DBX): Likewise.
5759         * doc/trouble.texi (Incompatibilities): Likewise.
5760
5761 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
5762
5763         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
5764         instruction is correct.
5765
5766 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
5767
5768         Allow non-constant arguments to conversion intrinsics.
5769         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
5770         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
5771         * spu.c (print_operand): Handle 'v' and 'w'.
5772         (exp2_immediate_p, spu_gen_exp2): Define.
5773         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
5774         spu_convtf_1): Update parameter descriptions.
5775         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
5776         * constraints.md ('v', 'w'): New.
5777         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
5778         Remove.
5779         (i2f, I2F): New define_mode_attr.
5780         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
5781         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
5782         fixuns_truncv4sfv4si2):  Update to use mode attribute.
5783         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
5784         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
5785         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
5786         patterns for combine.
5787
5788 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
5789
5790         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
5791         (cprop, hoist, pre, store_motion): New debug counters.
5792         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
5793         is not an RTL pass anymore.
5794         (pass_profiling): Remove extern decl for pass removed in 2005.
5795         (pass_gcse, pass_jump_bypass): Remove.
5796         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
5797         to 0 for clean state.
5798         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
5799         * cse.c (gate_handle_cse_after_global_opts,
5800         rest_of_handle_cse_after_global_opts): New functions.
5801         (pass_cse_after_global_opts): New pass, does local CSE.
5802         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
5803         (TV_CPROP): New timevar.
5804         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
5805         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
5806         (gcse_main, recompute_all_luids): Remove.
5807         (compute_hash_table_work): Call max_reg_num instead of reading
5808         max_gcse_regno.
5809         (cprop_jump): Don't set run_jump_opt_after_gcse.
5810         (constprop_register): Always allow to alter jumps.
5811         (cprop_insn): Likewise.
5812         (do_local_cprop): Likewise.
5813         (local_cprop_pass): Likewise.  Return non-zero if something changed.
5814         (cprop): Remove function, fold interesting bits into one_cprop_pass.
5815         (find_implicit_sets): Add note about missed optimization opportunity.
5816         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
5817         pass_rtl_cprop execute function.
5818         Don't bother tracking the pass number, each pass gets its own dumpfile
5819         now anyway.
5820         Always allow to alter jumpsand bypass jumps.
5821         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
5822         will just find no suitable set.
5823         (pre_edge_insert): Fix dumping, this function is for PRE only.
5824         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
5825         pass_rtl_pre execute function.
5826         (hoist_code): Return non-zero if something changed.  Keep track of
5827         substitutions and insertions for statistics gathering similar to PRE.
5828         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
5829         called from the pass_rtl_hoist execute function.  Show pass statistics.
5830         (compute_store_table): Use max_reg_num directly instead of using the
5831         formerly global max_gcse_regno.
5832         (build_store_vectors): Likewise.
5833         (replace_store_insn): Fix dumping.
5834         (store_motion): Rename to ...
5835         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
5836         pass, called from the pass_rtl_store_motion execute function.  Keep
5837         track of substitutions and insertions for statistics gathering similar
5838         to PRE.
5839         (bypass_jumps): Remove, fold interesting bits into ...
5840         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
5841         from the pass_rtl_cprop execute function.
5842         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
5843         pass_jump_bypass): Remove.
5844         (gate_handle_gcse, rest_of_handle_gcse): Remove.
5845         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
5846         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
5847         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
5848         (gate_rtl_store_motion, execute_rtl_store_motion,
5849         pass_rtl_store_motion): New.
5850         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
5851         make it clear that -fcse-skip-blocks is a no-op for backward compat.
5852         * passes.c (init_optimization_passes): Remove pass_gcse and
5853         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
5854         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
5855         instead of pass_jump_bypass.
5856
5857 2009-04-27  Richard Guenther  <rguenther@suse.de>
5858
5859         PR middle-end/39928
5860         * gimplify.c (gimplify_expr): If we are required to create
5861         a temporary make sure it ends up as register.
5862
5863 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
5864
5865         PR target/39903
5866         * config/i386/i386.c (construct_container): Don't call
5867         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
5868         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
5869
5870 2009-04-27  Michael Matz  <matz@suse.de>
5871
5872         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
5873         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
5874         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
5875         (dump_replaceable_exprs): Take a bitmap.
5876         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
5877         array.
5878         (expand_gimple_basic_block): Likewise.
5879         * tree-ssa-ter.c (struct temp_expr_table_d): Make
5880         replaceable_expressions member a bitmap.
5881         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
5882         (mark_replaceable): Likewise.
5883         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
5884         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
5885
5886 2009-04-27  Richard Guenther  <rguenther@suse.de>
5887
5888         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
5889         (verify_stmts): Dispatch to gimple/type verification code.
5890         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
5891         issue with call argument types.
5892
5893 2009-04-27  Michael Matz  <matz@suse.de>
5894
5895         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
5896         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
5897         to above.
5898
5899 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
5900             Eric Botcazou  <ebotcazou@adacore.com>
5901
5902         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
5903         a label's basic block.
5904         (mark_target_live_regs): Tidy and rework obsolete comments.
5905         Change back DF problem to LIVE.  If a label starts a basic block,
5906         assume that all registers that used to be live then still are.
5907         (init_resource_info): If a label starts a basic block, set its
5908         BLOCK_FOR_INSN accordingly.
5909         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
5910
5911 2009-04-27  Richard Guenther  <rguenther@suse.de>
5912
5913         * tree-flow-inline.h (function_ann): Remove.
5914         (get_function_ann): Likewise.
5915         * tree-dfa.c (create_function_ann): Remove.
5916         * tree-flow.h (struct static_var_ann_d): Remove.
5917         (struct function_ann_d): Likewise.
5918         (union tree_ann_d): Remove fdecl member.
5919         (function_ann_t): Remove.
5920         (function_ann, get_function_ann, create_function_ann): Remove
5921         declarations.
5922
5923 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
5924
5925         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
5926
5927 2009-04-27  Jan Hubicka  <jh@suse.cz>
5928
5929         * ipa-pure-const.c (struct funct_state_d): New fields
5930         state_previously_known, looping_previously_known; remove
5931         state_set_in_source.
5932         (analyze_function): Use new fields.
5933         (propagate): Avoid assumption that state_set_in_source imply
5934         nonlooping.
5935
5936         * tree-ssa-loop-niter.c (finite_loop_p): New function.
5937         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
5938         * cfgloop.h (finite_loop_p): Declare.
5939
5940 2009-04-26  Michael Matz  <matz@suse.de>
5941
5942         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
5943
5944 2009-04-26  Michael Matz  <matz@suse.de>
5945
5946         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
5947         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
5948         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
5949         pass_mark_used_blocks): Remove.
5950         * tree-optimize.c (pass_free_datastructures,
5951         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
5952         * passes.c (init_optimization_passes): Don't call
5953         pass_mark_used_blocks, remove dead code.
5954
5955 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
5956
5957         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
5958         * tree-ssa-live.h (register_ssa_partition): Likewise.
5959
5960 2009-04-26  Michael Matz  <matz@suse.de>
5961
5962         Expand from SSA.
5963         * builtins.c (fold_builtin_next_arg): Handle SSA names.
5964         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
5965         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
5966         SSA names. 
5967         (compare_pairs): Swap cost comparison.
5968         (coalesce_ssa_name): Don't use change_partition_var.
5969         * tree-nrv.c (struct nrv_data): Add modified member.
5970         (finalize_nrv_r): Set it.
5971         (tree_nrv): Use it to update statements.
5972         (pass_nrv): Require PROP_ssa.
5973         * tree-mudflap.c (mf_decl_cache_locals,
5974         mf_build_check_statement_for): Use make_rename_temp.
5975         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
5976         * alias.c (find_base_decl): Handle SSA names.
5977         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
5978         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
5979         * rtl.h (set_reg_attrs_for_parm): Declare.
5980         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
5981         to "optimized", remove unused locals at finish.
5982         (execute_free_datastructures): Make global, call
5983         delete_tree_cfg_annotations.
5984         (execute_free_cfg_annotations): Don't call
5985         delete_tree_cfg_annotations.
5986
5987         * ssaexpand.h: New file.
5988         * expr.c (toplevel): Include ssaexpand.h.
5989         (expand_assignment): Handle SSA names the same as register variables.
5990         (expand_expr_real_1): Expand SSA names.
5991         * cfgexpand.c (toplevel): Include ssaexpand.h.
5992         (SA): New global variable.
5993         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
5994         (SSAVAR): New macro.
5995         (set_rtl): New helper function.
5996         (add_stack_var): Deal with SSA names, use set_rtl.
5997         (expand_one_stack_var_at): Likewise.
5998         (expand_one_stack_var): Deal with SSA names.
5999         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
6000         before unique numbers.
6001         (expand_stack_vars): Use set_rtl.
6002         (expand_one_var): Accept SSA names, add asserts for them, feed them
6003         to above subroutines.
6004         (expand_used_vars): Expand all partitions (without default defs),
6005         then only the local decls (ignoring those expanded already).
6006         (expand_gimple_cond): Remove edges when jumpif() expands an
6007         unconditional jump.
6008         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
6009         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
6010         SSA name.
6011         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
6012         members of SA; deal with PARM_DECL partitions here; expand
6013         all PHI nodes, free tree datastructures and SA.  Commit instructions
6014         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
6015         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
6016         info and statements at start, collect garbage at finish.
6017         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
6018         (VAR_ANN_PARTITION) Remove.
6019         (change_partition_var): Don't declare.
6020         (partition_to_var): Always return SSA names.
6021         (var_to_partition): Only accept SSA names.
6022         (register_ssa_partition): Only check argument.
6023         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
6024         member.
6025         (delete_var_map): Don't free it.
6026         (var_union): Only accept SSA names, simplify.
6027         (partition_view_init): Mark only useful SSA names as used.
6028         (partition_view_fini): Only deal with SSA names.
6029         (change_partition_var): Remove.
6030         (dump_var_map): Use ssa_name instead of partition_to_var member.
6031         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
6032         basic blocks.
6033         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
6034         (struct _elim_graph): New member const_dests; nodes member vector of
6035         ints.
6036         (set_location_for_edge): New static helper.
6037         (create_temp): Remove.
6038         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
6039         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
6040         (new_elim_graph): Allocate const_dests member.
6041         (clean_elim_graph): Truncate const_dests member.
6042         (delete_elim_graph): Free const_dests member.
6043         (elim_graph_size): Adapt to new type of nodes member.
6044         (elim_graph_add_node): Likewise.
6045         (eliminate_name): Likewise.
6046         (eliminate_build): Don't take basic block argument, deal only with
6047         partition numbers, not variables.
6048         (get_temp_reg): New static helper.
6049         (elim_create): Use it, deal with RTL temporaries instead of trees.
6050         (eliminate_phi): Adjust all calls to new signature.
6051         (assign_vars, replace_use_variable, replace_def_variable): Remove.
6052         (rewrite_trees): Only do checking.
6053         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
6054         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
6055         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
6056         contains_tree_r, MAX_STMTS_IN_LATCH,
6057         process_single_block_loop_latch, analyze_edges_for_bb,
6058         perform_edge_inserts): Remove.
6059         (expand_phi_nodes): New global function.
6060         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
6061         functions, initialize new parameter, remember partitions having a
6062         default def.
6063         (finish_out_of_ssa): New global function.
6064         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
6065         don't reset in_ssa_p here, don't disable TER when mudflap.
6066         (pass_del_ssa): Remove.
6067         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
6068         partition members.
6069         (execute_free_datastructures): Declare.
6070         * Makefile.in (SSAEXPAND_H): New variable.
6071         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
6072         * basic-block.h (commit_one_edge_insertion): Declare.
6073         * passes.c (init_optimization_passes): Move pass_nrv and
6074         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
6075         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
6076         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
6077         (redirect_branch_edge): Deal with super block when expanding, split
6078         out jump patching itself into ...
6079         (patch_jump_insn): ... here, new static helper.
6080
6081 2009-04-26  Michael Matz  <matz@suse.de>
6082
6083         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
6084         beyond num_ssa_names.
6085         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
6086         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
6087
6088 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
6089
6090         PR inline-asm/39543
6091         * fwprop.c (forward_propagate_asm): New function.
6092         (forward_propagate_and_simplify): Propagate also into __asm, if it
6093         doesn't increase the number of referenced registers.
6094
6095         PR c/39889
6096         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
6097
6098 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
6099
6100         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
6101         note_nonlocal_vla_type for nonlocal VLAs.
6102         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
6103         contains_remapped_vars, remap_vla_decls): New functions.
6104         (convert_nonlocal_reference_stmt): If not optimizing, call
6105         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
6106         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
6107         if it wasn't found in var_map.
6108         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
6109         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
6110         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
6111         declare_vars.
6112         * gimplify.c (nonlocal_vlas): New variable.
6113         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
6114         referenced VLAs.
6115         (gimplify_body): Create and destroy nonlocal_vlas.
6116
6117         * dwarf2out.c (loc_descr_plus_const): New function.
6118         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
6119         mem_loc_descriptor, loc_descriptor_from_tree_1,
6120         descr_info_loc, gen_variable_die): Use it.
6121
6122         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
6123         !TREE_STATIC VAR_DECLs.
6124         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
6125         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
6126         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
6127         DECL_BY_REFERENCE is valid.
6128         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
6129         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
6130         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
6131         Copy DECL_BY_REFERENCE.
6132         (struct nesting_copy_body_data): New type.
6133         (nesting_copy_decl): New function.
6134         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
6135         if they have variable length.
6136
6137 2009-04-26  Michael Matz  <matz@suse.de>
6138
6139         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
6140         mark new temporaries for renaming.
6141
6142 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
6143
6144         PR c/39581
6145         * c-decl.c (global_bindings_p): Return negative value.
6146         (c_variable_size): New.  Based on variable_size from
6147         stor-layout.c.
6148         (grokdeclarator): Call c_variable_size not variable_size.
6149
6150 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
6151
6152         * config/i386/i386.c (print_operand) ['z']: Fix typo.
6153
6154 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
6155
6156         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
6157         Redefine it to just use mingw/include.
6158         (ASM_SPEC): Rules for -m32 and -m64.
6159         (LINK_SPEC): Use Likewise.
6160         (SPEC_32): New define.
6161         (SPEC_64): Likewise.
6162         (SUB_LINK_SPEC): Likewise.
6163         (MULTILIB_DEFAULTS): New define.
6164         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
6165         Add multilib options.
6166         (MULTILIB_DIRNAMES): Likewise.
6167         (MULTILIB_OSDIRNAMES): Likewise.
6168         (LIBGCC): Likewise.
6169         (INSTALL_LIBGCC): Likewise.
6170
6171 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
6172
6173         PR c/39556
6174         * c-tree.h (enum c_inline_static_type): New.
6175         (record_inline_static): Declare.
6176         * c-decl.c (struct c_inline_static, c_inline_statics,
6177         record_inline_static, check_inline_statics): New.
6178         (pop_file_scope): Call check_inline_statics.
6179         (start_decl): Call record_inline_static instead of pedwarning
6180         directly for static in inline function.
6181         * c-typeck.c (build_external_ref): Call record_inline_static
6182         instead of pedwarning directly for static referenced in inline
6183         function.
6184
6185 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
6186
6187         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
6188         not new but only being rescanned.
6189         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
6190         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
6191         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
6192         record_set_info, compute_set, grealloc): Remove.
6193         (recompute_all_luids): New function.
6194         (gcse_main): Don't compute sets, and don't do related memory
6195         allocations/free-ing.  If something changed before the end of the
6196         pass, update LUIDs using recompute_all_luids.
6197         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
6198         (free_gcse_mem): Don't free it either.
6199         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
6200         Use the df insn LUIDs.
6201         (load_killed_in_block): Likewise.
6202         (compute_hash_table_work): Don't compute reg_set_in_block.
6203         (compute_transp): Use DF_REG_DEF_CHAINs.
6204         (local_cprop_pass): Don't use compute_sets and related functions.
6205         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
6206         Use get_max_uid() instead of max_cuid.
6207         (insert_insn_end_basic_block, pre_insert_copy_insn,
6208         update_ld_motion_stores): Don't try to
6209         keep reg_set tables up to date.
6210         (pre_insert_copies): Use df insn LUIDs.
6211         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
6212         (reg_set_info): Don't use extra bitmap argument.
6213         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
6214         information to compute regs_set_in_block.
6215         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
6216         (bypass_jumps): Don't use compute_sets and friends.
6217
6218 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6219
6220         PR testsuite/39710
6221         * opts.c (undocumented_msg): Do not leave blank even with
6222         ENABLE_CHECKING.
6223
6224 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
6225
6226         * c-decl.c (build_enumerator): Allow values folding to integer
6227         constants but not integer constant expressions with a pedwarn if
6228         pedantic.
6229
6230 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
6231
6232         PR c/39582
6233         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
6234         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
6235         type is an integer constant.
6236
6237 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
6238
6239         PR target/39897
6240         * config/i386/i386.c (print_operand) ['z']: Revert handling of
6241         HImode operands.
6242
6243 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
6244
6245         PR c/39564
6246         * c-decl.c (grokdeclarator): Diagnose declarations of functions
6247         with variably modified return type and no storage class
6248         specifiers, except for the case of nested functions.  Distinguish
6249         extern declarations of functions with variably modified return
6250         types from those of objects with variably modified types.
6251
6252 2009-04-25  Jan Hubicka  <jh@suse.cz>
6253
6254         * tree.c (list_equal_p): New function.
6255         * tree.h (list_equal_p): Declare.
6256         * coretypes.h (edge_def, edge, const_edge, basic_block_def
6257         basic_block_def, basic_block, const_basic_block): New.
6258         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
6259         (redirect_eh_edge): New function.
6260         (make_eh_edge_update_phi): EH edges are not abnormal.
6261         * except.c: Include tree-flow.h.
6262         (list_match): New function.
6263         (eh_region_replaceable_by_p): New function.
6264         (replace_region): New function.
6265         (hash_type_list): New function.
6266         (hash_eh_region): New function.
6267         (eh_regions_equal_p): New function.
6268         (merge_peers): New function.
6269         (remove_unreachable_regions): Verify EH tree when checking;
6270         merge peers.
6271         (copy_eh_region_1): New function.
6272         (copy_eh_region): New function.
6273         (push_reachable_handler): New function.
6274         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
6275         regions without label but with live RESX.
6276         * except.h (redirect_eh_edge_to_label): New.
6277         * tree-flow.h (redirect_eh_edge): New.
6278         * coretypes.h (edge_def, edge, const_edge, basic_block_def
6279         basic_block_def, basic_block, const_basic_block): Remove.
6280         * Makefile.in (except.o): Add dependency on tree-flow.h
6281         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
6282         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
6283         Remove.
6284
6285 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
6286
6287         PR bootstrap/39645
6288         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
6289         on the destination of memcpy.
6290
6291 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
6292
6293         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
6294         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
6295         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
6296
6297 2009-04-25  Jan Hubicka  <jh@suse.cz>
6298
6299         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
6300         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
6301         to be reached by different label than left.
6302         (update_eh_edges): Update comment; remove edge_to_remove if possible
6303         and return true if suceeded.
6304         (cleanup_empty_eh): Accept sharing map; handle shared regions.
6305         (cleanup_eh): Compute sharing map.
6306         * except.c (remove_eh_handler_and_replace): Add argument if we should
6307         update regions.
6308         (remove_unreachable_regions): Update for label sharing.
6309         (label_to_region_map): Likewise.
6310         (get_next_region_sharing_label): New function.
6311         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
6312         prev_try pointers.
6313         (remove_eh_handler): Update.
6314         (remove_eh_region_and_replace_by_outer_of): New function.
6315         * except.h (struct eh_region): Add next_region_sharing_label.
6316         (remove_eh_region_and_replace_by_outer_of,
6317         get_next_region_sharing_label): Declare.
6318         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
6319
6320 2009-04-25  Jan Hubicka  <jh@suse.cz>
6321
6322         * tree-cfg.c (split_critical_edges): Split also edges where we can't
6323         insert code even if they are not critical.
6324
6325 2009-04-25  Jan Hubicka  <jh@suse.cz>
6326
6327         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
6328         (gimple_can_remove_branch_p): EH edges won't remove branch by
6329         redirection.
6330         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
6331         updating of non-abnormal EH edges.
6332         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
6333         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
6334         (split_critical_edges): Split also edges where emitting code on them
6335         will lead to splitting later.
6336
6337 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
6338             H.J. Lu  <hongjiu.lu@intel.com>
6339
6340         PR target/39590
6341         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
6342         the configured assembler supports fildq and fistpq mnemonics.
6343         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
6344         * configure: Regenerated.
6345         * config.in: Ditto.
6346
6347         * config/i386/i386.c (print_operand): Handle 'Z'.
6348         ['z']: Remove handling of special fild/fist suffixes.
6349         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
6350         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
6351         suffix of fild insn.
6352         (*floatsi<mode>2_vector_mixed): Ditto.
6353         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
6354         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
6355         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
6356         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
6357         * config/i386/gas.h (GAS_MNEMONICS): Remove.
6358
6359 2009-04-25  Ben Elliston  <bje@au.ibm.com>
6360  
6361         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
6362         the source of a set operation.
6363
6364 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
6365
6366         * target.h (struct gcc_target): Add case_values_threshold field.
6367         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
6368         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
6369         * targhooks.c (default_case_values_threshold): New function.
6370         * targhooks.h (default_case_values_threshold): Declare function.
6371         * stmt.c (expand_case): Use case_values_threshold target hook.
6372         * expr.h (case_values_threshold): Remove declartation.
6373         * expr.c (case_values_threshold): Remove function.
6374         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
6375
6376         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
6377         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
6378         (avr_case_values_threshold): Declare as static.
6379         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
6380
6381         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
6382         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
6383         (mn10300_case_values_threshold): New function.
6384
6385 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
6386
6387         * ira.c (setup_cover_and_important_classes): Add enum cast.
6388
6389 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
6390
6391         * genpreds.c (write_enum_constraint_num): Output definition of
6392         CONSTRAINT_NUM_DEFINED_P macro.
6393         * ira.c (setup_cover_and_important_classes): Use
6394         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
6395         
6396 2009-04-24  DJ Delorie  <dj@redhat.com>
6397
6398         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
6399         __SH2A_SINGLE_ONLY__ also.
6400
6401 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
6402
6403         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
6404         (movdf_internal): Ditto.
6405         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
6406         SFmode and DFmode constants.
6407         (ia64_print_operand): Add 'G' format for printing
6408         floating point constants.
6409
6410 2009-04-24  Richard Guenther  <rguenther@suse.de>
6411
6412         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
6413         from unsigned additions.
6414
6415 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
6416
6417         * c-typeck.c (set_init_index): Allow array designators that are
6418         not integer constant expressions with a pedwarn if pedantic.
6419
6420 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
6421
6422         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
6423         zero if no overlap in nonzero bits between the operands.
6424
6425 2009-04-24  Ian Lance Taylor  <iant@google.com>
6426
6427         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
6428         (record_dead_and_set_regs): Likewise.
6429         * df.h (struct df_mw_hardreg): Change flags field to int.
6430         (struct df_base_ref): Likewise.
6431         (struct df): Change changeable_flags field to int.
6432         * df-scan.c (df_defs_record): Change clobber_flags to int.
6433         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
6434         constants rather than #define macros.
6435         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
6436         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
6437         (enum dwarf_calling_convention): Likewise.
6438         (enum dwarf_line_number_x_ops): Likewise.
6439         (enum dwarf_call_frame_info): Likewise.
6440         (enum dwarf_source_language): Likewise.
6441         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
6442         (add_calling_convention_attribute): Likewise.
6443         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
6444         (combine_comparisons): Change compcode to int.  Add cast to enum type.
6445         * genrecog.c (maybe_both_true_2): Change c to int.
6446         (write_switch): Likewise.  Add cast to enum type.
6447         * gimplify.c (gimplify_omp_for): Handle return values from
6448         gimplify_expr using MIN rather than bitwise or.
6449         (gimplify_expr): Add cast to enum type.
6450         * ipa-prop.c (update_jump_functions_after_inlining): Change
6451         IPA_BOTTOM to IPA_JF_UNKNOWN.
6452         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
6453         Add casts to enum type.
6454         (setup_cover_and_important_classes): Change cl to int.  Add casts
6455         to enum type.
6456         (setup_class_translate): Change cl and mode to int.
6457         (ira_init_once): Change mode to int.
6458         (free_register_move_costs): Likewise.
6459         (setup_prohibited_mode_move_regs): Add casts to enum type.
6460         * langhooks.c (add_builtin_function_common): Rework assertion that
6461         value fits bitfield.
6462         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
6463         * omega.c (omega_do_elimination): Avoid math on enum types.
6464         * optabs.c (expand_vec_shift_expr): Remove casts to int.
6465         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
6466         int local to handle integral_argment value.
6467         * regmove.c (try_auto_increment): Change PUT_MODE to
6468         PUT_REG_NOTE_KIND.
6469         * reload.c (push_secondary_reload): Add casts to enum type.
6470         (secondary_reload_class, find_valid_class): Likewise.
6471         * reload1.c (emit_input_reload_insns): Likewise.
6472         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
6473         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
6474         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
6475         constant.
6476         * tree.c (build_common_builtin_nodes): Add casts to enum type.
6477         * tree-complex.c (complex_lattice_t): Typedef to int rather than
6478         enum type.
6479         (expand_complex_libcall): Add casts to enum type.
6480         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
6481         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
6482         with ERROR_MARK, not NUM_TREE_CODES.
6483         (vect_create_epilog_for_reduction): Likewise.
6484         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
6485         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
6486         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
6487         enum machine_mode.
6488         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
6489         vect_unused_in_loop.  Change 0 to loop_vect.
6490         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
6491         * var-tracking.c (get_init_value): Change return type to enum
6492         var_init_status.
6493         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
6494         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
6495         arm_fp_model.
6496         (arm_override_options): Add casts to enum type.
6497         (arm_emit_tls_decoration): Likewise.
6498         * config/i386/i386.c (ix86_function_specific_restore): Add casts
6499         to enum type.
6500         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
6501         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
6502         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
6503         enum type.
6504         * config/s390/s390.c (code_for_builtin_64): Change to array of
6505         enum insn_code.
6506         (code_for_builtin_31): Likewise.
6507         (s390_expand_builtin): Change code_for_builtin to enum insn_code
6508         const *.
6509         * config/sparc/sparc.c (sparc_override_options): Change value
6510         field in struct code_model to enum cmodel.  In initializer change
6511         0 to NULL and add cast to enum type.
6512
6513         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
6514         Change all callers.  Issue a -Wc++-compat warning using
6515         lhs_origtype if necessary.
6516         (convert_for_assignment): Issue -Wc++-compat warnings about
6517         invalid conversions to enum type on assignment.
6518         * c-common.h (build_modify_expr): Update declaration.
6519
6520 2009-04-24  Nick Clifton  <nickc@redhat.com>
6521
6522         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
6523         (function_arg_advance): Likewise.
6524         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
6525         5th alternative.
6526
6527 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
6528
6529         * config/s390/constraints.md ('I', 'J'): Fix condition.
6530
6531 2009-04-24  Diego Novillo  <dnovillo@google.com>
6532
6533         * gengtype-parse.c (parse_error): Add newline after message.
6534
6535 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
6536
6537         * config/i386/sse.md (avxmodesuffixs): Removed.
6538         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
6539         (*avx_pinsr<ssevecsize>): This.
6540
6541 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
6542
6543         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
6544         follow chains of regs with a single definition, and allow expressions
6545         that are function_invariant_p.
6546         (simple_rhs_p): Allow expressions that are function_invariant_p.
6547
6548 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
6549
6550         PR middle-end/39867
6551         * fold-const.c (fold_cond_expr_with_comparison): When folding
6552         > and >= to MAX, make sure the MAX uses the same type as the
6553         comparison's operands.
6554
6555 2009-04-24  Nick Clifton  <nickc@redhat.com>
6556
6557         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
6558         addressing for DImode accesses.
6559         (frv_print_operand_address): Handle PLUS case.
6560         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
6561
6562 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
6563
6564         PR rtl-optimization/39794
6565         * alias.c (canon_true_dependence): Add x_addr argument.
6566         * rtl.h (canon_true_dependence): Adjust prototype.
6567         * cse.c (check_dependence): Adjust canon_true_dependence callers.
6568         * cselib.c (cselib_invalidate_mem): Likewise.
6569         * gcse.c (compute_transp): Likewise.
6570         * dse.c (scan_reads_nospill): Likewise.
6571         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
6572         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
6573         canon_base_addr of the group, plus optional offset.
6574         (struct group_info): Rename canon_base_mem to
6575         canon_base_addr.
6576         (get_group_info): Set canon_base_addr to canon_rtx of base, not
6577         canon_rtx of base_mem.
6578
6579 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
6580
6581         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6582         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
6583
6584 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6585
6586         * config/spu/spu-builtins.h: Delete file.
6587
6588         * config/spu/spu.h (enum spu_builtin_type): Move here from
6589         spu-builtins.h.
6590         (struct spu_builtin_description): Likewise.  Add GTY marker.
6591         Do not use enum spu_function_code or enum insn_code.
6592         (spu_builtins): Add extern declaration.
6593
6594         * config/spu/spu.c: Do not include "spu-builtins.h".
6595         (enum spu_function_code, enum spu_builtin_type_index,
6596         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
6597         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
6598         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
6599         unsigned_V2DI_type_node): Move here from spu-builtins.h.
6600         (spu_builtin_types): Make static.  Add GTY marker.
6601         (spu_builtins): Add extern declaration with GTY marker.
6602         Include "gt-spu.h".
6603
6604         * config/spu/spu-c.c: Do not include "spu-builtins.h".
6605         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
6606         Check programmatically whether all parameters are scalar.
6607
6608         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
6609
6610 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
6611
6612         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
6613         assignment from the constructor either if the target is volatile.
6614
6615 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
6616
6617         * config/arm/arm.md (insv): Do not share operands[0].
6618
6619 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
6620
6621         * config/vxlib-tls.c (active_tls_threads): Delete.
6622         (delete_hook_installed): New.
6623         (tls_delete_hook): Don't delete the delete hook.
6624         (tls_destructor): Delete it here.
6625         (__gthread_set_specific): Adjust installing the delete hook.
6626         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
6627         __gthread_leave_tsd_dtor_context.
6628
6629 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
6630
6631         * c-format.c (gcc_tdiag_char_table): Add support for %E.
6632
6633 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
6634
6635         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
6636         enum type.
6637         (alpha_rtx_costs): Ditto.
6638         (emit_unlikely_jump): Use add_reg_note.
6639         (emit_frame_store_1): Ditto.
6640         (alpha_expand_prologue): Ditto.
6641         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
6642         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
6643
6644 2009-04-23  Nick Clifton  <nickc@redhat.com>
6645
6646         * config/v850/v850.md (epilogue): Remove suppressed code.
6647         (return): Rename to return_simple and remove test of frame size.
6648         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
6649         to gen_return_simple.
6650
6651 2009-04-22  Jing Yu  <jingyu@google.com>
6652
6653         PR testsuite/39781
6654         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
6655
6656 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6657
6658         PR C/31499
6659         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
6660         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
6661         value is a VECTOR_CST, the element type is the element type of the
6662         vector.
6663
6664 2009-04-22  DJ Delorie  <dj@redhat.com>
6665
6666         * config/m32c/m32c.h: Update GTY annotations to new syntax.
6667
6668 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
6669
6670         * alias.c (find_base_term): Move around LO_SUM case, so that
6671         CONST falls through into PLUS/MINUS handling.
6672
6673         PR c/39855
6674         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
6675         into 0, use omit_one_operand.
6676
6677 2009-04-23  Ben Elliston  <bje@au.ibm.com>
6678
6679         * config/rs6000/linux-unwind.h (get_regs): Remove type
6680         puns. Change the type of `pc' to an array of unsigned ints and
6681         update all users.  Constify frame24.
6682
6683 2009-04-22  DJ Delorie  <dj@redhat.com>
6684
6685         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
6686         declarations before code.
6687         (current_function_special_page_vector): Likewise.
6688         (m32c_expand_insv): Silence a warning.
6689
6690 2009-04-21  Taras Glek  <tglek@mozilla.com>
6691
6692         * alias.c: Update GTY annotations to new syntax.
6693         * basic-block.h: Likewise.
6694         * bitmap.h: Likewise.
6695         * c-common.h: Likewise.
6696         * c-decl.c: Likewise.
6697         * c-parser.c: Likewise.
6698         * c-pragma.c: Likewise.
6699         * c-tree.h: Likewise.
6700         * cfgloop.h: Likewise.
6701         * cgraph.h: Likewise.
6702         * config/alpha/alpha.c: Likewise.
6703         * config/arm/arm.h: Likewise.
6704         * config/avr/avr.h: Likewise.
6705         * config/bfin/bfin.c: Likewise.
6706         * config/cris/cris.c: Likewise.
6707         * config/darwin.c: Likewise.
6708         * config/frv/frv.c: Likewise.
6709         * config/i386/i386.c: Likewise.
6710         * config/i386/i386.h: Likewise.
6711         * config/i386/winnt.c: Likewise.
6712         * config/ia64/ia64.h: Likewise.
6713         * config/iq2000/iq2000.c: Likewise.
6714         * config/mips/mips.c: Likewise.
6715         * config/mmix/mmix.h: Likewise.
6716         * config/pa/pa.c: Likewise.
6717         * config/pa/pa.h: Likewise.
6718         * config/rs6000/rs6000.c: Likewise.
6719         * config/s390/s390.c: Likewise.
6720         * config/sparc/sparc.c: Likewise.
6721         * config/xtensa/xtensa.c: Likewise.
6722         * cselib.h: Likewise.
6723         * dbxout.c: Likewise.
6724         * dwarf2out.c: Likewise.
6725         * except.c: Likewise.
6726         * except.h: Likewise.
6727         * fixed-value.h: Likewise.
6728         * function.c: Likewise.
6729         * function.h: Likewise.
6730         * gimple.h: Likewise.
6731         * integrate.c: Likewise.
6732         * optabs.c: Likewise.
6733         * output.h: Likewise.
6734         * real.h: Likewise.
6735         * rtl.h: Likewise.
6736         * stringpool.c: Likewise.
6737         * tree-data-ref.c: Likewise.
6738         * tree-flow.h: Likewise.
6739         * tree-scalar-evolution.c: Likewise.
6740         * tree-ssa-address.c: Likewise.
6741         * tree-ssa-alias.h: Likewise.
6742         * tree-ssa-operands.h: Likewise.
6743         * tree.c: Likewise.
6744         * tree.h: Likewise.
6745         * varasm.c: Likewise.
6746         * varray.h: Likewise.
6747         * vec.h: Likewise.
6748         * coretypes.h: Do not define GTY macro if it is already defined.
6749         * doc/gty.texi: Update GTY documentation to new syntax.
6750         * gengtype-lex.l: Enforce attribute-like syntax for GTY
6751         annotations on structs.
6752         * gengtype-parse.c: Likewise.
6753
6754 2009-04-22  Mark Heffernan  <meheff@google.com>
6755
6756         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
6757
6758 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
6759
6760         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
6761         where appropriate.
6762
6763 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
6764
6765         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
6766         the same as a PLUS without a shift.  Increase the cost of a
6767         CONST_INT in MULT.
6768
6769 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6770
6771         * Makefile.in: Update dependencies.
6772         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
6773         * errors.h: Remove bogus comment about compatibility.
6774         (warning): Update declaration.
6775         * genautomata.c: Update all calls to warning.
6776         * gimple.c: Do not include errors.h. Include toplev.h.
6777         * tree-ssa-structalias.c: Do not include errors.h.
6778         * omega.c: Likewise.
6779         * tree-ssa-reassoc.c: Likewise.
6780         * config/spu/spu-c.c: Likewise.
6781         * config/spu/t-spu-elf: Update dependencies.
6782
6783 2009-04-22  Richard Guenther  <rguenther@suse.de>
6784
6785         PR tree-optimization/39824
6786         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
6787         make sure the types are compatible.
6788
6789 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6790
6791         PR c++/14875
6792         * c-common.c (c_parse_error): Take a token_flags parameter.
6793         Use token_type for the token type instead.
6794         Pass token_flags to cpp_type2name.
6795         * c-common.h (c_parse_error): Update declaration.
6796         * c-parser.c (c_parser_error): Pass 0 as token flags.
6797
6798 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
6799
6800         PR rtl-optimization/39580
6801         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert. 
6802         
6803 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6804
6805         * function.c (expand_function_end): Do not emit a jump to the "naked"
6806         return label for fall-through returns.
6807         * except.c (sjlj_emit_function_exit): Always place the call to the
6808         unregister function at the location installed by expand_function_end.
6809
6810 2009-04-22  Richard Guenther  <rguenther@suse.de>
6811
6812         PR tree-optimization/39845
6813         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
6814         (gen_inbound_check): Likewise.
6815
6816 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
6817
6818         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
6819         padding for PPC.
6820         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
6821         * config/vxlib.c (__gthread_once): Add race guard for PPC.
6822
6823 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
6824
6825         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
6826         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
6827         shift counts to avoid out-of-bounds array accesses.
6828
6829 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
6830
6831         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
6832         (Pmode): Move above.
6833
6834 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
6835
6836         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
6837         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
6838         GET_CODE macro.  Use IN_RANGE macro where appropriate.
6839         * config/alpha/alpha.h: Ditto.
6840         * config/alpha/alpha.md: Ditto.
6841         * config/alpha/constraints.md: Ditto.
6842         * config/alpha/predicates.md: Ditto.
6843         
6844 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
6845
6846         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
6847         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6848         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6849         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6850         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6851         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6852         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6853         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6854         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6855         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6856         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6857         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6858         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6859         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6860         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6861         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6862         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6863         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6864         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6865         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6866         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6867         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6868         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6869         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6870         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6871         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6872         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6873
6874 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6875
6876         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
6877         references from comments.
6878         * cfgbuild.c: (count_basic_blocks): Delete.
6879         (find_basic_blocks_1): Delete.
6880         (find_basic_blocks): Delete.
6881         * except.c (finish_eh_generation): Make static.  Move comment from
6882         except.h here.  Remove find_basic_blocks references from comments.
6883         * except.h (finish_eh_generation): Delete.
6884         * basic-block.h (find_basic_blocks): Delete.
6885         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
6886
6887 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
6888
6889         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
6890         (sdbout_parms):  Likewise.
6891
6892 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
6893
6894         * config/sh/sh.c (prepare_cbranch_operands): Use
6895         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
6896         (expand_cbranchdi4): Likewise.
6897         (from_compare): Add cast to enum type.
6898         (expand_cbranchsi4): Use add_reg_note.
6899         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
6900         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
6901         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
6902         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
6903         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
6904         instead of CODE_FOR_nothing.
6905         (cbranchdi4): Likewise.  Fix the order of arguments for
6906         gen_rtx_fmt_ee.
6907         (push_fpscr): Use add_reg_note.
6908         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
6909         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
6910         
6911 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
6912
6913         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
6914         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
6915         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
6916         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
6917         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
6918         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
6919         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
6920         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
6921         config/alpha/x-vms, config/arc/t-arc,
6922         config/arm/README-interworking, config/arm/arm-c.c,
6923         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
6924         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
6925         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
6926         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
6927         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
6928         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
6929         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
6930         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
6931         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
6932         config/cris/t-elfmulti, config/crx/t-crx,
6933         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
6934         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
6935         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
6936         config/h8300/t-h8300, config/i386/athlon.md,
6937         config/i386/darwin-libgcc.10.4.ver,
6938         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
6939         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
6940         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
6941         config/i386/t-linux64, config/i386/t-nwld,
6942         config/i386/t-rtems-i386, config/i386/t-sol2-10,
6943         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
6944         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
6945         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
6946         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
6947         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
6948         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
6949         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
6950         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
6951         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
6952         config/m68k/t-uclinux, config/mcore/t-mcore,
6953         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
6954         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
6955         config/mips/crtn.asm, config/mips/irix-crti.asm,
6956         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
6957         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
6958         config/mips/mips-fixed.md, config/mips/sb1.md,
6959         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
6960         config/mips/t-iris6, config/mips/t-isa3264,
6961         config/mips/t-libgcc-mips16, config/mips/t-linux64,
6962         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
6963         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
6964         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
6965         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
6966         config/mn10300/t-linux, config/mn10300/t-mn10300,
6967         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
6968         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
6969         config/picochip/libgccExtras/clzsi2.asm,
6970         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
6971         config/rs6000/darwin-libgcc.10.4.ver,
6972         config/rs6000/darwin-libgcc.10.5.ver,
6973         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
6974         config/rs6000/t-aix43, config/rs6000/t-aix52,
6975         config/rs6000/t-darwin, config/rs6000/t-fprules,
6976         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
6977         config/rs6000/t-lynx, config/rs6000/t-netbsd,
6978         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
6979         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
6980         config/rs6000/t-rtems, config/rs6000/t-spe,
6981         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
6982         config/score/t-score-elf, config/sh/divcost-analysis,
6983         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
6984         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
6985         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
6986         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
6987         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
6988         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
6989         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
6990         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
6991         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
6992         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
6993         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
6994         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
6995         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
6996         limitx.h, version.c, xcoff.h: Add copyright and license notices.
6997         * config/h8300/genmova.sh: Include copyright and license notices
6998         in generated output.
6999         * config/h8300/mova.md: Regenerate.
7000         * doc/install.texi2html: Include word "Copyright" in copyright
7001         notice and use name "Free Software Foundation, Inc.".
7002         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
7003         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
7004         ChangeLog-2007, ChangeLog-2008: Correct dates.
7005
7006 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
7007
7008         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
7009         NE_EXPR operations as well.
7010         * c-parser.c (c_parser_condition): Do not set location information on
7011         the condition.
7012         (c_parser_conditional_expression): Likewise.
7013         (c_parser_binary_expression): Set location information on operators.
7014         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
7015         TRUTH_NOT_EXPR has been folded.
7016         * fold-const.c (fold_truth_not_expr): Copy location information from
7017         the incoming expression to the outgoing one.
7018         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
7019         recursive calls on the LHS of the operator but pass that of the
7020         operator to recursive calls on the RHS of the operator.  Set it
7021         on the COND_EXPR.
7022         (shortcut_cond_expr): Set the locus of the operator on the second
7023         COND_EXPR and that of the expression on the first in degenerate cases.
7024         Pass the locus of the expression to calls to shortcut_cond_r.
7025         Set the locus of the 'then' block on the associated jump, if any.
7026         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
7027         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
7028         expression to call to gimplify_boolean_expr.
7029
7030 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
7031
7032         * config.gcc: Add additional configuration for
7033         i686-w64-mingw* and x86_64-w64-mingw* triplet.
7034         * config/i386/mingw-w64.h: New mingw-w64 specific header.
7035         (CPP_SPEC): Redefine for allowing -municode option.
7036         (STARTFILE_SPEC): Likewise.
7037         * config/i386/t-mingw-w64: New.
7038         * config/i386/mingw-w64.opt: New.
7039         (municode): Add new target option.
7040         * doc/invoke.texi (municode): Add documentation for new option.
7041
7042 2009-04-21  Ian Lance Taylor  <iant@google.com>
7043
7044         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7045         Correct test for number of arguments.
7046         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
7047
7048 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
7049
7050         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
7051         argument of emit_library_call.
7052
7053 2009-04-21  Richard Guenther  <rguenther@suse.de>
7054
7055         PR middle-end/39829
7056         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
7057         inside VIEW_CONVERT_EXPRs.
7058
7059 2009-04-21  Martin Jambor  <mjambor@suse.cz>
7060
7061         * tree-switch-conversion.c (build_constructors): Split a long line.
7062         (constructor_contains_same_values_p): New function.
7063         (build_one_array): Create assigns of constants if possible, do not
7064         call mark_sym_for_renaming, call update_stmt.
7065         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
7066         make_rename_temp.  Do not call mark_symbols_for_renaming, call
7067         update_stmt.
7068         (gen_def_assigns): Do not call mark_symbols_for_renaming or
7069         find_new_referenced_vars, call update_stmt.
7070         (gen_inbound_check): Use create_tmp_var and create ssa names manually
7071         instead of calling make_rename_temp.  Do not call
7072         find_new_referenced_vars or mark_symbols_for_renaming, call
7073         update_stmt.
7074
7075 2009-04-21  Richard Guenther  <rguenther@suse.de>
7076
7077         PR tree-optimization/39827
7078         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
7079         (tree_ssa_phiprop): Pass the correct array size.
7080
7081 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
7082
7083         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
7084
7085 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7086
7087         PR 16202
7088         * c-typeck.c (lvalue_p): Move declaration ...
7089         * c-common.h (lvalue_p): ... to here.
7090         * c-common.c (candidate_equal_p): New.
7091         (add_tlist): Use it.
7092         (merge_tlist): Use it.
7093         (warn_for_collisions_1): Likewise.
7094         (warning_candidate_p): Accept more candidates.
7095         (verify_tree): A warning candidate can be an expression. Use
7096         candidate_equal_p.
7097
7098 2009-04-21  Ben Elliston  <bje@au.ibm.com>
7099
7100         PR target/5267
7101         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
7102         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
7103         options.  Remove -mcall-solaris documentation.
7104
7105 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7106
7107         PR c++/13358
7108         * doc/invoke.texi (-Wlong-long): Update description.
7109         * c-lex (interpret_integer): Only warn if there was no previous
7110         overflow and -Wlong-long is enabled.
7111         * c-decl.c (declspecs_add_type): Drop redundant flags.
7112         * c.opt (Wlong-long): Init to -1.
7113         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
7114         and front-end warn_long_long. Wlong-long only depends on other
7115         flags if it is uninitialized.
7116         * c-parser.c (disable_extension_diagnostics): warn_long_long is
7117         the same for CPP and FE.
7118         (restore_extension_diagnostics): Likewise.
7119
7120 2009-04-20  Ian Lance Taylor  <iant@google.com>
7121
7122         Fix enum conversions which are invalid in C++:
7123         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
7124         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
7125         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
7126         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
7127         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
7128         (dbxout_parms): Likewise.
7129         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
7130         (df_clear_flags): Likewise.
7131         * df-problems.c (df_rd_bb_local_compute_process_def): Change
7132         top_flag parameter to int.
7133         (df_chain_create_bb_process_use): Likewise.
7134         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
7135         Remove cast.
7136         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
7137         (df_ref_create_structure, df_def_record_1): Likewise.
7138         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
7139         (df_notes_rescan): Change 0 to VOIDmode in function call.
7140         (df_get_call_refs, df_insn_refs_collect): Likewise.
7141         (df_bb_regs_collect): Likewise.
7142         (df_entry_block_defs_collect): Likewise.
7143         (df_exit_block_uses_collect): Likewise.
7144         * df.h: Update declarations.
7145         * double-int.c (double_int_divmod): Add cast to enum type.
7146         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
7147         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
7148         (based_loc_descr): Likewise.
7149         (loc_descriptor_from_tree_1): Change first_op and second_op to
7150         enum dwarf_location_atom.  Add cast to enum type.
7151         * expmed.c (init_expmed): Change 0 to SET in function call.
7152         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
7153         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
7154         (do_store_flag): Likewise.
7155         * fixed-value.h (struct fixed_value): Change mode to enum
7156         machine_mode.
7157         * function.c (assign_parms): Change 0 to VOIDmode in function call.
7158         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
7159         function call.
7160         (insert_insn_decl, insert_decl, insert_state): Likewise.
7161         (automata_list_finish): Likewise.
7162         * genrecog.c (process_define_predicate): Add cast to enum type.
7163         * gensupport.c (init_predicate_table): Add cast to enum type.
7164         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
7165         function call.
7166         (gimple_build_call_1, gimple_build_label): Likewise.
7167         (gimple_build_goto, gimple_build_asm_1): Likewise.
7168         (gimple_build_switch_1, gimple_build_cdt): Likewise.
7169         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
7170         (enum fallback): Rename from enum fallback_t.
7171         (fallback_t): Typedef as int.
7172         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
7173         GSI_SAME_STMT in function call.
7174         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
7175         enum type.
7176         (setup_reg_class_relations): Likewise.
7177         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
7178         (setup_prohibited_class_mode_regs): Add cast to enum type.
7179         (setup_prohibited_mode_move_regs): Likewise.
7180         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
7181         (record_address_regs): Change i to enum reg_class.
7182         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
7183         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
7184         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
7185         (GET_MODE_2XWIDER_MODE): Likewise.
7186         (GET_CLASS_NARROWEST_MODE): Likewise.
7187         * omp-low.c (expand_omp_for): Add cast to enum type.
7188         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
7189         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
7190         * postreload.c (reload_cse_simplify_operands): Change rclass local
7191         to enum reg_class.
7192         * predict.c (combine_predictions_for_insn): Change best_predictor
7193         and predictor to enum br_predictor.
7194         (combine_predictions_for_bb): Likewise.
7195         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
7196         use SET_PREDICT_EXPR_OUTCOME.
7197         * real.c (real_arithmetic): Change icode to code in function call.
7198         * reginfo.c (init_move_cost): Add casts to enum type.
7199         (init_reg_sets_1, init_fake_stack_mems): Likewise.
7200         * regmove.c (regclass_compatible_p): Change class0 and class1 to
7201         enum reg_class.
7202         * reload.c (find_valid_class): Add casts to enum type.
7203         (push_reload): Change 0 to NO_REGS in function call.
7204         (find_reloads): Change this_alternative to array of enum
7205         reg_class.  Remove some now-unnecessary casts.
7206         (make_memloc): Change 0 to VOIDmode in function call.
7207         * reload1.c (reload): Change 0 to VOIDmode in function call.
7208         (eliminate_regs_1, elimination_effects): Likewise.
7209         (eliminate_regs_in_insn): Likewise.
7210         (emit_input_reload_insns): Add cast to enum type.
7211         (delete_output_reload): Change 0 to VOIDmode in function call.
7212         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
7213         to enum type in function call.
7214         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
7215         (SET_PREDICT_EXPR_OUTCOME): Define.
7216         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
7217         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
7218         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
7219         (dump_function): Likewise.
7220         * tree-dump.h: Update declarations.
7221         * tree-pass.h: Update declarations.
7222         * varasm.c (assemble_integer): Change mclass to enum mode_class.
7223         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
7224         enum type.
7225         (arm_rtx_costs_1): Correct parenthesization.
7226         (arm_rtx_costs): Add casts to enum type.
7227         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
7228         (vfp_emit_fstmd): Use add_rg_note.
7229         (emit_multi_reg_push, emit_sfm): Likewise.
7230         (thumb_set_frame_pointer): Likewise.
7231         (arm_expand_prologue): Likewise.
7232         (arm_regno_class): Change return type to enum reg_class.
7233         (thumb1_expand_prologue): Use add_reg_note.
7234         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
7235         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
7236         in function call.
7237         * config/arm/gentune.sh: Add cast to enum type.
7238         * config/arm/arm-tune.md: Rebuild.
7239         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
7240         (ix86_split_fp_branch, predict_jump): Likewise.
7241         (ix86_expand_multi_arg_builtin): Change sub_code from enum
7242         insn_code to enum rtx_code.
7243         (ix86_builtin_vectorized_function): Add cast to enum type.
7244         * config/i386/i386.md (truncdfsf2): Change slot to enum
7245         ix86_stack_slot.
7246         (truncxf<mode>2, isinf<mode>2): Likewise.
7247         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
7248         enum type.
7249         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
7250         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
7251         (insert_bundle_state): Change 1 to INSERT in function call.
7252         (ia64_add_bundle_selector_before): Likewise.
7253         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
7254         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
7255         (restore_stack_nonlocal): Likewise.
7256         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
7257         function call.
7258         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
7259         function call.
7260         (mips_rtx_costs): Likewise.
7261         (mips_override_options): Add casts to enum type.
7262         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
7263         in function call.
7264         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
7265         (store_reg, set_reg_plus_d): Likewise.
7266         (hppa_expand_prologue, hppa_profile_hook): Likewise.
7267         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
7268         cast to enum type.
7269         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
7270         function call.
7271         (emit_unlikely_jump): Use add_reg_note.
7272         (rs6000_emit_allocate_stack): Likewise.
7273         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
7274         (output_toc): Change 1 to INSERT in function call.
7275         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
7276         (rs6000_initialize_trampoline): Likewise.
7277         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
7278         function call.
7279         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
7280         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
7281         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
7282         (save_gprs): Use add_reg_note.
7283         (s390_emit_prologue): Likewise.
7284         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
7285         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
7286         (sparc_fold_builtin): Add cast to enum type.
7287         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
7288         enum insn_code.
7289         (spu_expand_prologue): Use add_reg_note.
7290         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
7291
7292 2009-04-20  Ian Lance Taylor  <iant@google.com>
7293
7294         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
7295         (c_parser_postfix_expression_after_primary): Get VEC for list of
7296         arguments.  Get original types of arguments.  Call
7297         build_function_call_vec.
7298         (cached_expr_list_1, cached_expr_list_2): New static variables.
7299         (c_parser_expr_list): Change return type to VEC *.  Add
7300         p_orig_types parameter.  Change all callers.
7301         (c_parser_release_expr): New static function.
7302         (c_parser_vec_to_tree_list): New static function.
7303         * c-typeck.c (build_function_call): Rewrite to build a VEC and
7304         call build_function_call_vec.
7305         (build_function_call_vec): New function, based on old
7306         build_function_call.
7307         (convert_arguments): Remove nargs and argarray parameters.  Change
7308         values to a VEC.  Add origtypes parameter.
7309         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
7310         (convert_for_assignment): Add origtype parameter.  Change all
7311         callers.  If warn_cxx_compat, check for conversion to an enum
7312         type when calling a function.
7313         (store_init_value): Add origtype parameter.  Change all callers.
7314         (digest_init): Likewise.
7315         (struct init_node): Add origtype field.
7316         (add_pending_init): Add origtype parameter.  Change all callers.
7317         (output_init_element): Likewise.
7318         (output_pending_init_elements): Pass origtype from init_node to
7319         output_init_element.
7320         (process_init_element): Pass origtype from c_expr to
7321         output_init_element.
7322         (c_finish_return): Add origtype parameter.  Change all callers.
7323         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
7324         caller.
7325         (sync_resolve_params): Likewise.
7326         (sync_resolve_return): Change params to first_param.  Change caller.
7327         (resolve_overloaded_builtins): Change params to VEC *.  Change
7328         callers.  Save first parameter around call to build_function_call_vec.
7329         * c-decl.c (finish_decl): Add origtype parameter.  Change all
7330         callers.  Call build_function_call_vec rather than
7331         build_function_call for cleanup.
7332         * c-tree.h: Update declarations.
7333         * c-common.h: Update declarations.
7334         * stub-objc.c (objc_rewrite_function_call): Change parameter from
7335         params to first_param.
7336         * target.h (struct gcc_target): Change resolve_overloaded_builtin
7337         params parameter from tree to void *.
7338         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7339         Change arglist parameter to have type void *, and to be a pointer
7340         to a VEC.
7341         * config/rs6000/rs6000-protos.h
7342         (altivec_resolve_overloaded_builtin): Update declaration.
7343         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
7344         fnargs parameter to have type void *, and to be a pointer to a
7345         VEC.  Call build_function_call_vec instead of
7346         build_function_call.
7347         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
7348
7349 2009-04-20  Joey Ye  <joey.ye@intel.com>
7350             Xuepeng Guo  <xuepeng.guo@intel.com>
7351             H.J. Lu  <hongjiu.lu@intel.com>
7352
7353         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
7354
7355         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
7356         (IX86_LEA_PRIORITY): Likewise.
7357         (distance_non_agu_define): New function.
7358         (distance_agu_use): Likewise.
7359         (ix86_lea_for_add_ok): Likewise.
7360         (ix86_dep_by_shift_count): Likewise.
7361
7362         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
7363         should split for LEA.
7364
7365         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
7366         function.
7367         (ix86_dep_by_shift_count): Likewise.
7368
7369 2009-04-20  Richard Guenther  <rguenther@suse.de>
7370
7371         * expr.c (handled_component_p): Move ...
7372         * tree.h (handled_component_p): ... here.
7373         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
7374         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
7375         and REALPART_EXPR to be in one group.
7376
7377 2009-04-20  Richard Guenther  <rguenther@suse.de>
7378
7379         * basic-block.h (get_all_dominated_blocks): Declare.
7380         * dominance.c (get_all_dominated_blocks): New function.
7381         * tree-cfg.c (get_all_dominated_blocks): Remove.
7382         (remove_edge_and_dominated_blocks): Adjust.
7383         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
7384         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
7385         instead of recursing.
7386
7387 2009-04-20  Doug Kwan  <dougkwan@google.com>
7388
7389         * cgraph.h (cgraph_node_ptr): New type for vector functions.
7390         (struct cgraph_node_set_def): New type.
7391         (cgraph_node_set) New type. Also declare vector functions.
7392         (struct cgraph_node_set_element_def): New type.
7393         (cgraph_node_set_element): Ditto.
7394         (cgraph_node_set_iterator): New iterator type.
7395         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
7396         cgraph_node_set_remove, dump_cgraph_node_set,
7397         debug_cgraph_node_set): New prototypes.
7398         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
7399         cgraph_node_set_size): New inlines.
7400         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
7401         including cgraph.h.
7402         (struct ipa_opt_pass): Add struct cgraph_node_set_def
7403         argument to function 'write_summary'.
7404         * ipa.c: Include ggc.h.
7405         (hash_cgraph_node_set_element,
7406         eq_cgraph_node_set_element, cgraph_node_set_new,
7407         cgraph_node_set_add, cgraph_node_set_remove,
7408         cgraph_node_set_find, dump_cgraph_node_set,
7409         debug_cgraph_node_set): New functions.
7410         * Makefile.in (ipa.o): Add dependency on GGC_H.
7411
7412 2009-04-20  Ira Rosen  <irar@il.ibm.com>
7413
7414         PR tree-optimization/39675
7415         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
7416         check of the return code of vect_schedule_slp. Check that
7417         stmt_vec_info still exists for the statement, before checking its
7418         vectorization type.
7419
7420 2009-04-20  Michael Matz  <matz@suse.de>
7421
7422         * Makefile.in (generated_files): Take out $(simple_generated_c).
7423
7424 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
7425
7426         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
7427         (UINTPTR_TYPE):  Likewise.
7428
7429 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
7430
7431         PR c/37481
7432         * c-typeck.c (digest_init): Check for initializing an array with a
7433         string literal.
7434
7435 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
7436
7437         PR c/19771
7438         * c-semantics.c (pop_stmt_list): Propagate
7439         STATEMENT_LIST_HAS_LABEL to parent statement list.
7440
7441 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
7442
7443         * config/mips/mips.h (mips_tune_attr): New macro.
7444         * config/mips/mips.md (cpu): Use it.
7445
7446 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
7447
7448         PR c/38243
7449         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
7450         declaring a tag.
7451
7452 2009-04-19  Diego Novillo  <dnovillo@google.com>
7453
7454         * toplev.c (compile_file): Move call to coverage_finish ...
7455         * cgraphunit.c (ipa_passes): ... here.
7456         Call cgraph_process_new_functions.
7457         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
7458         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
7459
7460 2009-04-19  Jan Hubicka  <jh@suse.cz>
7461
7462         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
7463         cfun.
7464         (dump_cgraph_node): Dump can throw external flag.
7465         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
7466
7467 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7468
7469         PR c/32061
7470         PR c++/36954
7471         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
7472         * common.opt (Wlogical-op): Move from here...
7473         * c.opt (Wlogical-op): ... to here.
7474         * c-typeck.c (parser_build_binary_op): Update call to
7475         warn_logical_operator.
7476         * c-opts.c (c_common_post_options): Enable warn_logical_op with
7477         extra_warnings.
7478         * c-common.c (warn_logical_op): Update.
7479         * c-common.h (warn_logical_op): Update declaration.
7480
7481 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
7482
7483         * tree.c (protected_set_expr_location): Fix formatting.
7484
7485 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
7486
7487         PR c/27676
7488         * c-typeck.c (readonly_warning): new.
7489         (build_unary_op, build_modify_expr): Use readonly_warning for
7490         storing into something readonly but not const-qualified.
7491
7492 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
7493
7494         PR c/22367
7495         * c-typeck.c (build_unary_op): Check for taking address of
7496         expression of type void.
7497
7498 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
7499
7500         PR c/35210
7501         * c-typeck.c (build_function_call): Check for calling a function
7502         with qualified void return types.  Call require_complete_type when
7503         generating a trap.
7504
7505 2009-04-18  Jan Hubicka  <jh@suse.cz>
7506
7507         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
7508         Set nothrow flag.
7509         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
7510         can_throw_external flag.
7511         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
7512         * ipa-pure-const.c (ignore_edge): New function.
7513         (propagate): Compute order for NOTHROW computation; set NOTHROWs
7514         only over can_throw_external edges.
7515         (local_pure_const): Add nothrow flag.
7516         * ipa-utils.c (searchc): Add ignore_edge callback.
7517         (ipa_utils_reduced_inorder): Add ignore_edge callback.
7518         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
7519         (set_nothrow_function_flags): Update cgraph.
7520         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
7521
7522 2009-04-18  Richard Guenther  <rguenther@suse.de>
7523
7524         PR middle-end/39804
7525         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
7526         (fold_stmt): ... this and ...
7527         (fold_stmt_inplace): ... this.
7528         (fold_stmt_1): Fold references in calls and asms.
7529         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
7530
7531 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
7532
7533         * tree-vrp.c (ssa_name_nonzero_p): Remove.
7534         * tree.h: Remove the prototype for ssa_name_nonzero_p.
7535
7536 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
7537
7538         * tree.c (function_args_count): Remove.
7539         * tree.h: Remove the prototype for function_args_count.
7540
7541 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
7542
7543         * tree-iterator.c (expr_only): Remove.
7544         * tree.h: Remove the prototype for expr_only.
7545
7546 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
7547
7548         * reginfo.c (cannot_change_mode_set_regs): Remove.
7549         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
7550
7551 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
7552
7553         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
7554         whether operands 0 and 1 overlaps.
7555
7556 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7557
7558         PR middle-end/36902
7559         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
7560         pointer. Use warning_at instead of warning.
7561         (search_for_addr_array): Likewise.
7562         (check_array_bounds): Likewise.
7563         (check_all_array_refs): Check that the incoming edge is not in the
7564         list of edges to be removed.
7565         (check_all_array_refs): Avoid the temporal pointer.
7566         (vrp_visit_cond_stmt): Fix typo.
7567         (simplify_switch_using_ranges): Handle the case where the switch
7568         index is an integer constant.
7569
7570 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
7571
7572         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
7573
7574 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
7575
7576         * doc/extend.texi, doc/invoke.texi: Fix typos.
7577
7578 2009-04-17  Cary Coutant  <ccoutant@google.com>
7579
7580         * tree-flow-inline.h (get_lineno): Fix inverted test.
7581
7582 2009-04-17  Diego Novillo  <dnovillo@google.com>
7583
7584         * tree-ssa-pre.c (create_expression_by_pieces): Remove
7585         assertion for AVAIL_OUT.
7586
7587 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
7588
7589         PR target/38627
7590         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
7591         * config/sh/linux-atomic.asm: Likewise.
7592
7593 2009-04-17  Diego Novillo  <dnovillo@google.com>
7594
7595         * except.c (debug_eh_tree): New.
7596         (struct eh_region, struct eh_status): Move ...
7597         * except.h: ... here.
7598         (add_type_for_runtime): Declare extern.
7599         (lookup_type_for_runtime): Likewise.
7600         (debug_eh_tree): Declare.
7601         * Makefile.in (GTFILES): List except.h before except.c
7602
7603 2009-04-17  Diego Novillo  <dnovillo@google.com>
7604
7605         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
7606         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
7607         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
7608         (find_vars_r): ... here.
7609         * tree-flow.h (find_referenced_vars_in): Declare.
7610         * tree-ssa-pre.c (create_expression_by_pieces): Assert
7611         that AVAIL_OUT exists for BLOCK.
7612         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
7613         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
7614         (tree-parloops.o): Likewise.
7615
7616 2009-04-17  Simon Baldwin  <simonb@google.com>
7617
7618         * toplev.c (default_tree_printer): Add handling for %E format.
7619
7620 2009-04-17  Diego Novillo  <dnovillo@google.com>
7621
7622         * tree-pretty-print.c (dump_generic_node): Add break after
7623         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
7624         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
7625         FUNCTION_TYPE together.  Call print_struct_decl when printing
7626         structures and TDF_SLIM is not given.
7627         (print_struct_decl): Fix logic for detecting recursion.
7628
7629 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
7630
7631         PR 31567
7632         * gcc.c (create_at_file): New.
7633         (compile_input_file_p): New.
7634         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
7635         * main.c (main): Update call to toplev_main.
7636         * toplev.c (toplev_main): Change signature. Call expandargv.
7637         * toplev.h (toplev_main): Change signature.
7638
7639 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
7640
7641         * dwarf2out.c (field_byte_offset): Use the type size as the field size
7642         if the latter is not constant.
7643
7644 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
7645
7646         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
7647
7648 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
7649
7650         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
7651         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
7652
7653 2009-04-17  Richard Guenther  <rguenther@suse.de>
7654
7655         * tree-ssa-structalias.c (get_constraint_for_component_ref):
7656         Handle component references view-converting an invariant address.
7657
7658 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
7659
7660         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
7661         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
7662         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
7663         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
7664         Use @deftypevr rather than @deftypevar.
7665
7666 2009-04-17  Richard Guenther  <rguenther@suse.de>
7667
7668         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
7669         (get_prop_source_stmt): Likewise.
7670         (can_propagate_from): Likewise.
7671
7672 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
7673
7674         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
7675         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
7676         (--with-multilib-list): Add default value.
7677         * configure: Regenerate.
7678         * Makefile.in (TM_ENDIAN_CONFIG): Define.
7679         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
7680         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
7681         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
7682         Don't add default cpu to multilib list unnecessarily, but do enable
7683         the relevant compiler option..
7684         Add support for --with-multilib-list=<blank> and
7685         --with-multilib-list=!<somelib> to supress unwanted multilibs.
7686         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
7687         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
7688         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
7689         TM_MULTILIB_CONFIG.
7690         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
7691         (MULTILIB_OSDIRNAMES): New variable.
7692         * config/sh/t-1e: Delete file.
7693         * config/sh/t-mlib-sh1: Delete file.
7694         * config/sh/t-mlib-sh2: Delete file.
7695         * config/sh/t-mlib-sh2a: Delete file.
7696         * config/sh/t-mlib-sh2a-nofpu: Delete file.
7697         * config/sh/t-mlib-sh2a-single: Delete file.
7698         * config/sh/t-mlib-sh2a-single-only: Delete file.
7699         * config/sh/t-mlib-sh2e: Delete file.
7700         * config/sh/t-mlib-sh3e: Delete file.
7701         * config/sh/t-mlib-sh4: Delete file.
7702         * config/sh/t-mlib-sh4-nofpu: Delete file.
7703         * config/sh/t-mlib-sh4-single: Delete file.
7704         * config/sh/t-mlib-sh4-single-only: Delete file.
7705         * config/sh/t-mlib-sh4a: Delete file.
7706         * config/sh/t-mlib-sh4a-nofpu: Delete file.
7707         * config/sh/t-mlib-sh4a-single: Delete file.
7708         * config/sh/t-mlib-sh4a-single-only: Delete file.
7709         * config/sh/t-mlib-sh4al: Delete file.
7710         * config/sh/t-mlib-sh5-32media: Delete file.
7711         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
7712         * config/sh/t-mlib-sh5-64media: Delete file.
7713         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
7714         * config/sh/t-mlib-sh5-compact: Delete file.
7715         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
7716         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
7717         * doc/install.texi (Options specification): Add
7718         --with-multilib-list and --with-endian.
7719
7720 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
7721
7722         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
7723         REVISION_c.
7724         (OBJS-common): Add plugin-version.o.
7725         (plugin-version.o): New.
7726         * gcc-plugin.h (plugin_gcc_version): New.
7727         (plugin_default_version_check): New.
7728         (plugin_init_func, plugin_init): Add version argument.
7729         * plugin-version.c: New.
7730         * plugin.c (str_plugin_gcc_version_name): New.
7731         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
7732         pass it to the init function.
7733         (plugin_default_version_check): New.
7734
7735 2009-04-17  Richard Guenther  <rguenther@suse.de>
7736
7737         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
7738         for decl-vs-decl disambiguation.
7739
7740 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
7741
7742         * config/s390/s390.h (s390_tune_attr): New macro definition.
7743         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
7744
7745 2009-04-17  Richard Guenther  <rguenther@suse.de>
7746
7747         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
7748         (fold_stmt_r): Likewise.
7749         (maybe_fold_reference): New function.
7750         (fold_gimple_assign): Handle cases fold_stmt_r did.
7751         (fold_stmt): Do not use fold_stmt_r.
7752         (fold_stmt_inplace): Likewise.
7753
7754 2009-04-17  Richard Guenther  <rguenther@suse.de>
7755
7756         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
7757         (record_equivalences_from_stmt): Remove useless checks and
7758         simplifications.
7759         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
7760         the type is already suitable.
7761
7762 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
7763
7764         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
7765
7766 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
7767
7768         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
7769         (CMPtype): Define as __gcc_CMPtype.
7770
7771 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
7772
7773         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
7774         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
7775
7776 2009-04-17  Richard Guenther  <rguenther@suse.de>
7777
7778         PR tree-optimization/39746
7779         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
7780         special-casing for builtins and static variable use/def.
7781         (call_may_clobber_ref_p_1): Likewise.
7782
7783 2009-04-16  Ian Lance Taylor  <iant@google.com>
7784
7785         * df.h: Include "timevar.h".
7786         (struct df_problem): Change tv_id field to timevar_id_t.
7787         * tree-pass.h: Include "timevar.h".
7788         (struct opt_pass): Change tv_id field to timevar_id_t.
7789         * timevar.h (timevar_id_t): Define TV_NONE.
7790         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
7791         TV_NONE rather than tv_id != 0.
7792         (execute_one_pass): Likewise.
7793         * Makefile.in (DF_H): Add $(TIMEVAR_H).
7794         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
7795         dependencies to $(TREE_PASS_H).
7796         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
7797         to TV_NONE.
7798         (pass_branch_target_load_optimize2): Likewise.
7799         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
7800         (pass_outof_cfg_layout_mode): Likewise.
7801         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
7802         (pass_rebuild_cgraph_edges): Likewise.
7803         (pass_remove_cgraph_callee_edges): Likewise.
7804         * df-core.c (pass_df_initialize_opt): Likewise.
7805         (pass_df_initialize_no_opt): Likewise.
7806         (pass_df_finish): Likewise.
7807         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
7808         * except.c (pass_set_nothrow_function_flags): Likewise.
7809         (pass_convert_to_eh_region_ranges): Likewise.
7810         * final.c (pass_compute_alignments): Likewise.
7811         * function.c (pass_instantiate_virtual_regs): Likewise.
7812         (pass_init_function): Likewise.
7813         (pass_leaf_regs): Likewise.
7814         (pass_match_asm_constraints): Likewise.
7815         * gimple-low.c (pass_lower_cf): Likewise.
7816         (pass_mark_used_blocks): Likewise.
7817         * init-regs.c (pass_initialize_regs): Likewise.
7818         * integrate.c (pass_initial_value_sets): Likewise.
7819         * ira.c (pass_ira): Likewise.
7820         * jump.c (pass_cleanup_barriers): Likewise.
7821         * omp-low.c (pass_expand_omp): Likewise.
7822         (pass_lower_omp): Likewise.
7823         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
7824         * recog.c (pass_split_all_insns): Likewise.
7825         (pass_split_after_reload): Likewise.
7826         (pass_split_before_regstack): Likewise.
7827         (pass_split_before_sched2): Likewise.
7828         (pass_split_for_shorten_branches): Likewise.
7829         * reginfo.c (pass_reginfo_init): Likewise.
7830         (pass_subregs_of_mode_init): Likewise.
7831         (pass_subregs_of_mode_finish): Likewise.
7832         * passes.c (pass_postreload): Likewise.
7833         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
7834         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
7835         (pass_warn_function_return): Likewise.
7836         (pass_warn_function_noreturn): Likewise.
7837         * tree-complex.c (pass_lower_complex): Likewise.
7838         (pass_lower_complex_O0): Likewise.
7839         * tree-if-conv.c (pass_if_conversion): Likewise.
7840         * tree-into-ssa.c (pass_build_ssa): Likewise.
7841         * tree-mudflap.c (pass_mudflap_1): Likewise.
7842         (pass_mudflap_2): Likewise.
7843         * tree-nomudflap.c (pass_mudflap_1): Likewise.
7844         (pass_mudflap_2): Likewise.
7845         * tree-nrv.c (pass_return_slot): Likewise.
7846         * tree-object-size.c (pass_object_sizes): Likewise.
7847         * tree-optimize.c (pass_all_optimizations): Likewise.
7848         (pass_early_local_passes): Likewise.
7849         (pass_all_early_optimizations): Likewise.
7850         (pass_cleanup_cfg): Likewise.
7851         (pass_cleanup_cfg_post_optimizing): Likewise.
7852         (pass_free_datastructures): Likewise.
7853         (pass_free_cfg_annotations): Likewise.
7854         (pass_fixup_cfg): Likewise.
7855         (pass_init_datastructures): Likewise.
7856         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
7857         (pass_late_warn_uninitialized): Likewise.
7858         (pass_update_address_taken): Likewise.
7859         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
7860         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
7861         (pass_cse_sincos): Likewise.
7862         (pass_convert_to_rsqrt): Likewise.
7863         * tree-ssa-structalias.c (pass_build_alias): Likewise.
7864         * tree-stdarg.c (pass_stdarg): Likewise.
7865         * tree-tailcall.c (pass_tail_recursion): Likewise.
7866         (pass_tail_calls): Likewise.
7867         * tree-vect-generic.c (pass_lower_vector): Likewise.
7868         (pass_lower_vector_ssa): Likewise.
7869         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
7870
7871 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
7872
7873         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
7874         XLR entry.
7875         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
7876         Handle -march=xlr.
7877         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
7878         logical and signext.
7879
7880 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
7881
7882         PR target/39767
7883         * config/sh/predicates.md (arith_operand): Check if the operand
7884         of TRUNCATE is a REG.
7885
7886 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
7887
7888         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
7889         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
7890
7891 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
7892
7893         * tree-iterator.c (tsi_split_statement_list_after,
7894         tsi_split_statement_list_before): Remove.
7895         * tree-iterator.h: Remove the prototypes for
7896         tsi_split_statement_list_after and tsi_split_statement_list_before.
7897
7898 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
7899
7900         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
7901         * tree-ssa-propagate.h: Remove the prototype for
7902         stmt_makes_single_load.
7903
7904 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
7905
7906         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
7907         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
7908
7909 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
7910
7911         * tree-iterator.c (EXPR_LAST_BODY): Remove.
7912
7913 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
7914
7915         * except.c (eh_region_outer_p): Remove.
7916         * except.h: Remove the prototype for eh_region_outer_p.
7917
7918 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
7919
7920         * function.c (current_function_assembler_name): Remove.
7921         * function.h: Remove the prototype for
7922         current_function_assembler_name.
7923
7924 2009-04-16  Ian Lance Taylor  <iant@google.com>
7925
7926         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
7927         (add_reg_note): Call alloc_reg_note.
7928         * rtl.h (alloc_reg_note): Declare.
7929         * combine.c (try_combine): Use alloc_reg_note.
7930         (recog_for_combine, move_deaths): Likewise.
7931         (distribute_notes): Use alloc_reg_note and add_reg_note.
7932         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
7933         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
7934         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
7935
7936 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
7937
7938         PR rtl-optimization/39762
7939         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
7940         ira_may_move_out_cost): Add comments about way of their usage.
7941         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
7942
7943         * ira-conflicts.c (process_regs_for_copy): Use function
7944         ira_get_register_move_cost instead of global
7945         ira_register_move_cost.
7946
7947         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
7948         color_pass, move_spill_restore, update_curr_costs): Ditto.
7949
7950         * ira-lives.c (process_single_reg_class_operands): Ditto.
7951
7952         * ira-emit.c (emit_move_list): Ditto.
7953
7954         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
7955         (record_reg_classes): Ditto.  Use functions
7956         ira_get_register_move_cost and ira_get_may_move_cost instead of
7957         global vars ira_register_move_cost, ira_may_move_out_cost and
7958         ira_may_move_in_cost.
7959         (record_address_regs): Don't call ira_init_register_move_cost.
7960         Use function ira_get_may_move_cost instead of global
7961         ira_may_move_in_cost.
7962         (process_bb_node_for_hard_reg_moves): Use function
7963         ira_get_register_move_cost instead of global ira_register_move_cost.
7964         (ira_costs): Don't call ira_init_register_move_cost.
7965
7966 2009-04-16  Richard Guenther  <rguenther@suse.de>
7967
7968         * tree-cfg.c (verify_gimple_assign_binary):
7969         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
7970         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
7971         (create_general_new_stmt): Note that this function is broken.
7972
7973 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
7974
7975         * common.opt (fhelp): Add Var(help_flag).
7976         * gcc-plugin.h (plugin_info): Add help.
7977         * plugin.c (plugin_name_args): Add help.
7978         (register_plugin_info): Set plugin->help.
7979         (print_help_one_plugin): New.
7980         (print_plugins_help): New.
7981         * plugin.h (print_plugins_help): New.
7982         * toplev.c (toplev_main): Call print_plugins_help if needed.
7983
7984 2009-04-16  Richard Guenther  <rguenther@suse.de>
7985
7986         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
7987         (gimple_ior_addresses_taken_1): New function.
7988         (gimple_ior_addresses_taken): Likewise.
7989         * gimple.h (struct gimple_statement_with_ops_base): Remove
7990         addresses_taken member.
7991         (gimple_ior_addresses_taken): Declare.
7992         (gimple_addresses_taken, gimple_addresses_taken_ptr,
7993         gimple_set_addresses_taken): Remove.
7994         * ipa-reference.c (mark_address): New function.
7995         (scan_stmt_for_static_refs): Use it for marking addresses taken.
7996         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
7997         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
7998         (gimple_add_to_addresses_taken): Remove.
7999         (get_tmr_operands): Call mark_address_taken.
8000         (get_asm_expr_operands): Likewise.
8001         (get_expr_operands): Likewise.
8002         (build_ssa_operands): Do not clear the addresses_taken bitmap.
8003         (free_stmt_operands): Do not free it.
8004         * tree-ssa.c (delete_tree_ssa): Likewise.
8005         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
8006
8007 2009-04-16  Richard Guenther  <rguenther@suse.de>
8008
8009         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
8010         (walk_stmt_load_store_ops): Likewise.
8011         * gimple.c (get_base_loadstore): New function.
8012         (walk_stmt_load_store_addr_ops): Likewise.
8013         (walk_stmt_load_store_ops): Likewise.
8014         * ipa-pure-const.c (check_op): Simplify.
8015         (check_load, check_store): New functions.
8016         (check_stmt): Use walk_stmt_load_store_ops.
8017         * ipa-reference.c (mark_load): Adjust signature.
8018         (mark_store): Likewise.
8019         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
8020
8021 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
8022
8023         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
8024         (plugin_info): New.
8025         * opts.c (common_handle_option): Don't call print_version.
8026         * plugin.c (plugin_name_args): Add version.
8027         (register_plugin_info): New.
8028         (register_callback): Handle PLUGIN_INFO.
8029         (try_init_one_plugin): New.
8030         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
8031         if failed to init.
8032         (finalize_one_plugin): New.
8033         (finalize_plugins): New.
8034         (print_one_plugin): New.
8035         (print_plugins_versions): New.
8036         * plugin.h (print_plugins_versions): New.
8037         (finalize_plugins): New.
8038         * toplev.c (compile_file): Don't call initialize_plugins.
8039         (print_version): Call print_plugins_versions.
8040         (toplev_main): Call initialize_plugins. Print version if needed.
8041         Call finalize_plugins.
8042
8043 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
8044
8045         * common.opt (fversion): New.
8046         * gcc.c (print_version): New.
8047         (process_command): Don't print the version. Just set print_version.
8048         (main): Print version. Call subprocesses if print_version and
8049         verbose_flag are set.
8050         * opts.c (common_handle_option): Handle OPT_fversion.
8051
8052 2009-04-16  Richard Guenther  <rguenther@suse.de>
8053             Ira Rosen  <irar@il.ibm.com>
8054
8055         PR tree-optimization/39698
8056         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
8057         type of the reduction variable.  Only generate the def if
8058         it is needed.
8059
8060         * omp-low.c (expand_omp_for_generic): When converting to a pointer
8061         make sure to first convert to an integer of the same precision.
8062         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
8063         the type of the evolution correctly in computing the new
8064         induction variable base.
8065
8066 2009-04-16  Richard Guenther  <rguenther@suse.de>
8067
8068         PR middle-end/39625
8069         * tree-cfg.c (make_blocks): Split statements with to-be
8070         abnormal SSA names on the lhs.
8071
8072 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
8073
8074         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
8075         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
8076         * c-typeck.c (really_start_incremental_init): Likewise.
8077         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
8078         (TARGET_INITIALIZER): Remove it.
8079         * target.h (struct target): Remove vector_opaque_p.
8080         * tree.c (build_opaque_vector_type): New.
8081         * tree.h (TYPE_VECTOR_OPAQUE): New.
8082         (build_opaque_vector_type): Declare.
8083         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
8084         * config/rs6000/rs6000.c (build_opaque_vector_type,
8085         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
8086         (rs6000_init_builtins): Use build_opaque_vector_type for
8087         opaque_V4SI_type_node.
8088
8089 2009-04-15  Catherine Moore  <clm@codesourcery.com>
8090
8091         * debug.h (set_name):  Declare.
8092         * dwarf2out.c (dwarf2out_set_name): Declare.
8093         (dwarf2_debug_hooks): Add set_name.
8094         (find_AT_string): New.
8095         (add_AT_string): Call find_AT_string.
8096         (dwarf2out_set_name): New.
8097         * cp/decl.c (grokdeclarator): Call set_name.
8098         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
8099         * debug.c (do_nothing_debug_hooks):  Likewise.
8100         * dbxout.c (dbx_debug_hooks): Likewise.
8101         * sdbout.c (sdb_debug_hooks): Likewise.
8102
8103 2009-04-15  Michael Eager  <eager@eagercon.com>
8104
8105         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
8106         reg for single-precision FPU.
8107         * config/rs6000/rs6000.md (movsi_internal1): Only for
8108         !TARGET_SINGLE_FPU.
8109         (movsi_internal1_single): New. Add pattern to move SI values to/from
8110         single-precision FP regs.
8111
8112 2009-04-15  Richard Guenther  <rguenther@suse.de>
8113
8114         * omp-low.c (lower_rec_input_clauses): Build correct address
8115         expressions.
8116         (expand_omp_for_generic): Fix multiplication type.
8117         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
8118         (generate_memset_zero): Fix types.
8119         * tree-profile.c (prepare_instrumented_value): Correctly
8120         widen a pointer.
8121
8122 2009-04-15  Ian Lance Taylor  <iant@google.com>
8123
8124         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
8125         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
8126         for -Wall and for -Wc++-compat.
8127         (c_common_post_options): For C++, set warn_enum_compare if not
8128         already set.
8129         * c-tree.h (struct c_expr): Add field original_type.
8130         (build_external_ref): Update declaration.
8131         * c-parser.c (c_parser_braced_init): Set original_type.
8132         (c_parser_initelt): Likewise.
8133         (c_parser_expr_no_commas): Likewise.
8134         (c_parser_conditional_expression): Likewise.
8135         (c_parser_cast_expression): Likewise.
8136         (c_parser_unary_expression): Likewise.  Pull setting of
8137         original_code to top of function.
8138         (c_parser_sizeof_expression): Set original_type.
8139         (c_parser_alignof_expression): Likewise.
8140         (c_parser_postfix_expression): Likewise.  Pull setting of
8141         original_code to top of function.
8142         (c_parser_postfix_expression_after_paren_type): Set original_type.
8143         (c_parser_postfix_expression_after_primary): Likewise.
8144         (c_parser_expression): Likewise.
8145         * c-typeck.c (build_external_ref): Add type parameter.  Change all
8146         callers.
8147         (c_expr_sizeof_expr): Set original_type field.
8148         (parser_build_unary_op): Likewise.
8149         (parser_build_binary_op): Likewise.  Optionally warn about
8150         comparisons of enums of different types.
8151         (digest_init): Set original_type field.
8152         (really_start_incremental_init): Likewise.
8153         (push_init_level, pop_init_level): Likewise.
8154         * doc/invoke.texi (Warning Options): -Wenum-compare now
8155         supported in C.
8156
8157 2009-04-15  Richard Guenther  <rguenther@suse.de>
8158
8159         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
8160         out a necessary conversion.
8161         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
8162         names we didn't value number.
8163         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
8164
8165 2009-04-15  Richard Guenther  <rguenther@suse.de>
8166
8167         PR tree-optimization/39764
8168         * tree-ssa-ccp.c (get_value): Canonicalize value with
8169         canonicalize_float_value.
8170
8171 2009-04-15  Jan Hubicka  <jh@suse.cz>
8172
8173         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
8174         Wrong version of patch.
8175
8176 2009-04-15  Jan Hubicka  <jh@suse.cz>
8177
8178         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
8179
8180 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
8181
8182         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
8183         our distinct integral and vector types.
8184
8185 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
8186
8187         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
8188         * init.c (build_vtbl_address): Remove call to assemble_external.
8189
8190 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
8191
8192         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
8193         output for other floating point modes.
8194
8195 2009-04-14  Diego Novillo  <dnovillo@google.com>
8196
8197         * diagnostic.c (diagnostic_report_diagnostic): Do not
8198         warn about loaded plugins for DK_ERROR and DK_WARNING.
8199         * c-decl.c (declspecs_add_type): Move call to
8200         invoke_plugin_callbacks ...
8201         * c-parser.c (c_parser_declspecs): ... here.
8202         * plugin.c (dump_active_plugins): Tidy output.
8203
8204 2009-04-14  Diego Novillo  <dnovillo@google.com>
8205             Le-Chun Wu  <lcwu@google.com>
8206
8207         * configure.ac: Add --enable-plugin support.
8208         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
8209         * Makefile.in (PLUGIN_H): Define.
8210         Export ENABLE_PLUGIN and GMPINC to site.exp.
8211         Add PLUGINLIBS to link command.
8212         Add/modify dependencies for plugin.o and files including plugin.h.
8213         (plugin.o): New.
8214         * config.in: Regenerate.
8215
8216         * opts.c (common_handle_option): Handle OPT_fplugin_ and
8217         OPT_fplugin_arg_.
8218
8219 2009-04-14  Le-Chun Wu  <lcwu@google.com>
8220
8221         * tree-pass.h (register_one_dump_file): Add a prototype for
8222         register_one_dump_file.
8223         * toplev.c (compile_file): Call initialize_plugins.
8224         (do_compile): Call invoke_plugin_callbacks.
8225         (toplev_main): Call invoke_plugin_callbacks.
8226         * common.opt: Add -fplugin= and -fplugin-arg-.
8227         * gcc-plugin.h: New public header file for plugins to include.
8228         * plugin.c: New source file.
8229         * plugin.h: New internal header file.
8230         * passes.c (register_one_dump_file): Make it external.
8231
8232         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
8233
8234 2009-04-14  Diego Novillo  <dnovillo@google.com>
8235
8236         * doc/plugins.texi: New.
8237         * doc/gccint.texi: Add reference to Plugins chapter.
8238         * doc/invoke.texi: Document -fplugin and -fplugin-arg
8239         * diagnostic.c (diagnostic_report_diagnostic): Warn about
8240         loaded plugins, if any.
8241         * timevar.def (TV_PLUGIN_INIT): Define.
8242         (TV_PLUGIN_RUN): Define.
8243         * plugin.c: Include timevar.h
8244         (plugins_active_p): New.
8245         (dump_active_plugins): New.
8246         (debug_active_plugins): New.
8247
8248 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
8249
8250         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
8251         library paths.
8252         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
8253
8254 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
8255
8256         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
8257         the same as a minus without a shift.
8258
8259 2009-04-14  Nick Clifton  <nickc@redhat.com>
8260
8261         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
8262         comparisons with small integers will always produce a short
8263         branch.
8264
8265 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
8266
8267         Merge:
8268         2008-12-19  Diego Novillo  <dnovillo@google.com>
8269
8270         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
8271
8272 2009-04-14  Richard Guenther  <rguenther@suse.de>
8273
8274         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
8275         verification.
8276         (verify_gimple_assign_binary): Likewise.  Handle shifts and
8277         rotates correctly.
8278         (verify_gimple_phi): Print the mismatched argument position.
8279         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
8280         Fix types.
8281         (vect_update_init_of_dr): Likewise.
8282         * matrix-reorg.c (transform_access_sites): Do what the
8283         comment suggests.
8284         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
8285
8286 2009-04-13  Michael Eager  <eager@eagercon.com>
8287
8288         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
8289         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
8290         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
8291         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
8292         remove duplicate config
8293
8294 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
8295
8296         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
8297         file_name:line_number type locator of the call site.
8298
8299 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
8300
8301         * genautomata.c: Put blank after comma.
8302         (automaton_decls): New.
8303         (struct unit_usage): Add comments to member next.
8304         (store_alt_unit_usage): Keep the list ordered.
8305         (unit_present_on_list_p, equal_alternatives_p): New.
8306         (check_regexp_units_distribution): Check units distribution
8307         correctness correctly.
8308         (main): Don't write automata if error is found.  Return correct
8309         exit code.
8310
8311         * config/m68k/cf.md (cfv4_ds): Remove.
8312         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
8313         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
8314
8315         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
8316         power4-load-ext, power4-store, power4-store-update,
8317         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
8318         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
8319         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
8320         power4-sqrt, power4-isync): Modify reservation to make correct
8321         unit distribution to automata.
8322
8323         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
8324         power5-store-update, power5-two, power5-three, power5-lmul,
8325         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
8326
8327 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
8328
8329         * except.c (pass_set_nothrow_function_flags): Set name and add
8330         TODO_dump_func.
8331         (set_nothrow_function_flags): Mention in the dump file when
8332         changing a function to nothrow.
8333
8334 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
8335
8336         PR/39066
8337         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
8338         instead of unsigned long.
8339
8340 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8341
8342         * config/arm/arm.c (return_used_this_function): Remove.
8343         (arm_output_function_prologue): Remove use of
8344         return_used_this_function.
8345         (output_return_instruction): Replace use of
8346         return_used_this_function
8347         by cfun->machine->return_used_this_function.
8348         (arm_output_epilogue): Likewise.
8349         (arm_output_function_epilogue): Likewise.
8350         (thumb_unexpanded_epilogue): Likewise.
8351         * config/arm/arm.h (struct machine_function):
8352         New member return_used_this_function.
8353
8354 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
8355
8356         * doc/install.texi: Correct description of default directory for
8357         --with-gxx-include-dir.
8358
8359 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
8360
8361         * fold-const.c (build_range_check): Properly deal with enumeral and
8362         boolean base types.
8363
8364 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
8365
8366         * doc/invoke.texi (max_gcse_passes): Remove documentation.
8367         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
8368         * params.h (MAX_GCSE_PASSES): Remove.
8369         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
8370         in sequence.  Remove ability to run multiple passes.
8371         (bypass_jumps): Report run as third CPROP pass.
8372
8373 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
8374
8375         PR middle-end/39651
8376         * except.c (can_throw_external): Look at each insn in a SEQUENCE
8377         when deciding whether the whole SEQUENCE can throw.
8378
8379 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
8380
8381         PR target/39740
8382         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
8383         offseted label references.
8384
8385 2009-04-11  Jan Hubicka  <jh@suse.cz>
8386
8387         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
8388
8389 2009-04-11  Richard Guenther  <rguenther@suse.de>
8390
8391         PR middle-end/39732
8392         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
8393         return variables as TREE_ADDRESSABLE.
8394
8395 2009-04-11  Richard Guenther  <rguenther@suse.de>
8396
8397         PR tree-optimization/39713
8398         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
8399         reference trees have SSA_NAME operands.
8400
8401 2009-04-11  Richard Guenther  <rguenther@suse.de>
8402
8403         PR c/39712
8404         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
8405         address expressions.
8406
8407 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
8408
8409         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
8410         match changes in Cygwin 1.7
8411         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
8412         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
8413
8414 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
8415
8416         PR tree-optimization/39701
8417         * doc/invoke.texi (Optimization Options): Document change in
8418         meaning and initialization of -fdelete-null-pointer-checks.
8419
8420 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8421
8422         PR middle-end/39701
8423         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
8424
8425         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
8426         here.
8427
8428         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
8429
8430 2009-04-10  Chao-ying Fu  <fu@mips.com>
8431
8432         * doc/tm.texi (Instruction Output): Document
8433         TARGET_ASM_FINAL_POSTSCAN_INSN.
8434         * target.h (final_postscan_insn): New field in asm_out.
8435         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
8436         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
8437         * final.c (final_scan_insn): Call
8438         targetm.asm_out.final_postscan_insn after outputting
8439         an asm macro and a normal instruction.
8440
8441         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
8442         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
8443         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
8444         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
8445         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
8446
8447 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
8448
8449         PR middle-end/39701
8450         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
8451         variables as non-NULL even with -fdelete-null-pointer-checks.
8452
8453 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8454
8455         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
8456
8457 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
8458
8459         PR target/39678
8460         * config/i386/i386.c (classify_argument): Handle SCmode with
8461         (bit_offset % 64) != 0.
8462
8463 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
8464
8465         * doc/invoke.texi (Optimize Options): Add cross-reference to
8466         -Q --help=optimizers examples.
8467
8468 2009-04-10  Ben Elliston  <bje@au.ibm.com>
8469
8470         PR target/36800
8471         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
8472         regalign for the reg == fpr and TDmode case.
8473
8474 2009-04-09  David Ayers  <ayers@fsfe.org>
8475
8476         PR objc/29200
8477         * objc/objc-act.c (warn_with_method): Remove helper function.
8478         (check_duplicates): Call warning and inform directly.
8479         (really_start_method): Likewise.
8480
8481 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
8482
8483         * expmed.c (expand_divmod): Always use a comparison for a division
8484         by a large unsigned integer.
8485
8486         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
8487         for things others than variables or functions as nonzero.
8488
8489 2009-04-09  Nick Clifton  <nickc@redhat.com>
8490
8491         * unwind-compat.c: Change copyright header to refer to version
8492         3 of the GNU General Public License with version 3.1 of the
8493         GCC Runtime Library Exception and to point readers at the
8494         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
8495         * config/alpha/crtfastmath.c: Likewise.
8496         * config/alpha/linux-unwind.h: Likewise.
8497         * config/alpha/qrnnd.asm: Likewise.
8498         * config/alpha/vms-crt0-64.c: Likewise.
8499         * config/alpha/vms-crt0.c: Likewise.
8500         * config/alpha/vms-dwarf2.asm: Likewise.
8501         * config/alpha/vms-dwarf2eh.asm: Likewise.
8502         * config/alpha/vms-psxcrt0-64.c: Likewise.
8503         * config/alpha/vms-psxcrt0.c: Likewise.
8504         * config/alpha/vms_tramp.asm: Likewise.
8505         * config/arc/initfini.c: Likewise.
8506         * config/arc/lib1funcs.asm: Likewise.
8507         * config/arm/bpabi-v6m.S: Likewise.
8508         * config/arm/bpabi.S: Likewise.
8509         * config/arm/bpabi.c: Likewise.
8510         * config/arm/crti.asm: Likewise.
8511         * config/arm/crtn.asm: Likewise.
8512         * config/arm/ieee754-df.S: Likewise.
8513         * config/arm/ieee754-sf.S: Likewise.
8514         * config/arm/lib1funcs.asm: Likewise.
8515         * config/arm/libunwind.S: Likewise.
8516         * config/arm/linux-atomic.c: Likewise.
8517         * config/arm/mmintrin.h: Likewise.
8518         * config/arm/pr-support.c: Likewise.
8519         * config/arm/unaligned-funcs.c: Likewise.
8520         * config/arm/unwind-arm.c: Likewise.
8521         * config/arm/unwind-arm.h: Likewise.
8522         * config/avr/libgcc.S: Likewise.
8523         * config/bfin/crti.s: Likewise.
8524         * config/bfin/crtlibid.s: Likewise.
8525         * config/bfin/crtn.s: Likewise.
8526         * config/bfin/lib1funcs.asm: Likewise.
8527         * config/bfin/linux-unwind.h: Likewise.
8528         * config/cris/arit.c: Likewise.
8529         * config/cris/cris_abi_symbol.c: Likewise.
8530         * config/darwin-64.c: Likewise.
8531         * config/darwin-crt2.c: Likewise.
8532         * config/darwin-crt3.c: Likewise.
8533         * config/darwin.h: Likewise.
8534         * config/dbxelf.h: Likewise.
8535         * config/dfp-bit.c: Likewise.
8536         * config/dfp-bit.h: Likewise.
8537         * config/elfos.h: Likewise.
8538         * config/fixed-bit.c: Likewise.
8539         * config/fixed-bit.h: Likewise.
8540         * config/fp-bit.c: Likewise.
8541         * config/fp-bit.h: Likewise.
8542         * config/fr30/crti.asm: Likewise.
8543         * config/fr30/crtn.asm: Likewise.
8544         * config/fr30/lib1funcs.asm: Likewise.
8545         * config/freebsd-spec.h: Likewise.
8546         * config/frv/cmovd.c: Likewise.
8547         * config/frv/cmovh.c: Likewise.
8548         * config/frv/cmovw.c: Likewise.
8549         * config/frv/frvbegin.c: Likewise.
8550         * config/frv/frvend.c: Likewise.
8551         * config/frv/lib1funcs.asm: Likewise.
8552         * config/glibc-stdint.h: Likewise.
8553         * config/h8300/clzhi2.c: Likewise.
8554         * config/h8300/crti.asm: Likewise.
8555         * config/h8300/crtn.asm: Likewise.
8556         * config/h8300/ctzhi2.c: Likewise.
8557         * config/h8300/fixunssfsi.c: Likewise.
8558         * config/h8300/lib1funcs.asm: Likewise.
8559         * config/h8300/parityhi2.c: Likewise.
8560         * config/h8300/popcounthi2.c: Likewise.
8561         * config/i386/ammintrin.h: Likewise.
8562         * config/i386/att.h: Likewise.
8563         * config/i386/avxintrin.h: Likewise.
8564         * config/i386/biarch64.h: Likewise.
8565         * config/i386/bmmintrin.h: Likewise.
8566         * config/i386/cpuid.h: Likewise.
8567         * config/i386/cross-stdarg.h: Likewise.
8568         * config/i386/crtfastmath.c: Likewise.
8569         * config/i386/crtprec.c: Likewise.
8570         * config/i386/cygming-crtbegin.c: Likewise.
8571         * config/i386/cygming-crtend.c: Likewise.
8572         * config/i386/cygwin.asm: Likewise.
8573         * config/i386/emmintrin.h: Likewise.
8574         * config/i386/gmm_malloc.h: Likewise.
8575         * config/i386/gthr-win32.c: Likewise.
8576         * config/i386/i386.h: Likewise.
8577         * config/i386/immintrin.h: Likewise.
8578         * config/i386/linux-unwind.h: Likewise.
8579         * config/i386/linux64.h: Likewise.
8580         * config/i386/mm3dnow.h: Likewise.
8581         * config/i386/mmintrin-common.h: Likewise.
8582         * config/i386/mmintrin.h: Likewise.
8583         * config/i386/nmmintrin.h: Likewise.
8584         * config/i386/pmm_malloc.h: Likewise.
8585         * config/i386/pmmintrin.h: Likewise.
8586         * config/i386/smmintrin.h: Likewise.
8587         * config/i386/sol2-c1.asm: Likewise.
8588         * config/i386/sol2-ci.asm: Likewise.
8589         * config/i386/sol2-cn.asm: Likewise.
8590         * config/i386/sol2-gc1.asm: Likewise.
8591         * config/i386/tmmintrin.h: Likewise.
8592         * config/i386/unix.h: Likewise.
8593         * config/i386/w32-unwind.h: Likewise.
8594         * config/i386/wmmintrin.h: Likewise.
8595         * config/i386/x86-64.h: Likewise.
8596         * config/i386/x86intrin.h: Likewise.
8597         * config/i386/xmmintrin.h: Likewise.
8598         * config/ia64/crtbegin.asm: Likewise.
8599         * config/ia64/crtend.asm: Likewise.
8600         * config/ia64/crtfastmath.c: Likewise.
8601         * config/ia64/crti.asm: Likewise.
8602         * config/ia64/crtn.asm: Likewise.
8603         * config/ia64/fde-glibc.c: Likewise.
8604         * config/ia64/lib1funcs.asm: Likewise.
8605         * config/ia64/linux-unwind.h: Likewise.
8606         * config/ia64/quadlib.c: Likewise.
8607         * config/ia64/unwind-ia64.c: Likewise.
8608         * config/linux.h: Likewise.
8609         * config/m32c/m32c-lib1.S: Likewise.
8610         * config/m32c/m32c-lib2-trapv.c: Likewise.
8611         * config/m32c/m32c-lib2.c: Likewise.
8612         * config/m32r/initfini.c: Likewise.
8613         * config/m68hc11/larith.asm: Likewise.
8614         * config/m68hc11/m68hc11-crt0.S: Likewise.
8615         * config/m68k/cf.md: Likewise.
8616         * config/m68k/crti.s: Likewise.
8617         * config/m68k/crtn.s: Likewise.
8618         * config/m68k/lb1sf68.asm: Likewise.
8619         * config/m68k/linux-unwind.h: Likewise.
8620         * config/mcore/crti.asm: Likewise.
8621         * config/mcore/crtn.asm: Likewise.
8622         * config/mcore/lib1.asm: Likewise.
8623         * config/mips/linux-unwind.h: Likewise.
8624         * config/mips/loongson.h: Likewise.
8625         * config/mips/mips16.S: Likewise.
8626         * config/mmix/crti.asm: Likewise.
8627         * config/mmix/crtn.asm: Likewise.
8628         * config/pa/fptr.c: Likewise.
8629         * config/pa/hpux-unwind.h: Likewise.
8630         * config/pa/lib2funcs.asm: Likewise.
8631         * config/pa/linux-atomic.c: Likewise.
8632         * config/pa/linux-unwind.h: Likewise.
8633         * config/pa/milli64.S: Likewise.
8634         * config/pa/quadlib.c: Likewise.
8635         * config/pa/stublib.c: Likewise.
8636         * config/picochip/libgccExtras/adddi3.asm: Likewise.
8637         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
8638         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
8639         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
8640         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
8641         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
8642         * config/picochip/libgccExtras/divmod15.asm: Likewise.
8643         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
8644         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
8645         * config/picochip/libgccExtras/longjmp.asm: Likewise.
8646         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
8647         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
8648         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
8649         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
8650         * config/picochip/libgccExtras/setjmp.asm: Likewise.
8651         * config/picochip/libgccExtras/subdi3.asm: Likewise.
8652         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
8653         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
8654         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
8655         * config/rs6000/750cl.h: Likewise.
8656         * config/rs6000/altivec.h: Likewise.
8657         * config/rs6000/biarch64.h: Likewise.
8658         * config/rs6000/crtresfpr.asm: Likewise.
8659         * config/rs6000/crtresgpr.asm: Likewise.
8660         * config/rs6000/crtresxfpr.asm: Likewise.
8661         * config/rs6000/crtresxgpr.asm: Likewise.
8662         * config/rs6000/crtsavfpr.asm: Likewise.
8663         * config/rs6000/crtsavgpr.asm: Likewise.
8664         * config/rs6000/darwin-asm.h: Likewise.
8665         * config/rs6000/darwin-fallback.c: Likewise.
8666         * config/rs6000/darwin-fpsave.asm: Likewise.
8667         * config/rs6000/darwin-ldouble.c: Likewise.
8668         * config/rs6000/darwin-tramp.asm: Likewise.
8669         * config/rs6000/darwin-unwind.h: Likewise.
8670         * config/rs6000/darwin-vecsave.asm: Likewise.
8671         * config/rs6000/darwin-world.asm: Likewise.
8672         * config/rs6000/e500crtres32gpr.asm: Likewise.
8673         * config/rs6000/e500crtres64gpr.asm: Likewise.
8674         * config/rs6000/e500crtres64gprctr.asm: Likewise.
8675         * config/rs6000/e500crtrest32gpr.asm: Likewise.
8676         * config/rs6000/e500crtrest64gpr.asm: Likewise.
8677         * config/rs6000/e500crtresx32gpr.asm: Likewise.
8678         * config/rs6000/e500crtresx64gpr.asm: Likewise.
8679         * config/rs6000/e500crtsav32gpr.asm: Likewise.
8680         * config/rs6000/e500crtsav64gpr.asm: Likewise.
8681         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
8682         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
8683         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
8684         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
8685         * config/rs6000/eabi-ci.asm: Likewise.
8686         * config/rs6000/eabi-cn.asm: Likewise.
8687         * config/rs6000/eabi.asm: Likewise.
8688         * config/rs6000/linux-unwind.h: Likewise.
8689         * config/rs6000/linux64.h: Likewise.
8690         * config/rs6000/paired.h: Likewise.
8691         * config/rs6000/paired.md: Likewise.
8692         * config/rs6000/ppc64-fp.c: Likewise.
8693         * config/rs6000/ppu_intrinsics.h: Likewise.
8694         * config/rs6000/rs6000.h: Likewise.
8695         * config/rs6000/si2vmx.h: Likewise.
8696         * config/rs6000/sol-ci.asm: Likewise.
8697         * config/rs6000/sol-cn.asm: Likewise.
8698         * config/rs6000/spe.h: Likewise.
8699         * config/rs6000/spu2vmx.h: Likewise.
8700         * config/rs6000/sysv4.h: Likewise.
8701         * config/rs6000/tramp.asm: Likewise.
8702         * config/rs6000/vec_types.h: Likewise.
8703         * config/s390/linux-unwind.h: Likewise.
8704         * config/s390/tpf-unwind.h: Likewise.
8705         * config/score/crti.asm: Likewise.
8706         * config/score/crtn.asm: Likewise.
8707         * config/sh/crt1.asm: Likewise.
8708         * config/sh/crti.asm: Likewise.
8709         * config/sh/crtn.asm: Likewise.
8710         * config/sh/divtab-sh4-300.c: Likewise.
8711         * config/sh/divtab-sh4.c: Likewise.
8712         * config/sh/divtab.c: Likewise.
8713         * config/sh/lib1funcs-4-300.asm: Likewise.
8714         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
8715         * config/sh/lib1funcs.asm: Likewise.
8716         * config/sh/lib1funcs.h: Likewise.
8717         * config/sh/linux-atomic.asm: Likewise.
8718         * config/sh/linux-unwind.h: Likewise.
8719         * config/sh/shmedia.h: Likewise.
8720         * config/sh/sshmedia.h: Likewise.
8721         * config/sh/ushmedia.h: Likewise.
8722         * config/sparc/crtfastmath.c: Likewise.
8723         * config/sparc/linux-unwind.h: Likewise.
8724         * config/sparc/sol2-c1.asm: Likewise.
8725         * config/sparc/sol2-ci.asm: Likewise.
8726         * config/sparc/sol2-cn.asm: Likewise.
8727         * config/spu/divmodti4.c: Likewise.
8728         * config/spu/divv2df3.c: Likewise.
8729         * config/spu/float_disf.c: Likewise.
8730         * config/spu/float_unsdidf.c: Likewise.
8731         * config/spu/float_unsdisf.c: Likewise.
8732         * config/spu/float_unssidf.c: Likewise.
8733         * config/spu/mfc_multi_tag_release.c: Likewise.
8734         * config/spu/mfc_multi_tag_reserve.c: Likewise.
8735         * config/spu/mfc_tag_release.c: Likewise.
8736         * config/spu/mfc_tag_reserve.c: Likewise.
8737         * config/spu/mfc_tag_table.c: Likewise.
8738         * config/spu/multi3.c: Likewise.
8739         * config/spu/spu_internals.h: Likewise.
8740         * config/spu/spu_intrinsics.h: Likewise.
8741         * config/spu/spu_mfcio.h: Likewise.
8742         * config/spu/vec_types.h: Likewise.
8743         * config/spu/vmx2spu.h: Likewise.
8744         * config/stormy16/stormy16-lib2.c: Likewise.
8745         * config/svr4.h: Likewise.
8746         * config/sync.c: Likewise.
8747         * config/v850/lib1funcs.asm: Likewise.
8748         * config/vxlib-tls.c: Likewise.
8749         * config/vxlib.c: Likewise.
8750         * config/vxworks-dummy.h: Likewise.
8751         * config/xtensa/crti.asm: Likewise.
8752         * config/xtensa/crtn.asm: Likewise.
8753         * config/xtensa/ieee754-df.S: Likewise.
8754         * config/xtensa/ieee754-sf.S: Likewise.
8755         * config/xtensa/lib1funcs.asm: Likewise.
8756         * config/xtensa/lib2funcs.S: Likewise.
8757         * config/xtensa/linux-unwind.h: Likewise.
8758         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
8759         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
8760         * coretypes.h: Likewise.
8761         * crtstuff.c: Likewise.
8762         * defaults.h: Likewise.
8763         * dwarf2.h: Likewise.
8764         * emutls.c: Likewise.
8765         * gbl-ctors.h: Likewise.
8766         * gcov-io.h: Likewise.
8767         * ginclude/float.h: Likewise.
8768         * ginclude/iso646.h: Likewise.
8769         * ginclude/stdarg.h: Likewise.
8770         * ginclude/stdbool.h: Likewise.
8771         * ginclude/stddef.h: Likewise.
8772         * ginclude/stdfix.h: Likewise.
8773         * ginclude/stdint-gcc.h: Likewise.
8774         * ginclude/tgmath.h: Likewise.
8775         * gthr-aix.h: Likewise.
8776         * gthr-dce.h: Likewise.
8777         * gthr-gnat.c: Likewise.
8778         * gthr-gnat.h: Likewise.
8779         * gthr-lynx.h: Likewise.
8780         * gthr-mipssde.h: Likewise.
8781         * gthr-nks.h: Likewise.
8782         * gthr-posix.c: Likewise.
8783         * gthr-posix.h: Likewise.
8784         * gthr-posix95.h: Likewise.
8785         * gthr-rtems.h: Likewise.
8786         * gthr-single.h: Likewise.
8787         * gthr-solaris.h: Likewise.
8788         * gthr-tpf.h: Likewise.
8789         * gthr-vxworks.h: Likewise.
8790         * gthr-win32.h: Likewise.
8791         * gthr.h: Likewise.
8792         * libgcc2.c: Likewise.
8793         * libgcc2.h: Likewise.
8794         * libgcov.c: Likewise.
8795         * tsystem.h: Likewise.
8796         * typeclass.h: Likewise.
8797         * unwind-c.c: Likewise.
8798         * unwind-compat.h: Likewise.
8799         * unwind-dw2-fde-compat.c: Likewise.
8800         * unwind-dw2-fde-darwin.c: Likewise.
8801         * unwind-dw2-fde-glibc.c: Likewise.
8802         * unwind-dw2-fde.c: Likewise.
8803         * unwind-dw2-fde.h: Likewise.
8804         * unwind-dw2.c: Likewise.
8805         * unwind-dw2.h: Likewise.
8806         * unwind-generic.h: Likewise.
8807         * unwind-pe.h: Likewise.
8808         * unwind-sjlj.c: Likewise.
8809         * unwind.inc: Likewise.
8810         * config/arm/neon-gen.ml: Change generated copyright header to
8811         refer to version 3 of the GNU General Public License with
8812         version 3.1 of the GCC Runtime Library Exception and to point
8813         readers at the COPYING3 and COPYING3.RUNTIME files and the
8814         FSF's license web page.
8815         * config/arm/arm_neon.h: Regenerate.
8816
8817 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
8818
8819         * config/cris/cris.md: Change copyright header to refer to version
8820         3 of the GNU General Public License.
8821         * doc/install.texi2html: Change copyright header to refer to version
8822         3 of the GNU General Public License and to point readers at the
8823         COPYING3 file and the FSF's license web page.
8824         * config/vax/linux.h: Likewise.
8825
8826 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
8827
8828         * config/i386/i386.md (cmpcc): New.
8829         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
8830         (sync_compare_and_swap_cc*): Delete.
8831
8832         * config/s390/s390.c (s390_compare_emitted): Remove.
8833         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
8834         s390_compare_emitted used to be handled.  Assert that modes match.
8835         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
8836         refer to sync_compare_and_swap_ccsi.
8837         * config/s390/s390.h (s390_compare_emitted): Remove.
8838         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
8839         instead of s390_compare_emitted.
8840         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
8841         instead of s390_compare_emitted.
8842         * config/s390/s390.md (cmpcc): New.
8843         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
8844         CC_REGNUM, do not pretend it's set.
8845         (sync_compare_and_swap_cc*): Delete.
8846         * config/s390/predicates.md (cc_reg_operand): New.
8847
8848         * expr.c (sync_compare_and_swap_cc): Delete.
8849         * optabs.h (sync_compare_and_swap_cc): Delete.
8850         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
8851         is being used with can_compare_p.
8852         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
8853         (find_cc_set): New.
8854         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
8855         look for a MODE_CC set instead.  Use emit_store_flag.
8856         (expand_compare_and_swap_loop): Likewise, with some additional
8857         complication to avoid a force_reg when useless.  Use
8858         emit_cmp_and_jump_insns.
8859         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
8860         * doc/md.texi (sync_compare_and_swap_cc): Merge with
8861         sync_compare_and_swap documentation.
8862
8863 2009-04-09  Jan Hubicka  <jh@suse.cz>
8864
8865         * except.c (find_prev_try): Break out from ....
8866         (duplicate_eh_regions): ... here; properly update prev_try pointers
8867         when duplication part of tree.
8868         (dump_eh_tree): Improve dumping.
8869         (verify_eh_region): New.
8870         (verify_eh_tree): Use it.
8871
8872 2009-04-06  Richard Guenther  <rguenther@suse.de>
8873
8874         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
8875         &ARRAY addresses by adjusting their types and prepending
8876         a conversion.
8877         * tree-cfg.c (verify_gimple_assign_single): Verify that
8878         addresses are correct.
8879
8880 2009-04-09  Richard Guenther  <rguenther@suse.de>
8881
8882         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
8883         indices into an array reference if possible.
8884         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
8885         Fold POINTER_PLUS_EXPR statements with invariant address.
8886
8887 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
8888
8889         PR target/39634
8890         * config.gcc (powerpc64-*-linux*): Always build biarch.
8891
8892 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
8893
8894         PR c/39613
8895         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
8896         it and pedwarn if this results in an INTEGER_CST.
8897
8898 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8899
8900         * doc/install.texi: Update minimum GMP version.  Remove obsolete
8901         text in MPFR section.
8902
8903 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
8904
8905         * dwarf2out.c (class_scope_p): New static inline.
8906         (class_or_namespace_scope_p): Use it.
8907         (gen_variable_die): Use DW_TAG_member tag for static data member
8908         declarations instead of DW_TAG_variable.
8909
8910         PR middle-end/39573
8911         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
8912         variables.
8913
8914 2009-04-08  Richard Guenther  <rguenther@suse.de>
8915
8916         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
8917         valueize random data.
8918
8919 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
8920
8921         * config.gcc (aix tm_file):  Add aix-stdint.h.
8922         (aix tm clause use_gcc_stdint):  Set to wrap.
8923         * config/rs6000/aix-stdint.h:  New file.
8924
8925 2009-04-08  Richard Guenther  <rguenther@suse.de>
8926
8927         PR middle-end/36291
8928         * tree-dfa.c (add_referenced_var): Do not recurse into
8929         global initializers.
8930         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
8931         exposed variables.
8932         (fold_const_aggregate_ref): Likewise.
8933
8934 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
8935
8936         * recog.c (ordered_comparison_operator): New.
8937         * gensupport.c (std_preds): Add it.
8938         * doc/md.texi (Machine-Independent Predicates): Document it.
8939
8940 2009-04-08  Jan Hubicka  <jh@suse.cz>
8941
8942         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
8943         * function.h (rtl_eh): Remove exception_handler_label_map.
8944         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
8945         remove_exception_handler_label, for_each_eh_label_1): Remove.
8946         (rtl_remove_unreachable_regions): Remove.
8947         (convert_from_eh_region_ranges): Do not remove unreachable regions.
8948         (find_exception_handler_labels): Don't build the hashtable.
8949         (maybe_remove_eh_handler): Remove.
8950         (for_each_eh_label): Rewrite to walk the tree.
8951         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
8952         * except.h (maybe_remove_eh_handler): Remove.
8953         * passes.c (init_optimization_passes): Schedule second EH cleanup
8954         before out-of-ssa.
8955         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
8956         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
8957
8958 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
8959
8960         * genoutput.c (validate_optab_operands): New.
8961         (gen_insn, gen_expand): Call it.
8962
8963         * genflags.c (gen_insn): Detect misused iterators.
8964         (main): Pass line_no to gen_insn, exit with status 1 on error.
8965
8966         * genextract.c (line_no): Make global.
8967         (VEC_safe_set_locstr): Change assertion to error message.
8968         (main): Exit with status 1 on error.
8969
8970 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
8971
8972         PR c/39614
8973         PR c/39673
8974         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
8975         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
8976         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
8977         * c-convert.c (convert): Do not call fold on results of conversion
8978         functions when the result is a C_MAYBE_CONST_EXPR.
8979         * c-parser.c (c_parser_postfix_expression): Do not fold condition
8980         of __builtin_choose_expr.
8981         * c-typeck.c (remove_c_maybe_const_expr): New.
8982         (build_unary_op, build_conditional_expr, build_compound_expr,
8983         build_binary_op, c_objc_common_truthvalue_conversion): Call
8984         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
8985         integer operands.
8986
8987 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
8988
8989         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
8990         CODE to produce a new one. Add a prototype to use fold_convert_const
8991
8992 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
8993
8994         PR bootstrap/39660
8995         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
8996         mix declarations and code.
8997
8998 2009-04-08  Ben Elliston  <bje@au.ibm.com>
8999
9000         * gcc.c: Replace `CC' with `GCC' throughout.
9001
9002 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
9003
9004         * doc/invoke.texi: Document Atom support.
9005
9006 2009-04-07  Jason Merrill  <jason@redhat.com>
9007
9008         PR c++/25185
9009         * c-common.h, c-common.c: Add flag_pretty_templates.
9010         * c-opts.c (c_common_handle_option): Set it.
9011         * c.opt: Add -fno-pretty-templates.
9012         * doc/invoke.texi (C++ Dialect Options): Likewise.
9013
9014 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
9015
9016         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
9017         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
9018         (ia64_expand_builtin): Likewise.
9019
9020 2009-04-07  Martin Jambor  <mjambor@suse.cz>
9021
9022         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
9023         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
9024         ADDR_EXPRS are include too.
9025
9026 2009-04-07  Richard Guenther  <rguenther@suse.de>
9027
9028         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
9029         decls are only used if passes as parameters or if they are
9030         local statics and the call is not to a builtin.
9031         (call_may_clobber_ref_p_1): Likewise.
9032
9033 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
9034
9035         * expr.c (do_store_flag): Remove last argument.  Simplify code
9036         to avoid duplication of tests already done by can_compare_p.
9037         (expand_expr_real_1): Adjust caller.
9038
9039 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
9040
9041         * optabs.c (can_compare_p): Test the predicate of a
9042         cbranch and cstore pattern.
9043
9044 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
9045
9046         * expr.c (convert_move): Use emit_store_flag instead of
9047         "emulating" it.
9048
9049 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
9050
9051         * config/i386/i386.c (ix86_compare_emitted): Remove.
9052         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
9053         ix86_compare_op0 like ix86_compare_emitted used to be handled.
9054         * config/i386/i386.h (ix86_compare_emitted): Remove.
9055         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
9056         instead of ix86_compare_emitted.
9057         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
9058
9059 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
9060
9061         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
9062         Add t-sysroot-suffix to tmake_file.
9063         * config/print-sysroot-suffix.sh: New file.
9064         * config/t-sysroot-suffix: New file.
9065
9066 2009-04-07  Ben Elliston  <bje@au.ibm.com>
9067
9068         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
9069         as the latter produces a warning when the target does not support
9070         infinity.
9071
9072 2009-04-07  Ben Elliston  <bje@au.ibm.com>
9073
9074         * dfp.c: Replace type punning assignments with memcpy throughout.
9075         * Makefile.in (dfp.o-warn): Remove.
9076
9077 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
9078
9079         PR target/39634
9080         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
9081         Include soft-fp/t-softfp after rs6000/t-linux64.
9082
9083 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
9084
9085         * stor-layout.c (set_sizetype): Use the full precision of their
9086         machine mode for bitsize types.
9087
9088 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9089
9090         * config/i386/i386.md: Revert 2 accidental checkins.
9091
9092 2009-04-06  Joey Ye  <joey.ye@intel.com>
9093             Xuepeng Guo  <xuepeng.guo@intel.com>
9094             H.J. Lu  <hongjiu.lu@intel.com>
9095
9096         Atom pipeline model, tuning and insn selection.
9097         * config.gcc (atom): Add atom config options and target.
9098
9099         * config/i386/atom.md: New.
9100
9101         * config/i386/i386.c (atom_cost): New cost.
9102         (m_ATOM): New macro flag.
9103         (initial_ix86_tune_features): Set m_ATOM.
9104         (x86_accumulate_outgoing_args): Likewise.
9105         (x86_arch_always_fancy_math_387): Likewise.
9106         (processor_target): Add Atom cost.
9107         (cpu_names): Add Atom cpu name.
9108         (override_options): Set Atom ISA.
9109         (ix86_issue_rate): New case PROCESSOR_ATOM.
9110         (ix86_adjust_cost): Likewise.
9111
9112         * config/i386/i386.h (TARGET_ATOM): New target macro.
9113         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
9114         (TARGET_OPT_AGU): New target option.
9115         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
9116         (processor_type): Add PROCESSOR_ATOM.
9117
9118         * config/i386/i386.md (cpu): Add new value "atom".
9119         (use_carry, movu): New attr.
9120         (atom.md): Include atom.md.
9121         (adddi3_carry_rex64): Set attr "use_carry".
9122         (addqi3_carry): Likewise.
9123         (addhi3_carry): Likewise.
9124         (addsi3_carry): Likewise.
9125         (*addsi3_carry_zext): Likewise.
9126         (subdi3_carry_rex64): Likewise.
9127         (subqi3_carry): Likewise.
9128         (subhi3_carry): Likewise.
9129         (subsi3_carry): Likewise.
9130         (x86_movdicc_0_m1_rex64): Likewise.
9131         (*x86_movdicc_0_m1_se): Likewise.
9132         (x86_movsicc_0_m1): Likewise.
9133         (*x86_movsicc_0_m1_se): Likewise.
9134         (*adddi_1_rex64): Emit add insn as much as possible.
9135         (*addsi_1): Likewise.
9136         (return_internal): Set atom_unit.
9137         (return_internal_long): Likewise.
9138         (return_pop_internal): Likewise.
9139         (*rcpsf2_sse): Set atom_sse_attr attr.
9140         (*qrt<mode>2_sse): Likewise.
9141         (*prefetch_sse): Likewise.
9142
9143         * config/i386/i386-c.c (ix86_target_macros_internal): New case
9144         PROCESSOR_ATOM.
9145         (ix86_target_macros_internal): Likewise.
9146
9147         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
9148         (*prefetch_sse_rex): Likewise.
9149         (sse_rcpv4sf2): Likewise.
9150         (sse_vmrcpv4sf2): Likewise.
9151         (sse_sqrtv4sf2): Likewise.
9152         (<sse>_vmsqrt<mode>2): Likewise.
9153         (sse_ldmxcsr): Likewise.
9154         (sse_stmxcsr): Likewise.
9155         (*sse_sfence): Likewise.
9156         (sse2_clflush): Likewise.
9157         (*sse2_mfence): Likewise.
9158         (*sse2_lfence): Likewise.
9159         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
9160         (<sse>_movup<ssemodesuffixf2c>): Likewise.
9161         (avx_movdqu<avxmodesuffix>): Likewise.
9162         (avx_lddqu<avxmodesuffix>): Likewise.
9163         (sse2_movntv2di): Change attr "type" to "ssemov".
9164         (sse2_movntsi): Likewise.
9165         (rsqrtv8sf2): Change attr "type" to "sseadd".
9166         (sse3_addsubv2df3): Set attr "atom_unit".
9167         (sse3_h<plusminus_insn>v4sf3): Likewise.
9168         (*sse2_pmaddwd): Likewise.
9169         (*vec_extractv2di_1_rex64): Likewise.
9170         (*vec_extractv2di_1_avx): Likewise.
9171         (sse2_psadbw): Likewise.
9172         (ssse3_phaddwv8hi3): Likewise.
9173         (ssse3_phaddwv4hi3): Likewise.
9174         (ssse3_phadddv4si3): Likewise.
9175         (ssse3_phadddv2si3): Likewise.
9176         (ssse3_phaddswv8hi3): Likewise.
9177         (ssse3_phaddswv4hi3): Likewise.
9178         (ssse3_phsubwv8hi3): Likewise.
9179         (ssse3_phsubwv4hi3): Likewise.
9180         (ssse3_phsubdv4si3): Likewise.
9181         (ssse3_phsubdv2si3): Likewise.
9182         (ssse3_phsubswv8hi3): Likewise.
9183         (ssse3_phsubswv4hi3): Likewise.
9184         (ssse3_pmaddubsw128): Likewise.
9185         (sse3_pmaddubsw: Likewise.
9186         (ssse3_palignrti): Likewise.
9187         (ssse3_palignrdi): Likewise.
9188
9189 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
9190
9191         * doc/install.texi (Specific): Fix two cross-references to MinGW.
9192
9193 2009-04-06  Richard Guenther  <rguenther@suse.de>
9194
9195         PR tree-optimization/28868
9196         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
9197         of which PHI results we inserted.
9198         (insert_into_preds_of_block): Record inserted PHIs.
9199         (eliminate): Eliminate redundant PHI nodes.
9200         (init_pre): Init inserted_phi_names.
9201
9202 2009-04-06  Richard Guenther  <rguenther@suse.de>
9203
9204         PR tree-optimization/39643
9205         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
9206         IMAGPART_EXPRs of complex constants.
9207         (execute_fold_all_builtins): If we folded a call queue
9208         TODO_update_address_taken.
9209
9210 2009-04-06  Jan Hubicka  <jh@suse.cz>
9211
9212         PR middle-end/39659
9213         * except.c (remove_unreachable_regions): Propagate may_contain_throw
9214         flag.
9215
9216 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
9217
9218         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
9219         delay slot.
9220         (ic_invalidate_array): Likewise.
9221
9222 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
9223
9224         * calls.c (emit_library_call_value_1): Fix a problem with parameter
9225         alignment for library calls.
9226
9227 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
9228
9229         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
9230         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
9231         * config/i386/mingw-stdint.h:  New file.
9232
9233 2009-04-05  Richard Guenther  <rguenther@suse.de>
9234
9235         PR tree-optimization/39648
9236         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
9237         our &A vs. &A[0] IL deficiencies.
9238
9239 2009-04-04  Jan Hubicka  <jh@suse.cz>
9240
9241         * except.c (sjlj_find_directly_reachable_regions): Be ready for
9242         removed toplevel regions.
9243         (sjlj_mark_call_sites): Likewise.
9244
9245 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
9246
9247         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
9248         (cygwin tm clause use_gcc_stdint):  Set to wrap.
9249         * config/i386/cygwin-stdint.h:  New file.
9250
9251 2009-04-04  Richard Guenther  <rguenther@suse.de>
9252
9253         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
9254         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
9255         single-argument PHIs if we are in loop-closed SSA form.
9256         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
9257         for the pre-condition.
9258         (slpeel_tree_peel_loop_to_edge): Likewise.
9259         (vect_build_loop_niters): Take an optional sequence to append stmts.
9260         (vect_generate_tmps_on_preheader): Likewise.
9261         (vect_do_peeling_for_loop_bound): Take extra guards for the
9262         pre-condition.
9263         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
9264         the cost model check.
9265         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
9266         guards if we are going to peel.  Do not apply versioning in that case.
9267         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
9268         (vect_do_peeling_for_loop_bound): Likewise.
9269         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
9270         loop bound only record extra pre-conditions, do not apply loop
9271         versioning.
9272
9273 2009-04-04  Richard Guenther  <rguenther@suse.de>
9274
9275         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
9276         renaming code.
9277
9278 2009-04-04  Jan Hubicka  <jh@suse.cz>
9279
9280         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
9281         last_basic_block for size of bb->index indexed array.
9282         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
9283         compute_out, link_btr_uses, build_btr_def_use_webs,
9284         build_btr_def_use_webs, migrate_btr_defs): Likewise.
9285
9286 2009-04-04  Jan Hubicka  <jh@suse.cz>
9287
9288         * except.c (remove_eh_handler_and_replace): Break out from ...
9289         (remove_eh_handler): ... here.
9290         (bring_to_root): New function.
9291         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
9292         handled ones, bring others to root of tree.
9293
9294 2009-04-04  Jan Hubicka  <jh@suse.cz>
9295
9296         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
9297         (all_phis_safe_to_merge): New function.
9298         (update_info): New structure.
9299         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
9300         (cleanup_empty_eh): Update SSA if possible.
9301
9302 2009-04-04  Richard Guenther  <rguenther@suse.de>
9303
9304         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
9305         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
9306         (append_vuse): Likewise.
9307
9308 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
9309
9310         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
9311         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
9312         instead of REG_UNSAVED for DW_CFA_undefined.
9313         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
9314         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
9315         outermost frame.
9316
9317 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
9318
9319         PR target/39501
9320         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
9321         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
9322         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
9323
9324 2009-04-04  Richard Guenther  <rguenther@suse.de>
9325
9326         PR tree-optimization/8781
9327         PR tree-optimization/37892
9328         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
9329         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
9330         (valueize_refs): Call it for *& valueizations.
9331         (shared_reference_ops_from_ref): Rename to ...
9332         (valueize_shared_reference_ops_from_ref): ... this and valueize.
9333         (shared_reference_ops_from_call): Rename to ...
9334         (valueize_shared_reference_ops_from_call): ... this and valueize.
9335         (vn_reference_lookup): Update.
9336         (visit_reference_op_call): Likewise.
9337         * tree-ssa-pre.c (phi_translate_1): Fold *&.
9338         (eliminate): Value-replace the call address in call statements.
9339
9340 2009-04-04  Richard Guenther  <rguenther@suse.de>
9341
9342         PR tree-optimization/39636
9343         * tree-ssa-forwprop.c
9344         (forward_propagate_addr_into_variable_array_index): Check for
9345         GIMPLE_ASSIGN before accessing the rhs code.
9346
9347 2009-04-03  Jason Merrill  <jason@redhat.com>
9348
9349         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
9350
9351 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
9352
9353         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
9354         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
9355         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
9356         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
9357         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
9358         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
9359         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
9360         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
9361         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
9362         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
9363         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
9364         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
9365         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
9366         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
9367         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
9368         Use fr_reg_or_fp01_operand instead of fr_register_operand
9369
9370         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
9371         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
9372         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
9373
9374 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
9375
9376         PR rtl-optimization/39607
9377         PR rtl-optimization/39631
9378
9379         Revert:
9380
9381         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
9382         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
9383         instead of DF_LR_OUT.
9384         * ira-lives.c (process_bb_node_lives): Ditto.
9385         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
9386         instead of DF_LR_{OUT,IN}.
9387         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
9388         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
9389
9390 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
9391
9392         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
9393         (execute_lower_omp): Always run but take the short way out if -fopenmp
9394         is not given.
9395         (gate_lower_omp): Remove, forcing the pass manager to always run the
9396         pass and always set PROP_gimple_lomp.
9397         (pass_lower_omp): Remove gate function.
9398         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
9399         PROP_trees.  Instead, require it.
9400         * ipa-cp.c (pass_ipa_cp): Likewise.
9401         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
9402         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
9403         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
9404         and PROP_gimple_leh.
9405
9406 2009-04-03  Richard Guenther  <rguenther@suse.de>
9407
9408         PR middle-end/13146
9409         PR tree-optimization/23940
9410         PR tree-optimization/33237
9411         PR middle-end/33974
9412         PR middle-end/34093
9413         PR tree-optimization/36201
9414         PR tree-optimization/36230
9415         PR tree-optimization/38049
9416         PR tree-optimization/38207
9417         PR tree-optimization/38230
9418         PR tree-optimization/38301
9419         PR tree-optimization/38585
9420         PR middle-end/38895
9421         PR tree-optimization/38985
9422         PR tree-optimization/39299
9423         * tree-ssa-structalias.h: Remove.
9424         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
9425         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
9426         (struct vuse_element_d): Remove.
9427         (struct vuse_vec_d): Likewise.
9428         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
9429         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
9430         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
9431         VUSE_ELEMENT_VAR): Likewise.
9432         (struct voptype_d): Likewise.
9433         (NUM_VOP_FREE_BUCKETS): Likewise.
9434         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
9435         (struct stmt_operands_d): Remove.
9436         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
9437         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
9438         VDEF_NUM, VDEF_VECT): Likewise.
9439         (copy_virtual_operands): Remove.
9440         (operand_build_cmp): Likewise.
9441         (create_ssa_artificial_load_stmt): Likewise.
9442         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
9443         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
9444         vuse_index and mayuse_index members.  Pack and move done and iter_type
9445         members to the front.
9446         (SSA_OP_VMAYUSE): Remove.
9447         (SSA_OP_VIRTUAL_USES): Adjust.
9448         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
9449         (unlink_stmt_vdef): Declare.
9450         (add_to_addressable_set): Remove.
9451         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
9452         (vrp_visit_stmt): Likewise.
9453         * doc/tree-ssa.texi (Alias analysis): Update.
9454         * doc/invoke.texi (max-aliased-vops): Remove docs.
9455         (avg-aliased-vops): Likewise.
9456         * tree-into-ssa.c (syms_to_rename): Remove.
9457         (need_to_update_vops_p): Likewise.
9458         (need_to_initialize_update_ssa_p): Rename to ...
9459         (update_ssa_initialized_fn): ... this.  Track function we are
9460         initialized for.
9461         (symbol_marked_for_renaming): Simplify.
9462         (add_new_name_mapping): Do not set need_to_update_vops_p.
9463         (dump_currdefs): Use SYMS_TO_RENAME.
9464         (rewrite_update_stmt): Always walk all uses/defs.
9465         (dump_update_ssa): Adjust.
9466         (init_update_ssa): Take function argument.  Track what we are
9467         initialized for.
9468         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
9469         (create_new_def_for): Initialize for cfun, assert we are initialized
9470         for cfun.
9471         (mark_sym_for_renaming): Simplify.
9472         (mark_set_for_renaming): Do not initialize update-ssa.
9473         (need_ssa_update_p): Simplify.  Take function argument.
9474         (name_mappings_registered_p): Assert we ask for the correct function.
9475         (name_registered_for_update_p): Likewise.
9476         (ssa_names_to_replace): Likewise.
9477         (release_ssa_name_after_update_ssa): Likewise.
9478         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
9479         (dump_decl_set): Do not print a newline.
9480         (debug_decl_set): Do it here.
9481         (dump_update_ssa): And here.
9482         * tree-ssa-loop-im.c (move_computations): Adjust.
9483         (movement_possibility): Likewise.
9484         (determine_max_movement): Likewise.
9485         (gather_mem_refs_stmt): Likewise.
9486         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
9487         or NAME_MEMORY_TAG.
9488         * tree-complex.c (update_all_vops): Remove.
9489         (expand_complex_move): Adjust.
9490         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
9491         Simplify test for memory referencing statement.  Exclude
9492         non-invariant ADDR_EXPRs.
9493         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
9494         * tree-loop-distribution.c (generate_memset_zero): Adjust.
9495         (rdg_flag_uses): Likewise.
9496         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
9497         related code.
9498         (tree_optimize_tail_calls_1): Also split the
9499         edge from the entry block if we have degenerate PHI nodes in
9500         the first basic block.
9501         * tree.c (init_ttree): Remove memory-tag related code.
9502         (tree_code_size): Likewise.
9503         (tree_node_structure): Likewise.
9504         (build7_stat): Re-write to be build6_stat.
9505         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
9506         (SSA_VAR_P): Adjust.
9507         (struct tree_memory_tag): Remove.
9508         (struct tree_memory_partition_tag): Likewise.
9509         (union tree_node): Adjust.
9510         (build7): Re-write to be build6.
9511         * tree-pass.h (pass_reset_cc_flags): Remove.
9512         (TODO_update_address_taken): New flag.
9513         (pass_simple_dse): Remove.
9514         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
9515         * params.h (MAX_ALIASED_VOPS): Remove.
9516         (AVG_ALIASED_VOPS): Likewise.
9517         * omp-low.c (expand_omp_taskreg): Update SSA form.
9518         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
9519         aliases the lhs in a copy stmt.
9520         * tree-ssa-dse.c (struct address_walk_data): Remove.
9521         (memory_ssa_name_same): Likewise.
9522         (memory_address_same): Likewise.
9523         (get_kill_of_stmt_lhs): Likewise.
9524         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
9525         unused stores.  Look through PHI nodes into post-dominated regions.
9526         (dse_optimize_stmt): Simplify.  Properly remove stores.
9527         (tree_ssa_dse): Compute dominators.
9528         (execute_simple_dse): Remove.
9529         (pass_simple_dse): Likewise.
9530         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
9531         gimple_loaded_syms and gimple_stored_syms computation.
9532         * toplev.c (dump_memory_report): Dump alias and pta stats.
9533         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
9534         (vn_reference_eq): Likewise.
9535         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
9536         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
9537         valueize_vuses): Remove.
9538         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
9539         (get_def_ref_stmt_vuse): ... this.
9540         (vn_reference_lookup_2): New function.
9541         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
9542         walking equivalent vuses.  Simplify.
9543         (vn_reference_lookup): Likewise.
9544         (vn_reference_insert): Likewise.
9545         (vn_reference_insert_pieces): Likewise.
9546         (visit_reference_op_call): Simplify.
9547         (visit_reference_op_load): Likewise.
9548         (visit_reference_op_store): Likewise.
9549         (init_scc_vn): Remove shared_lookup_vuses initialization.
9550         (free_scc_vn): Remove shared_lookup_vuses freeing.
9551         (sort_vuses, sort_vuses_heap): Remove.
9552         (get_ref_from_reference_ops): Export.
9553         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
9554         vector with single vuse pointer.
9555         (vn_reference_lookup_pieces, vn_reference_lookup,
9556         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
9557         (shared_vuses_from_stmt): Remove.
9558         (get_ref_from_reference_ops): Declare.
9559         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
9560         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
9561         memory-tag related code.
9562         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
9563         (likely_value): Add comment, skip static-chain of call statements.
9564         (surely_varying_stmt_p): Adjust.
9565         (gimplify_and_update_call_from_tree): Likewise.
9566         (execute_fold_all_builtins): Do not rebuild alias info.
9567         (gimplify_and_update_call_from_tree): Properly update VOPs.
9568         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
9569         (copy_ref_info): Remove memory-tag related code.
9570         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
9571         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
9572         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
9573         computation.
9574         * tree-ssa-dom.c (gimple_p): Remove typedef.
9575         (eliminate_redundant_computations): Adjust.
9576         (record_equivalences_from_stmt): Likewise.
9577         (avail_expr_hash): Likewise.
9578         (avail_expr_eq): Likewise.
9579         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
9580         (stmt_makes_single_load): Likewise.
9581         (stmt_makes_single_store): Likewise.
9582         * tree-ssa-alias.c: Rewrite completely.
9583         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
9584         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
9585         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
9586         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
9587         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
9588         Remove public functions.
9589         (pass_reset_cc_flags): Remove.
9590         (pass_build_alias): Move ...
9591         * tree-ssa-structalias.c (pass_build_alias): ... here.
9592         * tree-ssa-alias.c (may_be_aliased): Move ...
9593         * tree-flow-inline.h (may_be_aliased): ... here.
9594         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
9595         count_uses_and_derefs): Move ...
9596         * gimple.c: ... here.
9597         * gimple.h (count_uses_and_derefs): Declare.
9598         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
9599         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
9600         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
9601         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
9602         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
9603         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
9604         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
9605         New functions.
9606         * tree-dfa.c (refs_may_alias_p): Move ...
9607         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
9608         * tree-ssa-alias.h: New file.
9609         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
9610         (statement_sink_location): Likewise.
9611         * opts.c (decode_options): Do not adjust max-aliased-vops or
9612         avg-aliased-vops values.
9613         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
9614         (TV_CALL_CLOBBER): Likewise.
9615         (TV_FLOW_SENSITIVE): Likewise.
9616         (TV_FLOW_INSENSITIVE): Likewise.
9617         (TV_MEMORY_PARTITIONING): Likewise.
9618         (TV_ALIAS_STMT_WALK): New timevar.
9619         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
9620         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
9621         (get_address_description): Remove memory-tag related code.
9622         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
9623         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
9624         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
9625         and immediate uses in statements.  Document.
9626         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
9627         (dump_symbols): Remove.
9628         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
9629         * alias.c (get_deref_alias_set): New function split out from ...
9630         (get_alias_set): ... here.
9631         * alias.h (get_deref_alias_set): Declare.
9632         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
9633         type parameter.  Remove restrict pointer handling.  Create a
9634         ref-all pointer in case type-based alias sets do not conflict.
9635         (vect_analyze_data_refs): Remove SMT related code.
9636         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
9637         (vectorizable_load): Likewise.
9638         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
9639         (DR_SYMBOL_TAG, DR_VOPS): Remove.
9640         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
9641         Ignore vops and SMTs.
9642         (dr_analyze_alias): Likewise..
9643         (free_data_ref): Likewise.
9644         (create_data_ref): Likewise.
9645         (analyze_all_data_dependences): Likewise.
9646         (get_references_in_stmt): Adjust.
9647         * tree-flow-inline.h (gimple_aliases_computed_p,
9648         gimple_addressable_vars, gimple_call_clobbered_vars,
9649         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
9650         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
9651         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
9652         gimple_mem_ref_stats): Remove.
9653         (gimple_vop): New function.
9654         (op_iter_next_use): Remove vuses and mayuses cases.
9655         (op_iter_next_def): Remove vdefs case.
9656         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
9657         (clear_and_done_ssa_iter): Do not set removed fields.
9658         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
9659         Assert we are not iterating over vuses or vdefs if not also
9660         iterating over uses or defs.
9661         (op_iter_init_use): Likewise.
9662         (op_iter_init_def): Likewise.
9663         (op_iter_next_vdef): Remove.
9664         (op_iter_next_mustdef): Likewise.
9665         (op_iter_init_vdef): Likewise.
9666         (compare_ssa_operands_equal): Likewise.
9667         (link_use_stmts_after): Handle vuse operand.
9668         (is_call_used): Use is_call_clobbered.
9669         (is_call_clobbered): Global variables are always call clobbered,
9670         query the call-clobbers bitmap.
9671         (mark_call_clobbered): Ignore global variables.
9672         (clear_call_clobbered): Likewise.
9673         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
9674         virtual operands sanity check.
9675         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
9676         Remove.
9677         (TARGET_MEM_REF): Remove TMR_TAG operand.
9678         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
9679         Remove call-clobber related code.
9680         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
9681         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
9682         partitions or escape reason.
9683         (get_single_def_stmt, get_single_def_stmt_from_phi,
9684         get_single_def_stmt_with_phi): Remove.
9685         (dump_referenced_vars): Tidy.
9686         (get_ref_base_and_extent): Allow bare decls.
9687         (collect_dfa_stats): Adjust.
9688         * graphite.c (rename_variables_in_stmt): Adjust.
9689         (graphite_copy_stmts_from_block): Likewise.
9690         (translate_clast): Likewise.
9691         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
9692         (EXPR_DIES): New.
9693         (translate_vuse_through_block): Use the oracle.
9694         (phi_translate_1): Adjust.
9695         (value_dies_in_block_x): Use the oracle.  Cache the outcome
9696         in EXPR_DIES.
9697         (valid_in_sets): Check if the VUSE for
9698         a REFERENCE is available.
9699         (eliminate): Do not remove stmts during elimination,
9700         instead queue and remove them afterwards.
9701         (do_pre): Do not rebuild alias info.
9702         (pass_pre): Run TODO_rebuild_alias before PRE.
9703         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
9704         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
9705         (mark_all_v_defs_stmt): Remove.
9706         (mark_all_v_defs_seq): Adjust.
9707         (sra_replace): Likewise.
9708         (scalarize_use): Likewise.
9709         (scalarize_copy): Likewise.
9710         (scalarize_init): Likewise.
9711         (scalarize_ldst): Likewise.
9712         (todoflags): Remove.
9713         (tree_sra): Do not rebuild alias info.
9714         (tree_sra_early): Adjust.
9715         (pass_sra): Run TODO_update_address_taken before SRA.
9716         * tree-predcom.c (set_alias_info): Remove.
9717         (prepare_initializers_chain): Do not call it.
9718         (mark_virtual_ops_for_renaming): Adjust.
9719         (mark_virtual_ops_for_renaming_list): Remove.
9720         (initialize_root_vars): Adjust.
9721         (initialize_root_vars_lm): Likewise.
9722         (prepare_initializers_chain): Likewise.
9723         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
9724         (may_propagate_copy_into_stmt): Likewise.
9725         (merge_alias_info): Do nothing for now.
9726         (propagate_tree_value_into_stmt): Adjust.
9727         (stmt_may_generate_copy): Likewise.
9728         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
9729         not mark symbols for renaming.
9730         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
9731         with the same statement, make sure to update the new pointed-to one.
9732         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
9733         call statements, do not mark symbols for renaming.
9734         (mark_operand_necessary): Dump something.
9735         (ref_may_be_aliased): New function.
9736         (mark_aliased_reaching_defs_necessary_1): New helper function.
9737         (mark_aliased_reaching_defs_necessary): Likewise.
9738         (mark_all_reaching_defs_necessary_1): Likewise.
9739         (mark_all_reaching_defs_necessary): Likewise.
9740         (propagate_necessity): Do not process virtual PHIs.  For
9741         non-aliased loads mark all reaching definitions as necessary.
9742         For aliased loads and stores mark the immediate dominating
9743         aliased clobbers as necessary.
9744         (visited): New global static.
9745         (perform_tree_ssa_dce): Free visited bitmap after propagating
9746         necessity.
9747         (remove_dead_phis): Perform simple dead virtual PHI removal.
9748         (remove_dead_stmt): Properly unlink virtual operands when
9749         removing stores.
9750         (eliminate_unnecessary_stmts): Schedule PHI removal after
9751         stmt removal.
9752         * tree-ssa-ter.c (is_replaceable_p): Adjust.
9753         (process_replaceable): Likewise.
9754         (find_replaceable_in_bb): Likewise.
9755         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
9756         based on the single gimple vop.
9757         (verify_flow_insensitive_alias_info): Remove.
9758         (verify_flow_sensitive_alias_info): Likewise.
9759         (verify_call_clobbering): Likewise.
9760         (verify_memory_partitions): Likewise.
9761         (verify_alias_info): Likewise.
9762         (verify_ssa): Adjust..
9763         (execute_update_addresses_taken): Export.  Update SSA
9764         manually.  Optimize only when optimizing.  Use a local bitmap.
9765         (pass_update_address_taken): Remove TODO_update_ssa, add
9766         TODO_dump_func.
9767         (pass_update_address_taken): Just use TODO_update_address_taken.
9768         (init_tree_ssa): Do not initialize addressable_vars.
9769         (verify_ssa): Verify new VUSE / VDEF properties.
9770         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
9771         Do not call verify_alias_info.
9772         (delete_tree_ssa): Clear the VUSE, VDEF operands.
9773         Do not free the loaded and stored syms bitmaps.  Reset the escaped
9774         and callused solutions.  Do not free addressable_vars.
9775         Remove memory-tag related code.
9776         (warn_uninitialized_var): Aliases are always available.
9777         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
9778         * lambda-code.c (can_put_in_inner_loop): Adjust.
9779         (can_put_after_inner_loop): Likewise.
9780         (perfect_nestify): Likewise.
9781         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
9782         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
9783         (vectorizable_conversion): Do not mark symbols for renaming.
9784         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
9785         (expand_call_inline): Unlink the calls virtual operands before
9786         replacing it.
9787         (tree_function_versioning): Do not call update_ssa if we are not
9788         updating clones.  Simplify.
9789         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
9790         (propagate_with_phi): Likewise..
9791         * tree-outof-ssa.c (create_temp): Remove memory tag and call
9792         clobber code.  Assert we are not aliased or global.
9793         * tree-flow.h: Include tree-ssa-alias.h
9794         (enum escape_type): Remove.
9795         (struct mem_sym_stats_d): Likewise.
9796         (struct mem_ref_stats_d): Likewise.
9797         (struct gimple_df): Add vop member.  Remove global_var,
9798         call_clobbered_vars, call_used_vars, addressable_vars,
9799         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
9800         escaped and callused members.
9801         (struct ptr_info_def): Remove all members, add points-to solution
9802         member pt.
9803         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
9804         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
9805         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
9806         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
9807         (tree-ssa-alias.o): Likewise.
9808         (toplev.o): Add tree-ssa-alias.h
9809         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
9810         * gimple.c (gimple_set_bb): Fix off-by-one error.
9811         (is_gimple_reg): Do not handle memory tags.
9812         (gimple_copy): Also copy virtual operands.
9813         Delay updating the statement.  Do not reset loaded and stored syms.
9814         (gimple_set_stored_syms): Remove.
9815         (gimple_set_loaded_syms): Likewise.
9816         (gimple_call_copy_skip_args): Copy the virtual operands
9817         and mark the new statement modified.
9818         * tree-ssa-structalias.c (may_alias_p): Remove.
9819         (set_uids_in_ptset): Take the alias set to prune with as
9820         parameter.  Fold in the alias test of may_alias_p.
9821         (compute_points_to_sets): Compute whether a ptr is dereferenced
9822         in a local sbitmap.
9823         (process_constraint): Deal with &ANYTHING on the lhs, reject all
9824         other ADDRESSOF constraints on the lhs.
9825         (get_constraint_for_component_ref): Assert that we don't get
9826         ADDRESSOF constraints from the base of the reference.
9827         Properly generate UNKNOWN_OFFSET for DEREF if needed.
9828         (struct variable_info): Remove collapsed_to member.
9829         (get_varinfo_fc): Remove.
9830         (new_var_info): Do not set collapsed_to.
9831         (dump_constraint): Do not follow cycles.
9832         (dump_constraint_graph): Likewise.
9833         (build_pred_graph): Likewise.
9834         (build_succ_graph): Likewise.
9835         (rewrite_constraints): Likewise.
9836         (do_simple_structure_copy): Remove.
9837         (do_rhs_deref_structure_copy): Remove.
9838         (do_lhs_deref_structure_copy): Remove.
9839         (collapse_rest_of_var): Remove.
9840         (do_structure_copy): Re-implement.
9841         (pta_stats): New global variable.
9842         (dump_pta_stats): New function.
9843         (struct constraint_expr): Make offset signed.
9844         (UNKNOWN_OFFSET): Define special value.
9845         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
9846         (solution_set_expand): New helper function split out from ...
9847         (do_sd_constraint): ... here.
9848         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
9849         (do_ds_constraint): Likewise.
9850         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
9851         and CALLUSED = *CALLUSED.
9852         (set_union_with_increment): Make inc argument signed.
9853         (type_safe): Remove.
9854         (get_constraint_for_ptr_offset): Handle unknown and negative
9855         constant offsets.
9856         (first_vi_for_offset): Handle offsets before start.  Bail
9857         out early for offsets beyond the variable extent.
9858         (first_or_preceding_vi_for_offset): New function.
9859         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
9860         Together with ESCAPED = *ESCAPED this properly computes reachability.
9861         (find_what_var_points_to): New function.
9862         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
9863         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
9864         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
9865         pt_solutions_intersect): New functions.
9866         (compute_call_used_vars): Remove.
9867         (compute_may_aliases): New main entry into PTA computation.
9868         * gimple.h (gimple_p): New typedef.
9869         (struct gimple_statement_base): Remove references_memory_p.
9870         (struct gimple_statement_with_memory_ops_base): Remove
9871         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
9872         members.
9873         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
9874         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
9875         gimple_set_references_memory): Remove.
9876         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
9877         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
9878         New functions.
9879         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
9880         (verify_expr): Allow RESULT_DECL.
9881         (gimple_duplicate_bb): Do not copy virtual operands.
9882         (gimple_duplicate_sese_region): Adjust.
9883         (gimple_duplicate_sese_tail): Likewise.
9884         (mark_virtual_ops_in_region): Remove.
9885         (move_sese_region_to_fn): Do not call it.
9886         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
9887         and pass_simple_dse.
9888         (execute_function_todo): Handle TODO_update_address_taken,
9889         call execute_update_addresses_taken for TODO_rebuild_alias.
9890         (execute_todo): Adjust.
9891         (execute_one_pass): Init dump files early.
9892         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
9893         call-clobbered.
9894         (create_general_new_stmt): Clear vops.
9895         * tree-ssa-reassoc.c (get_rank): Adjust.
9896         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
9897         symbols for renaming.
9898         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
9899         (PARAM_AVG_ALIASED_VOPS): Likewise.
9900         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
9901         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
9902         * tree-ssa-operands.c: Simplify for new virtual operand representation.
9903         (operand_build_cmp, copy_virtual_operands,
9904         create_ssa_artificial_load_stmt, add_to_addressable_set,
9905         gimple_add_to_addresses_taken): Remove public functions.
9906         (unlink_stmt_vdef): New function.
9907
9908 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
9909
9910         * config.gcc (powerpc-*-linux*): Merge variants.
9911
9912 2009-04-02  Chao-ying Fu  <fu@mips.com>
9913             James Grosbach  <james.grosbach@microchip.com>
9914
9915         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
9916         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
9917         cop0_sp_offset.
9918         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
9919         keep_interrupts_masked_p, use_debug_exception_return_p.
9920         (mips_attribute_table): Add interrupt, use_shadow_register_set,
9921         keep_interrupts_masked, use_debug_exception_return.
9922         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
9923         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
9924         New functions.
9925         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
9926         (mips_print_operand): Process COP0 registers to print $0 .. $31
9927         correctly for GAS to process.
9928         (mips_interrupt_extra_call_saved_reg_p): New function.
9929         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
9930         extra registers.
9931         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
9932         (mips_compute_frame_info): Add supports for interrupt context that
9933         includes doubleword accumulators and COP0 registers.
9934         (mips_for_each_saved_acc): New function.
9935         (mips_for_each_saved_gpr_and_fpr): Change the function name from
9936         mips_for_each_saved_reg.
9937         (mips_save_reg): Save accumulators.
9938         (mips_kernel_reg_p): A new for_each_rtx callback.
9939         (mips_expand_prologue): Support interrupt handlers.
9940         (mips_restore_reg): Restore accumulators.
9941         (mips_expand_epilogue): Support interrupt handlers.
9942         (mips_can_use_return_insn): Return false for interrupt handlers.
9943         (mips_epilogue_uses): New function.
9944         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
9945         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
9946         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
9947         cop0_move): New instructions.
9948         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
9949         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
9950         defines.
9951         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
9952         New defines.
9953         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
9954         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
9955         interrupt handlers, we use K0 as the temporary register.
9956         (EPILOGUE_USES): Change to a function call.
9957         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
9958         handlers, we use K0 as the temporary register.
9959
9960         * doc/extend.texi (Function Attributes): Document interrupt,
9961         use_shadow_register_set, keep_interrupts_masked,
9962         use_debug_exception_return for MIPS attributes.
9963
9964 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
9965
9966         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
9967         Remove a number of t-files from tmake_file.
9968         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
9969         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
9970         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
9971         target_prototype, not TARGET_PROTOTYPE.
9972         (LINK_OS_GNU_SPEC): Define.
9973         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
9974         and darwin-ldoubdle.c.
9975
9976 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9977
9978         PR driver/39293
9979         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
9980         (cpp_options): Ditto.
9981         (default_compilers): Ditto.
9982         (display_help): Ditto.
9983         (process_command): Ditto.
9984         (do_spec_1): Ditto.
9985         (set_input): Use lbasename instead of duplicate code.
9986         (save_temps_prefix): New static for -save-temps=obj.
9987         (save_temps_length): Ditto.
9988
9989         * doc/invoke.texi (-save-temps=obj): Document new variant to
9990         -save-temps switch.
9991
9992 2009-04-02  Jeff Law  <law@redhat.com>
9993
9994         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
9995         variable.
9996
9997 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9998
9999         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
10000         * configure: Regenerated.
10001
10002 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
10003
10004         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
10005         share the argument list.
10006
10007 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
10008
10009         Merge
10010
10011         2009-02-12  Diego Novillo  <dnovillo@google.com>
10012
10013         * varpool.c (debug_varpool): New.
10014         * cgraph.h (debug_varpool): Declare.
10015
10016 2009-04-02  Jan Hubicka  <jh@suse.cz>
10017
10018         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
10019         pass.
10020
10021 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
10022
10023         * config/i386/i386.c (ix86_abi): Move initialization to ...
10024         (override_options): Here.
10025
10026 2009-04-02  Christian Bruel  <christian.bruel@st.com>
10027
10028         * config/sh/sh.c (sh_dwarf_register_span): New function.
10029         (TARGET_DWARF_REGISTER_SPAN): Define.
10030         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
10031
10032 2009-04-02  Ira Rosen  <irar@il.ibm.com>
10033
10034         PR tree-optimization/39595
10035         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
10036         interleaved loads group is not  greater than the SLP group size.
10037
10038 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
10039
10040         * builtins.c (is_builtin_name): New.
10041         (called_as_built_in): Use is_builtin_name.
10042         * tree.h (is_builtin_name): New.
10043         * varasm.c (incorporeal_function_p): Use is_builtin_name
10044
10045 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
10046
10047         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
10048
10049 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
10050
10051         PR c++/26693
10052         * c-decl.c (clone_underlying_type): Move this ...
10053         * c-common.c (set_underlying_type): ... here.
10054         Also, make sure the function properly sets TYPE_STUB_DECL() on
10055         the newly created typedef variant type.
10056         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
10057         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
10058         points.
10059
10060 2009-04-02  Richard Guenther  <rguenther@suse.de>
10061
10062         PR tree-optimization/37221
10063         * tree-flow.h (degenerate_phi_result): Declare.
10064         * tree-ssa-dom.c (degenerate_phi_result): Export.
10065         * tree-scalar-evolution.c (analyze_initial_condition): If
10066         the initial condition is defined by a degenerate PHI node
10067         use the degenerate value.
10068
10069 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
10070
10071         PR rtl-optimization/39588
10072         * combine.c (merge_outer_ops): Do not set the constant when this
10073         is not necessary.
10074         (simplify_shift_const_1): Do not modify it either in this case.
10075
10076 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
10077
10078         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
10079         tuning is deprecated if -mtune value is set to an Itanium1 variant.
10080
10081 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
10082
10083         PR c/29027
10084         * c-lex.c (interpret_float): Default (no suffix) is double.
10085
10086 2009-04-1  Xinliang David Li  <davidxl@google.com>
10087
10088         * config/i386/i386.c (legitimate_constant_p): Recognize
10089         all one vector constant.
10090
10091 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
10092
10093         * config/vax/vax.c: Add #includes to silence warnings.
10094         Change #include order to silence two warnings.
10095
10096 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
10097
10098         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
10099         (ASM_SPEC): Pass -k to the assembler for PIC code.
10100
10101 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
10102
10103         * config.gcc: Add vax-*-linux* to the switch.
10104         * config/vax/linux.h: New file. (TARGET_VERSION,
10105         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
10106
10107 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
10108
10109         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
10110         Use predicate macros instead of GET_CODE() == foo.
10111         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
10112         ashlsi3, rotrsi3, <unnamed>): Likewise.
10113
10114 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
10115
10116         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
10117         jbbccihi, jbbccisi): Remova trailing whitespace.
10118         * config/vax/constraints.md: Likewise.
10119         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
10120         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
10121         * config/vax/predicates.md: Likewise.
10122         * config/vax/vax.c (print_operand_address, vax_output_int_move,
10123         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
10124         * config/vax/vax.h: Likewise.
10125         * config/vax/vax.md (nonlocal_goto): Likewise.
10126
10127 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
10128
10129         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
10130         (indirectable_address_p, adjacent_operands_p): Add spaces around
10131         braces.
10132         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
10133
10134 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
10135
10136         * config/vax/vax.c (legitimate_constant_address_p,
10137         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
10138         index_term_p, reg_plus_index_p, legitimate_address_p,
10139         vax_mode_dependent_address_p): Update comments to match functions
10140         modified by the recent int->bool conversion.
10141
10142 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
10143
10144         * config/vax/builtins.md: Update copyright message.
10145         * config/vax/constraints.md: Likewise.
10146         * config/vax/netbsd-elf.h: Likewise.
10147         * config/vax/predicates.md: Likewise.
10148         * config/vax/vax-protos.h: Likewise.
10149         * config/vax/vax.c: Likewise.
10150         * config/vax/vax.h: Likewise.
10151         * config/vax/vax.md: Likewise.
10152         * config/vax/vax.opt: Likewise.
10153
10154 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
10155
10156         * config/vax/builtins.md (ffssi2, ffssi2_internal,
10157         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
10158         * config/vax/constraints.md (B, R): Likewise.
10159         * config/vax/predicates.md (external_memory_operand,
10160         nonimmediate_addsub_di_operand): Likewise.
10161         * config/vax/vax.c (vax_output_int_add): Likewise.
10162         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
10163         untyped_call): Likewise.
10164
10165 2009-04-01  Matt Thomas  <matt@3am-software.com>
10166
10167         * config/vax/predicates.md: New file.
10168         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
10169         external_const_operand, nonsymbolic_operand, external_memory_operand,
10170         indirect_memory_operand, indexed_memory_operand,
10171         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
10172         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
10173         predicate.
10174         * config/vax/constraints.md: New file.
10175         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
10176         New constraint.
10177         * config/vax/builtins.md: New file.
10178         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
10179         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
10180         jbbccisi): Define.
10181         * config/vax/vax.opt (mqmath): Add option.
10182         * config/vax/vax.md (isfx): Extend with DI.
10183         (VAXintQH, VAXintQHSD): Define.
10184         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
10185         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
10186         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
10187         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
10188         (movdi): Update constraints and use vax_output_int_move().
10189         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
10190         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
10191         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
10192         nonlocal_goto): New.
10193         (mov<mode>): Extend accepted operand types.
10194         (subdi3_old): Rename from subdi3, change update constraints and use
10195         a new implementation.
10196         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
10197         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
10198         MOVE_RATIO, CLEAR_RATIO): Define.
10199         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
10200         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
10201         (PRINT_OPERAND): Redefine using a function instead of inlined code.
10202         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
10203         (split_quadword_operands): Make static and really allow variable
10204         splitting.
10205         (print_operand_address): Update for PIC generation.
10206         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
10207         indexable_address_p, fixup_mathdi_operand,
10208         vax_expand_addsub_di_operands, adjacent_operands_p): New.
10209         (vax_float_literal, legitimate_constant_p,
10210         indirectable_constant_address_p, index_term_p,
10211         reg_plus_index_p): Return bool instead of int.
10212         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
10213         where needed.
10214         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
10215         generation.
10216         (vax_output_conditional_branch): Indent.
10217         (legitimate_constant_address_p, indirectable_constant_address_p,
10218         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
10219         vax_mode_dependent_address_p): Return bool instead of int, update for
10220         PIC generation.
10221         * config/vax/vax-protos.h (legitimate_constant_address_p,
10222         legitimate_constant_p, legitimate_address_p,
10223         vax_mode_dependent_address_p): Change declaration to bool.
10224         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
10225         vax_expand_addsub_di_operands, vax_output_int_subtract,
10226         vax_output_movmemsi): Declare.
10227         (split_quadword_operands, vax_float_literal): Delete declaration.
10228         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
10229         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
10230         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
10231         ASM_OUTPUT_DWARF_PCREL): Define.
10232         (ASM_SPEC): Change definition to allow PIC generation.
10233
10234 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
10235
10236         * doc/sourcebuild.texi: Update front-end requirements.
10237
10238 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
10239
10240         PR target/39226
10241         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
10242         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
10243         (booldi3_internal3): Use boolean_or_operator instead of
10244         boolean_operator.
10245
10246 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
10247
10248         PR c/39605
10249         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
10250         declarator whose size is not an integer constant expression but
10251         folds to an integer constant, then treat it as a constant
10252         subsequently.
10253
10254 2009-04-01  Richard Guenther  <rguenther@suse.de>
10255
10256         * fold-const.c (fold_plusminus_mult_expr): Do not fold
10257         i * 4 + 2 to (i * 2 + 1) * 2.
10258
10259 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
10260
10261         PR c/37772
10262         * c-parser.c (c_parser_asm_statement): Skip until close paren and
10263         return if c_parser_asm_string_literal returned NULL.
10264
10265 2009-04-01  Nick Clifton  <nickc@redhat.com>
10266
10267         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
10268         already defined.
10269         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
10270         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
10271         other typedefs to avoid conflicts with libgcc2.c.  Define labels
10272         to gain 16-bit bit-manipulation functions from libgcc2.c and then
10273         include it.
10274         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
10275         to gain 16-bit trapping arithmetic functions from libgcc2.c and
10276         then include it.
10277
10278 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
10279
10280         * varasm.c (default_function_rodata_section): Declare DOT as
10281         const char*.
10282
10283 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
10284             Andrey Galkin  <agalkin@hypercom.com>
10285
10286         PR/39492
10287         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
10288         Make object_name unique for each process.
10289
10290 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
10291
10292         PR other/39591
10293         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
10294         addressable variables in the parallel that could go out of scope while
10295         running queued tasks.
10296
10297 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
10298
10299         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
10300         (CASE_VALUES_THRESHOLD): Redefine.
10301         * config/avr/avr.c (avr_override_options): Remove initialization of
10302         avr_case_values_threshold variable.
10303         (avr_case_values_threshold): Remove variable. Add new function.
10304         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
10305         * config/avr/avr.opt (mno-tablejump): Remove option.
10306         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
10307
10308 2009-04-01  DJ Delorie  <dj@redhat.com>
10309
10310         * varasm.c (default_function_rodata_section): Don't assume
10311         anything about where the first '.' in the section name is.
10312
10313 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
10314
10315         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
10316         rs6000_emit_stack_tie.
10317
10318 2009-03-31  Ian Lance Taylor  <iant@google.com>
10319
10320         * tree-eh.c (tree_remove_unreachable_handlers): Compare
10321         gimple_code with GIMPLE_RESX, not RESX.
10322
10323 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
10324
10325         * c-common.c (c_get_ident): New.
10326         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
10327
10328 2009-04-01  Ben Elliston  <bje@au.ibm.com>
10329
10330         * config/rs6000/sysv4.opt (msdata): Improve option description.
10331
10332 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
10333
10334         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
10335         (divdf3_internal_lat): Remove.
10336         (divxf3_internal_lat): Remove.
10337         (divxf3_internal_thr): Remove.
10338         (divxf): Use divxf3_internal.
10339         * config/ia64/div.md (divsf3_internal_lat): New.
10340         (divdf3_internal_lat): New.
10341         (divxf3_internal): New.
10342
10343 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
10344
10345         PR c/448
10346         * Makefile.in (USE_GCC_STDINT): Define.
10347         (stmp-int-hdrs): Install stdint.h if applicable.
10348         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
10349         if known.
10350         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
10351         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
10352         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
10353         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
10354         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
10355         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
10356         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
10357         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
10358         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
10359         (c_common_nodes_and_builtins): Initialize
10360         underlying_wchar_type_node.  Do not initialize
10361         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
10362         nodes for new types.
10363         (c_stddef_cpp_builtins): Define macros for new types.
10364         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
10365         Remove.
10366         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
10367         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
10368         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
10369         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
10370         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
10371         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
10372         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
10373         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
10374         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
10375         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
10376         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
10377         int16_type_node, int32_type_node, int64_type_node,
10378         uint8_type_node, uint16_type_node, c_uint32_type_node,
10379         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
10380         int_least32_type_node, int_least64_type_node,
10381         uint_least8_type_node, uint_least16_type_node,
10382         uint_least32_type_node, uint_least64_type_node,
10383         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
10384         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
10385         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
10386         uintptr_type_node): Define.
10387         * c-cppbuiltin.c (builtin_define_constants,
10388         builtin_define_type_minmax): New.
10389         (builtin_define_stdint_macros): Define more macros.
10390         (c_cpp_builtins): Define more limit macros.
10391         (type_suffix): New.
10392         (builtin_define_type_max): Define in terms of
10393         builtin_define_type_minmax.  Remove is_long parameter.  All
10394         callers changed.
10395         * config.gcc (use_gcc_stdint): Define.
10396         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
10397         Add newlib-stdint.h for generic targets.
10398         * config/glibc-stdint.h, config/newlib-stdint.h,
10399         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
10400         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
10401         * config/score/score.h (UINTPTR_TYPE): Define.
10402         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
10403         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
10404         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
10405         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
10406         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
10407         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
10408         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
10409         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
10410         * config/spu/spu.h (STDINT_LONG32): Define.
10411         * configure.ac (use_gcc_stdint): Substitute.
10412         * configure: Regenerate.
10413         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
10414         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
10415         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
10416         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
10417         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
10418         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
10419         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
10420         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
10421         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
10422         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
10423         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
10424         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
10425         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
10426         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
10427         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
10428         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
10429         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
10430         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
10431         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
10432         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
10433         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
10434         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
10435         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
10436         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
10437         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
10438         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
10439         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
10440         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
10441         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
10442
10443 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
10444
10445         * loop-iv.c (suitable_set_for_replacement): Renamed from
10446         simplify_using_assignment; changed to return bool and to accept new
10447         args DEST and SRC.  Return true iff we find a source/destination pair
10448         that can be used to make a replacement, and fill SRC and DEST if so.
10449         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
10450         changed.
10451         (simplify_using_initial_values): Deal with altered regs here and track
10452         more precisely the effect they have on the validity of our expression.
10453
10454         * loop-iv.c (simplify_using_condition): A condition of the form
10455         (EQ REG CONST) can be used to simply make a substitution.
10456         (simplify_using_initial_values): Keep track of conditions we have seen
10457         and keep using them to simplify new expressions, while applying the
10458         same substitutions to them as to the expression.
10459
10460         * simplify-rtx.c (simplify_relational_operation_1): Simplify
10461         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
10462         GEU/LTU reversed.
10463
10464         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
10465         changed.  Use this when trying to improve the upper bound.
10466         Generate the comparison by using simplify_gen_relational.
10467
10468         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
10469
10470         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
10471         functions.
10472         (simplify_using_assignment, simplify_using_initial_values): Call
10473         replace_in_expr to make replacements.  Call replace_single_def_regs
10474         once on the initial version of the expression.
10475
10476 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10477
10478         PR target/27237
10479         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
10480
10481 2009-03-31  Richard Guenther  <rguenther@suse.de>
10482
10483         PR middle-end/31029
10484         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
10485         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
10486
10487 2009-03-31  Richard Guenther  <rguenther@suse.de>
10488
10489         * tree.h (div_if_zero_remainder): Declare.
10490         * fold-const.c (div_if_zero_remainder): Export.
10491         * tree-ssa-forwprop.c
10492         (forward_propagate_addr_into_variable_array_index): Handle
10493         constant array index addition outside of the variable index.
10494
10495 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
10496
10497         PR target/39592
10498         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
10499         define_splits, floatunssi<mode>2): Require x87 conversions from
10500         DImode to be permitted.
10501
10502 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
10503
10504         PR preprocessor/15638
10505         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
10506
10507 2009-03-31  Richard Guenther  <rguenther@suse.de>
10508
10509         PR middle-end/23401
10510         PR middle-end/27810
10511         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
10512         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
10513         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
10514         a separate statement.
10515         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
10516         (lookup_tmp_var): Likewise.
10517         (is_gimple_formal_tmp_or_call_rhs): Remove.
10518         (is_gimple_reg_or_call_rhs): Rename to ...
10519         (is_gimple_reg_rhs_or_call): ... this.
10520         (is_gimple_mem_or_call_rhs): Rename to ...
10521         (is_gimple_mem_rhs_or_call): ... this.
10522         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
10523         DECL_GIMPLE_REG_P only if is_formal is true.
10524         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
10525         for non-proper post-modify expression gimplification.
10526         (gimplify_self_mod_expr): For post-modify expressions gimplify
10527         the lvalue to a minimal lvalue.
10528         (rhs_predicate_for): Remove formal temp case.
10529         (gimplify_modify_expr_rhs): Likewise.
10530         (gimplify_addr_expr): Use is_gimple_reg.
10531         (gimplify_expr): Remove formal temp cases.
10532         (gimple_regimplify_operands): Likewise.
10533         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
10534         and FILTER_EXPR like constants.
10535         * gimple.c (walk_gimple_op): Fix val_only initialization, use
10536         is_gimple_reg.
10537         (is_gimple_formal_tmp_rhs): Remove.
10538         (is_gimple_reg_rhs): Remove special casing.
10539         (is_gimple_mem_rhs): Fix.
10540         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
10541         (is_gimple_formal_tmp_var): Remove.
10542         (is_gimple_formal_tmp_reg): Likewise.
10543         (is_gimple_min_lval): Allow invariant component ref parts.
10544         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
10545         is_gimple_formal_tmp_reg): Remove declarations.
10546         * tree-cfg.c (verify_expr): Verify that variables with address
10547         taken do not have DECL_GIMPLE_REG_P set.
10548         * tree-mudflap.c (mf_build_check_statement_for): Use
10549         force_gimple_operand instead of gimplify_expr.
10550
10551 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
10552
10553         * modulo-sched.c (sms_schedule_by_order): Pass the actual
10554         schedulable rows to compute_split_row.
10555
10556 2009-03-31  Ben Elliston  <bje@au.ibm.com>
10557
10558         PR target/31635
10559         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
10560         OPT_mvrsave.
10561
10562 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
10563
10564         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
10565         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
10566         * configure: Regenerate.
10567         * config.in: Regenerate.
10568         * config/rs6000/rs6000.opt (mtls-markers): Add.
10569         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
10570         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
10571         (tls_ld_aix, tls_ld_sysv): Likewise.
10572         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
10573         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
10574
10575 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
10576
10577         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
10578
10579 2009-03-30  Jan Hubicka  <jh@suse.cz>
10580
10581         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
10582         out of RESX.
10583         (tree_remove_unreachable_handlers): Cleanup EH predecestor
10584         detection and label handling.
10585
10586 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
10587
10588         * ira-int.h (ira_allocno): Rename left_conflicts_num to
10589         left_conflicts_size.
10590         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
10591         ALLOCNO_LEFT_CONFLICTS_SIZE.
10592
10593         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
10594         remove_allocno_from_bucket_and_push,
10595         allocno_spill_priority_compare, push_allocnos_to_stack,
10596         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
10597         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
10598         (setup_allocno_left_conflicts_num): Ditto.  Rename to
10599         setup_allocno_left_conflicts_size.
10600         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
10601         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
10602         setup_allocno_left_conflicts_size instead of
10603         setup_allocno_left_conflicts_num.
10604
10605         * ira-build.c (ira_create_allocno): Use
10606         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
10607         ALLOCNO_LEFT_CONFLICTS_NUM.
10608
10609 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
10610
10611         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
10612         instead of DF_LR_OUT.
10613
10614         * ira-lives.c (process_bb_node_lives): Ditto.
10615
10616         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
10617         instead of DF_LR_{OUT,IN}.
10618
10619         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
10620
10621         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
10622
10623 2009-03-30  Jan Hubicka  <jh@suse.cz>
10624
10625         * except.c (label_to_region_map): Fix thinko.
10626
10627 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
10628
10629         PR middle-end/38237
10630         * tree.h (tree_find_value): New declaration.
10631         * tree.c (tree_find_value): New function.
10632         * varasm.c (assemble_external): Avoid duplicate entries on lists.
10633
10634 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
10635
10636         PR debug/39563
10637         * c-decl.c (struct c_binding): Add locus field.
10638         (bind): Add locus argument, set locus field from it.
10639         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
10640         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
10641         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
10642         implicitly_declare, undeclared_variable, lookup_label,
10643         declare_label, c_make_fname_decl, c_builtin_function,
10644         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
10645         bind callers.
10646
10647 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
10648
10649         PR target/38781
10650         * config/i386/i386.c (classify_argument): Check total size of
10651         structure.
10652
10653 2009-03-30  Martin Jambor  <mjambor@suse.cz>
10654
10655         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
10656         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
10657         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
10658         respectively.
10659
10660         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
10661         seen_variable_array_ref while also traversing a union.
10662
10663         * tree-inline.c (optimize_inline_calls): Do not call
10664         cgraph_node_remove_callees.
10665         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
10666         (pass_remove_cgraph_callee_edges): New variable.
10667         * passes.c (init_optimization_passes): Add
10668         pass_remove_cgraph_callee_edges after early inlining and before all
10669         late intraprocedural passes.
10670
10671         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
10672
10673 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
10674
10675         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
10676         Fix typos in names.
10677
10678 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
10679
10680         * combine.c (simplify_comparison): Use have_insn_for.
10681         * dojump.c (do_jump): Likewise.
10682
10683 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
10684
10685         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
10686         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
10687         sparc_compare_op0 like sparc_compare_emitted used to be handled.
10688         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
10689         instead of sparc_compare_emitted.
10690         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
10691         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
10692         instead of sparc_compare_emitted.
10693
10694 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
10695
10696         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
10697         enter/exit cfglayout mode.
10698         (pass_partition_block): Require it.
10699         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
10700         (combine_instructions): Track basic blocks instead of labels.
10701         (update_cfg_for_uncondjump): New.
10702         (try_combine): Use it.  Update jumps after rescanning.
10703         (pass_combine): Require PROP_cfglayout.
10704         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
10705
10706 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
10707
10708         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
10709         Provide/destroy PROP_cfglayout respectively.
10710         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
10711         * tree-pass.h (PROP_cfglayout): New.
10712
10713 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
10714
10715         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
10716         fold_convert_const_fixed_from_fixed,
10717         fold_convert_const_fixed_from_int,
10718         fold_convert_const_fixed_from_real, fold_negate_const): Do not
10719         set TREE_CONSTANT_OVERFLOW.
10720         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
10721         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
10722
10723 2009-03-30  Ira Rosen  <irar@il.ibm.com>
10724
10725         * tree-vect-loop-manip.c: New file.
10726         * tree-vectorizer.c: Update documentation and included files.
10727         (vect_loop_location): Make extern.
10728         (rename_use_op): Move to tree-vect-loop-manip.c
10729         (rename_variables_in_bb, rename_variables_in_loop,
10730         slpeel_update_phis_for_duplicate_loop,
10731         slpeel_update_phi_nodes_for_guard1,
10732         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
10733         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
10734         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
10735         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
10736         find_loop_location): Likewise.
10737         (new_stmt_vec_info): Move to tree-vect-stmts.c.
10738         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
10739         get_vectype_for_scalar_type, vect_is_simple_use,
10740         supportable_widening_operation, supportable_narrowing_operation):
10741         Likewise.
10742         (bb_in_loop_p): Move to tree-vect-loop.c.
10743         (new_loop_vec_info, destroy_loop_vec_info,
10744         reduction_code_for_scalar_code, report_vect_op,
10745         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
10746         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
10747         (vect_supportable_dr_alignment): Likewise.
10748         * tree-vectorizer.h (tree-data-ref.h): Include.
10749         (vect_loop_location): Declare.
10750         Reorganize function declarations according to the new file structure.
10751         * tree-vect-loop.c: New file.
10752         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
10753         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
10754         * tree-vect-data-refs.c: New file.
10755         * tree-vect-patterns.c (timevar.h): Don't include.
10756         * tree-vect-stmts.c: New file.
10757         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
10758         tree-vect-slp.c, tree-vect-loop.c.
10759         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
10760         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
10761         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
10762         (tree-vect-analyze.o): Remove.
10763         (tree-vect-transform.o): Likewise.
10764         (tree-vect-data-refs.o): Add rule.
10765         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
10766         tree-vect-slp.o): Likewise.
10767         (tree-vect-patterns.o): Remove redundant dependencies.
10768         (tree-vectorizer.o): Likewise.
10769         * tree-vect-slp.c: New file.
10770
10771 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10772
10773         * optc-gen.awk: Warn if an option flag has multiple different
10774         help strings.
10775
10776 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
10777
10778         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
10779         -floop-block): Document dependences on PPL, CLooG and Graphite.
10780
10781 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
10782
10783         PR rtl-optimization/323
10784         * c-common.c (c_fully_fold, convert_and_check,
10785         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
10786         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
10787         * c-common.def (EXCESS_PRECISION_EXPR): New.
10788         * c-cppbuiltin.c (builtin_define_float_constants): Define
10789         constants with enough digits for long double.
10790         * c-lex.c (interpret_float): Interpret constant with excess
10791         precision where appropriate.
10792         * c-opts.c (c_common_post_options): Set
10793         flag_excess_precision_cmdline.  Give an error for
10794         -fexcess-precision=standard for C++ for processors where the
10795         option is significant.
10796         * c-parser.c (c_parser_conditional_expression): Handle excess
10797         precision in condition.
10798         * c-typeck.c (convert_arguments): Handle arguments with excess
10799         precision.
10800         (build_unary_op): Move excess precision outside operation.
10801         (build_conditional_expr): Likewise.
10802         (build_compound_expr): Likewise.
10803         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
10804         (build_modify_expr): Handle excess precision in RHS.
10805         (convert_for_assignment): Handle excess precision in converted
10806         value.
10807         (digest_init, output_init_element, process_init_element): Handle
10808         excess precision in initializer.
10809         (c_finish_return): Handle excess precision in return value.
10810         (build_binary_op): Handle excess precision in operands and add
10811         excess precision as needed for operation.
10812         * common.opt (-fexcess-precision=): New option.
10813         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
10814         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10815         For standard excess precision, output explicit conversion to and
10816         truncation from XFmode.
10817         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
10818         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
10819         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
10820         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
10821         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
10822         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
10823         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
10824         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
10825         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
10826         define_splits, sqrt<mode>2): Disable where appropriate for
10827         standard excess precision.
10828         * convert.c (convert_to_real): Do not shorten arithmetic to type
10829         for which excess precision would be used.
10830         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
10831         * doc/invoke.texi (-fexcess-precision=): Document option.
10832         (-mfpmath=): Correct index entry.
10833         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
10834         flag_excess_precision): New.
10835         * langhooks.c (lhd_post_options): Set
10836         flag_excess_precision_cmdline.
10837         * opts.c (common_handle_option): Handle -fexcess-precision=.
10838         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
10839         init_excess_precision): New.
10840         (lang_dependent_init_target): Call init_excess_precision.
10841         * tree.c (excess_precision_type): New.
10842         * tree.h (excess_precision_type): Declare.
10843
10844 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
10845
10846         PR c/35235
10847         * c-typeck.c (build_component_ref): Do not copy qualifiers from
10848         non-lvalue to component.
10849
10850 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
10851
10852         PR preprocessor/34695
10853         * Makefile.in (c-opts.o): Depend on c-tree.h.
10854         * c-common.c: Move down include of diagnostic.h.
10855         (done_lexing, c_cpp_error): New.
10856         * c-common.h (done_lexing): Declare.
10857         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
10858         (parse_in).
10859         * c-opts.c: Include c-tree.h.
10860         (c_common_init_options): Set preprocessor error callback.
10861         (c_common_handle_option): Do not set preprocessor
10862         inhibit_warnings, warnings_are_errors, warn_system_headers,
10863         pedantic_errors or inhibit_warnings flags.
10864         (c_common_post_options): Do not check cpp_errors (parse_in).
10865         (c_common_finish): Do not output dependencies if there were
10866         errors.  Do not check return value of cpp_finish.
10867         * c-ppoutput.c (pp_file_change): Set input_location.
10868         * c-tree.h (c_cpp_error): Declare.
10869         * diagnostic.c (diagnostic_set_info_translated): Also initialize
10870         override_column.
10871         (diagnostic_build_prefix): Check override_column.
10872         * diagnostic.h (diagnostic_info): Add override_column field.
10873         (diagnostic_override_column): Define.
10874
10875 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
10876
10877         * c-common.c (c_expand_expr, c_staticp): Remove.
10878         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
10879         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
10880         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
10881         * c-gimplify.c (gimplify_compound_literal_expr,
10882         optimize_compound_literals_in_ctor): Remove.
10883         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
10884         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
10885         * c-semantics.c (emit_local_var): Remove.
10886
10887         * langhooks-def.h (lhd_expand_expr): Remove.
10888         * langhooks.c (lhd_expand_expr): Remove.
10889         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
10890
10891         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
10892         handling from c-semantics.c; don't call into langhook.
10893         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
10894         * gimplify.c (gimplify_compound_literal_expr,
10895         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
10896         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
10897         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
10898         as was done in c-gimplify.c.
10899         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
10900         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
10901         Move from c-common.h.
10902         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
10903
10904         * tree.c (staticp): Do not call langhook.
10905         * langhooks.c (lhd_staticp): Delete.
10906         * langhooks-def.h (lhd_staticp): Delete prototype.
10907         (LANG_HOOKS_STATICP): Delete.
10908         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
10909
10910         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
10911         instead of DECL_STMTs.
10912
10913 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
10914
10915         PR c/456
10916         PR c/5675
10917         PR c/19976
10918         PR c/29116
10919         PR c/31871
10920         PR c/35198
10921         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
10922         void_type_node.
10923         (fold_call_expr): Return a NOP_EXPR from folding rather than the
10924         contained expression.
10925         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
10926         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
10927         conditional expressions for C.
10928         (decl_constant_value_for_optimization): Move from
10929         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
10930         whether optimizing and that the expression is a VAR_DECL not of
10931         array type instead of doing such checks in the caller.  Do not
10932         check pedantic.  Call gcc_unreachable for C++.
10933         * c-common.def (C_MAYBE_CONST_EXPR): New.
10934         * c-common.h (c_fully_fold, c_save_expr,
10935         decl_constant_value_for_optimization): New prototypes.
10936         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
10937         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
10938         EXPR_INT_CONST_OPERANDS): Define.
10939         * c-convert.c (convert): Strip nops from expression.
10940         * c-decl.c (groktypename): Take extra parameters expr and
10941         expr_const_operands.  Update call to grokdeclarator.
10942         (start_decl): Update call to grokdeclarator.  Add statement for
10943         expressions used in type of decl.
10944         (grokparm): Update call to grokdeclarator.
10945         (push_parm_decl): Update call to grokdeclarator.
10946         (build_compound_literal): Add parameter non_const and build a
10947         C_MAYBE_COSNT_EXPR if applicable.
10948         (grokdeclarator): Take extra parameters expr and
10949         expr_const_operands.  Track expressions used in declaration
10950         specifiers and declarators.  Fold array sizes and track whether
10951         they are constant expressions and whether they are integer
10952         constant expressions.
10953         (parser_xref_tag): Set expr and expr_const_operands fields in
10954         return value.
10955         (grokfield): Update call to grokdeclarator.
10956         (start_function): Update call to grokdeclarator.
10957         (build_null_declspecs): Set expr and expr_const_operands fields in
10958         return value.
10959         (declspecs_add_type): Handle expressions in typeof specifiers.
10960         * c-parser.c (c_parser_declspecs): Set expr and
10961         expr_const_operands fields for declaration specifiers.
10962         (c_parser_enum_specifier): Likewise.
10963         (c_parser_struct_or_union_specifier): Likewise.
10964         (c_parser_typeof_specifier): Likewise.  Update call to
10965         groktypename.  Fold expression as needed.  Return expressions with
10966         type instead of adding statements.
10967         (c_parser_attributes): Update calls to c_parser_expr_list.
10968         (c_parser_statement_after_labels): Fold expression before passing
10969         to objc_build_throw_stmt.
10970         (c_parser_condition): Fold expression.
10971         (c_parser_asm_operands): Fold expression.
10972         (c_parser_conditional_expression): Use c_save_expr.  Update call
10973         to build_conditional_expr.
10974         (c_parser_alignof_expression): Update call to groktypename.
10975         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
10976         original_code.  Fold expression argument of va_arg.  Create
10977         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
10978         argument to va_arg.  Update calls to groktypename.  Fold array
10979         index for offsetof.  Verify that first argument to
10980         __builtin_choose_expr has integer type.
10981         (c_parser_postfix_expression_after_paren_type): Update calls to
10982         groktypename and build_compound_literal.  Handle expressions with
10983         side effects in type name.
10984         (c_parser_postfix_expression_after_primary): Update call to
10985         c_parser_expr_list.  Set original_code for calls to
10986         __builtin_constant_p.
10987         (c_parser_expr_list): Take extra parameter fold_p.  Fold
10988         expressions if requested.
10989         (c_parser_objc_type_name): Update call to groktypename.
10990         (c_parser_objc_synchronized_statement): Fold expression.
10991         (c_parser_objc_receiver): Fold expression.
10992         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
10993         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
10994         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
10995         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
10996         (struct c_typespec): Add elements expr and expr_const_operands.
10997         (struct c_declspecs): Add elements expr and expr_const_operands.
10998         (groktypename, build_conditional_expr, build_compound_literal):
10999         Update prototypes.
11000         (in_late_binary_op): Declare.
11001         * c-typeck.c (note_integer_operands): New function.
11002         (in_late_binary_op): New variable.
11003         (decl_constant_value_for_broken_optimization): Move to c-common.c
11004         and rename to decl_constant_value_for_optimization.
11005         (default_function_array_conversion): Do not strip nops.
11006         (default_conversion): Do not call
11007         decl_constant_value_for_broken_optimization.
11008         (build_array_ref): Do not fold result.
11009         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
11010         result when operand is a VLA.
11011         (c_expr_sizeof_type): Update call to groktypename.  Handle
11012         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
11013         result when operand names a VLA type.
11014         (build_function_call): Update call to build_compound_literal.
11015         Only fold result for calls to __builtin_* functions.  Strip
11016         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
11017         the function designator.
11018         (convert_arguments): Fold arguments.  Update call to
11019         convert_for_assignment.
11020         (build_unary_op): Handle increment and decrement of
11021         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
11022         decrement earlier.  Fold operand of increment and decrement.
11023         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
11024         built for integer operand.  Wrap returns that are INTEGER_CSTs
11025         without being integer constant expressions or that have integer
11026         constant operands without being INTEGER_CSTs.
11027         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
11028         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
11029         result is an integer constant expression or can be used in
11030         unevaluated parts of one and avoid folding and wrap as
11031         appropriate.  Fold operands before possibly doing -Wsign-compare
11032         warnings.
11033         (build_compound_expr): Wrap result for C99 if operands can be used
11034         in integer constant expressions.
11035         (build_c_cast): Update call to digest_init.  Do not ignore
11036         overflow from casting floating-point constants to integers.  Wrap
11037         results that could be confused with integer constant expressions,
11038         null pointer constants or floating-point constants.
11039         (c_cast_expr): Update call to groktypename.  Handle expressions
11040         included in type name.
11041         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
11042         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
11043         Update calls to convert_for_assignment.
11044         (convert_for_assignment): Take new parameter
11045         null_pointer_constant.  Do not strip nops or call
11046         decl_constant_value_for_broken_optimization.  Set
11047         in_late_binary_op for conversions to boolean.
11048         (store_init_value): Update call to digest_init.
11049         (digest_init): Take new parameter null_pointer_constant.  Do not
11050         call decl_constant_value_for_broken_optimization.  pedwarn for
11051         initializers not constant expressions.  Update calls to
11052         convert_for_assignment.
11053         (constructor_nonconst): New.
11054         (struct constructor_stack): Add nonconst element.
11055         (really_start_incremental_init, push_init_level, pop_init_level):
11056         Handle constructor_nonconst and nonconst element.
11057         (set_init_index): Call constant_expression_warning for array
11058         designators.
11059         (output_init_element): Fold value.  Set constructor_nonconst as
11060         applicable.  pedwarn for initializers not constant expressions.
11061         Update call to digest_init.  Call constant_expression_warning
11062         where constant initializers are required.
11063         (process_init_element): Use c_save_expr.
11064         (c_finish_goto_ptr): Fold expression.
11065         (c_finish_return): Fold return value.  Update call to
11066         convert_for_assignment.
11067         (c_start_case): Fold switch expression.
11068         (c_process_expr_stmt): Fold expression.
11069         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
11070         ensure statement expression is not evaluated in constant expression.
11071         (build_binary_op): Track whether results are integer constant
11072         expressions or may occur in such, disable folding and wrap results
11073         as applicable.  Fold operands for -Wsign-compare warnings unless
11074         in_late_binary_op.
11075         (c_objc_common_truthvalue_conversion): Handle results folded to
11076         integer constants that are not integer constant expressions.
11077         * doc/extend.texi: Document when typeof operands are evaluated,
11078         that condition of __builtin_choose_expr is an integer constant
11079         expression, and more about use of __builtin_constant_p in
11080         initializers.
11081
11082 2009-03-29  Richard Guenther  <rguenther@suse.de>
11083
11084         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
11085         propagate addresses of array references.
11086
11087 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
11088
11089         * regmove.c (perhaps_ends_bb_p): Remove.
11090         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
11091         from INSN and check that the main loop stays within that basic block.
11092         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
11093         (regmove_forward_pass): Split out from regmove_optimize.  Use
11094         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
11095         (regmove_backward_pass): Split out from regmove_optimize.  Use
11096         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
11097         (regmove_optimize): Simplify.
11098
11099 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
11100
11101         PR target/39545
11102         * config/i386/i386.c (classify_argument): Ignore flexible array
11103         member in struct and warn ABI change.
11104
11105 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
11106
11107         * config/i386/i386-protos.h (ix86_agi_dependent): New.
11108
11109         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
11110         (ix86_adjust_cost): Updated.
11111
11112 2009-03-29  Jan Hubicka  <jh@suse.cz>
11113
11114         PR middle-end/28850
11115         * tree-pass.h (pass_cleanup_eh): New function.
11116         (remove_unreachable_regions): Break code handling RTL
11117         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
11118         that can not be reached by runtime.
11119         (can_be_reached_by_runtime): New function.
11120         (label_to_region_map): New function.
11121         (num_eh_regions): New function.
11122         (rtl_remove_unreachable_regions): New function.
11123         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
11124         (remove_eh_region): New function.
11125         * except.h: Include sbitmap and vecprim.
11126         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
11127         num_eh_regions): Declare.
11128         * passes.c (init_optimization_passes): Schedule cleanup_eh.
11129         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
11130         * tree-eh.c (tree_remove_unreachable_handlers): New function.
11131         (tree_empty_eh_handler_p): New function.
11132         (cleanup_empty_eh): New function.
11133         (cleanup_eh): New function.
11134         (pass_cleanup_eh): New function.
11135
11136 2009-03-29  Jan Hubicka  <jh@suse.cz>
11137
11138         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
11139         for removed regions.
11140
11141 2009-03-29  Jan Hubicka  <jh@suse.cz>
11142
11143         * except.c (dump_eh_tree): Dump all datastructures.
11144
11145 2009-03-29  Jan Hubicka  <jh@suse.cz>
11146
11147         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
11148         (duplicate_eh_regions_1): Likewise.
11149         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
11150         vector; call EH verification.
11151         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
11152         Be ready for region being removed.
11153
11154 2009-03-29  Jan Hubicka  <jh@suse.cz>
11155
11156         * bitmap.c (bitmap_last_set_bit): New function.
11157         * bitmap.h (bitmap_last_set_bit): Declare.
11158
11159 2009-03-29  David Ayers  <ayers@fsfe.org>
11160
11161         PR objc/27377
11162         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
11163         by calling objc_compare_types and surpress warnings about
11164         incompatible C pointers that are compatible ObjC pointers.
11165
11166 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
11167
11168         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
11169         call initialize_inline_failed.
11170         (initialize_inline_failed): Move it from here ...
11171         * cgraph.c (initialize_inline_failed): ... to here.
11172         (cgraph_create_edge): Call initialize_inline_failed rather than
11173         setting inline_failed directly.
11174
11175 2009-03-29  Ben Elliston  <bje@au.ibm.com>
11176
11177         PR target/32542
11178         * sysv4.opt (msdata): Improve comment.
11179         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
11180         * sysv4.h (SVR4_ASM_SPEC): Likewise.
11181
11182 2009-03-29  Ben Elliston  <bje@au.ibm.com>
11183
11184         PR target/30451
11185         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
11186         load and store attributes.
11187
11188 2009-03-29  Ben Elliston  <bje@au.ibm.com>
11189
11190         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
11191         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
11192         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
11193         * doc/extend.texi (X86 Built-in Functions): Add index entries for
11194         __builtin_infq and __builtin_huge_valq.
11195
11196 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
11197
11198         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
11199         atmega8m1 devices.
11200         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
11201         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
11202
11203 2009-03-28  Xinliang David Li  <davidxl@google.com>
11204
11205         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
11206         (do_dbg_cnt): New function.
11207
11208 2009-03-28  Jan Hubicka  <jh@suse.cz>
11209
11210         Merge from pretty-ipa:
11211
11212         2009-03-27  Jan Hubicka  <jh@suse.cz>
11213
11214         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
11215         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
11216         * passes.c (function_called_by_processed_nodes_p): New.
11217         * ipa-pure-const.c (check_call): Fix handling of operands.
11218         (analyze_function): Dump debug output for skipped bodies.
11219         (local_pure_const): Use function_called_by_processed_nodes_p.
11220         * dwarf2out.c (reference_to_unused): Use output.
11221         * passes.c (do_per_function_toporder): Likewise.
11222
11223         2008-11-12  Jan Hubicka  <jh@suse.cz>
11224
11225         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
11226         * ipa-pure-const.c (funct_state_d): Add can throw field; make
11227         state_set_in_source enum
11228         (check_decl): Ignore memory tags; do not set fake looping flags;
11229         dump diagnostics.
11230         (check_operand, check_tree, check_rhs_var, check_lhs_var,
11231         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
11232         (check_call, analyze_function): Rewrite.
11233         (check_stmt): New.
11234         (add_new_function): Update call of analyze_function.
11235         (generate_summary): Add call of analyze_function.
11236         (propagate): Propagate can_throw; handle state_set_in_source correctly.
11237         (local_pure_const): New function.
11238         (pass_local_pure_const): New pass.
11239         * ipa-inline.c (inline_transform): Set after_inlining.
11240         * tree-eh.c (stmt_can_throw_external): New.
11241         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
11242         work with aliasing built.
11243         * tree-flow.h (stmt_can_throw_external): New.
11244         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
11245         and local pure/const pass in early and late optimization queue.
11246
11247 2009-03-28  Martin Jambor  <mjambor@suse.cz>
11248
11249         * fold-const.c (get_pointer_modulus_and_residue): New parameter
11250         allow_func_align.
11251         (fold_binary): Allow function decl aligment consideration is the
11252         second argument is integer constant one.
11253         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
11254         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
11255         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
11256
11257 2009-03-28  Jan Hubicka  <jh@suse.cz>
11258
11259         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
11260         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
11261         * function.h (rtl_data): Add nothrow flag.
11262         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
11263         set DECL_NOTHROW for AVAILABLE functions.
11264
11265 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
11266
11267         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
11268         following vector keyword has expansion starting with pixel or bool
11269         keyword, expand vector to __vector and pixel or bool to __pixel or
11270         __bool.
11271
11272         PR c++/39554
11273         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
11274         warn_if_disallowed_function_p): Removed.
11275         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
11276         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
11277         warning_if_disallowed_function_p.
11278         * flags.h (warn_if_disallowed_function_p,
11279         warn_disallowed_functions): Removed.
11280         * common.opt (Wdisallowed-function-list=): Removed.
11281         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
11282
11283 2009-03-28  Richard Guenther  <rguenther@suse.de>
11284
11285         PR tree-optimization/38723
11286         * tree-ssa-pre.c (compute_avail): Add all default definitions to
11287         the entry block.
11288
11289 2009-03-28  Jan Hubicka  <jh@suse.cz>
11290
11291         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
11292         test introduced by my previous patch.
11293
11294 2009-03-28  Richard Guenther  <rguenther@suse.de>
11295
11296         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
11297         the PHIs value undefined.
11298
11299 2009-03-28  Jan Hubicka  <jh@suse.cz>
11300
11301         * tree-pass.h (pass_fixup_cfg): New pass.
11302         * ipa-inline.c (inline_transform): Set
11303         always_inline_functions_inlined/after_inlining.
11304         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
11305         (pass_fixup_cfg): New pass.
11306         * passes.c (init_optimization_passes): Add fixup_cfg.
11307
11308 2009-03-28  Richard Guenther  <rguenther@suse.de>
11309
11310         PR tree-optimization/38458
11311         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
11312         argument use the arguments copy-of value.
11313
11314 2009-03-28  Richard Guenther  <rguenther@suse.de>
11315
11316         PR tree-optimization/38180
11317         * tree-ssa-ccp.c (get_default_value): Simplify.
11318         (likely_value): Likewise.
11319         (surely_varying_stmt_p): Properly handle VOP case.
11320         (ccp_initialize): Likewise.
11321         (ccp_fold): Handle propagating through *&.
11322         (fold_const_aggregate_ref): Also handle decls.
11323
11324 2009-03-28  Jan Hubicka  <jh@suse.cz>
11325
11326         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
11327         * cgraph.h (cgraph_node): Likewise.
11328         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
11329         (cgraph_reset_node): Use process flag.
11330         (cgraph_mark_functions_to_output): Likewise.
11331         (cgraph_expand_function): Likewise.
11332         (cgraph_expand_all_functions): Likewise.
11333         (cgraph_output_in_order): Likewise.
11334         * dwarf2out.c (reference_to_unused): Likewise.
11335         * passes.c do_per_function_toporder): Likewise.
11336
11337 2009-03-28  Jan Hubicka  <jh@suse.cz>
11338
11339         Bring from lto-branch:
11340
11341         2008-09-03  Doug Kwan  <dougkwan@google.com>
11342
11343         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
11344         enums instead of reason strings.
11345         * cgraph.c (cgraph_create_edge): Same.
11346         (cgraph_inline_failed_string): New function.
11347         * cgraph.h (cgraph_inline_failed_t): New enum type.
11348         (cgraph_inline_failed_string): New prototype.
11349         (struct cgraph_edge): Change type of INLINED_FAILED from constant
11350         char pointer to cgraph_inline_failed_t.
11351         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
11352         (cgraph_default_inline_p): Ditto.
11353         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
11354         to cgraph_inline_failed_t pointer.
11355         * cif-code.def: New file.
11356         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
11357         reason string.
11358         (cgraph_check_inline_limits): Change type of REASON to pointer to
11359         cgraph_inline_failed_t.  Replace reason strings with enums.
11360         (cgraph_default_inline_p): Ditto.
11361         (cgraph_recursive_inlining_p): Ditto.
11362         (update_caller_keys): Change type of FAILED_REASON to
11363         cgraph_inline_failed_t.
11364         (cgraph_set_inline_failed): Change type of REASON to pointer to
11365         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
11366         convert enums to strings for text output.
11367         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
11368         to be of type cgraph_inline_failed_t.  Replace reason strings with
11369         enums.  Call cgraph_inline_failed_string to covert enums
11370         to strings for text output.
11371         (cgraph_decide_inlining): Replace reason strings with enums.
11372         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
11373         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
11374         for text output.
11375         * tree-inline.c (expand_call_inline): Change type of REASON
11376         to cgraph_inline_failed_t.  Replace reason strings with enums.
11377         Call cgraph_inline_failed_string for text output.
11378         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
11379         (cgraph.o): Ditto.
11380
11381 2009-03-28  Jan Hubicka  <jh@suse.cz>
11382
11383         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
11384         cgraph_clone_node): Remove master clone handling.
11385         (cgraph_is_master_clone, cgraph_master_clone): Remove.
11386         * cgraph.h (master_clone): Remove.
11387         (cgraph_is_master_clone, cgraph_master_clone): Remove.
11388         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
11389         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
11390
11391 2009-03-28  Jan Hubicka  <jh@suse.cz>
11392
11393         * cgraph.c (cgraph_function_body_availability): Functions declared
11394         inline are always safe to assume that it is not going to be replaced.
11395
11396 2009-03-28  Richard Guenther  <rguenther@suse.de>
11397
11398         PR tree-optimization/38513
11399         * tree-ssa-pre.c (eliminate): Remove redundant stores.
11400         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
11401         EXC_PTR_EXPR and FILTER_EXPR.
11402         (get_ref_from_reference_ops): Likewise.
11403
11404 2009-03-28  Richard Guenther  <rguenther@suse.de>
11405
11406         PR tree-optimization/38968
11407         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
11408         Use FLOOR_MOD_EXPR to compute misalignment.
11409
11410 2009-03-28  Richard Guenther  <rguenther@suse.de>
11411
11412         PR tree-optimization/37795
11413         * tree.h (combine_comparisons): Declare.
11414         * fold-const.c (combine_comparisons): Export.
11415         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
11416         comparisons.
11417         (ifcombine_iforif): Use combine_comparisons.
11418
11419 2009-03-28  Jan Hubicka  <jh@suse.cz>
11420
11421         * tree-eh.c (inlinable_call_p): New function.
11422         (make_eh_edges): Use it.
11423         (verify_eh_edges): Use it.
11424         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
11425         * except.c (reachable_next_level): Add inlinable_function argument
11426         (sjlj_find_directly_reachable_regions): Update.
11427         (add_reachable_handler): Do not set saw_any_handlers.
11428         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
11429         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
11430         Add new inlinable call parameter.
11431         (can_throw_internal, can_throw_external): Update.
11432         * except.h (can_throw_internal_1, can_throw_external_1,
11433         foreach_reachable_handler): Update declaration.
11434
11435 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
11436
11437         * config/arm/t-arm-coff, config/h8300/coff.h,
11438         config/i386/i386-aout.h, config/i386/i386-coff.h,
11439         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
11440         config/pdp11/2bsd.h, config/rs6000/aix41.h,
11441         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
11442         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
11443         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
11444         sys-types.h: Remove.
11445         * Makefile.in: Remove protoize and fixproto support and references
11446         in comments.
11447         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
11448         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
11449         Remove.
11450         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
11451         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
11452         unprotoize$(exeext).
11453         (rest.encap): Don't depend on $(STMP_FIXPROTO)
11454         (.PHONY): Don't depend on proto.
11455         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
11456         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
11457         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
11458         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
11459         build/gen-protos.o, build/scan.o, xsys-protos.h,
11460         build/fix-header$(build_exeext), build/fix-header.o,
11461         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
11462         stmp-install-fixproto): Remove.
11463         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
11464         SYSCALLS.c or fixproto files.
11465         (install-common): Don't install protoize.
11466         (install-headers-tar, install-headers-cpio, install-headers-cp):
11467         Don't depend on $(STMP_FIXPROTO).
11468         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
11469         install fixproto files or write out fixproto settings.
11470         (uninstall): Don't uninstall protoize.
11471         * config.gcc (use_fixproto): Remove.
11472         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
11473         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
11474         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
11475         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
11476         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
11477         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
11478         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
11479         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
11480         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
11481         * config/t-vxworks (STMP_FIXPROTO): Remove.
11482         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
11483         STMP_FIXPROTO): Remove.
11484         * config.in, configure: Regenerate.
11485         * crtstuff.c (gid_t, uid_t): Don't undefine.
11486         * doc/install.texi: Change m68k-coff to m68k-elf in example.
11487         (arm-*-coff, arm-*-aout: Remove target entries.
11488         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
11489         Remove mention of AIX 4.1.
11490         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
11491         * doc/invoke.texi (Running Protoize): Remove.
11492         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
11493         (Protoize Caveats): Remove.
11494         * tsystem.h: Update comments on headers assumed to exist.
11495
11496 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
11497
11498         * genautomata.c: Add a new year to the copyright.  Add a new
11499         reference.
11500         (struct insn_reserv_decl): Add comments for member bypass_list.
11501         (find_bypass): Remove.
11502         (insert_bypass): New.
11503         (process_decls): Use insert_bypass.
11504         (output_internal_insn_latency_func): Output all bypasses with the
11505         same input insn in one switch case.
11506
11507         * rtl.def (define_bypass): Describe bypass choice.
11508         * doc/md.texi (define_bypass): Ditto.
11509
11510 2009-03-27  Richard Guenther  <rguenther@suse.de>
11511
11512         * gimplify.c (mark_addressable): Export.
11513         * tree-flow.h (mark_addressable): Declare.
11514         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
11515         * tree-ssa.c (verify_phi_args): Verify that address taken
11516         variables have TREE_ADDRESSABLE set.
11517
11518 2009-03-27  Richard Guenther  <rguenther@suse.de>
11519
11520         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
11521         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
11522         Do not mark decls TREE_ADDRESSABLE.
11523         (build_fold_addr_expr): Adjust.
11524         (fold_addr_expr): Remove.
11525         (fold_unary): Use build_fold_addr_expr.
11526         (fold_comparison): Likewise.
11527         (split_address_to_core_and_offset): Likewise.
11528         * coverage.c (tree_coverage_counter_addr): Mark the array decl
11529         TREE_ADDRESSABLE.
11530         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
11531         (gimplify_modify_expr_to_memcpy): Mark source and destination
11532         addressable.
11533         * omp-low.c (create_omp_child_function): Mark the object decl
11534         TREE_ADDRESSABLE.
11535         (lower_rec_input_clauses): Mark the var we take the address of
11536         TREE_ADDRESSABLE.
11537         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
11538
11539 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11540
11541         PR middle-end/39315
11542         * cfgexpand.c (expand_one_stack_var_at): Change alignment
11543         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
11544
11545 2009-03-27  Richard Guenther  <rguenther@suse.de>
11546
11547         PR tree-optimization/39120
11548         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
11549         constraints.
11550         (handle_lhs_call): Process return constraints.  Add escape
11551         constraints if necessary.
11552         (handle_const_call): Fill out return constraints.  Make nested
11553         case more precise.  Avoid consttmp if possible.
11554         (handle_pure_call): Fill out return constraints.  Avoid
11555         callused if possible.
11556         (find_func_aliases): Simplify call handling.
11557
11558 2009-03-27  Richard Guenther  <rguenther@suse.de>
11559
11560         PR tree-optimization/39120
11561         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
11562         as a representative.
11563         (solve_graph): Do propagate CALLUSED.
11564         (handle_pure_call): Use a scalar constraint from CALLUSED for
11565         the return value.
11566         (find_what_p_points_to): CALLUSED shall not appear in poins-to
11567         solutions.
11568
11569 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11570
11571         PR c/39323
11572         * c-common.c (handle_aligned_attribute): Properly check alignment
11573         overflow.  Use (1U << i) instead of (1 << i).
11574
11575         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
11576
11577         * expr.h (get_mem_align_offset): Updated.
11578
11579         * tree.h (tree_decl_common): Change align to "unsigned int" and
11580         move it before pointer_alias_set.
11581
11582 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11583             Jakub Jelinek  <jakub@redhat.com>
11584
11585         PR target/38034
11586         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
11587         gr_register_operand with gr_reg_or_0_operand.
11588         (cmpxchg_rel_di): Likewise.
11589         (sync_lock_test_and_set<mode>): Likewise.
11590
11591 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11592
11593         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
11594         (true_regnum): Likewise.
11595
11596         * rtlanal.c (subreg_info): Moved to ...
11597         * rtl.h (subreg_info): Here.  New.
11598         (subreg_get_info): New.
11599
11600         * rtlanal.c (subreg_get_info): Make it extern.
11601
11602 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11603
11604         PR target/39472
11605         * config/i386/i386.c (ix86_abi): New.
11606         (override_options): Handle -mabi=.
11607         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
11608         (ix86_call_abi_override): Likewise.
11609         (init_cumulative_args): Likewise.
11610         (function_arg_advance): Likewise.
11611         (function_arg_64): Likewise.
11612         (function_arg): Likewise.
11613         (ix86_pass_by_reference): Likewise.
11614         (ix86_function_value_regno_p): Likewise.
11615         (ix86_build_builtin_va_list_abi): Likewise.
11616         (setup_incoming_varargs_64): Likewise.
11617         (is_va_list_char_pointer): Likewise.
11618         (ix86_init_machine_status): Likewise.
11619         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
11620         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
11621         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
11622         (ix86_function_abi): Make it static and return enum calling_abi.
11623         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
11624         with ix86_abi.
11625         (ix86_fn_abi_va_list): Updated.
11626
11627         * config/i386/i386.h (ix86_abi): New.
11628         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
11629         (CONDITIONAL_REGISTER_USAGE): Likewise.
11630         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
11631         (machine_function): Likewise.
11632
11633         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
11634         with ix86_abi.
11635         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
11636         (STACK_BOUNDARY): Likewise.
11637         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
11638
11639         * config/i386/i386.opt (mabi=): New.
11640
11641         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
11642         return enum calling_abi.
11643         (ix86_function_type_abi): Likewise.
11644         (ix86_function_abi): Removed.
11645
11646         * doc/invoke.texi: Document -mabi= option for x86.
11647
11648 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11649
11650         * builtins.c (real_dconstp): Delete.
11651         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
11652
11653 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
11654             Jakub Jelinek  <jakub@redhat.com>
11655
11656         PR debug/37959
11657         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
11658         (gen_subprogram_die): When a function is explicit, generate the
11659         DW_AT_explicit attribute.
11660         * langhooks.h (struct lang_hooks_for_decls): Add
11661         function_decl_explicit_p langhook.
11662         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
11663         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
11664
11665 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
11666
11667         * builtins.c (fold_builtin_memory_op): Optimize memmove
11668         into memcpy if we can prove source and destination don't overlap.
11669
11670         * tree-inline.c: Include gt-tree-inline.h.
11671         (clone_fn_id_num): New variable.
11672         (clone_function_name): New function.
11673         (tree_function_versioning): Use it.
11674         * Makefile.in (GTFILES): Add tree-inline.c.
11675
11676 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
11677
11678         * BASE-VER: Change to 4.5.0.
11679
11680 2009-03-27  Xinliang David Li  <davidxl@google.com>
11681
11682         PR tree-optimization/39557
11683         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
11684
11685 2009-03-27  Xinliang David Li  <davidxl@google.com>
11686
11687         PR tree-optimization/39548
11688         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
11689         candidate check.
11690
11691 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11692
11693         * c-common.c (pointer_int_sum): Use %wd on return from
11694         tree_low_cst.
11695
11696 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11697
11698         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
11699         on return from tree_low_cst.
11700
11701 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11702
11703         PR c++/36799
11704         * ginclude/stdarg.h (va_copy): Define also for
11705         __GXX_EXPERIMENTAL_CXX0X__.
11706
11707 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11708
11709         PR c++/35652
11710         * builtins.h (c_strlen): Do not warn here.
11711         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
11712         * c-common.c (pointer_int_sum): Take an explicit location.
11713         Warn about offsets out of bounds.
11714         * c-common.h (pointer_int_sum): Adjust declaration.
11715
11716 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11717
11718         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
11719         markup glitch.
11720
11721 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
11722
11723         PR c++/39554
11724         * opts.c (warn_if_disallowed_function_p): Don't assume
11725         get_callee_fndecl must return non-NULL.
11726
11727 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
11728
11729         PR rtl-optimization/39522
11730         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
11731         when reg_reloaded_valid is set.
11732
11733 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11734
11735         * config/spu/divv2df3.c: New file.
11736         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
11737         (DPBIT_FUNCS): Filter out _div_df.
11738
11739 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
11740
11741         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
11742         a jump insn, count that jump in the distance to the loop start.
11743
11744 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
11745
11746         PR target/39523
11747         * config/sh/sh.c (calc_live_regs): Fix condition for global
11748         registers except PIC_OFFSET_TABLE_REGNUM.
11749
11750 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
11751
11752         PR/39518
11753         * doc/invoke.texi (-mconsole): New.
11754         (-mcygwin): New.
11755         (-mno-cygwin): New.
11756         (-mdll): New.
11757         (-mnop-fun-dllimport): New.
11758         (-mthread): New.
11759         (-mwin32): New.
11760         (-mwindows): New.
11761         (sub section "i386 and x86-64 Windows Options"): New.
11762
11763 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
11764
11765         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
11766         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
11767
11768 2009-03-25  Richard Guenther  <rguenther@suse.de>
11769
11770         PR middle-end/39497
11771         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
11772         of -Wno-error.
11773
11774 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
11775
11776         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
11777         neither of haifa/selective schedulers are working.
11778
11779 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11780
11781         * doc/invoke.texi (Debugging Options): Fix description of
11782         -fno-merge-debug-strings.
11783
11784 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
11785
11786         * config/cris/libgcc.ver: New version-script.
11787         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
11788
11789         * configure.ac <GAS features, nop mnemonic>: Add pattern
11790         crisv32-*-* for "nop".
11791         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
11792         * configure: Regenerate.
11793
11794 2009-03-24  Ira Rosen  <irar@il.ibm.com>
11795
11796         PR tree-optimization/39529
11797         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
11798         mark_sym_for_renaming for the tag copied to the new vector
11799         pointer.
11800
11801 2009-03-24  Arthur Loiret  <aloiret@debian.org>
11802
11803         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
11804         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
11805         EXTRA_SPEC_FUNCTIONS.
11806         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
11807         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
11808         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
11809         -march and -mtune options.
11810
11811 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
11812
11813         * config/m68k/t-rtems: Add m5329 multilib.
11814
11815 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
11816             Jakub Jelinek  <jakub@redhat.com>
11817
11818         PR debug/39524
11819         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
11820         nodes.
11821
11822 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
11823
11824         PR c/39495
11825         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
11826         instead of c_parser_expression_conv, if original_code isn't one of the
11827         4 allowed comparison codes, fail.
11828
11829 2009-03-23  Richard Guenther  <rguenther@suse.de>
11830
11831         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
11832         * tree.h (struct tree_type): Likewise.
11833         * reload.h (struct insn_chain): Likewise.
11834         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
11835         * function.h (struct function): Likewise.
11836         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
11837
11838 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
11839
11840         PR tree-optimization/39516
11841         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
11842
11843 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
11844
11845         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
11846         should be set true if BITS_PER_WORD of target is bigger than 32
11847
11848 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
11849
11850         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
11851         Translate -B-options to -rpath-link.  Correct existing
11852         rpath-link and conditionalize on !nostdlib.
11853
11854 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11855
11856         * doc/extend.texi (Function Attributes, Variable Attributes):
11857         Fix typos.
11858         * doc/invoke.texi (Debugging Options, Optimize Options)
11859         (i386 and x86-64 Options, MCore Options): Likewise.
11860
11861 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
11862
11863         PR debug/37890
11864         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
11865         it for block local namespace aliases.
11866         (gen_decl_die): Pass context_die to gen_namespace_die.
11867
11868 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
11869
11870         PR c/39495
11871         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
11872         minimum or maximum value.
11873
11874 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
11875
11876         * reginfo.c (globalize_reg): Recompute derived reg sets.
11877
11878 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
11879
11880         PR target/39063
11881         * libgcc2.c (mprotect): Do not use signed arguments for
11882         VirtualProtect, use DWORD arguments.  Also fix the 'may
11883         be used uninitialized' warning for the np variable.
11884
11885 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
11886
11887         PR target/39496
11888         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
11889         functions using regparm calling conventions when not optimizing.
11890         (ix86_function_sseregparm): Similarly for sseregparm calling
11891         conventions.
11892
11893 2009-03-19  Li Feng  <nemokingdom@gmail.com>
11894
11895         PR middle-end/39500
11896         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
11897         dependence if the first conflict is after niter iterations.
11898
11899 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
11900
11901         PR middle-end/38609
11902         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
11903         functions with dynamic stack-pointer adjustments.
11904
11905 2009-03-19  Ben Elliston  <bje@au.ibm.com>
11906
11907         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
11908         option; change to -msdata=data.
11909
11910 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11911
11912         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
11913         and -fopenmp.
11914
11915 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
11916
11917         PR target/35180
11918         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
11919
11920 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
11921
11922         * doc/invoke.texi (Code Gen Options): Expand discussion of
11923         -fno-common.
11924
11925 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
11926
11927         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
11928         * matrix-reorg.c (struct matrix_info): Likewise.
11929         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
11930         * rtl.h (struct mem_attrs): Likewise.
11931         * df.h (struct df): Likewise.
11932         * tree-data-ref.h (struct data_dependence_relation): Likewise.
11933         * ira-int.h (struct ira_allocno): Likewise.
11934         * df-scan.c (struct df_collection_rec): Likewise.
11935         * ira.c (struct equivalence): Likewise.
11936         * function.c (struct temp_slot): Likewise.
11937         * cfgloop.h (struct loop): Likewise.
11938
11939         PR debug/39485
11940         * function.c (use_register_for_decl): When not optimizing, disregard
11941         register keyword for variables with types containing methods.
11942
11943 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
11944
11945         PR middle-end/39447
11946         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
11947         (is_simple_operand): Call contains_component_ref_p before calling data
11948         reference analysis that would fail on COMPONENT_REFs.
11949
11950         * tree-vrp.c (search_for_addr_array): Fix formatting.
11951
11952 2009-03-18  Richard Guenther  <rguenther@suse.de>
11953
11954         * tree-vect-transform.c (vect_loop_versioning): Fold the
11955         generated comparisons.
11956         * tree-vectorizer.c (set_prologue_iterations): Likewise.
11957         (slpeel_tree_peel_loop_to_edge): Likewise.
11958
11959 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11960
11961         PR middle-end/37805
11962         * opts.c (print_specific_help): In addition to `undocumented',
11963         accept `separate' and `joined' flags if passed alone.  Describe
11964         output by the first matched one of those.
11965         (common_handle_option): Skip over empty strings.
11966         * gcc.c (display_help): Fix help string for `--help='.
11967         * doc/invoke.texi (Option Summary, Overall Options): With
11968         `--help=', classes and qualifiers can both be repeated, but
11969         only the latter can be negated.  One should not pass only
11970         negated qualifiers.  Fix markup and examples.
11971
11972         Revert
11973         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
11974         PR middle-end/37805
11975         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
11976         and -fhelp=separate.
11977
11978 2009-03-17  Jing Yu  <jingyu@google.com>
11979
11980         PR middle-end/39378
11981         * function.h (struct rtl_data): Move is_thunk from here...
11982         (struct function): ...to here.
11983         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
11984         * varasm.c (assemble_start_function): Change is_thunk from crtl to
11985         cfun.
11986         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
11987         cfun.
11988         (alpha_does_function_need_gp, alpha_start_function): Likewise.
11989         (alpha_output_function_end_prologue): Likewise.
11990         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
11991         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
11992         (rs6000_output_function_epilogue): Likewise.
11993         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
11994
11995 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
11996
11997         PR target/39482
11998         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
11999         from different units in a single alternative.
12000         (*truncdfsf_i387): Ditto.
12001         (*truncxfsf2_mixed): Ditto.
12002         (*truncxfdf2_mixed): Ditto.
12003
12004 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
12005
12006         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
12007         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
12008
12009         PR debug/39474
12010         * tree-ssa-live.c (remove_unused_locals): Don't remove local
12011         unused non-artificial variables when not optimizing.
12012
12013         PR debug/39471
12014         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
12015         DW_TAG_imported_module even if decl is IMPORTED_DECL with
12016         NAMESPACE_DECL in its DECL_INITIAL.
12017
12018         PR middle-end/39443
12019         * optabs.c (set_user_assembler_libfunc): New function.
12020         * expr.h (set_user_assembler_libfunc): New prototype.
12021         * c-common.c: Include libfuncs.h.
12022         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
12023         for memcmp, memset, memcpy, memmove and abort.
12024         * Makefile.in (c-common.o): Depend on libfuncs.h.
12025
12026         PR debug/39412
12027         * dwarf2out.c (gen_inlined_enumeration_type_die,
12028         gen_inlined_structure_type_die, gen_inlined_union_type_die,
12029         gen_tagged_type_instantiation_die): Removed.
12030         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
12031         do nothing.
12032
12033 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
12034
12035         PR testsuite/38526
12036         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
12037         its use.
12038         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
12039         (check-parallel-%): Ditto.
12040         (check-consistency): Ditto.
12041
12042 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
12043
12044         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
12045         local variable rhs by NULL_TREE.
12046
12047 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12048
12049         PR target/39477
12050         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
12051
12052 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12053
12054         PR target/39476
12055         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
12056
12057 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12058
12059         PR target/39473
12060         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
12061         for ms->sysv ABI calls only in 64bit mode.
12062
12063         * config/i386/i386.md (untyped_call): Support 32bit.
12064
12065 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12066
12067         * doc/extend.texi: Replace x86_65 with x86_64.
12068
12069 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
12070
12071         PR tree-optimization/39455
12072         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
12073         mismatches for POINTER_TYPE_P (type).
12074         (number_of_iterations_le): Likewise.
12075
12076 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
12077
12078         * config/picochip/picochip.c: Removed profiling support.
12079         * config/picochip/picochip.md: Removed profiling instruction.
12080         * config/picochip/picochip.h: Removed profiling builtin.
12081
12082 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
12083
12084         * doc/install.texi (--with-host-libstdcxx): Document.
12085
12086 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
12087
12088         PR target/34299
12089         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
12090         generate a warning if the function name does not begin with
12091         "__vector" and the function has either the 'signal' or 'interrupt'
12092         attribute, from here to ...
12093         (avr_declare_function_name): ...here. New function.
12094         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
12095         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
12096
12097 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
12098
12099         PR bootstrap/39454
12100         * cse.c (fold_rtx): Don't modify original const_arg1 when
12101         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
12102         separate variable instead.
12103         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
12104         from out of range shift counts.
12105         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
12106
12107 2009-03-13  Catherine Moore  <clm@codesourcery.com>
12108
12109         * config/i386/x-mingw32 (host-mingw32.o): Replace
12110         diagnostic.h with $(DIAGNOSTIC_H).
12111
12112 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
12113
12114         PR target/39431
12115         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
12116         predicate.
12117         * config/i386/sync.md (sync_compare_and_swap<mode>,
12118         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
12119         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
12120         into a register.
12121         (sync_double_compare_and_swapdi_pic,
12122         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
12123         cmpxchg8b_pic_memory_operand instead of just memory_operand.
12124
12125 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
12126
12127         PR target/39445
12128         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
12129
12130 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
12131
12132         PR target/39327
12133         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
12134         (avx_addsubv4df3): Likewise.
12135         (*avx_addsubv4sf3): Likewise.
12136         (sse3_addsubv4sf3): Likewise.
12137
12138 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
12139
12140         PR target/38824
12141         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
12142
12143 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
12144
12145         PR debug/39432
12146         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
12147         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
12148         registers for allocnos created from user-defined variables.
12149
12150 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12151
12152         PR target/39181
12153         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
12154         of non-integer mode as well.
12155
12156 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
12157
12158         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
12159         for functions for which the parameter types are unknown.
12160
12161 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
12162
12163         PR target/39137
12164         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
12165         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
12166         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
12167         * config/i386/i386.c (ix86_local_alignment): For
12168         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
12169         long long variables on the stack to avoid dynamic realignment.
12170         Allow the first argument to be a decl rather than type.
12171         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
12172
12173 2009-03-11  Nick Clifton  <nickc@redhat.com>
12174
12175         PR target/5362
12176         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
12177         options.
12178         Add description to mno-lsim option.
12179         * config/mcore/mcore.h: Remove comment about deprecated m4align
12180         option.
12181         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
12182         * doc/invoke.texi: Add description of mno-lsim and
12183         mstack-increment options.
12184
12185         * config/fr30/fr30.opt: Document the -mno-lsim option.
12186         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
12187         and -mno-lsim options.
12188
12189 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12190
12191         * fold-const.c (fold_comparison): Only call fold_inf_compare
12192         if the mode supports infinities.
12193
12194 2009-03-11  Jason Merrill  <jason@redhat.com>
12195
12196         PR debug/39086
12197         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
12198         end already did.  Notice GIMPLE_CALL modifications of the result.
12199         Don't copy debug information from an ignored decl or a decl from
12200         another function.
12201
12202 2009-03-10  Richard Guenther  <rguenther@suse.de>
12203             Nathan Froyd  <froydnj@codesourcery.com>
12204
12205         PR middle-end/37850
12206         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
12207         (__divMODE3): Likewise.
12208
12209 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
12210
12211         PR tree-optimization/39394
12212         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
12213         DECL_SIZE_UNIT of variable length FIELD_DECLs.
12214
12215 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12216
12217         * recog.c (verfiy_changes): Disallow renaming of hard regs in
12218         inline asms for register asm ("") declarations.
12219
12220 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
12221
12222         * fold-const.c (fold_unary): Fix comment.
12223
12224 2009-03-07  Jan Hubicka  <jh@suse.cz>
12225
12226         PR target/39361
12227         * tree-inline.c (setup_one_parameter): Do replacement of const
12228         argument by constant in SSA form.
12229
12230 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12231
12232         PR middle-end/38028
12233         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
12234         determine alignment passed to assign_stack_local.
12235         (assign_parms_unsplit_complex): Likewise.
12236         * except.c (sjlj_build_landing_pads): Likewise.
12237
12238 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
12239
12240         PR middle-end/39360
12241         * tree-flow.h (add_referenced_var): Return bool instead of void.
12242         * tree-dfa.c (add_referenced_var): Return result of
12243         referenced_var_check_and_insert call.
12244         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
12245         of referenced_var_check_and_insert.
12246
12247         PR debug/39372
12248         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
12249         (gen_variable_die): Emit DW_AT_location on abstract static variable's
12250         DIE, don't emit it if abstract origin already has it.
12251         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
12252         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
12253
12254 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12255
12256         * genpreds.c (needs_variable): Fix parentheses at variable name
12257         detection.
12258         (write_tm_constrs_h): Indent generated code.
12259
12260 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12261
12262         * doc/extend.texi (Function Attributes): Add documentation
12263         for isr attributes.
12264
12265 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
12266
12267         PR debug/39387
12268         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
12269         take locus from its DECL_SOURCE_LOCATION instead of input_location.
12270
12271 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
12272
12273         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
12274         the loop as bad.
12275
12276 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
12277
12278         PR debug/39379
12279         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
12280         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
12281
12282 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
12283
12284         * config/i386/i386.md (R8_REG, R9_REG): New constants.
12285         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
12286         constants instead of magic numbers.
12287         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
12288         (QI_REG_P): Ditto.
12289         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
12290         (x86_64_ms_abi_int_parameter_registers): Ditto.
12291         (x86_64_int_return_registers): Ditto.
12292         (ix86_maybe_switch_abi): Ditto.
12293         (ix86_expand_call): Ditto for clobbered_registers array.
12294         (ix86_hard_regno_mode_ok): Ditto.
12295         (x86_extended_QIreg_mentioned_p): Ditto.
12296
12297 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
12298
12299         PR tree-optimization/39349
12300         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
12301
12302         * combine.c (gen_lowpart_for_combine): Use omode when generating
12303         clobber.
12304
12305 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
12306
12307         PR rtl-optimization/39235
12308         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
12309
12310 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
12311
12312         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
12313
12314 2009-03-04  Richard Guenther  <rguenther@suse.de>
12315
12316         PR tree-optimization/39362
12317         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
12318         that occur in abnormal PHIs should be varying.
12319
12320 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
12321
12322         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
12323         Extend comments.
12324         (simple_iv):  Take loop as an argument instead of statement.
12325         * tree-scalar-evolution.h (simple_iv): Declaration changed.
12326         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
12327         to simple_iv.
12328         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
12329         Ditto.
12330         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
12331         * matrix-reorg.c (analyze_transpose): Ditto.
12332         * tree-data-ref.c (dr_analyze_innermost): Ditto.
12333         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
12334         * tree-predcom.c (ref_at_iteration): Ditto.
12335         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
12336
12337 2009-03-04  Richard Guenther  <rguenther@suse.de>
12338
12339         PR tree-optimization/39358
12340         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
12341         escaped_id and callused_id.
12342         (solve_graph): Likewise.
12343
12344 2009-03-04  Richard Guenther  <rguenther@suse.de>
12345
12346         PR tree-optimization/39339
12347         * tree-sra.c (try_instantiate_multiple_fields): Make it
12348         no longer ICE on the above.
12349
12350 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
12351
12352         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
12353         that fits within Pmode.
12354
12355 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
12356
12357         PR middle-end/10109
12358         * tm.texi (LIBCALL_VALUE): Update description.
12359
12360 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
12361
12362         PR middle-end/34443
12363         * doc/extend.texi (section): Update description.
12364
12365 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
12366
12367         PR middle-end/39345
12368         * tree-inline.c (remapped_type): New.
12369         (can_be_nonlocal): Call remapped_type instead of remap_type.
12370
12371 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
12372
12373         PR fortran/39354
12374         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
12375         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
12376
12377 2009-03-03  Richard Guenther  <rguenther@suse.de>
12378
12379         PR middle-end/39272
12380         * tree.c (tree_nonartificial_location): New function.
12381         * tree.h (tree_nonartificial_location): Declare.
12382         * builtins.c (expand_builtin_memory_chk): Provide location
12383         of the call location for artificial function pieces.
12384         (maybe_emit_chk_warning): Likewise.
12385         (maybe_emit_sprintf_chk_warning): Likewise.
12386         (maybe_emit_free_warning): Likewise.
12387         * expr.c (expand_expr_real_1): Likewise.
12388
12389 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
12390
12391         PR tree-optimization/39343
12392         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
12393         COMPONENT_REF t has ARRAY_TYPE.
12394
12395 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
12396
12397         PR middle-end/39335
12398         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
12399         when the type precision of the induction variable should be
12400         larger than the type precision of nit.
12401         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
12402         * graphite.c (graphite_loop_normal_form): Same.
12403         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
12404
12405 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
12406
12407         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
12408         (*call_1_rex64_ms_sysv): Use named constants instead of magic
12409         numbers to describe clobbered registers.
12410         (*call_value_0_rex64_ms_sysv): Ditto.
12411         * config/i386/mmx.md (mmx_emms): Ditto.
12412         (mmx_femms): Ditto.
12413
12414 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
12415
12416         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
12417         of ABI_64.
12418
12419 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12420
12421         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
12422         (spu_section_type_flags): New function.
12423
12424 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
12425
12426         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
12427         reg_class_contents of FLOAT_REGS into a temporary.
12428
12429 2009-03-02  Richard Guenther  <rguenther@suse.de>
12430             Ira Rosen  <irar@il.ibm.com>
12431
12432         PR tree-optimization/39318
12433         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
12434         information to the vectorized statement.
12435
12436 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
12437
12438         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
12439         variable.  Use defined names instead of magic constants for REX SSE
12440         registers.
12441
12442 2009-03-01  Richard Guenther  <rguenther@suse.de>
12443
12444         PR tree-optimization/39331
12445         * omp-low.c (lower_send_shared_vars): Do not receive new
12446         values for the reference of DECL_BY_REFERENCE parms or results.
12447
12448 2009-03-01  Jan Hubicka  <jh@suse.cz>
12449
12450         PR debug/39267
12451         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
12452         BLOCK_NONLOCALIZED_VAR): New macros.
12453         (tree_block): Add nonlocalized_vars.
12454         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
12455         gen_decl_die): Add origin argument.  Allow generation of die with
12456         origin at hand only.
12457         (gen_member_die, gen_type_die_with_usage, force_decl_die,
12458         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
12459         of gen_*.
12460         (gen_block_die): Fix checking for unused blocks.
12461         (process_scope_var): Break out from .... ; work with origins only.
12462         (decls_for_scope) ... here; process nonlocalized list.
12463         (dwarf2out_ignore_block): Look for nonlocalized vars.
12464         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
12465         vars.
12466         (dump_scope_block): Dump them.
12467         * tree-inline.c (remap_decls): Handle nonlocalized vars.
12468         (remap_block): Likewise.
12469         (can_be_nonlocal): New predicate.
12470         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
12471
12472 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12473
12474         * configure: Regenerate.
12475
12476 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12477
12478         * optc-gen.awk: No need to duplicate option flags twice.
12479         Reuse help texts for duplicate options which do not have any.
12480
12481         * gcc.c (display_help): Document --version.
12482
12483         * gcc.c (main): If print_help_list and verbose_flag, ensure
12484         driver output comes before subprocess output.
12485
12486         * optc-gen.awk: Assign all remaining fields to help string,
12487         space-separated, for multi-line help in *.opt.
12488
12489         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
12490         -Wno-pedantic-ms-format is for MinGW targets only.
12491
12492         * doc/options.texi (Option file format): Fix bad indentation,
12493         restoring dropped sentence.
12494
12495 2009-02-28  Jan Hubicka  <jh@suse.cz>
12496
12497         * tree-inline.c (tree_function_versioning): Output debug info.
12498
12499 2009-02-28  Jan Hubicka  <jh@suse.cz>
12500
12501         PR debug/39267
12502         * tree-inline.c (setup_one_parameter): Do not copy propagate
12503         arguments when not optimizing.
12504
12505 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
12506
12507         PR target/39327
12508         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
12509         (avx_addsubv4df3): Likewise.
12510         (*avx_addsubv4sf3): Likewise.
12511         (sse3_addsubv4sf3): Likewise.
12512         (*avx_addsubv2df3): Likewise.
12513         (sse3_addsubv2df3): Likewise.
12514         (avx_unpckhps256): Correct item selectors.
12515         (avx_unpcklps256): Likewise.
12516         (avx_unpckhpd256): Likewise.
12517         (avx_unpcklpd256): Likewise.
12518
12519 2009-02-28  Jan Hubicka  <jh@suse.cz>
12520
12521         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
12522         static vars.
12523         (copy_arguments_for_versioning): If var is declared don't declare it.
12524         (tree_function_versioning): First setup substitutions and then copy
12525         args.
12526
12527 2009-02-27  Jan Hubicka  <jh@suse.cz>
12528
12529         PR debug/39267
12530         * cgraph.h (varpool_output_debug_info): Remove.
12531         * cgraphunit.c (varpool_output_debug_info): Remove.
12532         * dwarf2out.c (deferred_locations_struct): New struct
12533         (deferred_locations): New type.
12534         (deferred_locations_list): New static var.
12535         (deffer_location): New function.
12536         (gen_variable_die): Use it.
12537         (decls_for_scope): Output info on local static vars.
12538         (dwarf2out_finish): Process deferred locations.
12539         * varpool.c (varpool_output_debug_info): Remove.
12540
12541 2009-02-27  Jan Hubicka  <jh@suse.cz>
12542
12543         PR debug/39267
12544         * tree.h (TREE_PROTECTED): Fix comment.
12545         (BLOCK_HANDLER_BLOCK): Remove.
12546         (struct tree_block): Remove handler_block add body_block.
12547         (inlined_function_outer_scope_p): New.
12548         (is_body_block): Remove.
12549         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
12550         * dwarf2out.c (is_inlined_entry_point): Remove.
12551         (add_high_low_attributes): Use inlined_function_outer_scope_p.
12552         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
12553         code.
12554         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
12555         * gimplify.c (gimplify_expr): Gimplify body blocks.
12556         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
12557         block with multiple subblocks.
12558         (dump_scope_block): Prettier output; dump more flags and info.
12559         (dump_scope_blocks): New.
12560         (remove_unused_locals): Use dump_scope_blocks.
12561         * tree-flow.h (dump_scope_blocks): Declare.
12562         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
12563         * stmt.c (is_body_block): Remove.
12564         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
12565         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
12566
12567 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
12568
12569         PR middle-end/39308
12570         * graphite.c (graphite_loop_normal_form): Do not call
12571         number_of_iterations_exit from a gcc_assert.
12572
12573 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12574
12575         * config/s390/s390.c (s390_swap_cmp): Look for conditional
12576         jumps if COND is NULL.
12577         (find_cond_jump): New function.
12578         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
12579         * config/s390/s390.md: Remove z10_cobra attribute value.
12580
12581 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
12582
12583         * config/alpha/alpha.h (alpha_expand_mov): Return false if
12584         force_const_mem returns NULL_RTX.
12585
12586 2009-02-26  Jan Hubicka  <jh@suse.cz>
12587
12588         PR debug/39267
12589         * cgraph.h (varpool_output_debug_info): Remove.
12590         * cgraphunit.c (varpool_output_debug_info): Remove.
12591         * dwarf2out.c (deferred_locations_struct): New struct
12592         (deferred_locations): New type.
12593         (deferred_locations_list): New static var.
12594         (deffer_location): New function.
12595         (gen_variable_die): Use it.
12596         (decls_for_scope): Output info on local static vars.
12597         (dwarf2out_finish): Process deferred locations.
12598         * varpool.c (varpool_output_debug_info): Remove.
12599
12600 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
12601
12602         PR rtl-optimization/39241
12603         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
12604         to subreg_offset_representable_p.
12605
12606 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
12607
12608         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
12609         execute function prototype.  Get f and nregs from max_reg_num
12610         and get_insns.  Remove the first backward pass as it's dead,
12611         guard the forward pass by flag_expensive_optimizations.
12612         (rest_of_handle_regmove): Delete.
12613         (pass_regmove): Replace it with regmove_optimize.
12614
12615 2009-02-25  Martin Jambor  <mjambor@suse.cz>
12616
12617         PR tree-optimization/39259
12618         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
12619         calls_alloca function flags.
12620         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
12621         calls are detected.
12622
12623 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
12624
12625         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
12626         flags_set_1_rtx, flags_set_1_set): Delete.
12627         (regmove_optimize): Do not call mark_flags_life_zones.
12628
12629 2009-02-24  Julian Brown  <julian@codesourcery.com>
12630
12631         PR target/35965
12632         * config/arm/arm.c (require_pic_register): Only set
12633         cfun->machine->pic_reg once per function.
12634
12635 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
12636
12637         * doc/invoke.texi (Link Options): Document an easier way to pass
12638         options that take arguments to the GNU linker using -Xlinker and -Wl.
12639
12640 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
12641
12642         PR target/33785
12643         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
12644
12645 2009-02-24  Richard Guenther  <rguenther@suse.de>
12646
12647         PR debug/39285
12648         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
12649
12650 2009-02-24  Richard Guenther  <rguenther@suse.de>
12651             Zdenek Dvorak  <ook@ucw.cz>
12652
12653         PR tree-optimization/39233
12654         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
12655         from converting them to a generic type.
12656
12657 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
12658
12659         PR tree-optimization/39260
12660         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
12661         contains a condition with a real type.
12662         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
12663
12664 2009-02-23  Jason Merrill  <jason@redhat.com>
12665
12666         PR c++/38880
12667         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
12668         narrowing_initializer_constant_valid_p.
12669         (narrowing_initializer_constant_valid_p): Don't return
12670         null_pointer_node for adding a pointer to itself.
12671
12672 2009-02-23  Jan Hubicka  <jh@suse.cz>
12673
12674         PR c/12245
12675         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
12676         resizing.
12677
12678 2009-02-23  Jan Hubicka  <jh@suse.cz>
12679
12680         PR tree-optimization/37709
12681         * tree.c (block_ultimate_origin): Move here from dwarf2out.
12682         * tree.h (block_ultimate_origin): Declare.
12683         * dwarf2out.c (block_ultimate_origin): Move to tree.c
12684         * tree-ssa-live.c (remove_unused_scope_block_p):
12685         Eliminate blocks containig no instructions nor live variables nor
12686         nested blocks.
12687         (dump_scope_block): New function.
12688         (remove_unused_locals): Enable removal of dead blocks by default;
12689         enable dumping at TDF_DETAILS.
12690
12691 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
12692
12693         * config/i386/i386.c (classify_argument): Don't allow COImode
12694         and OImode.
12695         (function_arg_advance_32): Don't allow OImode.
12696         (function_arg_32): Likewise.
12697         (function_value_32): Likewise.
12698         (return_in_memory_32): Likewise.
12699         (function_arg_64): Remove OImode comment.
12700
12701 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
12702
12703         PR target/39261
12704         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
12705         ix86_expand_vector_set for V4DImode in 64bit mode only.
12706         (ix86_expand_vector_init_one_var): Likewise.
12707
12708 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
12709
12710         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
12711
12712 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
12713
12714         PR bootstrap/39257
12715         * loop-iv.c: Revert last change.
12716         * emit-rtl.c: Likewise.
12717
12718 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
12719
12720         PR target/39256
12721         * config/i386/i386.c (type_natural_mode): Remove an extra
12722         space in the warning message.
12723         (function_value_32): Handle 32-byte vector modes.
12724         (return_in_memory_32): Likewise.
12725
12726 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
12727
12728         * loop-iv.c (truncate_value): New function.
12729         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
12730         of lowpart_subreg.
12731         (lowpart_subreg): Move to...
12732         * emit-rtl.c: ...here.
12733
12734 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
12735
12736         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
12737         accidental and undocumented change at revision 140860.
12738
12739 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
12740
12741         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
12742         take gimple_seq * arguments.
12743         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
12744         types_compatible_p langhook.
12745
12746 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
12747             Joseph Myers  <joseph@codesourcery.com>
12748
12749         * config/arm/arm.c (arm_builtin_va_list): New function.
12750         (arm_expand_builtin_va_start): Likewise.
12751         (arm_gimplify_va_arg_expr): Likewise.
12752         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
12753         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
12754         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
12755         (va_list_type): New variable.
12756         (arm_mangle_type): Mangle va_list_type appropriately.
12757
12758 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
12759
12760         PR middle-end/39157
12761         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
12762         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
12763         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
12764         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
12765         parameter to 1000 for -O1 by default.
12766         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
12767         parameter.
12768         * loop-invariant.c: Include params.h.
12769         (move_loop_invariants): Don't call move_single_loop_invariants on
12770         very large loops.
12771
12772 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
12773
12774         * calls.c (emit_library_call_value_1): Use slot_offset instead of
12775         offset when calculating bounds for indexing stack_usage_map.  Fixes
12776         a buffer overflow with certain target setups.
12777
12778 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
12779
12780         PR target/39240
12781         * calls.c (expand_call): Clear try_tail_call if caller and callee
12782         disagree in promotion of function return value.
12783
12784 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
12785
12786         PR target/39175
12787         * c-common.c (c_determine_visibility): If visibility changed and
12788         DECL_RTL has been already set, call make_decl_rtl to update symbol
12789         flags.
12790
12791 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
12792
12793         PR c++/39188
12794         * varasm.c (assemble_variable): Don't check DECL_NAME when
12795         globalizing a variable.
12796
12797 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
12798
12799         PR c/38483
12800         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
12801         expression before any __builtin_trap call.
12802         * c-typeck.c (build_function_call): Convert and check function
12803         arguments before generating a call to a trap.  Evaluate the
12804         function arguments before the trap.
12805
12806 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
12807
12808         PR target/39228
12809         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
12810         (UNSPEC_FXAM_MEM): New unspec.
12811         (fxam<mode>2_i387_with_temp): New insn and split pattern.
12812         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
12813         memory using fxam<mode>2_i387_with_temp to remove excess precision.
12814
12815 2009-02-19  Richard Guenther  <rguenther@suse.de>
12816
12817         PR tree-optimization/39207
12818         PR tree-optimization/39074
12819         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
12820         storedanything_tree): New.
12821         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
12822         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
12823         (build_succ_graph): Add edges from STOREDANYTHING to all
12824         non-direct nodes.
12825         (init_base_vars): Initialize STOREDANYTHING.
12826         (compute_points_to_sets): Free substitution info after
12827         building the succ graph.
12828         (ipa_pta_execute): Likewise.
12829
12830         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
12831         field.
12832         (do_ds_constraint): Do not add to special var or non-pointer
12833         field solutions.
12834         (type_could_have_pointers): Split out from ...
12835         (could_have_pointers): ... here.  For arrays use the element type.
12836         (create_variable_info_for): Initialize may_have_pointers.
12837         (new_var_info): Likewise.
12838         (handle_lhs_call): Make the HEAP variable unknown-sized.
12839         (intra_create_variable_infos): Use a type with pointers for
12840         PARM_NOALIAS, make it unknown-sized.
12841
12842 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
12843
12844         PR target/39224
12845         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
12846
12847 2009-02-18  Jason Merrill  <jason@redhat.com>
12848
12849         PR target/39179
12850         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
12851         value if DECL_EXTERNAL.
12852         * tree-sra.c (sra_walk_gimple_assign): Likewise.
12853         * target.h (gcc_target::binds_local_p): Clarify "module".
12854         * tree.h (TREE_PUBLIC): Clarify "module".
12855
12856 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
12857
12858         PR target/38891
12859         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
12860         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
12861
12862 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
12863
12864         PR target/39082
12865         * c.opt (Wabi): Support C and ObjC.
12866         (Wpsabi): New.
12867
12868         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
12869
12870         * config/i386/i386.c (classify_argument): Warn once about the ABI
12871         change when passing union with long double.
12872
12873         * doc/invoke.texi: Update -Wabi for warning psABI changes.
12874
12875 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
12876
12877         PR c/35447
12878         * c-parser.c (c_parser_compound_statement): Always enter and leave
12879         a scope.
12880
12881 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12882
12883         PR target/34587
12884         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
12885
12886 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
12887
12888         PR tree-optimization/36922
12889         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
12890         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
12891         Likewise.
12892
12893 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
12894
12895         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
12896         to 0 for EABI64.
12897
12898 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
12899
12900         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
12901
12902 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
12903
12904         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
12905         tree sharing.
12906
12907 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
12908             Richard Sandiford  <rdsandiford@googlemail.com>
12909
12910         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
12911         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
12912         (loongson_biadd): ...this.
12913
12914 2009-02-17  Richard Guenther  <rguenther@suse.de>
12915
12916         PR tree-optimization/39202
12917         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
12918         a var make sure to follow existing collapses.
12919
12920 2009-02-17  Richard Guenther  <rguenther@suse.de>
12921
12922         PR middle-end/39214
12923         * langhooks.c (lhd_print_error_function): Check for NULL block.
12924
12925 2009-02-17  Richard Guenther  <rguenther@suse.de>
12926
12927         PR tree-optimization/39204
12928         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
12929         of the PHI arg.
12930
12931 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
12932
12933         * config/soft-fp/double.h: Update from glibc CVS.
12934
12935 2009-02-17  Richard Guenther  <rguenther@suse.de>
12936
12937         PR tree-optimization/39207
12938         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
12939         strict-aliasing warnings for pointers pointing to NULL.
12940
12941 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
12942
12943         PR c/35446
12944         * c-parser.c (c_parser_braced_init): Call pop_init_level when
12945         skipping until next close brace.
12946
12947 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
12948
12949         PR target/37049
12950         * config/i386/i386.c (ix86_expand_push): Set memory alignment
12951         to function argument boundary.
12952
12953 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
12954
12955         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
12956         in the lea_add. Reload eventually constraints it properly.
12957         * config/picochip/constraints.md: Remove the target constraint
12958         "b", since it is not needed anymore.
12959
12960 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
12961
12962         * gthr-dce.h: Uglify function parameter and local variable names.
12963         * gthr-gnat.h: Likewise.
12964         * gthr-mipssde.h: Likewise.
12965         * gthr-nks.h: Likewise.
12966         * gthr-posix95.h: Likewise.
12967         * gthr-posix.h: Likewise.
12968         * gthr-rtems.h: Likewise.
12969         * gthr-single.h: Likewise.
12970         * gthr-solaris.h: Likewise.
12971         * gthr-tpf.h: Likewise.
12972         * gthr-vxworks.h: Likewise.
12973         * gthr-win32.h: Likewise.
12974
12975 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12976
12977         PR target/39196
12978         * config/i386/i386.md: Restrict the new peephole2 to move
12979         between MMX/SSE registers.
12980
12981 2009-02-15  Richard Guenther  <rguenther@suse.de>
12982
12983         Revert
12984         2009-02-13  Richard Guenther  <rguenther@suse.de>
12985
12986         * configure.ac: Enable LFS.
12987         * configure: Re-generate.
12988         * config.in: Likewise.
12989
12990 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12991
12992         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
12993         spu_srqwbyte, spu_srqwbytebc): Define.
12994         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
12995         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
12996         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
12997         "shrqby_<mode>"): New insn-and-split patterns.
12998         * config/spu/spu.c (expand_builtin_args): Determine and return
12999         number of operands using spu_builtin_description data.
13000         (spu_expand_builtin_1): Use it.
13001
13002 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
13003
13004         PR target/38056
13005         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
13006         TARGET_CONST_GP.
13007
13008 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
13009
13010         PR target/39149
13011         * config/i386/i386.c (override_options): Correct warning
13012         messages for -malign-loops, -malign-jumps and -malign-functions.
13013
13014 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
13015
13016         PR target/39152
13017         * config/i386/i386.md: Restrict the new peephole2 to move
13018         between the general purpose registers.
13019
13020 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
13021
13022         PR target/39162
13023         * config/i386/i386.c (type_natural_mode): Add a new argument.
13024         Return the original mode and warn ABI change if vector size is 32byte.
13025         (function_arg_advance): Updated.
13026         (function_arg): Likewise.
13027         (ix86_function_value): Likewise.
13028         (ix86_return_in_memory): Likewise.
13029         (ix86_sol10_return_in_memory): Likewise.
13030         (ix86_gimplify_va_arg): Likewise.
13031         (function_arg_32): Don't warn ABX ABI change here.
13032         (function_arg_64): Likewise.
13033
13034 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
13035
13036         * loop-iv.c (implies_p): In the final case, test that operands 0
13037         of the two comparisons match.
13038
13039         * config/bfin/bfin.c (find_prev_insn_start): New function.
13040         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
13041         (find_next_insn_start): Move.
13042
13043 2009-02-13  Richard Guenther  <rguenther@suse.de>
13044
13045         * configure.ac: Enable LFS.
13046         * configure: Re-generate.
13047         * config.in: Likewise.
13048
13049 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
13050
13051         PR c/35444
13052         * c-parser.c (c_parser_parms_list_declarator): Discard pending
13053         sizes on syntax error after some arguments have been parsed.
13054
13055 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
13056
13057         * doc/invoke.texi (-fira): Remove.
13058
13059 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
13060
13061         * caller-save.c: Replace regclass.c with reginfo.c in comments.
13062         * recog.c: Likewise.
13063         * rtl.h: Likewise.
13064
13065 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
13066
13067         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
13068         (umul_ppmm): Likewise.
13069         (count_leading_zeros): Likewise.
13070         (count_trailing_zeros): Likewise.
13071         (UMUL_TIME): Likewise.
13072
13073 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
13074
13075         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
13076         soft-fp/t-softfp to tmake_file.
13077
13078         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
13079         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
13080         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
13081         IA64_BUILTIN_INFQ]: New.
13082         (ia64_init_builtins): Initialize __builtin_infq,
13083         __builtin_fabsq and __builtin_copysignq if not HPUX.
13084         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
13085         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
13086
13087         * config/ia64/lib1funcs.asm (__divtf3): Define only if
13088         SHARED is defined.
13089         (__fixtfti): Likewise.
13090         (__fixunstfti): Likewise.
13091         (__floattitf): Likewise.
13092
13093         * config/ia64/libgcc-glibc.ver: New.
13094         * config/ia64/t-fprules-softfp: Likewise.
13095         * config/ia64/sfp-machine.h: Likewise.
13096
13097         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
13098         (LIBGCC2_TF_CEXT): Likewise.
13099         (TF_SIZE): Likewise.
13100         (TARGET_INIT_LIBFUNCS): Likewise.
13101
13102         * config/ia64/t-glibc (SHLINB_MAPFILES):
13103         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
13104
13105 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
13106
13107         * config/i386/i386.c (construct_container): Rewrite processing
13108         BLKmode with X86_64_SSE_CLASS.
13109
13110 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
13111
13112         PR target/39152
13113         * config/i386/i386.md: Replace simplify_replace_rtx with
13114         replace_rtx in the new peephole2.
13115
13116 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
13117
13118         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
13119         loop unrolling do not happen at -O2.
13120
13121 2009-02-12  Michael Matz  <matz@suse.de>
13122
13123         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
13124
13125 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
13126
13127         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
13128         for -g3.
13129
13130 2009-02-12  Ben Elliston  <bje@au.ibm.com>
13131
13132         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
13133         patterns when updating the back chain.  Missed in the 2009-02-10
13134         change.
13135
13136 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
13137
13138         * doc/extend.texi (Decimal Floating Types): Update identifier of
13139         draft TR and list of missing support.
13140
13141 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
13142
13143         PR middle-end/39154
13144         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
13145         bit to variable length decl's flags, add it also to its
13146         pointer replacement variable.
13147
13148 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
13149             Jakub Jelinek  <jakub@redhat.com>
13150
13151         PR target/39118
13152         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
13153         (memory_blockage): New expander.
13154         (*memory_blockage): New insn pattern.
13155         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
13156         instead of general blockage at the end of function prologue when
13157         frame pointer is used to access red zone area.  Do not emit blockage
13158         when profiling, it is emitted in generic code.
13159         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
13160         function epilogue when frame pointer is used to access red zone area.
13161
13162 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
13163
13164         PR target/38824
13165         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
13166         by arithmetic with memory operands.
13167         * config/i386/predicates.md (commutative_operator): New.
13168
13169 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
13170
13171         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
13172         bulleted lists.
13173
13174 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
13175
13176         * alias.h (record_alias_subset): Declare.
13177         * alias.c (record_alias_subset): Make global.
13178
13179 2009-02-10  Nick Clifton  <nickc@redhat.com>
13180
13181         * tree-parloops.c: Change license to GPLv3.
13182         * ipa-struct-reorg.c: Change license to GPLv3.
13183         * ipa-struct-reorg.h: Change license to GPLv3.
13184
13185 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
13186
13187         PR c/39084
13188         * c-decl.c (start_struct): Return NULL on error.
13189
13190 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
13191
13192         PR middle-end/39124
13193         * cfgloopmanip.c (remove_path): Call remove_bbs after
13194         cancel_loop_tree, not before it.
13195
13196         PR target/39139
13197         * function.h (struct function): Add has_local_explicit_reg_vars bit.
13198         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
13199         VAR_DECLs were seen.
13200         * tree-ssa-live.c (remove_unused_locals): Recompute
13201         cfun->has_local_explicit_reg_vars.
13202         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
13203         copies or clearings if cfun->has_local_explicit_reg_vars.
13204
13205 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
13206
13207         PR target/39118
13208         * config/i386/i386.c (expand_prologue): Emit blockage at the end
13209         of function prologue when frame pointer is used to access
13210         red zone area.
13211
13212 2009-02-10  Richard Guenther  <rguenther@suse.de>
13213
13214         PR middle-end/39127
13215         * gimplify.c (gimple_regimplify_operands): Always look if
13216         we need to create a temporary.
13217
13218 2009-02-10  Richard Guenther  <rguenther@suse.de>
13219
13220         PR tree-optimization/39132
13221         * tree-loop-distribution.c (todo): New global var.
13222         (generate_memset_zero): Trigger TODO_rebuild_alias.
13223         (tree_loop_distribution): Return todo.
13224
13225 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
13226
13227         PR target/39119
13228         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
13229         (x86_64_reg_class_name): Removed.
13230         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
13231         first one isn't X86_64_SSE_CLASS or any other ones aren't
13232         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
13233         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
13234         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
13235         and 3 X86_64_SSEUP_CLASS.
13236         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
13237         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
13238
13239 2009-02-10  Ben Elliston  <bje@au.ibm.com>
13240
13241         * config/rs6000/rs6000.md (allocate_stack): Always use an update
13242         form instruction to update the stack back chain word, even if the
13243         user has disabled the generation of update instructions.
13244         (movdi_<mode>_update_stack): New.
13245         (movsi_update_stack): Likewise.
13246         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
13247         always use an update form instruction to update the stack back
13248         chain word.
13249
13250 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
13251
13252         PR middle-end/38953
13253         * graphite.c (if_region_set_false_region): After moving a region in
13254         the false branch of a condition, remove the empty dummy basic block.
13255         (gloog): Remove wrong fix for PR38953.
13256
13257 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13258
13259         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
13260         generation due to implicit sign extension.
13261
13262 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
13263
13264         PR middle-end/38981
13265         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
13266         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
13267
13268 2009-02-09  Richard Guenther  <rguenther@suse.de>
13269
13270         PR middle-end/35202
13271         * convert.c (convert_to_real): Disable (float)fn((double)x)
13272         to fnf(x) conversion if errno differences may occur and
13273         -fmath-errno is set.
13274
13275 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
13276
13277         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
13278         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
13279         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
13280
13281 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
13282
13283         PR c/35434
13284         * c-common.c (handle_alias_attribute): Disallow attribute for
13285         anything not a FUNCTION_DECL or VAR_DECL.
13286
13287 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
13288
13289         PR c/39035
13290         * real.c (do_compare): Special-case compare of zero against
13291         decimal float value.
13292
13293 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
13294
13295         PR c/36432
13296         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
13297         as indicating flexible array members unless the field itself is
13298         being declarared as the incomplete array.
13299
13300 2009-02-06  Jan Hubicka  <jh@suse.cz>
13301
13302         PR tree-optimization/38844
13303         * ipa-inline.c (try_inline): Stop inlining recursion when edge
13304         is already inlined.
13305
13306 2009-02-06  Richard Guenther  <rguenther@suse.de>
13307
13308         PR middle-end/38977
13309         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
13310         fork because we may expand it as __gcov_fork.
13311
13312 2009-02-06  Nick Clifton  <nickc@redhat.com>
13313
13314         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
13315
13316 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
13317
13318         PR tree-optimization/35659
13319         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
13320         vn_phi_eq): Shortcut if hashcode does not match.
13321         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
13322         NULL operands.
13323         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
13324         and avoid iterative_hash_expr.
13325         (FOR_EACH_VALUE_ID_IN_SET): New.
13326         (value_id_compare): Remove.
13327         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
13328         sort expressions by value id.
13329
13330 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
13331
13332         PR target/38991
13333         * config/sh/predicates.md (general_movsrc_operand): Don't check
13334         the subreg of system registers here.
13335
13336 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
13337
13338         PR c++/39106
13339         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
13340         on the copied decl.
13341
13342 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
13343
13344         PR rtl-optimization/39110
13345         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
13346         addresses, not aligned ones.
13347
13348 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
13349             Richard Guenther  <rguenther@suse.de>
13350
13351         PR tree-optimization/39100
13352         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
13353         comment says and add edges.
13354
13355 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
13356
13357         PR c/35435
13358         * c-common.c (handle_tls_model_attribute): Ignore attribute for
13359         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
13360
13361 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
13362
13363         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
13364         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
13365         register_bb_in_sese, new_sese, free_sese): Moved.
13366         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
13367         outermost_loop_in_scop, build_scop_iteration_domain,
13368         expand_scalar_variables_ssa_name, get_vdef_before_scop,
13369         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
13370         Use loop_in_sese_p instead of loop_in_scop_p.
13371         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
13372         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
13373         (scopdet_basic_block_info): Fix bug in scop detection.
13374         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
13375         eq_loop_to_cloog_loop): Remove.
13376         (nb_loops_around_loop_in_scop, nb_loop
13377         ref_nb_loops): Moved here...
13378         * graphite.h (ref_nb_loops): ... from here.
13379         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
13380         (loop_domain_dim, loop_iteration_vector_dim): Remove.
13381         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
13382         * testsuite/gcc.dg/graphite/scop-19.c: New
13383
13384 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
13385             Hans-Peter Nilsson  <hp@axis.com>
13386
13387         PR rtl-optimization/37889
13388         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
13389         Move offset handling from PLUS to before the switch.  Use new
13390         arguments when considering SYMBOL_REFs too.
13391         (rtx_addr_can_trap_p): Pass dummy offset and size.
13392         (enum may_trap_p_flags): Remove.
13393         (may_trap_p_1): Pass size from MEM_SIZE.
13394
13395         PR rtl-optimization/38921
13396         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
13397         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
13398         * rtlanal.c (may_trap_after_code_motion_p): Delete.
13399         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
13400
13401 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
13402
13403         AVX Programming Reference (January, 2009)
13404         * config/i386/sse.md (*vpclmulqdq): New.
13405
13406 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
13407
13408         PR tree-optimization/38977
13409         PR gcov-profile/38292
13410         * calls.c (special_function_p): Disregard __builtin_ prefix.
13411
13412 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
13413
13414         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
13415         non-indexable addresses even before reload.
13416
13417 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
13418
13419         PR c/29129
13420         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
13421         as having variable size.  Do not give an error for unnamed
13422         parameters with [*] declarators.  Give a warning for type names
13423         with [*] declarators and mark them as variable size.
13424         * c-parser.c (c_parser_sizeof_expression): Do not give an error
13425         for sizeof applied to [*] type names.
13426
13427 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13428
13429         PR C++/36607
13430         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
13431
13432 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
13433
13434         * gcc.c (process_command): Update copyright notice dates.
13435         * gcov.c (print_version): Likewise.
13436         * gcov-dump.c (print_version): Likewise.
13437         * mips-tfile.c (main): Likewise.
13438         * mips-tdump.c (main): Likewise.
13439
13440 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
13441
13442         PR c/35433
13443         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
13444         for composite type involving a zero-length array type.
13445
13446 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
13447
13448         PR target/35318
13449         * function.c (match_asm_constraints_1): Skip over
13450         initial optional % in the constraint.
13451
13452         PR inline-asm/39059
13453         * c-parser.c (c_parser_postfix_expression): If fixed point is not
13454         supported, don't accept FIXED_CSTs.
13455         * c-decl.c (finish_declspecs): Error if fixed point is not supported
13456         and _Sat is used without _Fract/_Accum.  Set specs->type to
13457         integer_type_node for cts_fract/cts_accum if fixed point is not
13458         supported.
13459
13460 2009-02-02  Catherine Moore  <clm@codesourcery.com>
13461
13462         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
13463
13464 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
13465
13466         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
13467         (ABI_HAS_64BIT_SYMBOLS): Use it.
13468         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
13469
13470 2009-02-02  Paul Brook  <paul@codesourcery.com>
13471
13472         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
13473
13474 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
13475
13476         PR inline-asm/39058
13477         * recog.h (asm_operand_ok): Add constraints argument.
13478         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
13479         recurse on matching constraint.
13480         (check_asm_operands): Pass constraints as 3rd argument to
13481         asm_operand_ok.  Don't look up matching constraint here.
13482         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
13483         to asm_operand_ok.
13484
13485 2009-02-02  Ben Elliston  <bje@au.ibm.com>
13486
13487         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
13488         TARGET_NARROW_VOLATILE_BITFIELD macro names.
13489
13490 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13491
13492         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
13493         information.  Remove some obsolete information.  Reorganize.
13494
13495         * config/pa/fptr.c: Revert license to GPL 2.
13496         * config/pa/milli64.S: Likewise.
13497
13498 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
13499
13500         PR target/38904
13501         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
13502         LIBRARY name in, instead of hard-coding it.
13503         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
13504         extra target make frag to tmake_files according to EH model.
13505         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
13506         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
13507         frags that define makefile variable EH_MODEL appropriately.
13508         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
13509         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
13510         to "-sjlj" according to type of EH configured.
13511         (LIBGCC_SONAME):  Concatenate it to shared library base name.
13512         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
13513         to "_sjlj" according to type of EH configured.
13514         (LIBGCC_SONAME):  Concatenate it to shared library base name.
13515         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
13516         (SHLIB_LINK):  Add missing semicolon to if-else construct.
13517         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
13518         string value of "pe_dll" command-line option.
13519         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
13520         (SHLIB_SONAME):  Use it when overriding t-cygming default.
13521         (SHLIB_IMPLIB):  Override t-cygming default.
13522         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
13523         string value of "pe_dll" command-line option.
13524
13525 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
13526
13527         PR target/38952
13528         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
13529         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
13530
13531 2009-01-31  Richard Guenther  <rguenther@suse.de>
13532
13533         PR tree-optimization/38937
13534         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
13535         computing the transitive closure.
13536
13537 2009-01-30  Richard Guenther  <rguenther@suse.de>
13538
13539         PR tree-optimization/39041
13540         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
13541         Propagate variable indices only if the types match for this stmt.
13542
13543 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
13544
13545         PR target/39013
13546         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
13547         inline but never defined.
13548
13549 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
13550
13551         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
13552         (*insv_h_di_reg_extimm): New insn.
13553         (*insv_l<mode>_reg_extimm): New insn.
13554
13555 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
13556
13557         * config/picochip/picochip.c (flag_conserve_stack): set
13558         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
13559         fconserve-stack. Reduce call-overhead used by inliner.
13560
13561 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
13562
13563         PR/38157
13564         * common.opt (flag_conserve_stack): Initialised to zero.
13565
13566 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
13567
13568         PR/39002
13569         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
13570         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
13571         method.
13572
13573 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
13574
13575         * ira-color.c (allocno_reload_assign): Update comments.
13576         * regmove.c (regmove_optimize): Likewise.
13577
13578         * ra.h: Removed.
13579
13580 2009-01-29  Robert Millan  <rmh@aybabtu.com>
13581
13582         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
13583         * config/i386/kopensolaris-gnu.h: New file.  Undefine
13584         `MD_UNWIND_SUPPORT'.
13585         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
13586
13587 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
13588
13589         PR tree-optimization/39007
13590         * tree-loop-distribution.c (generate_builtin): Use
13591         recompute_dominator to compute the immediate dominator of the
13592         basic block just after the loop.
13593
13594 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13595
13596         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
13597         (ASM_OUTPUT_DWARF_PCREL): Define.
13598
13599 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
13600
13601         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
13602         * doc/passes.texi: Remove entries about regclass, local-alloc, and
13603         global.  Modify entries about regmove and IRA.
13604
13605         * ra-conflict.c: Remove the file.
13606
13607         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
13608
13609         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
13610         (pass_regclass_init): Rename to pass_reginfo_init.
13611
13612         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
13613
13614         * toplev.h (flag_ira): Remove.
13615
13616         * caller-save.c (setup_save_areas): Remove flag_ira.
13617
13618         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
13619
13620         * global.c: Remove the file.
13621
13622         * opts.c (decode_options): Remove flag_ira.
13623
13624         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
13625
13626         * regmove.c: Modify file description.
13627         (find_use_as_address, try_auto_increment): Define them only if
13628         AUTO_INC_DEC is defined.
13629         (replacement_quality, replace_in_call_usage, fixup_match_1,
13630         stable_and_no_regs_but_for_p): Remove.
13631         (reg_set_in_bb): Make it static.
13632         (regmove_optimize): Remove flag_ira and code which worked for
13633         !flag_ira.
13634
13635         * local-alloc.c: Remove the file.
13636
13637         * common.opt (fira): Remove.
13638
13639         * ira.c: Include except.h.
13640         (eliminable_regset): Move from global.c.
13641         (mark_elimination): Ditto.  Remove flag_ira.
13642         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
13643         equiv_mem_modified, validate_equiv_mem_from_store,
13644         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
13645         contains_replace_regs, memref_referenced_p, memref_used_between_p,
13646         no_equiv, recorded_label_ref): Move from local-alloc.c.
13647         (update_equiv_regs): Ditto.  Make it static.
13648         (print_insn_chain, print_insn_chains): Move it from global.c.
13649         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
13650         (build_insn_chain): Ditto.  Make it static.
13651         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
13652         Rename to init_live_subregs.
13653         (gate_ira): Remove flag_ira.
13654
13655         * regclass.c: Rename reginfo.c.  Change file description.
13656         (FORBIDDEN_INC_DEC_CLASSES): Remove.
13657         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
13658         (init_reg_sets_1): Remove code for evaluation of
13659         reg_class_superclasses and losing_caller_save_reg_set.
13660         (init_regs): Remove init_reg_autoinc.
13661         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
13662         ok_for_base_p_nonstrict): Remove.
13663         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
13664         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
13665         corresponding entries.
13666         (dump_regclass, record_operand_costs, scan_one_insn,
13667         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
13668         record_address_regs, auto_inc_dec_reg_p): Remove.
13669         (gt-regclass.h): Rename to gt-reginfo.h.
13670
13671         * rtl.h (dump_global_regs, retry_global_alloc,
13672         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
13673
13674         * Makefile.in (RA_H): Remove.
13675         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
13676         Rename regclass.o to reginfo.o.
13677         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
13678         gt-reginfo.h.
13679         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
13680         (GTFILES): Rename regclass.c to reginfo.c.
13681
13682         * passes.c (init_optimization_passes): Remove pass_local_alloc and
13683         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
13684
13685         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
13686         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
13687         Remove flag_ira.
13688         (finish_spills): Ditto.  Remove code for !flag_ira.
13689
13690 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
13691
13692         PR middle-end/35854
13693         * doc/invoke.texi (rtl debug options): Complete rewrite.
13694         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
13695         to auto_inc_dec".
13696         * mode-switching.c (pass_mode_switching): Rename pass from
13697         "mode-sw" to "mode_sw".
13698         * except.c (pass_convert_to_eh_ranges): Rename pass from
13699         "eh-ranges" to "eh_ranges".
13700         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
13701         to "subreg1".
13702
13703
13704 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
13705             Alexander Monakov  <amonakov@ispras.ru>
13706
13707         PR middle-end/38857
13708         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
13709         register.
13710         (move_exprs_to_boundary): Change return type and pass through
13711         should_move from move_op.  Relax assert.  Update usage ...
13712         (schedule_expr_on_boundary): ... here.  Use should_move instead of
13713         cant_move.
13714         (move_op_orig_expr_found): Indicate that insn was disconnected from
13715         stream.
13716         (code_motion_process_successors): Do not call after_merge_succs
13717         callback if original expression was not found when traversing any of
13718         the branches.
13719         (code_motion_path_driver): Change return type.  Update prototype.
13720         (move_op): Update comment.  Add a new parameter (should_move).  Update
13721         prototype.  Set *should_move based on indication provided by
13722         move_op_orig_expr_found.
13723
13724 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
13725
13726         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
13727         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
13728         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
13729         * config/rs6000/rs6000.c (rs6000_override_options): Default
13730         avoid-indexed-addresses on for Power6, off for everything else.
13731         (avoiding_indexed_address_p): New function.
13732         (rs6000_legitimize_address): Use it.
13733         (rs6000_legitimate_address): Likewise.
13734         * config/rs6000/rs6000.md (movXX_updateX): Likewise
13735
13736 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
13737
13738         PR tree-optimization/38997
13739         * tree-loop-distribution.c (generate_memset_zero): Use
13740         POINTER_PLUS_EXPR for a pointer addition.
13741
13742 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
13743
13744         * config/s390/s390.md (bswap<mode>2): New pattern added.
13745
13746 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
13747
13748         * config/s390/s390.md (*tls_load_31): Added type attribute.
13749
13750 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
13751
13752         * config/s390/s390.md: Fix a few comments.
13753
13754 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
13755
13756         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
13757         (*tm<mode>_full): Fixed z10prop attribute.
13758         (*tst<mode>_extimm): Fixed z10prop attribute.
13759         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
13760         (*tstqiCCT_cconly): Fixed z10prop attribute.
13761         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
13762         (*movsi_larl): Fixed z10prop attribute.
13763         (*movsi_zarch): Fixed z10prop attribute.
13764         (*movsi_eas): Fixed z10prop attribute.
13765         (*movhi): Fixed z10prop attribute.
13766         (*movqi): Fixed z10prop attribute.
13767         (*movstrictqi): Fixed z10prop attribute.
13768         (*mov<mode>): Fixed z10prop attribute.
13769         (*movcc): Fixed z10prop attribute.
13770         (*sethighpartdi_64): Fixed z10prop attribute.
13771         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
13772         (*negdi2_sign_cc): Fixed z10prop attribute.
13773         (*negdi2_sign): Fixed z10prop attribute.
13774         (*absdi2_sign_cc): Fixed z10prop attribute.
13775         (*absdi2_sign): Fixed z10prop attribute.
13776         (*negabsdi2_sign_cc): Fixed z10prop attribute.
13777         (*negabsdi2_sign): Fixed z10prop attribute.
13778         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
13779         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
13780         (doloop_si64): Fixed z10prop attribute.
13781         (doloop_si31): Fixed z10prop attribute.
13782         (doloop_long): Fixed z10prop attribute.
13783         (indirect_jump): Fixed z10prop attribute.
13784         (nop): Fixed z10prop attribute.
13785         (main_base_64): Fixed z10prop attribute.
13786         (reload_base_64): Fixed z10prop attribute.
13787
13788 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
13789
13790         PR rtl-optimization/38740
13791         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
13792         if !optimize.
13793         * config/mips/mips.c (mips_reorg): Likewise.
13794
13795 2009-01-28  Richard Guenther  <rguenther@suse.de>
13796
13797         PR tree-optimization/38926
13798         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
13799         with the correct value id to a value.
13800         (do_regular_insertion): Use the value number of edoubleprime
13801         for the value number of the expr.
13802
13803         Revert
13804         2008-08-21  Richard Guenther  <rguenther@suse.de>
13805
13806         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
13807         a PHI ask VN if it is already available.
13808         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
13809         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
13810
13811 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
13812
13813         PR middle-end/38934
13814         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
13815         set to varying whenever max has TREE_OVERFLOW set, similarly
13816         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
13817
13818 2009-01-28  Richard Guenther  <rguenther@suse.de>
13819
13820         PR middle-end/38908
13821         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
13822         uninitialized aggregate uses in call arguments.
13823
13824 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
13825
13826         PR tree-optimization/38984
13827         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
13828         the nothing_id variable if -fno-delete-null-pointer-checks.
13829
13830 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
13831
13832         PR target/38988
13833         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
13834         (set_got_offset_rex64): Ditto.
13835
13836 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
13837
13838         PR target/38941
13839         * doc/extend.texi: Improve local variable with asm reg.
13840
13841 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
13842
13843         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
13844         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
13845         was not supplied then set warn_packed_bitfield_compat to the
13846         default value of 1.
13847         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
13848         against 1.
13849
13850 2009-01-27  Richard Guenther  <rguenther@suse.de>
13851
13852         PR tree-optimization/38503
13853         * cfgexpand.c (expand_gimple_basic_block): Ignore
13854         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
13855         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
13856         variables that cannot have TBAA applied.
13857         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
13858         statements.
13859
13860 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
13861
13862         PR middle-end/38969
13863         * calls.c (initialize_argument_information): Do not wrap complex
13864         arguments in SAVE_EXPR.
13865
13866 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
13867
13868         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
13869         (INSTALL_LIBGCC): Revert typo commit.
13870
13871 2009-01-26  Richard Guenther  <rguenther@suse.de>
13872
13873         PR tree-optimization/38745
13874         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
13875         from special handling.
13876
13877 2009-01-26  Richard Guenther  <rguenther@suse.de>
13878
13879         PR tree-optimization/38745
13880         * tree-ssa.c (execute_update_addresses_taken): Do not include
13881         variables that cannot possibly be a register in not_reg_needs.
13882         Do not clear TREE_ADDRESSABLE on vars that may not become
13883         registers.
13884         * tree-ssa.c (update_alias_info_1): Include those in the set
13885         of addressable vars.
13886
13887 2009-01-26  Richard Guenther  <rguenther@suse.de>
13888
13889         PR middle-end/38851
13890         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
13891         * tree-ssa-dse.c: Include langhooks.h
13892         (execute_simple_dse): Remove stores with zero size.
13893
13894 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
13895
13896         PR c/38957
13897         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
13898         as PLUS_EXPR.
13899
13900 2009-01-24  Julian Brown  <julian@codesourcery.com>
13901
13902         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
13903         config/arm/linux-atomic.c.
13904         * config/arm/linux-atomic.c: New.
13905
13906 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
13907
13908         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
13909         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
13910         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
13911
13912 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
13913
13914         PR c/38938
13915         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
13916         properly.
13917
13918 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
13919
13920         PR tree-optimization/38953
13921         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
13922         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
13923         (gloog): Split the exit of the scop when the scop exit is a loop exit.
13924         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
13925         changed the CFG.
13926
13927 2009-01-24  Paul Brook  <paul@codesourcery.com>
13928
13929         * config/arm/neon.md (neon_type): Move to arm.md.
13930         (neon_mov<VSTRUCT>): Add neon_type attribute.
13931         * config/arm/arm.md (neon_type): Move to here.
13932         (conds): Add "unconditioal" and use as default for NEON insns.
13933
13934 2009-01-24  Ben Elliston  <bje@au.ibm.com>
13935
13936         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
13937         void *' warning from -Wc++-compat.
13938         * Makefile.in (dominance.o-warn): Remove.
13939
13940 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
13941
13942         PR tree-optimization/38932
13943         * fold-const.c (fold_unary_ignore_overflow): New.
13944         * tree.h (fold_unary_ignore_overflow): Declare.
13945         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
13946         * tree-ssa-sccvn.c (visit_reference_op_load,
13947         simplify_unary_expression): Likewise.
13948
13949 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
13950
13951         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
13952         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
13953         regardless of their type.
13954         * c-common.c (handle_packed_attribute): Don't ignore packed on
13955         bitfields.
13956         * c.opt (Wpacked-bitfield-compat): New warning option.
13957         * stor-layout.c (place_field): Warn if offset of a field changed.
13958         * doc/extend.texi (packed): Mention the ABI change.
13959         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
13960         (Warning Options): Add it to the list.
13961
13962 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
13963
13964         * c-opts.c (c_common_post_options): Fix a typo in comments.
13965
13966 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
13967
13968         PR middle-end/38615
13969         * gimplify.c (gimplify_init_constructor): Fix promotion of const
13970         variables to static.
13971         * doc/invoke.texi (-fmerge-all-constants): Update description.
13972
13973 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
13974
13975         PR target/38931
13976         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
13977         (*movdi_1_rex64): Use type "mmx" for alternative 5.
13978
13979 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
13980
13981         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
13982         a word boundary.
13983         (LOCAL_ALIGNMENT): Similarly.
13984
13985 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
13986             Joseph Myers  <joseph@codesourcery.com>
13987
13988         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
13989         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
13990         * config/arm/arm-tune.md: Regenerate.
13991         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
13992         -march=iwmmxt2.
13993
13994 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
13995
13996         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
13997         version number to five.
13998
13999 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
14000
14001         PR c++/38930
14002         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
14003         * c-common.c (set_underlying_type): Likewise.
14004         (is_typedef_decl ): Likewise
14005         * tree.h: Likewise
14006         (set_underlying_type): Likewise.
14007         (is_typedef_type): Likewise.
14008
14009 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
14010
14011         PR middle-end/38587
14012         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
14013         crossing setjmps.
14014
14015 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
14016
14017         PR bootstrap/37660
14018         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
14019         (LIBGCC_SPEC):  Don't define.
14020         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
14021
14022 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
14023
14024         PR rtl-optimization/38879
14025         * alias.c (base_alias_check): Unaligned access via AND address can
14026         alias all surrounding object types except those with sizes equal
14027         or wider than the size of unaligned access.
14028
14029 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
14030
14031         PR c++/26693
14032         * c-decl.c (clone_underlying_type): Move this ...
14033         * c-common.c (set_underlying_type): ... here.
14034         Also, make sure the function properly sets TYPE_STUB_DECL() on
14035         the newly created typedef variant type.
14036         (is_typedef_decl ): New entry point.
14037         * tree.h: Added a new member member_types_needing_access_check to
14038         struct tree_decl_non_common.
14039         (set_underlying_type): New entry point.
14040         (is_typedef_type): Likewise.
14041
14042 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
14043
14044         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
14045         Check whether two instructions have memory references that
14046         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
14047         are helper functions for traversing.
14048         * alias.h (insn_alias_sets_confilict_p): New prototypes.
14049         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
14050         not to draw dependency edge for instructions with non-conflicting
14051         alias sets.
14052
14053 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
14054
14055         PR other/38758
14056         * longlong.h: Update copyright years.  Use soft-fp license notice.
14057         Sync __clz_tab declaration with glibc.
14058
14059 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
14060
14061         PR target/30687
14062         * doc/extend.texi (syscall_linkage): New.
14063         (version_id): Modify.
14064
14065 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14066             Richard Guenther  <rguenther@suse.de>
14067
14068         PR tree-optimization/38747
14069         PR tree-optimization/38748
14070         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
14071         conversion if the base address is an indirect reference and the
14072         aliasing sets could cause issues.
14073
14074 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
14075
14076         * common.opt (fgraphite, fgraphite-identity): Add comment for
14077         explaining why these options are not documented.
14078
14079 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
14080
14081         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
14082         gimple_call_lhs is NULL.
14083
14084 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
14085
14086         PR target/38868
14087         * emit-rtl.c (adjust_address_1): Make sure memref is never
14088         overwritten.
14089
14090 2009-01-20  Ben Elliston  <bje@au.ibm.com>
14091
14092         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
14093         const qualifier from arg parameter. Remove unnecessary cast to char *.
14094         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
14095         const qualifier from arg 2.
14096
14097 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
14098
14099         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
14100
14101 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
14102
14103         PR c/38869
14104         * rtl.h (reinit_regs): New prototype.
14105         * regclass.c: Include ira.h.
14106         (reinit_regs): New.
14107         * Makefile.in (regclass.o): Add ira.h.
14108         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
14109
14110 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
14111
14112         PR target/38736
14113         * c-common.c (handle_aligned_attribute): Use
14114         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
14115         default alignment value.
14116
14117         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
14118
14119         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
14120         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
14121
14122         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
14123         __BIGGEST_ALIGNMENT__.
14124
14125         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
14126
14127 2009-01-18  Richard Guenther  <rguenther@suse.de>
14128
14129         PR tree-optimization/38819
14130         * tree-flow.h (operation_could_trap_helper_p): Declare.
14131         * tree-eh.c (operation_could_trap_helper_p): Export.
14132         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
14133         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
14134         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
14135         are about to insert a possibly trapping instruction and fail
14136         in this case.
14137
14138 2009-01-18  Andreas Schwab  <schwab@suse.de>
14139
14140         * doc/install.texi (Configuration): Remove obsolete paragraph
14141         about use of --with-gnu-ld with --with-gnu-as.
14142
14143 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
14144
14145         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
14146         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
14147         Follow spelling conventions.
14148
14149 2009-01-18  Ben Elliston  <bje@au.ibm.com>
14150
14151         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
14152         C++ warning about implicit conversion from void * to struct
14153         bitmap_head_def *.
14154         (bitmap_obstack_free): Likewise for bitmap_element *.
14155         * Makefile.in (bitmap.o-warn): Remove.
14156
14157 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
14158
14159         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
14160
14161 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
14162             Tobias Grosser  <tobi.grosser@amd.com>
14163
14164         * graphite.c (graphite_trans_scop_block): Do not block single
14165         nested loops.
14166
14167 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
14168
14169         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
14170         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
14171         test with assertion.
14172
14173 2009-01-16  Richard Guenther  <rguenther@suse.de>
14174
14175         PR tree-optimization/38835
14176         PR middle-end/36227
14177         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
14178         and INT + PTR -> (INT)(PTR p+ INT) folding.
14179         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
14180
14181 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
14182
14183         PR target/38554
14184         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
14185         the subreg from a lowpart subreg if it is also casting the value.
14186
14187 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14188             Tobias Grosser  <tobi.grosser@amd.com>
14189
14190         * graphite.c (compare_prefix_loops): New.
14191         (build_scop_canonical_schedules): Rewritten.
14192         (graphite_transform_loops): Move build_scop_canonical_schedules
14193         after build_scop_iteration_domain.
14194
14195 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14196             Tobias Grosser  <tobi.grosser@amd.com>
14197
14198         * graphite.c (add_conditions_to_domain): Add the loops to
14199         the dimension of the iteration domain.  Do copy the domain
14200         only when it exists.
14201         (build_scop_conditions_1): Do not call add_conditions_to_domain.
14202         (add_conditions_to_constraints): New.
14203         (can_generate_code_stmt, can_generate_code): Removed.
14204         (gloog): Do not call can_generate_code.
14205         (graphite_transform_loops): Call add_conditions_to_constraints
14206         after building the iteration domain.
14207
14208 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
14209
14210         PR tree-optimization/38789
14211         * tree-ssa-threadedge.c
14212         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
14213         __builtin_constant_p.
14214
14215 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
14216
14217         * dce.c (delete_unmarked_insns): Reversed the order that insns are
14218         examined before deleting them.
14219
14220 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
14221
14222         * function.c (aggregate_value_p): Correctly extract the function
14223         type from CALL_EXPR_FN lookup.
14224
14225 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
14226
14227         * config/picochip/picochip.c (picochip_override_options): Revert
14228         CFI asm flag disable commited previously.
14229
14230 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
14231             Tobias Grosser  <tobi.grosser@amd.com>
14232             Jan Sjodin  <jan.sjodin@amd.com>
14233
14234         * graphite.c (scan_tree_for_params): On substractions negate
14235         all the coefficients of the term.
14236         (clast_to_gcc_expression_red): New.  Handle reduction expressions
14237         of more than two operands.
14238         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
14239         (get_vdef_before_scop): Handle also the case of default definitions.
14240
14241 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
14242
14243         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
14244         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
14245         Also use them when walking CALL_INSN_FUNCTION_USAGE.
14246
14247 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
14248             Joey Ye  <joey.ye@intel.com>
14249
14250         PR middle-end/37843
14251         * cfgexpand.c (expand_stack_alignment): Don't update stack
14252         boundary nor check incoming stack boundary here.
14253         (gimple_expand_cfg): Update stack boundary and check incoming
14254         stack boundary here.
14255
14256 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
14257
14258         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
14259
14260 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
14261
14262         PR rtl-optimization/38245
14263         * calls.c (expand_call): Add stack arguments to
14264         CALL_INSN_FUNCTION_USAGE even for pure calls (when
14265         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
14266         in regs and partially in memory or BLKmode arguments.
14267         (emit_library_call_value_1): Add stack arguments to
14268         CALL_INSN_FUNCTION_USAGE even for pure calls (when
14269         ACCUMULATE_OUTGOING_ARGS).
14270         * dce.c: Include tm_p.h.
14271         (find_call_stack_args): New function.
14272         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
14273         argument.
14274         (mark_insn): Call find_call_stack_args for CALL_Ps.
14275         (prescan_insns_for_dce): Walk insns backwards in bb rather than
14276         forwards.  Allocate and free arg_stores bitmap if needed, pass it
14277         down to deletable_insn_p, don't mark stores set in arg_stores
14278         bitmap, clear the bitmap at the beginning of each bb.
14279         * Makefile.in (dce.o): Depend on $(TM_P_H).
14280
14281 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
14282
14283         PR target/22599
14284         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
14285         to make sure the insn is a conditional test (bug 22599).  Reformat a
14286         few long lines.
14287
14288 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
14289
14290         PR middle-end/38431
14291         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
14292         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
14293         (gloog): Do not call cleanup_tree_cfg.
14294         (graphite_transform_loops): Call cleanup_tree_cfg after all
14295         scops have been code generated.
14296
14297 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
14298         * doc/gty.texi (Invoking the garbage collector): Added new node
14299         and section documenting ggc_collect.
14300
14301 2009-01-14  Richard Guenther  <rguenther@suse.de>
14302
14303         PR tree-optimization/38826
14304         PR middle-end/38477
14305         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
14306         initialization notes only if we actually emitted a warning.
14307         (intra_create_variable_infos): Add constraints for a result decl
14308         that is passed by hidden reference.
14309         (build_pred_graph): Mark all related variables non-direct on
14310         address-taking.
14311
14312 2009-01-14  Nick Clifton  <nickc@redhat.com>
14313
14314         * ira-conflicts.c: Include addresses.h for the definition of
14315         base_reg_class.
14316         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
14317         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
14318
14319 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
14320
14321         PR target/38811
14322         * Makefile.in (ira-lives.o): Add except.h.
14323
14324         * ira-lives.c: Include except.h.
14325         (process_bb_node_lives): Process can_throw_internal.
14326
14327 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
14328
14329         PR rtl-optimization/38774
14330         * combine.c (simplify_set): When undoing cc_use change, don't do
14331         PUT_CODE on the newly created comparison, but instead put back the
14332         old comparison.
14333
14334 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
14335
14336         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
14337         values.  Remove duplicate arm8 entry.
14338
14339 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
14340
14341         PR tree-optimization/38786
14342         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
14343         the SSA_NAME case of expand_scalar_variables_expr.
14344         Set the type of an expression to the type of its assign statement.
14345         (expand_scalar_variables_expr): Also gather the scalar computation
14346         used to index the memory access.  Do not pass loop_p.
14347         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
14348         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
14349         the gimple_stmt_iterator where it inserts new code.
14350         Do not pass loop_p.
14351         (copy_bb_and_scalar_dependences): Do not pass loop_p.
14352         (translate_clast): Update call to copy_bb_and_scalar_dependences.
14353
14354 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
14355
14356         * graphite.h (debug_value): Removed.
14357         * graphite.c (debug_value): Removed.
14358
14359 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
14360
14361         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
14362         ldrd/strd with two 32-bit instructions.
14363
14364 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
14365
14366         * config/arm/arm.c (struct processors): Pass for speed down into
14367         cost helper functions.
14368         (const_ok_for_op): Handle COMPARE and inequality nodes.
14369         (arm_rtx_costs_1): Rewrite.
14370         (arm_size_rtx_costs): Update prototype.
14371         (arm_rtx_costs): Pass speed down to helper functions.
14372         (arm_slowmul_rtx_costs): Rework cost calculations.
14373         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
14374         (arm_9e_rtx_costs): Likewise.
14375
14376 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
14377
14378         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
14379         relocations of local symbols wider than UNITS_PER_WORD are not valid.
14380         (alpha_legitimize_address): Do not split local symbols wider than
14381         UNITS_PER_WORD into HIGH/LO_SUM parts.
14382
14383 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
14384
14385         PR bootstrap/38580
14386         * gcc.c (process_command): Replace call to execvp with calls
14387         to pex_one and exit.
14388
14389 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
14390
14391         PR target/29141
14392         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
14393         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
14394         variant for devices with 3-byte PC.
14395         (__tablejump_elpm__): New.
14396
14397 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
14398
14399         PR c/32041
14400         * c-parser.c (c_parser_postfix_expression): Allow `->' in
14401         offsetof member-designator, handle it as `[0].'.
14402
14403 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14404
14405         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
14406         function when not using named sections on targets with named sections
14407         if branch distance is less than 262132.
14408
14409 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
14410
14411         * combine.c (combine_instructions):  Recompute
14412         optimize_this_for_speed_p  for each BB in the main combine loop.
14413
14414 2009-01-12  Tomas Bily  <tbily@suse.cz>
14415
14416         PR middlend/38385
14417         * tree-loop-distribution.c (prop_phis): New function.
14418         (generate_builtin): Call prop_phis.
14419         * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
14420
14421 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
14422
14423         PR tree-optimization/38807
14424         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
14425         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
14426
14427 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
14428
14429         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
14430         subreg of op0 to the original op0.
14431
14432 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
14433
14434         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
14435
14436 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
14437
14438         PR debug/7055
14439         * mips-tfile.c (parse_def): Fix parsing of def strings
14440         starting with digits.
14441
14442 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
14443
14444         PR target/38695
14445         * config/arm/arm.c (arm_is_long_call_p): Don't call
14446         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
14447
14448 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
14449
14450         * regrename.c (regrename_optimize): Fix dumping.
14451         (find_oldest_value_reg): Preserve REG_POINTER.
14452         (copy_hardreg_forward_1): Likewise.
14453
14454 2009-01-09  Diego Novillo  <dnovillo@google.com>
14455
14456         * gimple.h (struct gimple_statement_base) <uid>: Document
14457         the restrictions on its use.
14458         (gimple_uid): Tidy.
14459         (gimple_set_uid): Tidy.
14460
14461 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
14462
14463         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
14464         zero guard even if align_bytes != 0 and count is smaller than
14465         size_needed.
14466
14467 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
14468
14469         PR rtl-optimization/38495
14470         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
14471         (add_range_and_copies_from_move_list): Print all added ranges.
14472         Add ranges to memory optimized destination.
14473
14474 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
14475
14476         PR target/38686
14477         PR target/38708
14478         * config/i386/i386.c (override_options): Reject
14479         -mstringop-strategy=rep_8byte with -m32.
14480         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
14481         to 1.  Do count comparison against epilogue_size_needed at compile
14482         time even when count_exp was constant forced into register.  For
14483         size_needed don't jump to epilogue, instead just avoid aligning
14484         and invoke the body algorithm.  If need_zero_guard, add zero guard
14485         even if count is non-zero, but smaller than size_needed + number of
14486         bytes that could be stored for alignment.
14487         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
14488         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
14489         but smaller than size_needed + number of bytes that could be stored
14490         for alignment.  Compare size_needed with epilogue_size_needed instead
14491         of desired_align - align, don't adjust size_needed, pass
14492         epilogue_size_needed to the epilogue expanders.
14493
14494         PR c/35742
14495         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
14496
14497 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14498
14499         * pa.c (last_address): Change to unsigned.
14500         (update_total_code_bytes): Change argument to unsigned.  Don't
14501         check if insn addresses are set.
14502         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
14503         addresses are not set.
14504         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
14505
14506 2009-01-09  Nick Clifton  <nickc@redhat.com>
14507
14508         * config/sh/symbian.c: Replace uses of DECL_INLINE with
14509         DECL_DECLARED_INLINE_P.
14510
14511 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
14512
14513         PR middle-end/38347
14514         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
14515         GET_MODE (op0) in operand_subword_force calls.
14516
14517         PR middle-end/38771
14518         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
14519         fold_convert arg0 operands to TREE_TYPE (op0) first.
14520
14521 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
14522
14523         * params.def (ira-max-conflict-table-size): Decrease default value
14524         to 1000.
14525
14526 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
14527
14528         PR tree-optimization/37031
14529         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
14530         on parameter_set.
14531         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
14532         allocate it using gc instead of heap, use VEC_quick_push instead of
14533         VEC_safe_push.
14534         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
14535         instead of heap, use VEC_quick_push instead of VEC_safe_push.
14536         * tree-data-ref.h (struct access_matrix): Change matrix to gc
14537         allocated vector from heap allocated.
14538         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
14539         * tree-loop-linear.c (linear_transform_loops): Allocate nest
14540         vector only after perfect_loop_nest_depth call.
14541
14542 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
14543             Jan Sjodin  <jan.sjodin@amd.com>
14544
14545         PR tree-optimization/38559
14546         * graphite.c (debug_value, copy_constraint,
14547         swap_constraint_variables, scale_constraint_variable, ): New.
14548         (get_lower_bound, get_upper_bound): Removed.
14549         (graphite_trans_bb_strip_mine): Clean up this code that works
14550         only for constant number of iterations.  Fully copy upper and
14551         lower bound constraints, not only the constant part of them.
14552         * graphite.h (debug_value): Declared.
14553
14554 2009-01-08  Ira Rosen  <irar@il.ibm.com>
14555
14556         PR tree-optimization/37194
14557         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
14558         Don't add the cost of cost model guard in prologue to scalar
14559         outside cost in case of known number of iterations.
14560
14561 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
14562             Alan Modra  <amodra@bigpond.net.au>
14563
14564         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
14565         non-word-aligned REG+CONST addressing.
14566
14567 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
14568
14569         PR target/38706
14570         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
14571         free_after_compilation when outputting a thunk.
14572         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
14573         Do not call free_after_compilation here.
14574
14575 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
14576
14577         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
14578         (ix86_valid_target_attribute_inner_p): Ditto.
14579
14580 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
14581
14582         PR tree-optimization/38492
14583         PR tree-optimization/38498
14584         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
14585         * tree-chrec.h (scev_is_linear_expression): Declared.
14586         * graphite.c (graphite_cannot_represent_loop_niter): New.
14587         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
14588         (graphite_loop_normal_form): Use gcc_assert.
14589         (scan_tree_for_params): Use CASE_CONVERT.
14590         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
14591         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
14592         Use gcc_assert.  Discard scops that contain unhandled cases.
14593         (build_scop_conditions): Return a boolean status for unhandled cases.
14594         (strip_mine_profitable_p): Print the loop number, not its depth.
14595         (is_interchange_valid): Pass the depth of the loop nest, don't
14596         recompute it wrongly.
14597         (graphite_trans_bb_block): Same.
14598         (graphite_trans_bb_block): Print tentative of loop blocking.
14599         (graphite_trans_scop_block): Do not print that the loop has been
14600         blocked.
14601         (graphite_transform_loops): Do not handle scops that contain condition
14602         scalar phi nodes.
14603
14604 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14605
14606         AVX Programming Reference (December, 2008)
14607         * config/i386/avxintrin.h (_mm256_stream_si256): New.
14608         (_mm256_stream_pd): Likewise.
14609         (_mm256_stream_ps): Likewise.
14610
14611         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
14612         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
14613         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
14614         (bdesc_special_args): Add __builtin_ia32_movntdq256,
14615         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
14616         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
14617         (ix86_expand_special_args_builtin): Likewise.
14618
14619         * config/i386/sse.md (AVXMODEDI): New.
14620         (avx_movnt<mode>): Likewise.
14621         (avx_movnt<mode>): Likewise.
14622         (<sse>_movnt<mode>): Remove AVX support.
14623         (sse2_movntv2di): Likewise.
14624
14625 2009-01-07  Richard Guenther  <rguenther@suse.de>
14626
14627         PR middle-end/38751
14628         * fold-const.c (extract_muldiv): Remove obsolete comment.
14629         (fold_plusminus_mult_expr): Undo MINUS_EXPR
14630         to PLUS_EXPR canonicalization for the canonicalization.
14631
14632 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
14633
14634         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
14635         hosted cross-compilers generating less efficient code.
14636
14637 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
14638
14639         * function.h (rtl_data): Add a dbr_scheduled_p field.
14640         * reorg.c (dbr_schedule): Set it.
14641         (gate_handle_delay_slots): Check it.
14642         * config/mips/mips.c (mips_base_delayed_branch): Delete.
14643         (mips_reorg): Check flag_delayed_branch instead of
14644         mips_base_delayed_branch.
14645         (mips_override_options): Don't set mips_base_delayed_branch
14646         or flag_delayed_branch.
14647
14648 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
14649
14650         PR rtl-optimization/38426.
14651         * ira.c (ira): Set current_function_is_leaf earlier.
14652
14653 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
14654
14655         PR rtl-optimization/38722
14656         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
14657         too early, only set a flag and modify after last possible
14658         undo_all point.
14659
14660 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
14661
14662         PR c/34252
14663         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
14664         * real.c (decimal_single_format): Correct values of emin and emax.
14665         (decimal_double_format): Ditto.
14666         (decimal_quad_format): Ditto.
14667         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
14668         computation of DECnn_MIN and DECnn_MAX for corrected values of
14669         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
14670         __DECnn_MIN__, and adjust its computation for the corrected value
14671         of emin.
14672
14673 2009-01-06  Jan Hubicka  <jh@suse.cz>
14674
14675         PR target/38744
14676         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
14677
14678 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
14679
14680         * doc/contrib.texi (Contributors): Slightly adjust the end note.
14681         Add Robert Clark to the list of testers.
14682
14683 2009-01-06  Jan Hubicka  <jh@suse.cz>
14684             Kai Tietz  <kai.tietz@onevision.com>
14685
14686         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
14687         * config/i386/i386.c (ix86_expand_call): Add clobbers.
14688
14689 2009-01-06  Jan Hubicka  <jh@suse.cz>
14690             Kai Tietz  <kai.tietz@onevision.com>
14691
14692         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
14693         for w64 ABI.
14694         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
14695         (ix86_nsaved_regs): Count only general purpose regs.
14696         (ix86_nsaved_sseregs): New.
14697         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
14698         to 16 for w64; compute padding and size of sse reg save area.
14699         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
14700         general purpose regs.
14701         (ix86_emit_save_sse_regs_using_mov): New.
14702         (ix86_expand_prologue): Save SSE regs if needed.
14703         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
14704         (ix86_emit_restore_sse_regs_using_mov): New.
14705         (ix86_expand_epilogue): Save SSE regs if needed.
14706
14707 2009-01-06  Jan Hubicka  <jh@suse.cz>
14708             Kai Tietz  <kai.tietz@onevision.com>
14709
14710         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
14711         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
14712         functions when accumulate outgoing args is off.
14713
14714 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
14715
14716         PR bootstrap/38742
14717         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
14718         before using pseudos_have_intersected_live_ranges_p.
14719
14720         * ira-int.h (ira_assert): Always define.
14721
14722 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
14723
14724         AVX Programming Reference (December, 2008)
14725         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
14726         (_mm256_permute2_pd): Likewise.
14727         (_mm_permute2_ps): Likewise.
14728         (_mm256_permute2_ps): Likewise.
14729         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
14730         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
14731
14732         * config/i386/i386.c (ix86_builtins): Remove
14733         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
14734         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
14735         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
14736         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
14737         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
14738         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
14739         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
14740         __builtin_ia32_vpermil2ps256.
14741         (ix86_init_mmx_sse_builtins): Updated.
14742         (ix86_expand_args_builtin): Likewise.
14743
14744 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14745
14746         * pa.c (output_call): Relocate non-jump insns in the delay slot of
14747         long absolute calls when generating PA 2.0 code.
14748
14749 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
14750
14751         PR rtl-optimization/38583
14752         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
14753
14754         * params.def (ira-max-conflict-table-size): New.
14755
14756         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
14757
14758         * ira.h (ira_conflicts_p): New external definition.
14759
14760         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
14761         table.  Report this.  Return result of building.
14762         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
14763         building conflict table.
14764
14765         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
14766         (ira_color): Use ira_conflicts_p.
14767
14768         * global.c: Include ira.h.
14769         (pseudo_for_reload_consideration_p, build_insn_chain): Use
14770         ira_conflicts_p.
14771
14772         * Makefile.in (global.o): Add ira.h.
14773
14774         * ira-build.c (mark_all_loops_for_removal,
14775         propagate_some_info_from_allocno): New.
14776         (remove_unnecessary_allocnos): Call
14777         propagate_some_info_from_allocno.
14778         (remove_low_level_allocnos): New.
14779         (remove_unnecessary_regions): Add parameter.  Call
14780         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
14781         parameter to remove_unnecessary_regions.
14782         (ira_build): Remove all regions but root if the conflict table was
14783         not built.  Update conflict hard regs for allocnos crossing calls.
14784
14785         * ira.c (ira_conflicts_p): New global.
14786         (ira): Define and use ira_conflicts_p.
14787
14788         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
14789         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
14790         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
14791
14792 2009-01-06  Ben Elliston  <bje@au.ibm.com>
14793
14794         * gengtype-lex.l (YY_NO_INPUT): Define.
14795
14796 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14797
14798         PR c/34911
14799         * c-common.c (handle_vector_size_attribute): Also reject
14800         BOOLEAN_TYPE types.
14801
14802 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
14803
14804         PR tree-optimization/38492
14805         * graphite.c (rename_map_elt, debug_rename_elt,
14806         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
14807         rename_map_elt_info, eq_rename_map_elts,
14808         get_new_name_from_old_name, bb_in_sese_p): Moved around.
14809         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
14810         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
14811         (sese_build_livein_liveouts): New.
14812         (new_sese, free_sese): New.
14813         (new_scop): Call new_sese.
14814         (free_scop): Call free_sese.
14815         (rename_variables_from_edge, rename_phis_end_scop): Removed.
14816         (register_old_new_names): Renamed register_old_and_new_names.
14817         (register_scop_liveout_renames, add_loop_exit_phis,
14818         insert_loop_close_phis, struct igp,
14819         default_liveout_before_guard, add_guard_exit_phis,
14820         insert_guard_phis, copy_renames): New.
14821         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
14822         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
14823         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
14824         (scop_adjust_phis_for_liveouts): New.
14825         (gloog): Call scop_adjust_phis_for_liveouts.
14826
14827         * graphite.h (struct sese): Documented.  Added fields liveout,
14828         num_ver and livein.
14829         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
14830         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
14831         (struct scop): Added field liveout_renames.
14832         (SCOP_LIVEOUT_RENAMES): New.
14833
14834 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14835
14836         PR tree-optimization/38510
14837         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
14838         (translate_clast): Call recompute_all_dominators before
14839         graphite_verify.
14840         (gloog): Call recompute_all_dominators before graphite_verify.
14841
14842 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
14843             Jan Sjodin  <jan.sjodin@amd.com>
14844
14845         PR tree-optimization/38500
14846         * graphite.c (create_sese_edges): Call fix_loop_structure after
14847         splitting blocks.
14848
14849 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
14850
14851         * config.gcc: Add m32r*-*-rtems*.
14852         * config/m32r/rtems.h: New file.
14853
14854 2009-01-05  Ben Elliston  <bje@au.ibm.com>
14855
14856         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
14857         (.po.pox): Likewise.
14858         (po/gcc.pot): Likewise.
14859
14860 2009-01-04  David S. Miller  <davem@davemloft.net>
14861
14862         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
14863         (STARTING_FRAME_OFFSET): Always set to zero.
14864
14865 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
14866
14867         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
14868         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
14869         fixed-point types, and vectors of the same.
14870
14871 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
14872
14873         * config/mips/sync.md (*mb_barrier): Rename to...
14874         (*memory_barrier): ...this.
14875
14876 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
14877
14878         * doc/extend.texi (Function Attributes): Move @cindex after @item
14879         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
14880         and put in alphabetical order. Fix 'target' name and put in order.
14881         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
14882         typos.
14883
14884 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
14885
14886         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
14887         (memory_barrier): Expand as unspec instead of unspec_volatile.
14888         Remove mem:BLK from insn operands.  Use Pmode scratch register.
14889         (*memory_barrier): Define as unspec instead of unspec_volatile.
14890         Use (match_dup 0) as input operand.
14891
14892         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
14893         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
14894         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
14895         scratch register.  Remove operand 1.
14896         (*stbar): Define as unspec instead of unspec_volatile.
14897         Use (match_dup 0) as input operand, remove (const_int 8).
14898         (*membar): Define as unspec instead of unspec_volatile.
14899         Use (match_dup 0) as input operand, remove input operand 2.
14900
14901         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
14902         (memory_barrier): Expand as unspec instead of unspec_volatile.
14903         Remove mem:BLK from insn operands.  Use Pmode scratch register.
14904         (*memory_barrier): Define as unspec instead of unspec_volatile.
14905         Use (match_dup 0) as input operand.
14906
14907         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
14908         Remove mem:BLK from insn operands.  Use Pmode scratch register.
14909         Set volatile flag on operand 0.
14910         (*memory_barrier): New insn pattern.
14911
14912         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
14913         insn operands.
14914         (*memory_barrier): Use (match_dup 0) as input operand.
14915
14916         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
14917         Remove mem:BLK from insn operands.  Use Pmode scratch register.
14918         Set volatile flag on operand 0.
14919         (*mb_internal): New insn pattern.
14920
14921         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
14922
14923 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
14924
14925         PR middle-end/38586
14926         * function.c (struct temp_slot): Move to the section of the file
14927         that deals with temp slots.  Remove field 'address'.
14928         (temp_slot_address_table): New hash table of address -> temp slot.
14929         (struct temp_slot_address_entry): New struct, items for the table.
14930         (temp_slot_address_compute_hash, temp_slot_address_hash,
14931         temp_slot_address_eq, insert_temp_slot_address): Support functions
14932         for the new table.
14933         (find_temp_slot_from_address): Rewrite to use the new hash table.
14934         (remove_unused_temp_slot_addresses): Remove addresses of temp
14935         slots that have been made available.
14936         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
14937         worker function for remove_unused_temp_slot_addresses.
14938         (assign_stack_temp_for_type): Don't clear the temp slot address list.
14939         Add the temp slot address to the address -> temp slot map.
14940         (update_temp_slot_address): Update via insert_temp_slot_address.
14941         (free_temp_slots): Call remove_unused_temp_slot_addresses.
14942         (pop_temp_slots): Likewise.
14943         (init_temp_slots): Allocate the address -> temp slot map, or empty
14944         the map if it is already allocated.
14945         (prepare_function_start): Initialize temp slot processing.
14946
14947 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
14948
14949         PR middle-end/38584
14950         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
14951         Calculate the size of all stack vars assuming no packing of stack
14952         vars will happen, replacing a quadratic algorithm with a linear one.
14953
14954 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
14955
14956         PR target/38707
14957         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
14958         can't be used.
14959
14960 2009-01-03  Diego Novillo  <dnovillo@google.com>
14961
14962         * doc/contrib.texi: Update contributions.
14963
14964 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
14965
14966         PR c++/38705
14967         * builtins.c (fold_builtin_memory_op): Give up if either operand
14968         is volatile.  Set srctype or desttype to non-qualified version
14969         of the other type.
14970
14971         PR c/38700
14972         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
14973         and FUNCTION_DECLs.
14974
14975 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
14976
14977         PR rtl-optimization/35805
14978         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
14979         problem if fast dce is able to remove any instructions.
14980         * dce.c (dce_process_block): Fix dump message.
14981
14982 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
14983
14984         PR 33649
14985         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
14986
14987 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
14988
14989         PR middle-end/38690
14990         * tree-flow.h (op_code_prio, op_prio): New prototypes.
14991         * tree-pretty-print.c (op_code_prio): New function.
14992         (op_prio): No longer static.  Use op_code_prio.
14993         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
14994         Use op_prio and op_code_prio to determine if () should be
14995         printed around operand(s) or not.
14996
14997         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
14998         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
14999         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
15000         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
15001         pp_character instead of pp_string for single letter printing.
15002
15003 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
15004
15005         * doc/extend.texi: Fix '#pragma GCC option' typo.
15006
15007 2009-01-02  Richard Guenther  <rguenther@suse.de>
15008
15009         * doc/install.texi (--enable-checking): Mention different
15010         default for stage1.
15011         (--enable-stage1-checking): Document.
15012
15013 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
15014
15015         PR middle-end/30142
15016         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
15017         case to be an error.
15018
15019 2009-01-02  Ben Elliston  <bje@au.ibm.com>
15020
15021         * config/fp-bit.h (pack_d): Constify argument.
15022         * config/fp-bit.c (makenan): Constify return type. Remove casts.
15023         (isnan): Constify argument.
15024         (isinf): Likewise.
15025         (iszero): Likewise.
15026         (pack_d): Likewise.
15027         (_fpadd_parts): Constify return type.
15028         (_fpmul_parts): Likewise.
15029         (_fpdiv_parts): Likewise.
15030
15031 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
15032
15033         PR c/36489
15034         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
15035         warn about overwriting initializer with side-effects or
15036         -Woverride-init if !IMPLICIT.
15037         (output_init_element): Likewise.  Pass IMPLICIT down to
15038         add_pending_init.
15039         (process_init_element): Add IMPLICIT argument.  Pass it down
15040         to output_init_element.
15041         (push_init_element, pop_init_level, set_designator): Adjust
15042         process_init_element callers.
15043         (set_nonincremental_init, set_nonincremental_init_from_string):
15044         Adjust add_pending_init callers.
15045         (output_pending_init_elements): Adjust output_init_element callers.
15046         * c-tree.h (process_init_element): Adjust prototype.
15047         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
15048         process_init_element callers.
15049
15050 \f
15051 Copyright (C) 2009 Free Software Foundation, Inc.
15052
15053 Copying and distribution of this file, with or without modification,
15054 are permitted in any medium without royalty provided the copyright
15055 notice and this notice are preserved.