OSDN Git Service

2009-04-16 Rafael Avila de Espindola <espindola@google.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
2
3         * common.opt (fhelp): Add Var(help_flag).
4         * gcc-plugin.h (plugin_info): Add help.
5         * plugin.c (plugin_name_args): Add help.
6         (register_plugin_info): Set plugin->help.
7         (print_help_one_plugin): New.
8         (print_plugins_help): New.
9         * plugin.h (print_plugins_help): New.
10         * toplev.c (toplev_main): Call print_plugins_help if needed.
11
12 2009-04-16  Richard Guenther  <rguenther@suse.de>
13
14         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
15         (gimple_ior_addresses_taken_1): New function.
16         (gimple_ior_addresses_taken): Likewise.
17         * gimple.h (struct gimple_statement_with_ops_base): Remove
18         addresses_taken member.
19         (gimple_ior_addresses_taken): Declare.
20         (gimple_addresses_taken, gimple_addresses_taken_ptr,
21         gimple_set_addresses_taken): Remove.
22         * ipa-reference.c (mark_address): New function.
23         (scan_stmt_for_static_refs): Use it for marking addresses taken.
24         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
25         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
26         (gimple_add_to_addresses_taken): Remove.
27         (get_tmr_operands): Call mark_address_taken.
28         (get_asm_expr_operands): Likewise.
29         (get_expr_operands): Likewise.
30         (build_ssa_operands): Do not clear the addresses_taken bitmap.
31         (free_stmt_operands): Do not free it.
32         * tree-ssa.c (delete_tree_ssa): Likewise.
33         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
34
35 2009-04-16  Richard Guenther  <rguenther@suse.de>
36
37         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
38         (walk_stmt_load_store_ops): Likewise.
39         * gimple.c (get_base_loadstore): New function.
40         (walk_stmt_load_store_addr_ops): Likewise.
41         (walk_stmt_load_store_ops): Likewise.
42         * ipa-pure-const.c (check_op): Simplify.
43         (check_load, check_store): New functions.
44         (check_stmt): Use walk_stmt_load_store_ops.
45         * ipa-reference.c (mark_load): Adjust signature.
46         (mark_store): Likewise.
47         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
48
49 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
50
51         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
52         (plugin_info): New.
53         * opts.c (common_handle_option): Don't call print_version.
54         * plugin.c (plugin_name_args): Add version.
55         (register_plugin_info): New.
56         (register_callback): Handle PLUGIN_INFO.
57         (try_init_one_plugin): New.
58         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
59         if failed to init.
60         (finalize_one_plugin): New.
61         (finalize_plugins): New.
62         (print_one_plugin): New.
63         (print_plugins_versions): New.
64         * plugin.h (print_plugins_versions): New.
65         (finalize_plugins): New.
66         * toplev.c (compile_file): Don't call initialize_plugins.
67         (print_version): Call print_plugins_versions.
68         (toplev_main): Call initialize_plugins. Print version if needed.
69         Call finalize_plugins.
70
71 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
72
73         * common.opt (fversion): New.
74         * gcc.c (print_version): New.
75         (process_command): Don't print the version. Just set print_version.
76         (main): Print version. Call subprocesses if print_version and
77         verbose_flag are set.
78         * opts.c (common_handle_option): Handle OPT_fversion.
79
80 2009-04-16  Richard Guenther  <rguenther@suse.de>
81         Ira Rosen  <irar@il.ibm.com>
82
83         PR tree-optimization/39698
84         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
85         type of the reduction variable.  Only generate the def if
86         it is needed.
87
88         * omp-low.c (expand_omp_for_generic): When converting to a pointer
89         make sure to first convert to an integer of the same precision.
90         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
91         the type of the evolution correctly in computing the new
92         induction variable base.
93
94 2009-04-16  Richard Guenther  <rguenther@suse.de>
95
96         PR middle-end/39625
97         * tree-cfg.c (make_blocks): Split statements with to-be
98         abnormal SSA names on the lhs.
99
100 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
101
102         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
103         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
104         * c-typeck.c (really_start_incremental_init): Likewise.
105         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
106         (TARGET_INITIALIZER): Remove it.
107         * target.h (struct target): Remove vector_opaque_p.
108         * tree.c (build_opaque_vector_type): New.
109         * tree.h (TYPE_VECTOR_OPAQUE): New.
110         (build_opaque_vector_type): Declare.
111         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
112         * config/rs6000/rs6000.c (build_opaque_vector_type,
113         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
114         (rs6000_init_builtins): Use build_opaque_vector_type for
115         opaque_V4SI_type_node.
116
117 2009-04-15  Catherine Moore  <clm@codesourcery.com>
118
119         * debug.h (set_name):  Declare.
120         * dwarf2out.c (dwarf2out_set_name): Declare.
121         (dwarf2_debug_hooks): Add set_name.
122         (find_AT_string): New.
123         (add_AT_string): Call find_AT_string.
124         (dwarf2out_set_name): New.
125         * cp/decl.c (grokdeclarator): Call set_name.
126         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
127         * debug.c (do_nothing_debug_hooks):  Likewise.
128         * dbxout.c (dbx_debug_hooks): Likewise.
129         * sdbout.c (sdb_debug_hooks): Likewise.
130
131 2009-04-15  Michael Eager <eager@eagercon.com>
132
133         * config/rs6000/rs6000.c: rs6000_function_value: set function return
134         reg for single-precision FPU
135         * config/rs6000/rs6000.md: (movsi_internal1): only for !TARGET_SINGLE_FPU
136         (movsi_internal1_single): New: add pattern to move SI values to/from
137         single-precision FP regs.
138
139 2009-04-15  Richard Guenther  <rguenther@suse.de>
140
141         * omp-low.c (lower_rec_input_clauses): Build correct address
142         expressions.
143         (expand_omp_for_generic): Fix multiplication type.
144         * tree-loop-distribution.c (build_size_arg): Build a
145         size_t argument.
146         (generate_memset_zero): Fix types.
147         * tree-profile.c (prepare_instrumented_value): Correctly
148         widen a pointer.
149
150 2009-04-15  Ian Lance Taylor  <iant@google.com>
151
152         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
153         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
154         for -Wall and for -Wc++-compat.
155         (c_common_post_options): For C++, set warn_enum_compare if not
156         already set.
157         * c-tree.h (struct c_expr): Add field original_type.
158         (build_external_ref): Update declaration.
159         * c-parser.c (c_parser_braced_init): Set original_type.
160         (c_parser_initelt): Likewise.
161         (c_parser_expr_no_commas): Likewise.
162         (c_parser_conditional_expression): Likewise.
163         (c_parser_cast_expression): Likewise.
164         (c_parser_unary_expression): Likewise.  Pull setting of
165         original_code to top of function.
166         (c_parser_sizeof_expression): Set original_type.
167         (c_parser_alignof_expression): Likewise.
168         (c_parser_postfix_expression): Likewise.  Pull setting of
169         original_code to top of function.
170         (c_parser_postfix_expression_after_paren_type): Set
171         original_type.
172         (c_parser_postfix_expression_after_primary): Likewise.
173         (c_parser_expression): Likewise.
174         * c-typeck.c (build_external_ref): Add type parameter.  Change all
175         callers.
176         (c_expr_sizeof_expr): Set original_type field.
177         (parser_build_unary_op): Likewise.
178         (parser_build_binary_op): Likewise.  Optionally warn about
179         comparisons of enums of different types.
180         (digest_init): Set original_type field.
181         (really_start_incremental_init): Likewise.
182         (push_init_level, pop_init_level): Likewise.
183         * doc/invoke.texi (Warning Options): -Wenum-compare now
184         supported in C.
185
186 2009-04-15  Richard Guenther  <rguenther@suse.de>
187
188         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
189         out a necessary conversion.
190         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
191         names we didn't value number.
192         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
193
194 2009-04-15  Richard Guenther  <rguenther@suse.de>
195
196         PR tree-optimization/39764
197         * tree-ssa-ccp.c (get_value): Canonicalize value with
198         canonicalize_float_value.
199
200 2009-04-15  Jan Hubicka  <jh@suse.cz>
201
202         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
203         Wrong version of patch.
204
205 2009-04-15  Jan Hubicka  <jh@suse.cz>
206
207         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
208
209 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
210
211         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
212         our distinct integral and vector types.
213
214 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
215
216         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
217         * init.c (build_vtbl_address): Remove call to assemble_external.
218
219 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
220
221         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
222         output for other floating point modes.
223
224 2009-04-14  Diego Novillo  <dnovillo@google.com>
225
226         * diagnostic.c (diagnostic_report_diagnostic): Do not
227         warn about loaded plugins for DK_ERROR and DK_WARNING.
228         * c-decl.c (declspecs_add_type): Move call to
229         invoke_plugin_callbacks ...
230         * c-parser.c (c_parser_declspecs): ... here.
231         * plugin.c (dump_active_plugins): Tidy output.
232
233 2009-04-14  Diego Novillo  <dnovillo@google.com>
234             Le-Chun Wu  <lcwu@google.com>
235
236         * configure.ac: Add --enable-plugin support.
237         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
238         * Makefile.in (PLUGIN_H): Define.
239         Export ENABLE_PLUGIN and GMPINC to site.exp.
240         Add PLUGINLIBS to link command.
241         Add/modify dependencies for plugin.o and files including plugin.h.
242         (plugin.o): New.
243         * config.in: Regenerate.
244         
245         * opts.c (common_handle_option): Handle OPT_fplugin_ and
246         OPT_fplugin_arg_.
247
248 2009-04-14  Le-Chun Wu  <lcwu@google.com>
249
250         * tree-pass.h (register_one_dump_file): Add a prototype for
251         register_one_dump_file.
252         * toplev.c (compile_file): Call initialize_plugins.
253         (do_compile): Call invoke_plugin_callbacks.
254         (toplev_main): Call invoke_plugin_callbacks.
255         * common.opt: Add -fplugin= and -fplugin-arg-.
256         * gcc-plugin.h: New public header file for plugins to include.
257         * plugin.c: New source file.
258         * plugin.h: New internal header file.
259         * passes.c (register_one_dump_file): Make it external.
260         
261         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
262
263 2009-04-14  Diego Novillo  <dnovillo@google.com>
264
265         * doc/plugins.texi: New.
266         * doc/gccint.texi: Add reference to Plugins chapter.
267         * doc/invoke.texi: Document -fplugin and -fplugin-arg
268         * diagnostic.c (diagnostic_report_diagnostic): Warn about
269         loaded plugins, if any.
270         * timevar.def (TV_PLUGIN_INIT): Define.
271         (TV_PLUGIN_RUN): Define.
272         * plugin.c: Include timevar.h
273         (plugins_active_p): New.
274         (dump_active_plugins): New.
275         (debug_active_plugins): New.
276
277 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
278
279         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
280         library paths.
281         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
282
283 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
284
285         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
286         the same as a minus without a shift.
287
288 2009-04-14  Nick Clifton  <nickc@redhat.com>
289
290         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
291         comparisons with small integers will always produce a short
292         branch.
293
294 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
295
296         Merge:
297
298         2008-12-19  Diego Novillo  <dnovillo@google.com>
299
300                 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
301
302 2000-04-14  Richard Guenther  <rguenther@suse.de>
303
304         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
305         verification.
306         (verify_gimple_assign_binary): Likewise.  Handle shifts and
307         rotates correctly.
308         (verify_gimple_phi): Print the mismatched argument position.
309         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
310         Fix types.
311         (vect_update_init_of_dr): Likewise.
312         * matrix-reorg.c (transform_access_sites): Do what the
313         comment suggests.
314         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
315
316 2009-04-13  Michael Eager <eager@eagercon.com>
317
318         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
319         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
320         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
321         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file, 
322         remove duplicate config
323
324 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
325
326         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
327         file_name:line_number type locator of the call site.
328         
329 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
330
331         * genautomata.c: Put blank after comma.
332         (automaton_decls): New.
333         (struct unit_usage): Add comments to member next.
334         (store_alt_unit_usage): Keep the list ordered.
335         (unit_present_on_list_p, equal_alternatives_p): New.
336         (check_regexp_units_distribution): Check units distribution
337         correctness correctly.
338         (main): Don't write automata if error is found.  Return correct
339         exit code.
340         
341         * config/m68k/cf.md (cfv4_ds): Remove.
342         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
343         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
344
345         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
346         power4-load-ext, power4-store, power4-store-update,
347         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
348         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
349         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
350         power4-sqrt, power4-isync): Modify reservation to make correct
351         unit distribution to automata.
352
353         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
354         power5-store-update, power5-two, power5-three, power5-lmul,
355         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
356         
357 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
358
359         * except.c (pass_set_nothrow_function_flags): Set name and add
360         TODO_dump_func.
361         (set_nothrow_function_flags): Mention in the dump file when
362         changing a function to nothrow.
363
364 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
365
366         PR/39066
367         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
368         instead of unsigned long.
369
370 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
371
372         * config/arm/arm.c (return_used_this_function): Remove.
373         (arm_output_function_prologue): Remove use of
374         return_used_this_function.
375         (output_return_instruction): Replace use of
376         return_used_this_function
377         by cfun->machine->return_used_this_function.
378         (arm_output_epilogue): Likewise.
379         (arm_output_function_epilogue): Likewise.
380         (thumb_unexpanded_epilogue): Likewise.
381         * config/arm/arm.h (struct machine_function):
382         New member return_used_this_function.
383
384 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
385
386         * doc/install.texi: Correct description of default directory for
387         --with-gxx-include-dir.
388
389 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
390
391         * fold-const.c (build_range_check): Properly deal with enumeral and
392         boolean base types.
393
394 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
395
396         * doc/invoke.texi (max_gcse_passes): Remove documentation.
397         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
398         * params.h (MAX_GCSE_PASSES): Remove.
399         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
400         in sequence.  Remove ability to run multiple passes.
401         (bypass_jumps): Report run as third CPROP pass.
402
403 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
404
405         PR middle-end/39651
406         * except.c (can_throw_external): Look at each insn in a SEQUENCE
407         when deciding whether the whole SEQUENCE can throw.
408
409 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
410
411         PR target/39740
412         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
413         offseted label references.
414
415 2009-04-11  Jan Hubicka  <jh@suse.cz>
416
417         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
418
419 2009-04-11  Richard Guenther  <rguenther@suse.de>
420
421         PR middle-end/39732
422         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
423         return variables as TREE_ADDRESSABLE.
424
425 2009-04-11  Richard Guenther  <rguenther@suse.de>
426
427         PR tree-optimization/39713
428         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
429         reference trees have SSA_NAME operands.
430
431 2009-04-11  Richard Guenther  <rguenther@suse.de>
432
433         PR c/39712
434         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
435         address expressions.
436
437 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
438
439         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
440         match changes in Cygwin 1.7
441         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
442         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
443
444 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
445
446         PR tree-optimization/39701
447         * doc/invoke.texi (Optimization Options): Document change in
448         meaning and initialization of -fdelete-null-pointer-checks.
449
450 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
451
452         PR middle-end/39701
453         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
454
455         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
456         here.
457
458         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
459
460 2009-04-10  Chao-ying Fu  <fu@mips.com>
461
462         * doc/tm.texi (Instruction Output): Document
463         TARGET_ASM_FINAL_POSTSCAN_INSN.
464         * target.h (final_postscan_insn): New field in asm_out.
465         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
466         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
467         * final.c (final_scan_insn): Call
468         targetm.asm_out.final_postscan_insn after outputting
469         an asm macro and a normal instruction.
470
471         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
472         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
473         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
474         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
475         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
476
477 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
478
479         PR middle-end/39701
480         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
481         variables as non-NULL even with -fdelete-null-pointer-checks.
482
483 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
484
485         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
486
487 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
488
489         PR target/39678
490         * config/i386/i386.c (classify_argument): Handle SCmode with
491         (bit_offset % 64) != 0.
492
493 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
494
495         * doc/invoke.texi (Optimize Options): Add cross-reference to
496         -Q --help=optimizers examples.
497
498 2009-04-10  Ben Elliston  <bje@au.ibm.com>
499
500         PR target/36800
501         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
502         regalign for the reg == fpr and TDmode case.
503
504 2009-04-09  David Ayers  <ayers@fsfe.org>
505
506         PR objc/29200
507         * objc/objc-act.c (warn_with_method): Remove helper function.
508         (check_duplicates): Call warning and inform directly.
509         (really_start_method): Likewise.
510
511 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
512
513         * expmed.c (expand_divmod): Always use a comparison for a division
514         by a large unsigned integer.
515
516         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
517         for things others than variables or functions as nonzero.
518
519 2009-04-09  Nick Clifton  <nickc@redhat.com>
520
521         * unwind-compat.c: Change copyright header to refer to version
522         3 of the GNU General Public License with version 3.1 of the
523         GCC Runtime Library Exception and to point readers at the
524         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
525         * config/alpha/crtfastmath.c: Likewise.
526         * config/alpha/linux-unwind.h: Likewise.
527         * config/alpha/qrnnd.asm: Likewise.
528         * config/alpha/vms-crt0-64.c: Likewise.
529         * config/alpha/vms-crt0.c: Likewise.
530         * config/alpha/vms-dwarf2.asm: Likewise.
531         * config/alpha/vms-dwarf2eh.asm: Likewise.
532         * config/alpha/vms-psxcrt0-64.c: Likewise.
533         * config/alpha/vms-psxcrt0.c: Likewise.
534         * config/alpha/vms_tramp.asm: Likewise.
535         * config/arc/initfini.c: Likewise.
536         * config/arc/lib1funcs.asm: Likewise.
537         * config/arm/bpabi-v6m.S: Likewise.
538         * config/arm/bpabi.S: Likewise.
539         * config/arm/bpabi.c: Likewise.
540         * config/arm/crti.asm: Likewise.
541         * config/arm/crtn.asm: Likewise.
542         * config/arm/ieee754-df.S: Likewise.
543         * config/arm/ieee754-sf.S: Likewise.
544         * config/arm/lib1funcs.asm: Likewise.
545         * config/arm/libunwind.S: Likewise.
546         * config/arm/linux-atomic.c: Likewise.
547         * config/arm/mmintrin.h: Likewise.
548         * config/arm/pr-support.c: Likewise.
549         * config/arm/unaligned-funcs.c: Likewise.
550         * config/arm/unwind-arm.c: Likewise.
551         * config/arm/unwind-arm.h: Likewise.
552         * config/avr/libgcc.S: Likewise.
553         * config/bfin/crti.s: Likewise.
554         * config/bfin/crtlibid.s: Likewise.
555         * config/bfin/crtn.s: Likewise.
556         * config/bfin/lib1funcs.asm: Likewise.
557         * config/bfin/linux-unwind.h: Likewise.
558         * config/cris/arit.c: Likewise.
559         * config/cris/cris_abi_symbol.c: Likewise.
560         * config/darwin-64.c: Likewise.
561         * config/darwin-crt2.c: Likewise.
562         * config/darwin-crt3.c: Likewise.
563         * config/darwin.h: Likewise.
564         * config/dbxelf.h: Likewise.
565         * config/dfp-bit.c: Likewise.
566         * config/dfp-bit.h: Likewise.
567         * config/elfos.h: Likewise.
568         * config/fixed-bit.c: Likewise.
569         * config/fixed-bit.h: Likewise.
570         * config/fp-bit.c: Likewise.
571         * config/fp-bit.h: Likewise.
572         * config/fr30/crti.asm: Likewise.
573         * config/fr30/crtn.asm: Likewise.
574         * config/fr30/lib1funcs.asm: Likewise.
575         * config/freebsd-spec.h: Likewise.
576         * config/frv/cmovd.c: Likewise.
577         * config/frv/cmovh.c: Likewise.
578         * config/frv/cmovw.c: Likewise.
579         * config/frv/frvbegin.c: Likewise.
580         * config/frv/frvend.c: Likewise.
581         * config/frv/lib1funcs.asm: Likewise.
582         * config/glibc-stdint.h: Likewise.
583         * config/h8300/clzhi2.c: Likewise.
584         * config/h8300/crti.asm: Likewise.
585         * config/h8300/crtn.asm: Likewise.
586         * config/h8300/ctzhi2.c: Likewise.
587         * config/h8300/fixunssfsi.c: Likewise.
588         * config/h8300/lib1funcs.asm: Likewise.
589         * config/h8300/parityhi2.c: Likewise.
590         * config/h8300/popcounthi2.c: Likewise.
591         * config/i386/ammintrin.h: Likewise.
592         * config/i386/att.h: Likewise.
593         * config/i386/avxintrin.h: Likewise.
594         * config/i386/biarch64.h: Likewise.
595         * config/i386/bmmintrin.h: Likewise.
596         * config/i386/cpuid.h: Likewise.
597         * config/i386/cross-stdarg.h: Likewise.
598         * config/i386/crtfastmath.c: Likewise.
599         * config/i386/crtprec.c: Likewise.
600         * config/i386/cygming-crtbegin.c: Likewise.
601         * config/i386/cygming-crtend.c: Likewise.
602         * config/i386/cygwin.asm: Likewise.
603         * config/i386/emmintrin.h: Likewise.
604         * config/i386/gmm_malloc.h: Likewise.
605         * config/i386/gthr-win32.c: Likewise.
606         * config/i386/i386.h: Likewise.
607         * config/i386/immintrin.h: Likewise.
608         * config/i386/linux-unwind.h: Likewise.
609         * config/i386/linux64.h: Likewise.
610         * config/i386/mm3dnow.h: Likewise.
611         * config/i386/mmintrin-common.h: Likewise.
612         * config/i386/mmintrin.h: Likewise.
613         * config/i386/nmmintrin.h: Likewise.
614         * config/i386/pmm_malloc.h: Likewise.
615         * config/i386/pmmintrin.h: Likewise.
616         * config/i386/smmintrin.h: Likewise.
617         * config/i386/sol2-c1.asm: Likewise.
618         * config/i386/sol2-ci.asm: Likewise.
619         * config/i386/sol2-cn.asm: Likewise.
620         * config/i386/sol2-gc1.asm: Likewise.
621         * config/i386/tmmintrin.h: Likewise.
622         * config/i386/unix.h: Likewise.
623         * config/i386/w32-unwind.h: Likewise.
624         * config/i386/wmmintrin.h: Likewise.
625         * config/i386/x86-64.h: Likewise.
626         * config/i386/x86intrin.h: Likewise.
627         * config/i386/xmmintrin.h: Likewise.
628         * config/ia64/crtbegin.asm: Likewise.
629         * config/ia64/crtend.asm: Likewise.
630         * config/ia64/crtfastmath.c: Likewise.
631         * config/ia64/crti.asm: Likewise.
632         * config/ia64/crtn.asm: Likewise.
633         * config/ia64/fde-glibc.c: Likewise.
634         * config/ia64/lib1funcs.asm: Likewise.
635         * config/ia64/linux-unwind.h: Likewise.
636         * config/ia64/quadlib.c: Likewise.
637         * config/ia64/unwind-ia64.c: Likewise.
638         * config/linux.h: Likewise.
639         * config/m32c/m32c-lib1.S: Likewise.
640         * config/m32c/m32c-lib2-trapv.c: Likewise.
641         * config/m32c/m32c-lib2.c: Likewise.
642         * config/m32r/initfini.c: Likewise.
643         * config/m68hc11/larith.asm: Likewise.
644         * config/m68hc11/m68hc11-crt0.S: Likewise.
645         * config/m68k/cf.md: Likewise.
646         * config/m68k/crti.s: Likewise.
647         * config/m68k/crtn.s: Likewise.
648         * config/m68k/lb1sf68.asm: Likewise.
649         * config/m68k/linux-unwind.h: Likewise.
650         * config/mcore/crti.asm: Likewise.
651         * config/mcore/crtn.asm: Likewise.
652         * config/mcore/lib1.asm: Likewise.
653         * config/mips/linux-unwind.h: Likewise.
654         * config/mips/loongson.h: Likewise.
655         * config/mips/mips16.S: Likewise.
656         * config/mmix/crti.asm: Likewise.
657         * config/mmix/crtn.asm: Likewise.
658         * config/pa/fptr.c: Likewise.
659         * config/pa/hpux-unwind.h: Likewise.
660         * config/pa/lib2funcs.asm: Likewise.
661         * config/pa/linux-atomic.c: Likewise.
662         * config/pa/linux-unwind.h: Likewise.
663         * config/pa/milli64.S: Likewise.
664         * config/pa/quadlib.c: Likewise.
665         * config/pa/stublib.c: Likewise.
666         * config/picochip/libgccExtras/adddi3.asm: Likewise.
667         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
668         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
669         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
670         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
671         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
672         * config/picochip/libgccExtras/divmod15.asm: Likewise.
673         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
674         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
675         * config/picochip/libgccExtras/longjmp.asm: Likewise.
676         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
677         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
678         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
679         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
680         * config/picochip/libgccExtras/setjmp.asm: Likewise.
681         * config/picochip/libgccExtras/subdi3.asm: Likewise.
682         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
683         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
684         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
685         * config/rs6000/750cl.h: Likewise.
686         * config/rs6000/altivec.h: Likewise.
687         * config/rs6000/biarch64.h: Likewise.
688         * config/rs6000/crtresfpr.asm: Likewise.
689         * config/rs6000/crtresgpr.asm: Likewise.
690         * config/rs6000/crtresxfpr.asm: Likewise.
691         * config/rs6000/crtresxgpr.asm: Likewise.
692         * config/rs6000/crtsavfpr.asm: Likewise.
693         * config/rs6000/crtsavgpr.asm: Likewise.
694         * config/rs6000/darwin-asm.h: Likewise.
695         * config/rs6000/darwin-fallback.c: Likewise.
696         * config/rs6000/darwin-fpsave.asm: Likewise.
697         * config/rs6000/darwin-ldouble.c: Likewise.
698         * config/rs6000/darwin-tramp.asm: Likewise.
699         * config/rs6000/darwin-unwind.h: Likewise.
700         * config/rs6000/darwin-vecsave.asm: Likewise.
701         * config/rs6000/darwin-world.asm: Likewise.
702         * config/rs6000/e500crtres32gpr.asm: Likewise.
703         * config/rs6000/e500crtres64gpr.asm: Likewise.
704         * config/rs6000/e500crtres64gprctr.asm: Likewise.
705         * config/rs6000/e500crtrest32gpr.asm: Likewise.
706         * config/rs6000/e500crtrest64gpr.asm: Likewise.
707         * config/rs6000/e500crtresx32gpr.asm: Likewise.
708         * config/rs6000/e500crtresx64gpr.asm: Likewise.
709         * config/rs6000/e500crtsav32gpr.asm: Likewise.
710         * config/rs6000/e500crtsav64gpr.asm: Likewise.
711         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
712         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
713         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
714         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
715         * config/rs6000/eabi-ci.asm: Likewise.
716         * config/rs6000/eabi-cn.asm: Likewise.
717         * config/rs6000/eabi.asm: Likewise.
718         * config/rs6000/linux-unwind.h: Likewise.
719         * config/rs6000/linux64.h: Likewise.
720         * config/rs6000/paired.h: Likewise.
721         * config/rs6000/paired.md: Likewise.
722         * config/rs6000/ppc64-fp.c: Likewise.
723         * config/rs6000/ppu_intrinsics.h: Likewise.
724         * config/rs6000/rs6000.h: Likewise.
725         * config/rs6000/si2vmx.h: Likewise.
726         * config/rs6000/sol-ci.asm: Likewise.
727         * config/rs6000/sol-cn.asm: Likewise.
728         * config/rs6000/spe.h: Likewise.
729         * config/rs6000/spu2vmx.h: Likewise.
730         * config/rs6000/sysv4.h: Likewise.
731         * config/rs6000/tramp.asm: Likewise.
732         * config/rs6000/vec_types.h: Likewise.
733         * config/s390/linux-unwind.h: Likewise.
734         * config/s390/tpf-unwind.h: Likewise.
735         * config/score/crti.asm: Likewise.
736         * config/score/crtn.asm: Likewise.
737         * config/sh/crt1.asm: Likewise.
738         * config/sh/crti.asm: Likewise.
739         * config/sh/crtn.asm: Likewise.
740         * config/sh/divtab-sh4-300.c: Likewise.
741         * config/sh/divtab-sh4.c: Likewise.
742         * config/sh/divtab.c: Likewise.
743         * config/sh/lib1funcs-4-300.asm: Likewise.
744         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
745         * config/sh/lib1funcs.asm: Likewise.
746         * config/sh/lib1funcs.h: Likewise.
747         * config/sh/linux-atomic.asm: Likewise.
748         * config/sh/linux-unwind.h: Likewise.
749         * config/sh/shmedia.h: Likewise.
750         * config/sh/sshmedia.h: Likewise.
751         * config/sh/ushmedia.h: Likewise.
752         * config/sparc/crtfastmath.c: Likewise.
753         * config/sparc/linux-unwind.h: Likewise.
754         * config/sparc/sol2-c1.asm: Likewise.
755         * config/sparc/sol2-ci.asm: Likewise.
756         * config/sparc/sol2-cn.asm: Likewise.
757         * config/spu/divmodti4.c: Likewise.
758         * config/spu/divv2df3.c: Likewise.
759         * config/spu/float_disf.c: Likewise.
760         * config/spu/float_unsdidf.c: Likewise.
761         * config/spu/float_unsdisf.c: Likewise.
762         * config/spu/float_unssidf.c: Likewise.
763         * config/spu/mfc_multi_tag_release.c: Likewise.
764         * config/spu/mfc_multi_tag_reserve.c: Likewise.
765         * config/spu/mfc_tag_release.c: Likewise.
766         * config/spu/mfc_tag_reserve.c: Likewise.
767         * config/spu/mfc_tag_table.c: Likewise.
768         * config/spu/multi3.c: Likewise.
769         * config/spu/spu_internals.h: Likewise.
770         * config/spu/spu_intrinsics.h: Likewise.
771         * config/spu/spu_mfcio.h: Likewise.
772         * config/spu/vec_types.h: Likewise.
773         * config/spu/vmx2spu.h: Likewise.
774         * config/stormy16/stormy16-lib2.c: Likewise.
775         * config/svr4.h: Likewise.
776         * config/sync.c: Likewise.
777         * config/v850/lib1funcs.asm: Likewise.
778         * config/vxlib-tls.c: Likewise.
779         * config/vxlib.c: Likewise.
780         * config/vxworks-dummy.h: Likewise.
781         * config/xtensa/crti.asm: Likewise.
782         * config/xtensa/crtn.asm: Likewise.
783         * config/xtensa/ieee754-df.S: Likewise.
784         * config/xtensa/ieee754-sf.S: Likewise.
785         * config/xtensa/lib1funcs.asm: Likewise.
786         * config/xtensa/lib2funcs.S: Likewise.
787         * config/xtensa/linux-unwind.h: Likewise.
788         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
789         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
790         * coretypes.h: Likewise.
791         * crtstuff.c: Likewise.
792         * defaults.h: Likewise.
793         * dwarf2.h: Likewise.
794         * emutls.c: Likewise.
795         * gbl-ctors.h: Likewise.
796         * gcov-io.h: Likewise.
797         * ginclude/float.h: Likewise.
798         * ginclude/iso646.h: Likewise.
799         * ginclude/stdarg.h: Likewise.
800         * ginclude/stdbool.h: Likewise.
801         * ginclude/stddef.h: Likewise.
802         * ginclude/stdfix.h: Likewise.
803         * ginclude/stdint-gcc.h: Likewise.
804         * ginclude/tgmath.h: Likewise.
805         * gthr-aix.h: Likewise.
806         * gthr-dce.h: Likewise.
807         * gthr-gnat.c: Likewise.
808         * gthr-gnat.h: Likewise.
809         * gthr-lynx.h: Likewise.
810         * gthr-mipssde.h: Likewise.
811         * gthr-nks.h: Likewise.
812         * gthr-posix.c: Likewise.
813         * gthr-posix.h: Likewise.
814         * gthr-posix95.h: Likewise.
815         * gthr-rtems.h: Likewise.
816         * gthr-single.h: Likewise.
817         * gthr-solaris.h: Likewise.
818         * gthr-tpf.h: Likewise.
819         * gthr-vxworks.h: Likewise.
820         * gthr-win32.h: Likewise.
821         * gthr.h: Likewise.
822         * libgcc2.c: Likewise.
823         * libgcc2.h: Likewise.
824         * libgcov.c: Likewise.
825         * tsystem.h: Likewise.
826         * typeclass.h: Likewise.
827         * unwind-c.c: Likewise.
828         * unwind-compat.h: Likewise.
829         * unwind-dw2-fde-compat.c: Likewise.
830         * unwind-dw2-fde-darwin.c: Likewise.
831         * unwind-dw2-fde-glibc.c: Likewise.
832         * unwind-dw2-fde.c: Likewise.
833         * unwind-dw2-fde.h: Likewise.
834         * unwind-dw2.c: Likewise.
835         * unwind-dw2.h: Likewise.
836         * unwind-generic.h: Likewise.
837         * unwind-pe.h: Likewise.
838         * unwind-sjlj.c: Likewise.
839         * unwind.inc: Likewise.
840         * config/arm/neon-gen.ml: Change generated copyright header to
841         refer to version 3 of the GNU General Public License with
842         version 3.1 of the GCC Runtime Library Exception and to point
843         readers at the COPYING3 and COPYING3.RUNTIME files and the
844         FSF's license web page.
845         * config/arm/arm_neon.h: Regenerate.
846
847 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
848
849         * config/cris/cris.md: Change copyright header to refer to version
850         3 of the GNU General Public License.
851         * doc/install.texi2html: Change copyright header to refer to version
852         3 of the GNU General Public License and to point readers at the
853         COPYING3 file and the FSF's license web page.
854         * config/vax/linux.h: Likewise.
855
856 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
857
858         * config/i386/i386.md (cmpcc): New.
859         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
860         (sync_compare_and_swap_cc*): Delete.
861
862         * config/s390/s390.c (s390_compare_emitted): Remove.
863         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
864         s390_compare_emitted used to be handled.  Assert that modes match.
865         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
866         refer to sync_compare_and_swap_ccsi.
867         * config/s390/s390.h (s390_compare_emitted): Remove.
868         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
869         instead of s390_compare_emitted.
870         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
871         instead of s390_compare_emitted.
872         * config/s390/s390.md (cmpcc): New.
873         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
874         CC_REGNUM, do not pretend it's set.
875         (sync_compare_and_swap_cc*): Delete.
876         * config/s390/predicates.md (cc_reg_operand): New.
877
878         * expr.c (sync_compare_and_swap_cc): Delete.
879         * optabs.h (sync_compare_and_swap_cc): Delete.
880         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
881         is being used with can_compare_p.
882         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
883         (find_cc_set): New.
884         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
885         look for a MODE_CC set instead.  Use emit_store_flag.
886         (expand_compare_and_swap_loop): Likewise, with some additional
887         complication to avoid a force_reg when useless.  Use
888         emit_cmp_and_jump_insns.
889         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
890         * doc/md.texi (sync_compare_and_swap_cc): Merge with
891         sync_compare_and_swap documentation.
892
893 2009-04-09  Jan Hubicka  <jh@suse.cz>
894
895         * except.c (find_prev_try): Break out from ....
896         (duplicate_eh_regions): ... here; properly update prev_try pointers
897         when duplication part of tree.
898         (dump_eh_tree): Improve dumping.
899         (verify_eh_region): New.
900         (verify_eh_tree): Use it.
901
902 2009-04-06  Richard Guenther  <rguenther@suse.de>
903
904         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
905         &ARRAY addresses by adjusting their types and prepending
906         a conversion.
907         * tree-cfg.c (verify_gimple_assign_single): Verify that
908         addresses are correct.
909
910 2009-04-09  Richard Guenther  <rguenther@suse.de>
911
912         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
913         indices into an array reference if possible.
914         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
915         Fold POINTER_PLUS_EXPR statements with invariant address.
916
917 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
918
919         PR target/39634
920         * config.gcc (powerpc64-*-linux*): Always build biarch.
921
922 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
923
924         PR c/39613
925         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
926         it and pedwarn if this results in an INTEGER_CST.
927
928 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
929
930         * doc/install.texi: Update minimum GMP version.  Remove obsolete
931         text in MPFR section.
932
933 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
934
935         * dwarf2out.c (class_scope_p): New static inline.
936         (class_or_namespace_scope_p): Use it.
937         (gen_variable_die): Use DW_TAG_member tag for static data member
938         declarations instead of DW_TAG_variable.
939
940         PR middle-end/39573
941         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
942         variables.
943
944 2009-04-08  Richard Guenther  <rguenther@suse.de>
945
946         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
947         valueize random data.
948
949 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
950
951         * config.gcc (aix tm_file):  Add aix-stdint.h.
952         (aix tm clause use_gcc_stdint):  Set to wrap.
953         * config/rs6000/aix-stdint.h:  New file.
954         
955 2009-04-08  Richard Guenther  <rguenther@suse.de>
956
957         PR middle-end/36291
958         * tree-dfa.c (add_referenced_var): Do not recurse into
959         global initializers.
960         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
961         exposed variables.
962         (fold_const_aggregate_ref): Likewise.
963
964 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
965
966         * recog.c (ordered_comparison_operator): New.
967         * gensupport.c (std_preds): Add it.
968         * doc/md.texi (Machine-Independent Predicates): Document it.
969
970 2009-04-08  Jan Hubicka  <jh@suse.cz>
971
972         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
973         * function.h (rtl_eh): Remove exception_handler_label_map.
974         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
975         remove_exception_handler_label, for_each_eh_label_1): Remove.
976         (rtl_remove_unreachable_regions): Remove.
977         (convert_from_eh_region_ranges): Do not remove unreachable regions.
978         (find_exception_handler_labels): Don't build the hashtable.
979         (maybe_remove_eh_handler): Remove.
980         (for_each_eh_label): Rewrite to walk the tree.
981         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
982         * except.h (maybe_remove_eh_handler): Remove.
983         * passes.c (init_optimization_passes): Schedule second EH cleanup
984         before out-of-ssa.
985         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
986         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
987
988 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
989
990         * genoutput.c (validate_optab_operands): New.
991         (gen_insn, gen_expand): Call it.
992
993         * genflags.c (gen_insn): Detect misused iterators.
994         (main): Pass line_no to gen_insn, exit with status 1 on error.
995
996         * genextract.c (line_no): Make global.
997         (VEC_safe_set_locstr): Change assertion to error message.
998         (main): Exit with status 1 on error.
999
1000 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
1001
1002         PR c/39614
1003         PR c/39673
1004         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
1005         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
1006         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
1007         * c-convert.c (convert): Do not call fold on results of conversion
1008         functions when the result is a C_MAYBE_CONST_EXPR.
1009         * c-parser.c (c_parser_postfix_expression): Do not fold condition
1010         of __builtin_choose_expr.
1011         * c-typeck.c (remove_c_maybe_const_expr): New.
1012         (build_unary_op, build_conditional_expr, build_compound_expr,
1013         build_binary_op, c_objc_common_truthvalue_conversion): Call
1014         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
1015         integer operands.
1016
1017 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
1018
1019         * fold-const.c (const_binop): Combine two VECTOR_CST under operation 
1020         CODE to produce a new one. Add a prototype to use fold_convert_const
1021
1022 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
1023
1024         PR bootstrap/39660
1025         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
1026         mix declarations and code.
1027
1028 2009-04-08  Ben Elliston  <bje@au.ibm.com>
1029
1030         * gcc.c: Replace `CC' with `GCC' throughout.
1031
1032 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
1033
1034         * doc/invoke.texi: Document Atom support.
1035
1036 2009-04-07  Jason Merrill  <jason@redhat.com>
1037
1038         PR c++/25185
1039         * c-common.h, c-common.c: Add flag_pretty_templates.
1040         * c-opts.c (c_common_handle_option): Set it.
1041         * c.opt: Add -fno-pretty-templates.
1042         * doc/invoke.texi (C++ Dialect Options): Likewise.
1043
1044 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
1045
1046         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
1047         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
1048         (ia64_expand_builtin): Likewise.
1049
1050 2009-04-07  Martin Jambor  <mjambor@suse.cz>
1051
1052         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
1053         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
1054         ADDR_EXPRS are include too.
1055
1056 2009-04-07  Richard Guenther  <rguenther@suse.de>
1057
1058         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
1059         decls are only used if passes as parameters or if they are
1060         local statics and the call is not to a builtin.
1061         (call_may_clobber_ref_p_1): Likewise.
1062
1063 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
1064
1065         * expr.c (do_store_flag): Remove last argument.  Simplify code
1066         to avoid duplication of tests already done by can_compare_p.
1067         (expand_expr_real_1): Adjust caller.
1068
1069 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
1070
1071         * optabs.c (can_compare_p): Test the predicate of a
1072         cbranch and cstore pattern.
1073
1074 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
1075
1076         * expr.c (convert_move): Use emit_store_flag instead of
1077         "emulating" it.
1078
1079 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
1080
1081         * config/i386/i386.c (ix86_compare_emitted): Remove.
1082         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
1083         ix86_compare_op0 like ix86_compare_emitted used to be handled.
1084         * config/i386/i386.h (ix86_compare_emitted): Remove.
1085         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
1086         instead of ix86_compare_emitted.
1087         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
1088
1089 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
1090
1091         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
1092         Add t-sysroot-suffix to tmake_file.
1093         * config/print-sysroot-suffix.sh: New file.
1094         * config/t-sysroot-suffix: New file.
1095
1096 2009-04-07  Ben Elliston  <bje@au.ibm.com>
1097
1098         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
1099         as the latter produces a warning when the target does not support
1100         infinity.
1101
1102 2009-04-07  Ben Elliston  <bje@au.ibm.com>
1103
1104         * dfp.c: Replace type punning assignments with memcpy throughout.
1105         * Makefile.in (dfp.o-warn): Remove.
1106         
1107 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
1108
1109         PR target/39634
1110         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
1111         Include soft-fp/t-softfp after rs6000/t-linux64.
1112
1113 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
1114
1115         * stor-layout.c (set_sizetype): Use the full precision of their
1116         machine mode for bitsize types.
1117
1118 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
1119
1120         * config/i386/i386.md: Revert 2 accidental checkins.
1121
1122 2009-04-06  Joey Ye  <joey.ye@intel.com>
1123             Xuepeng Guo <xuepeng.guo@intel.com>
1124             H.J. Lu  <hongjiu.lu@intel.com>
1125
1126         Atom pipeline model, tuning and insn selection.
1127         * config.gcc (atom): Add atom config options and target.
1128
1129         * config/i386/atom.md: New.
1130
1131         * config/i386/i386.c (atom_cost): New cost.
1132         (m_ATOM): New macro flag.
1133         (initial_ix86_tune_features): Set m_ATOM.
1134         (x86_accumulate_outgoing_args): Likewise.
1135         (x86_arch_always_fancy_math_387): Likewise.
1136         (processor_target): Add Atom cost.
1137         (cpu_names): Add Atom cpu name.
1138         (override_options): Set Atom ISA.
1139         (ix86_issue_rate): New case PROCESSOR_ATOM.
1140         (ix86_adjust_cost): Likewise.
1141
1142         * config/i386/i386.h (TARGET_ATOM): New target macro.
1143         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
1144         (TARGET_OPT_AGU): New target option.
1145         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
1146         (processor_type): Add PROCESSOR_ATOM.
1147
1148         * config/i386/i386.md (cpu): Add new value "atom".
1149         (use_carry, movu): New attr.
1150         (atom.md): Include atom.md.
1151         (adddi3_carry_rex64): Set attr "use_carry".
1152         (addqi3_carry): Likewise.
1153         (addhi3_carry): Likewise.
1154         (addsi3_carry): Likewise.
1155         (*addsi3_carry_zext): Likewise.
1156         (subdi3_carry_rex64): Likewise.
1157         (subqi3_carry): Likewise.
1158         (subhi3_carry): Likewise.
1159         (subsi3_carry): Likewise.
1160         (x86_movdicc_0_m1_rex64): Likewise.
1161         (*x86_movdicc_0_m1_se): Likewise.
1162         (x86_movsicc_0_m1): Likewise.
1163         (*x86_movsicc_0_m1_se): Likewise.
1164         (*adddi_1_rex64): Emit add insn as much as possible.
1165         (*addsi_1): Likewise.
1166         (return_internal): Set atom_unit.
1167         (return_internal_long): Likewise.
1168         (return_pop_internal): Likewise.
1169         (*rcpsf2_sse): Set atom_sse_attr attr.
1170         (*qrt<mode>2_sse): Likewise.
1171         (*prefetch_sse): Likewise.
1172
1173         * config/i386/i386-c.c (ix86_target_macros_internal): New case
1174         PROCESSOR_ATOM.
1175         (ix86_target_macros_internal): Likewise.
1176
1177         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
1178         (*prefetch_sse_rex): Likewise.
1179         (sse_rcpv4sf2): Likewise.
1180         (sse_vmrcpv4sf2): Likewise.
1181         (sse_sqrtv4sf2): Likewise.
1182         (<sse>_vmsqrt<mode>2): Likewise.
1183         (sse_ldmxcsr): Likewise.
1184         (sse_stmxcsr): Likewise.
1185         (*sse_sfence): Likewise.
1186         (sse2_clflush): Likewise.
1187         (*sse2_mfence): Likewise.
1188         (*sse2_lfence): Likewise.
1189         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
1190         (<sse>_movup<ssemodesuffixf2c>): Likewise.
1191         (avx_movdqu<avxmodesuffix>): Likewise.
1192         (avx_lddqu<avxmodesuffix>): Likewise.
1193         (sse2_movntv2di): Change attr "type" to "ssemov".
1194         (sse2_movntsi): Likewise.
1195         (rsqrtv8sf2): Change attr "type" to "sseadd".
1196         (sse3_addsubv2df3): Set attr "atom_unit".
1197         (sse3_h<plusminus_insn>v4sf3): Likewise.
1198         (*sse2_pmaddwd): Likewise.
1199         (*vec_extractv2di_1_rex64): Likewise.
1200         (*vec_extractv2di_1_avx): Likewise.
1201         (sse2_psadbw): Likewise.
1202         (ssse3_phaddwv8hi3): Likewise.
1203         (ssse3_phaddwv4hi3): Likewise.
1204         (ssse3_phadddv4si3): Likewise.
1205         (ssse3_phadddv2si3): Likewise.
1206         (ssse3_phaddswv8hi3): Likewise.
1207         (ssse3_phaddswv4hi3): Likewise.
1208         (ssse3_phsubwv8hi3): Likewise.
1209         (ssse3_phsubwv4hi3): Likewise.
1210         (ssse3_phsubdv4si3): Likewise.
1211         (ssse3_phsubdv2si3): Likewise.
1212         (ssse3_phsubswv8hi3): Likewise.
1213         (ssse3_phsubswv4hi3): Likewise.
1214         (ssse3_pmaddubsw128): Likewise.
1215         (sse3_pmaddubsw: Likewise.
1216         (ssse3_palignrti): Likewise.
1217         (ssse3_palignrdi): Likewise.
1218
1219 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
1220
1221         * doc/install.texi (Specific): Fix two cross-references to MinGW.
1222
1223 2009-04-06  Richard Guenther  <rguenther@suse.de>
1224
1225         PR tree-optimization/28868
1226         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
1227         of which PHI results we inserted.
1228         (insert_into_preds_of_block): Record inserted PHIs.
1229         (eliminate): Eliminate redundant PHI nodes.
1230         (init_pre): Init inserted_phi_names.
1231
1232 2009-04-06  Richard Guenther  <rguenther@suse.de>
1233
1234         PR tree-optimization/39643
1235         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
1236         IMAGPART_EXPRs of complex constants.
1237         (execute_fold_all_builtins): If we folded a call queue
1238         TODO_update_address_taken.
1239
1240 2009-04-06  Jan Hubicka  <jh@suse.cz>
1241
1242         PR middle-end/39659
1243         * except.c (remove_unreachable_regions): Propagate may_contain_throw
1244         flag.
1245
1246 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
1247
1248         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
1249         delay slot.
1250         (ic_invalidate_array): Likewise.
1251
1252 2009-04-06  Hariharan Sandanagobalane <hariharan@picochip.com>
1253
1254         * calls.c (emit_library_call_value_1): Fix a problem with parameter
1255         alignment for library calls.
1256
1257 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
1258
1259         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
1260         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
1261         * config/i386/mingw-stdint.h:  New file.
1262
1263 2009-04-05  Richard Guenther  <rguenther@suse.de>
1264
1265         PR tree-optimization/39648
1266         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
1267         our &A vs. &A[0] IL deficiencies.
1268
1269 2009-04-04  Jan Hubicka  <jh@suse.cz>
1270
1271         * except.c (sjlj_find_directly_reachable_regions): Be ready for
1272         removed toplevel regions.
1273         (sjlj_mark_call_sites): Likewise.
1274
1275 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
1276
1277         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
1278         (cygwin tm clause use_gcc_stdint):  Set to wrap.
1279         * config/i386/cygwin-stdint.h:  New file.
1280
1281 2009-04-04  Richard Guenther  <rguenther@suse.de>
1282
1283         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
1284         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
1285         single-argument PHIs if we are in loop-closed SSA form.
1286         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
1287         for the pre-condition.
1288         (slpeel_tree_peel_loop_to_edge): Likewise.
1289         (vect_build_loop_niters): Take an optional sequence to append stmts.
1290         (vect_generate_tmps_on_preheader): Likewise.
1291         (vect_do_peeling_for_loop_bound): Take extra guards for the
1292         pre-condition.
1293         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
1294         the cost model check.
1295         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
1296         guards if we are going to peel.  Do not apply versioning in that case.
1297         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
1298         (vect_do_peeling_for_loop_bound): Likewise.
1299         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
1300         loop bound only record extra pre-conditions, do not apply loop
1301         versioning.
1302
1303 2009-04-04  Richard Guenther  <rguenther@suse.de>
1304
1305         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
1306         renaming code.
1307
1308 2009-04-04  Jan Hubicka  <jh@suse.cz>
1309
1310         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
1311         last_basic_block for size of bb->index indexed array.
1312         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
1313         compute_out, link_btr_uses, build_btr_def_use_webs,
1314         build_btr_def_use_webs, migrate_btr_defs): Likewise.
1315
1316 2009-04-04  Jan Hubicka  <jh@suse.cz>
1317
1318         * except.c (remove_eh_handler_and_replace): Break out from ...
1319         (remove_eh_handler): ... here.
1320         (bring_to_root): New function.
1321         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
1322         handled ones, bring others to root of tree.
1323
1324 2009-04-04  Jan Hubicka  <jh@suse.cz>
1325
1326         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
1327         (all_phis_safe_to_merge): New function.
1328         (update_info): New structure.
1329         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
1330         (cleanup_empty_eh): Update SSA if possible.
1331
1332 2009-04-04  Richard Guenther  <rguenther@suse.de>
1333
1334         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
1335         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
1336         (append_vuse): Likewise.
1337
1338 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
1339
1340         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
1341         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
1342         instead of REG_UNSAVED for DW_CFA_undefined.
1343         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
1344         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
1345         outermost frame.
1346
1347 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
1348
1349         PR target/39501
1350         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
1351         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
1352         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
1353
1354 2009-04-04  Richard Guenther  <rguenther@suse.de>
1355
1356         PR tree-optimization/8781
1357         PR tree-optimization/37892
1358         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
1359         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
1360         (valueize_refs): Call it for *& valueizations.
1361         (shared_reference_ops_from_ref): Rename to ...
1362         (valueize_shared_reference_ops_from_ref): ... this and valueize.
1363         (shared_reference_ops_from_call): Rename to ...
1364         (valueize_shared_reference_ops_from_call): ... this and valueize.
1365         (vn_reference_lookup): Update.
1366         (visit_reference_op_call): Likewise.
1367         * tree-ssa-pre.c (phi_translate_1): Fold *&.
1368         (eliminate): Value-replace the call address in call statements.
1369
1370 2009-04-04  Richard Guenther  <rguenther@suse.de>
1371
1372         PR tree-optimization/39636
1373         * tree-ssa-forwprop.c
1374         (forward_propagate_addr_into_variable_array_index): Check for
1375         GIMPLE_ASSIGN before accessing the rhs code.
1376
1377 2009-04-03  Jason Merrill  <jason@redhat.com>
1378
1379         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
1380
1381 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
1382
1383         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
1384         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
1385         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
1386         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
1387         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
1388         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
1389         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
1390         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
1391         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
1392         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
1393         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
1394         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
1395         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
1396         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
1397         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
1398         Use fr_reg_or_fp01_operand instead of fr_register_operand
1399
1400         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
1401         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
1402         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
1403
1404 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
1405
1406         PR rtl-optimization/39607
1407         PR rtl-optimization/39631
1408
1409         Revert:
1410         
1411         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
1412         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
1413         instead of DF_LR_OUT.
1414         * ira-lives.c (process_bb_node_lives): Ditto.
1415         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
1416         instead of DF_LR_{OUT,IN}.
1417         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
1418         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
1419
1420 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
1421
1422         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
1423         (execute_lower_omp): Always run but take the short way out if -fopenmp
1424         is not given.
1425         (gate_lower_omp): Remove, forcing the pass manager to always run the
1426         pass and always set PROP_gimple_lomp.
1427         (pass_lower_omp): Remove gate function.
1428         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
1429         PROP_trees.  Instead, require it.
1430         * ipa-cp.c (pass_ipa_cp): Likewise.
1431         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
1432         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
1433         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
1434         and PROP_gimple_leh.
1435
1436 2009-04-03  Richard Guenther  <rguenther@suse.de>
1437
1438         PR middle-end/13146
1439         PR tree-optimization/23940
1440         PR tree-optimization/33237
1441         PR middle-end/33974
1442         PR middle-end/34093
1443         PR tree-optimization/36201
1444         PR tree-optimization/36230
1445         PR tree-optimization/38049
1446         PR tree-optimization/38207
1447         PR tree-optimization/38230
1448         PR tree-optimization/38301
1449         PR tree-optimization/38585
1450         PR middle-end/38895
1451         PR tree-optimization/38985
1452         PR tree-optimization/39299
1453         * tree-ssa-structalias.h: Remove.
1454         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
1455         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
1456         (struct vuse_element_d): Remove.
1457         (struct vuse_vec_d): Likewise.
1458         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
1459         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
1460         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
1461         VUSE_ELEMENT_VAR): Likewise.
1462         (struct voptype_d): Likewise.
1463         (NUM_VOP_FREE_BUCKETS): Likewise.
1464         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
1465         (struct stmt_operands_d): Remove.
1466         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
1467         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
1468         VDEF_NUM, VDEF_VECT): Likewise.
1469         (copy_virtual_operands): Remove.
1470         (operand_build_cmp): Likewise.
1471         (create_ssa_artificial_load_stmt): Likewise.
1472         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
1473         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
1474         vuse_index and mayuse_index members.  Pack and move done and iter_type
1475         members to the front.
1476         (SSA_OP_VMAYUSE): Remove.
1477         (SSA_OP_VIRTUAL_USES): Adjust.
1478         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
1479         (unlink_stmt_vdef): Declare.
1480         (add_to_addressable_set): Remove.
1481         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
1482         (vrp_visit_stmt): Likewise.
1483         * doc/tree-ssa.texi (Alias analysis): Update.
1484         * doc/invoke.texi (max-aliased-vops): Remove docs.
1485         (avg-aliased-vops): Likewise.
1486         * tree-into-ssa.c (syms_to_rename): Remove.
1487         (need_to_update_vops_p): Likewise.
1488         (need_to_initialize_update_ssa_p): Rename to ...
1489         (update_ssa_initialized_fn): ... this.  Track function we are
1490         initialized for.
1491         (symbol_marked_for_renaming): Simplify.
1492         (add_new_name_mapping): Do not set need_to_update_vops_p.
1493         (dump_currdefs): Use SYMS_TO_RENAME.
1494         (rewrite_update_stmt): Always walk all uses/defs.
1495         (dump_update_ssa): Adjust.
1496         (init_update_ssa): Take function argument.  Track what we are
1497         initialized for.
1498         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
1499         (create_new_def_for): Initialize for cfun, assert we are initialized
1500         for cfun.
1501         (mark_sym_for_renaming): Simplify.
1502         (mark_set_for_renaming): Do not initialize update-ssa.
1503         (need_ssa_update_p): Simplify.  Take function argument.
1504         (name_mappings_registered_p): Assert we ask for the correct function.
1505         (name_registered_for_update_p): Likewise.
1506         (ssa_names_to_replace): Likewise.
1507         (release_ssa_name_after_update_ssa): Likewise.
1508         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
1509         (dump_decl_set): Do not print a newline.
1510         (debug_decl_set): Do it here.
1511         (dump_update_ssa): And here.
1512         * tree-ssa-loop-im.c (move_computations): Adjust.
1513         (movement_possibility): Likewise.
1514         (determine_max_movement): Likewise.
1515         (gather_mem_refs_stmt): Likewise.
1516         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
1517         or NAME_MEMORY_TAG.
1518         * tree-complex.c (update_all_vops): Remove.
1519         (expand_complex_move): Adjust.
1520         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
1521         Simplify test for memory referencing statement.  Exclude
1522         non-invariant ADDR_EXPRs.
1523         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
1524         * tree-loop-distribution.c (generate_memset_zero): Adjust.
1525         (rdg_flag_uses): Likewise.
1526         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
1527         related code.
1528         (tree_optimize_tail_calls_1): Also split the
1529         edge from the entry block if we have degenerate PHI nodes in
1530         the first basic block.
1531         * tree.c (init_ttree): Remove memory-tag related code.
1532         (tree_code_size): Likewise.
1533         (tree_node_structure): Likewise.
1534         (build7_stat): Re-write to be build6_stat.
1535         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
1536         (SSA_VAR_P): Adjust.
1537         (struct tree_memory_tag): Remove.
1538         (struct tree_memory_partition_tag): Likewise.
1539         (union tree_node): Adjust.
1540         (build7): Re-write to be build6.
1541         * tree-pass.h (pass_reset_cc_flags): Remove.
1542         (TODO_update_address_taken): New flag.
1543         (pass_simple_dse): Remove.
1544         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
1545         * params.h (MAX_ALIASED_VOPS): Remove.
1546         (AVG_ALIASED_VOPS): Likewise.
1547         * omp-low.c (expand_omp_taskreg): Update SSA form.
1548         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
1549         aliases the lhs in a copy stmt.
1550         * tree-ssa-dse.c (struct address_walk_data): Remove.
1551         (memory_ssa_name_same): Likewise.
1552         (memory_address_same): Likewise.
1553         (get_kill_of_stmt_lhs): Likewise.
1554         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
1555         unused stores.  Look through PHI nodes into post-dominated regions.
1556         (dse_optimize_stmt): Simplify.  Properly remove stores.
1557         (tree_ssa_dse): Compute dominators.
1558         (execute_simple_dse): Remove.
1559         (pass_simple_dse): Likewise.
1560         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
1561         gimple_loaded_syms and gimple_stored_syms computation.
1562         * toplev.c (dump_memory_report): Dump alias and pta stats.
1563         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
1564         (vn_reference_eq): Likewise.
1565         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
1566         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
1567         valueize_vuses): Remove.
1568         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
1569         (get_def_ref_stmt_vuse): ... this.
1570         (vn_reference_lookup_2): New function.
1571         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
1572         walking equivalent vuses.  Simplify.
1573         (vn_reference_lookup): Likewise.
1574         (vn_reference_insert): Likewise.
1575         (vn_reference_insert_pieces): Likewise.
1576         (visit_reference_op_call): Simplify.
1577         (visit_reference_op_load): Likewise.
1578         (visit_reference_op_store): Likewise.
1579         (init_scc_vn): Remove shared_lookup_vuses initialization.
1580         (free_scc_vn): Remove shared_lookup_vuses freeing.
1581         (sort_vuses, sort_vuses_heap): Remove.
1582         (get_ref_from_reference_ops): Export.
1583         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
1584         vector with single vuse pointer.
1585         (vn_reference_lookup_pieces, vn_reference_lookup,
1586         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
1587         (shared_vuses_from_stmt): Remove.
1588         (get_ref_from_reference_ops): Declare.
1589         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
1590         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
1591         memory-tag related code.
1592         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
1593         (likely_value): Add comment, skip static-chain of call statements.
1594         (surely_varying_stmt_p): Adjust.
1595         (gimplify_and_update_call_from_tree): Likewise.
1596         (execute_fold_all_builtins): Do not rebuild alias info.
1597         (gimplify_and_update_call_from_tree): Properly update VOPs.
1598         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
1599         (copy_ref_info): Remove memory-tag related code.
1600         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
1601         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
1602         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
1603         computation.
1604         * tree-ssa-dom.c (gimple_p): Remove typedef.
1605         (eliminate_redundant_computations): Adjust.
1606         (record_equivalences_from_stmt): Likewise.
1607         (avail_expr_hash): Likewise.
1608         (avail_expr_eq): Likewise.
1609         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
1610         (stmt_makes_single_load): Likewise.
1611         (stmt_makes_single_store): Likewise.
1612         * tree-ssa-alias.c: Rewrite completely.
1613         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
1614         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
1615         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
1616         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
1617         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
1618         Remove public functions.
1619         (pass_reset_cc_flags): Remove.
1620         (pass_build_alias): Move ...
1621         * tree-ssa-structalias.c (pass_build_alias): ... here.
1622         * tree-ssa-alias.c (may_be_aliased): Move ...
1623         * tree-flow-inline.h (may_be_aliased): ... here.
1624         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
1625         count_uses_and_derefs): Move ...
1626         * gimple.c: ... here.
1627         * gimple.h (count_uses_and_derefs): Declare.
1628         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
1629         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
1630         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
1631         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
1632         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
1633         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
1634         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
1635         New functions.
1636         * tree-dfa.c (refs_may_alias_p): Move ...
1637         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
1638         * tree-ssa-alias.h: New file.
1639         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
1640         (statement_sink_location): Likewise.
1641         * opts.c (decode_options): Do not adjust max-aliased-vops or
1642         avg-aliased-vops values.
1643         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
1644         (TV_CALL_CLOBBER): Likewise.
1645         (TV_FLOW_SENSITIVE): Likewise.
1646         (TV_FLOW_INSENSITIVE): Likewise.
1647         (TV_MEMORY_PARTITIONING): Likewise.
1648         (TV_ALIAS_STMT_WALK): New timevar.
1649         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
1650         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
1651         (get_address_description): Remove memory-tag related code.
1652         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
1653         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
1654         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
1655         and immediate uses in statements.  Document.
1656         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
1657         (dump_symbols): Remove.
1658         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
1659         * alias.c (get_deref_alias_set): New function split out from ...
1660         (get_alias_set): ... here.
1661         * alias.h (get_deref_alias_set): Declare.
1662         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
1663         type parameter.  Remove restrict pointer handling.  Create a
1664         ref-all pointer in case type-based alias sets do not conflict.
1665         (vect_analyze_data_refs): Remove SMT related code.
1666         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
1667         (vectorizable_load): Likewise.
1668         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
1669         (DR_SYMBOL_TAG, DR_VOPS): Remove.
1670         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
1671         Ignore vops and SMTs.
1672         (dr_analyze_alias): Likewise..
1673         (free_data_ref): Likewise.
1674         (create_data_ref): Likewise.
1675         (analyze_all_data_dependences): Likewise.
1676         (get_references_in_stmt): Adjust.
1677         * tree-flow-inline.h (gimple_aliases_computed_p,
1678         gimple_addressable_vars, gimple_call_clobbered_vars,
1679         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
1680         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
1681         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
1682         gimple_mem_ref_stats): Remove.
1683         (gimple_vop): New function.
1684         (op_iter_next_use): Remove vuses and mayuses cases.
1685         (op_iter_next_def): Remove vdefs case.
1686         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
1687         (clear_and_done_ssa_iter): Do not set removed fields.
1688         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
1689         Assert we are not iterating over vuses or vdefs if not also
1690         iterating over uses or defs.
1691         (op_iter_init_use): Likewise.
1692         (op_iter_init_def): Likewise.
1693         (op_iter_next_vdef): Remove.
1694         (op_iter_next_mustdef): Likewise.
1695         (op_iter_init_vdef): Likewise.
1696         (compare_ssa_operands_equal): Likewise.
1697         (link_use_stmts_after): Handle vuse operand.
1698         (is_call_used): Use is_call_clobbered.
1699         (is_call_clobbered): Global variables are always call clobbered,
1700         query the call-clobbers bitmap.
1701         (mark_call_clobbered): Ignore global variables.
1702         (clear_call_clobbered): Likewise.
1703         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
1704         virtual operands sanity check.
1705         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
1706         Remove.
1707         (TARGET_MEM_REF): Remove TMR_TAG operand.
1708         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
1709         Remove call-clobber related code.
1710         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
1711         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
1712         partitions or escape reason.
1713         (get_single_def_stmt, get_single_def_stmt_from_phi,
1714         get_single_def_stmt_with_phi): Remove.
1715         (dump_referenced_vars): Tidy.
1716         (get_ref_base_and_extent): Allow bare decls.
1717         (collect_dfa_stats): Adjust.
1718         * graphite.c (rename_variables_in_stmt): Adjust.
1719         (graphite_copy_stmts_from_block): Likewise.
1720         (translate_clast): Likewise.
1721         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
1722         (EXPR_DIES): New.
1723         (translate_vuse_through_block): Use the oracle.
1724         (phi_translate_1): Adjust.
1725         (value_dies_in_block_x): Use the oracle.  Cache the outcome
1726         in EXPR_DIES.
1727         (valid_in_sets): Check if the VUSE for
1728         a REFERENCE is available.
1729         (eliminate): Do not remove stmts during elimination,
1730         instead queue and remove them afterwards.
1731         (do_pre): Do not rebuild alias info.
1732         (pass_pre): Run TODO_rebuild_alias before PRE.
1733         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
1734         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
1735         (mark_all_v_defs_stmt): Remove.
1736         (mark_all_v_defs_seq): Adjust.
1737         (sra_replace): Likewise.
1738         (scalarize_use): Likewise.
1739         (scalarize_copy): Likewise.
1740         (scalarize_init): Likewise.
1741         (scalarize_ldst): Likewise.
1742         (todoflags): Remove.
1743         (tree_sra): Do not rebuild alias info.
1744         (tree_sra_early): Adjust.
1745         (pass_sra): Run TODO_update_address_taken before SRA.
1746         * tree-predcom.c (set_alias_info): Remove.
1747         (prepare_initializers_chain): Do not call it.
1748         (mark_virtual_ops_for_renaming): Adjust.
1749         (mark_virtual_ops_for_renaming_list): Remove.
1750         (initialize_root_vars): Adjust.
1751         (initialize_root_vars_lm): Likewise.
1752         (prepare_initializers_chain): Likewise.
1753         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
1754         (may_propagate_copy_into_stmt): Likewise.
1755         (merge_alias_info): Do nothing for now.
1756         (propagate_tree_value_into_stmt): Adjust.
1757         (stmt_may_generate_copy): Likewise.
1758         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
1759         not mark symbols for renaming.
1760         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
1761         with the same statement, make sure to update the new pointed-to one.
1762         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
1763         call statements, do not mark symbols for renaming.
1764         (mark_operand_necessary): Dump something.
1765         (ref_may_be_aliased): New function.
1766         (mark_aliased_reaching_defs_necessary_1): New helper function.
1767         (mark_aliased_reaching_defs_necessary): Likewise.
1768         (mark_all_reaching_defs_necessary_1): Likewise.
1769         (mark_all_reaching_defs_necessary): Likewise.
1770         (propagate_necessity): Do not process virtual PHIs.  For
1771         non-aliased loads mark all reaching definitions as necessary.
1772         For aliased loads and stores mark the immediate dominating
1773         aliased clobbers as necessary.
1774         (visited): New global static.
1775         (perform_tree_ssa_dce): Free visited bitmap after propagating
1776         necessity.
1777         (remove_dead_phis): Perform simple dead virtual PHI removal.
1778         (remove_dead_stmt): Properly unlink virtual operands when
1779         removing stores.
1780         (eliminate_unnecessary_stmts): Schedule PHI removal after
1781         stmt removal.
1782         * tree-ssa-ter.c (is_replaceable_p): Adjust.
1783         (process_replaceable): Likewise.
1784         (find_replaceable_in_bb): Likewise.
1785         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
1786         based on the single gimple vop.
1787         (verify_flow_insensitive_alias_info): Remove.
1788         (verify_flow_sensitive_alias_info): Likewise.
1789         (verify_call_clobbering): Likewise.
1790         (verify_memory_partitions): Likewise.
1791         (verify_alias_info): Likewise.
1792         (verify_ssa): Adjust..
1793         (execute_update_addresses_taken): Export.  Update SSA
1794         manually.  Optimize only when optimizing.  Use a local bitmap.
1795         (pass_update_address_taken): Remove TODO_update_ssa, add
1796         TODO_dump_func.
1797         (pass_update_address_taken): Just use TODO_update_address_taken.
1798         (init_tree_ssa): Do not initialize addressable_vars.
1799         (verify_ssa): Verify new VUSE / VDEF properties.
1800         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
1801         Do not call verify_alias_info.
1802         (delete_tree_ssa): Clear the VUSE, VDEF operands.
1803         Do not free the loaded and stored syms bitmaps.  Reset the escaped
1804         and callused solutions.  Do not free addressable_vars.
1805         Remove memory-tag related code.
1806         (warn_uninitialized_var): Aliases are always available.
1807         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
1808         * lambda-code.c (can_put_in_inner_loop): Adjust.
1809         (can_put_after_inner_loop): Likewise.
1810         (perfect_nestify): Likewise.
1811         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
1812         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
1813         (vectorizable_conversion): Do not mark symbols for renaming.
1814         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
1815         (expand_call_inline): Unlink the calls virtual operands before
1816         replacing it.
1817         (tree_function_versioning): Do not call update_ssa if we are not
1818         updating clones.  Simplify.
1819         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
1820         (propagate_with_phi): Likewise..
1821         * tree-outof-ssa.c (create_temp): Remove memory tag and call
1822         clobber code.  Assert we are not aliased or global.
1823         * tree-flow.h: Include tree-ssa-alias.h
1824         (enum escape_type): Remove.
1825         (struct mem_sym_stats_d): Likewise.
1826         (struct mem_ref_stats_d): Likewise.
1827         (struct gimple_df): Add vop member.  Remove global_var,
1828         call_clobbered_vars, call_used_vars, addressable_vars,
1829         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
1830         escaped and callused members.
1831         (struct ptr_info_def): Remove all members, add points-to solution
1832         member pt.
1833         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
1834         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
1835         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
1836         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
1837         (tree-ssa-alias.o): Likewise.
1838         (toplev.o): Add tree-ssa-alias.h
1839         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
1840         * gimple.c (gimple_set_bb): Fix off-by-one error.
1841         (is_gimple_reg): Do not handle memory tags.
1842         (gimple_copy): Also copy virtual operands.
1843         Delay updating the statement.  Do not reset loaded and stored syms.
1844         (gimple_set_stored_syms): Remove.
1845         (gimple_set_loaded_syms): Likewise.
1846         (gimple_call_copy_skip_args): Copy the virtual operands
1847         and mark the new statement modified.
1848         * tree-ssa-structalias.c (may_alias_p): Remove.
1849         (set_uids_in_ptset): Take the alias set to prune with as
1850         parameter.  Fold in the alias test of may_alias_p.
1851         (compute_points_to_sets): Compute whether a ptr is dereferenced
1852         in a local sbitmap.
1853         (process_constraint): Deal with &ANYTHING on the lhs, reject all
1854         other ADDRESSOF constraints on the lhs.
1855         (get_constraint_for_component_ref): Assert that we don't get
1856         ADDRESSOF constraints from the base of the reference.
1857         Properly generate UNKNOWN_OFFSET for DEREF if needed.
1858         (struct variable_info): Remove collapsed_to member.
1859         (get_varinfo_fc): Remove.
1860         (new_var_info): Do not set collapsed_to.
1861         (dump_constraint): Do not follow cycles.
1862         (dump_constraint_graph): Likewise.
1863         (build_pred_graph): Likewise.
1864         (build_succ_graph): Likewise.
1865         (rewrite_constraints): Likewise.
1866         (do_simple_structure_copy): Remove.
1867         (do_rhs_deref_structure_copy): Remove.
1868         (do_lhs_deref_structure_copy): Remove.
1869         (collapse_rest_of_var): Remove.
1870         (do_structure_copy): Re-implement.
1871         (pta_stats): New global variable.
1872         (dump_pta_stats): New function.
1873         (struct constraint_expr): Make offset signed.
1874         (UNKNOWN_OFFSET): Define special value.
1875         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
1876         (solution_set_expand): New helper function split out from ...
1877         (do_sd_constraint): ... here.
1878         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
1879         (do_ds_constraint): Likewise.
1880         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
1881         and CALLUSED = *CALLUSED.
1882         (set_union_with_increment): Make inc argument signed.
1883         (type_safe): Remove.
1884         (get_constraint_for_ptr_offset): Handle unknown and negative
1885         constant offsets.
1886         (first_vi_for_offset): Handle offsets before start.  Bail
1887         out early for offsets beyond the variable extent.
1888         (first_or_preceding_vi_for_offset): New function.
1889         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
1890         Together with ESCAPED = *ESCAPED this properly computes reachability.
1891         (find_what_var_points_to): New function.
1892         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
1893         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
1894         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
1895         pt_solutions_intersect): New functions.
1896         (compute_call_used_vars): Remove.
1897         (compute_may_aliases): New main entry into PTA computation.
1898         * gimple.h (gimple_p): New typedef.
1899         (struct gimple_statement_base): Remove references_memory_p.
1900         (struct gimple_statement_with_memory_ops_base): Remove
1901         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
1902         members.
1903         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
1904         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
1905         gimple_set_references_memory): Remove.
1906         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
1907         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
1908         New functions.
1909         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
1910         (verify_expr): Allow RESULT_DECL.
1911         (gimple_duplicate_bb): Do not copy virtual operands.
1912         (gimple_duplicate_sese_region): Adjust.
1913         (gimple_duplicate_sese_tail): Likewise.
1914         (mark_virtual_ops_in_region): Remove.
1915         (move_sese_region_to_fn): Do not call it.
1916         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
1917         and pass_simple_dse.
1918         (execute_function_todo): Handle TODO_update_address_taken,
1919         call execute_update_addresses_taken for TODO_rebuild_alias.
1920         (execute_todo): Adjust.
1921         (execute_one_pass): Init dump files early.
1922         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
1923         call-clobbered.
1924         (create_general_new_stmt): Clear vops.
1925         * tree-ssa-reassoc.c (get_rank): Adjust.
1926         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
1927         symbols for renaming.
1928         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
1929         (PARAM_AVG_ALIASED_VOPS): Likewise.
1930         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
1931         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
1932         * tree-ssa-operands.c: Simplify for new virtual operand representation.
1933         (operand_build_cmp, copy_virtual_operands,
1934         create_ssa_artificial_load_stmt, add_to_addressable_set,
1935         gimple_add_to_addresses_taken): Remove public functions.
1936         (unlink_stmt_vdef): New function.
1937
1938 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
1939
1940         * config.gcc (powerpc-*-linux*): Merge variants.
1941
1942 2009-04-02  Chao-ying Fu  <fu@mips.com>
1943             James Grosbach <james.grosbach@microchip.com>
1944
1945         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
1946         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
1947         cop0_sp_offset.
1948         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
1949         keep_interrupts_masked_p, use_debug_exception_return_p.
1950         (mips_attribute_table): Add interrupt, use_shadow_register_set,
1951         keep_interrupts_masked, use_debug_exception_return.
1952         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
1953         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
1954         New functions.
1955         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
1956         (mips_print_operand): Process COP0 registers to print $0 .. $31
1957         correctly for GAS to process.
1958         (mips_interrupt_extra_call_saved_reg_p): New function.
1959         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
1960         extra registers.
1961         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
1962         (mips_compute_frame_info): Add supports for interrupt context that
1963         includes doubleword accumulators and COP0 registers.
1964         (mips_for_each_saved_acc): New function.
1965         (mips_for_each_saved_gpr_and_fpr): Change the function name from
1966         mips_for_each_saved_reg.
1967         (mips_save_reg): Save accumulators.
1968         (mips_kernel_reg_p): A new for_each_rtx callback.
1969         (mips_expand_prologue): Support interrupt handlers.
1970         (mips_restore_reg): Restore accumulators.
1971         (mips_expand_epilogue): Support interrupt handlers.
1972         (mips_can_use_return_insn): Return false for interrupt handlers.
1973         (mips_epilogue_uses): New function.
1974         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
1975         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
1976         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
1977         cop0_move): New instructions.
1978         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
1979         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
1980         defines.
1981         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
1982         New defines.
1983         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
1984         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
1985         interrupt handlers, we use K0 as the temporary register.
1986         (EPILOGUE_USES): Change to a function call.
1987         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
1988         handlers, we use K0 as the temporary register.
1989         
1990         * doc/extend.texi (Function Attributes): Document interrupt,
1991         use_shadow_register_set, keep_interrupts_masked,
1992         use_debug_exception_return for MIPS attributes.
1993
1994 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
1995
1996         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
1997         Remove a number of t-files from tmake_file.
1998         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
1999         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
2000         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2001         target_prototype, not TARGET_PROTOTYPE.
2002         (LINK_OS_GNU_SPEC): Define.
2003         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
2004         and darwin-ldoubdle.c.
2005
2006 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
2007
2008         PR driver/39293
2009         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
2010         (cpp_options): Ditto.
2011         (default_compilers): Ditto.
2012         (display_help): Ditto.
2013         (process_command): Ditto.
2014         (do_spec_1): Ditto.
2015         (set_input): Use lbasename instead of duplicate code.
2016         (save_temps_prefix): New static for -save-temps=obj.
2017         (save_temps_length): Ditto.
2018         
2019         * doc/invoke.texi (-save-temps=obj): Document new variant to
2020         -save-temps switch.
2021
2022 2009-04-02  Jeff Law  <law@redhat.com>
2023
2024         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
2025         variable.
2026
2027 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
2028
2029         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
2030         * configure: Regenerated.
2031
2032 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
2033
2034         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
2035         share the argument list.
2036
2037 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
2038
2039         Merge
2040
2041         2009-02-12  Diego Novillo  <dnovillo@google.com>
2042
2043         * varpool.c (debug_varpool): New.
2044         * cgraph.h (debug_varpool): Declare.
2045
2046 2009-04-02  Jan Hubicka  <jh@suse.cz>
2047
2048         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
2049         pass.
2050
2051 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
2052
2053         * config/i386/i386.c (ix86_abi): Move initialization to ...
2054         (override_options): Here.
2055
2056 2009-04-02  Christian Bruel  <christian.bruel@st.com>
2057
2058         * config/sh/sh.c (sh_dwarf_register_span): New function.
2059         (TARGET_DWARF_REGISTER_SPAN): Define.
2060         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
2061         
2062 2009-04-02  Ira Rosen  <irar@il.ibm.com>
2063
2064         PR tree-optimization/39595
2065         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of 
2066         interleaved loads group is not  greater than the SLP group size.
2067
2068 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
2069
2070         * builtins.c (is_builtin_name): New.
2071         (called_as_built_in): Use is_builtin_name.
2072         * tree.h (is_builtin_name): New.
2073         * varasm.c (incorporeal_function_p): Use is_builtin_name
2074
2075 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
2076
2077         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
2078
2079 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
2080
2081         PR c++/26693
2082         * c-decl.c: (clone_underlying_type): Move this ...
2083         * c-common.c (set_underlying_type): ... here.
2084         Also, make sure the function properly sets TYPE_STUB_DECL() on
2085         the newly created typedef variant type.
2086         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
2087         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
2088         points.
2089
2090 2009-04-02  Richard Guenther  <rguenther@suse.de>
2091
2092         PR tree-optimization/37221
2093         * tree-flow.h (degenerate_phi_result): Declare.
2094         * tree-ssa-dom.c (degenerate_phi_result): Export.
2095         * tree-scalar-evolution.c (analyze_initial_condition): If
2096         the initial condition is defined by a degenerate PHI node
2097         use the degenerate value.
2098
2099 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
2100
2101         PR rtl-optimization/39588
2102         * combine.c (merge_outer_ops): Do not set the constant when this
2103         is not necessary.
2104         (simplify_shift_const_1): Do not modify it either in this case.
2105
2106 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
2107
2108         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
2109         tuning is deprecated if -mtune value is set to an Itanium1 variant.
2110
2111 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
2112
2113         PR c/29027
2114         * c-lex.c (interpret_float): Default (no suffix) is double.
2115
2116 2009-04-1  Xinliang David Li  <davidxl@google.com>
2117
2118         * config/i386/i386.c (legitimate_constant_p): Recognize
2119         all one vector constant.
2120
2121 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
2122
2123         * gcc/config/vax/vax.c: Add #includes to silence warnings.
2124         Change #include order to silence two warnings.
2125
2126 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
2127
2128         * gcc/config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
2129         (ASM_SPEC): Pass -k to the assembler for PIC code.
2130
2131 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
2132
2133         * gcc/config.gcc: Add vax-*-linux* to the switch.
2134         * gcc/config/vax/linux.h: New file. (TARGET_VERSION,
2135         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
2136
2137 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
2138
2139         * gcc/config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
2140         Use predicate macros instead of GET_CODE() == foo.
2141         * gcc/config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
2142         ashlsi3, rotrsi3, <unnamed>): Likewise.
2143
2144 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
2145
2146         * gcc/config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
2147         jbbccihi, jbbccisi): Remova trailing whitespace.
2148         * gcc/config/vax/constraints.md: Likewise.
2149         * gcc/config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
2150         * gcc/config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
2151         * gcc/config/vax/predicates.md: Likewise.
2152         * gcc/config/vax/vax.c (print_operand_address, vax_output_int_move,
2153         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
2154         * gcc/config/vax/vax.h: Likewise.
2155         * gcc/config/vax/vax.md (nonlocal_goto): Likewise.
2156
2157 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
2158
2159         * gcc/config/vax/vax.c (vax_float_literal, vax_output_int_move)
2160         (indirectable_address_p, adjacent_operands_p): Add spaces around
2161         braces.
2162         * gcc/config/vax/vax-protos.h (adjacent_operands_p): Likewise.
2163
2164 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
2165
2166         * gcc/config/vax/vax.c (legitimate_constant_address_p,
2167         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
2168         index_term_p, reg_plus_index_p, legitimate_address_p,
2169         vax_mode_dependent_address_p): Update comments to match functions
2170         modified by the recent int->bool conversion.
2171
2172 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
2173
2174         * gcc/config/vax/builtins.md: Update copyright message.
2175         * gcc/config/vax/constraints.md: Likewise.
2176         * gcc/config/vax/netbsd-elf.h: Likewise.
2177         * gcc/config/vax/predicates.md: Likewise.
2178         * gcc/config/vax/vax-protos.h: Likewise.
2179         * gcc/config/vax/vax.c: Likewise.
2180         * gcc/config/vax/vax.h: Likewise.
2181         * gcc/config/vax/vax.md: Likewise.
2182         * gcc/config/vax/vax.opt: Likewise.
2183
2184 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
2185
2186         * gcc/config/vax/builtins.md (ffssi2, ffssi2_internal,
2187         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
2188         * gcc/config/vax/constraints.md (B, R): Likewise.
2189         * gcc/config/vax/predicates.md (external_memory_operand,
2190         nonimmediate_addsub_di_operand): Likewise.
2191         * gcc/config/vax/vax.c (vax_output_int_add): Likewise.
2192         * gcc/config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
2193         untyped_call): Likewise.
2194
2195 2009-04-01  Matt Thomas <matt@3am-software.com>
2196
2197         * config/vax/predicates.md: New file.
2198         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
2199         external_const_operand, nonsymbolic_operand, external_memory_operand,
2200         indirect_memory_operand, indexed_memory_operand,
2201         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
2202         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
2203         predicate.
2204         * config/vax/constraints.md: New file.
2205         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
2206         New constraint.
2207         * config/vax/builtins.md: New file.
2208         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
2209         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
2210         jbbccisi): Define.
2211         * config/vax/vax.opt (mqmath): Add option.
2212         * config/vax/vax.md (isfx): Extend with DI.
2213         (VAXintQH, VAXintQHSD): Define.
2214         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
2215         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
2216         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
2217         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
2218         (movdi): Update constraints and use vax_output_int_move().
2219         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
2220         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
2221         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
2222         nonlocal_goto): New.
2223         (mov<mode>): Extend accepted operand types.
2224         (subdi3_old): Rename from subdi3, change update constraints and use
2225         a new implementation.
2226         * gcc/config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
2227         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
2228         MOVE_RATIO, CLEAR_RATIO): Define.
2229         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
2230         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
2231         (PRINT_OPERAND): Redefine using a function instead of inlined code.
2232         * gcc/config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
2233         (split_quadword_operands): Make static and really allow variable
2234         splitting.
2235         (print_operand_address): Update for PIC generation.
2236         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
2237         indexable_address_p, fixup_mathdi_operand,
2238         vax_expand_addsub_di_operands, adjacent_operands_p): New.
2239         (vax_float_literal, legitimate_constant_p,
2240         indirectable_constant_address_p, index_term_p,
2241         reg_plus_index_p): Return bool instead of int.
2242         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
2243         where needed.
2244         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
2245         generation.
2246         (vax_output_conditional_branch): Indent.
2247         (legitimate_constant_address_p, indirectable_constant_address_p,
2248         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
2249         vax_mode_dependent_address_p): Return bool instead of int, update for
2250         PIC generation.
2251         * config/vax/vax-protos.h (legitimate_constant_address_p,
2252         legitimate_constant_p, legitimate_address_p,
2253         vax_mode_dependent_address_p): Change declaration to bool.
2254         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
2255         vax_expand_addsub_di_operands, vax_output_int_subtract,
2256         vax_output_movmemsi): Declare.
2257         (split_quadword_operands, vax_float_literal): Delete declaration.
2258         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
2259         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
2260         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
2261         ASM_OUTPUT_DWARF_PCREL): Define.
2262         (ASM_SPEC): Change definition to allow PIC generation.
2263
2264 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
2265
2266         * doc/sourcebuild.texi: Update front-end requirements.
2267
2268 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
2269
2270         PR target/39226
2271         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
2272         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
2273         (booldi3_internal3): Use boolean_or_operator instead of
2274         boolean_operator.
2275
2276 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
2277
2278         PR c/39605
2279         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
2280         declarator whose size is not an integer constant expression but
2281         folds to an integer constant, then treat it as a constant
2282         subsequently.
2283
2284 2009-04-01  Richard Guenther  <rguenther@suse.de>
2285
2286         * fold-const.c (fold_plusminus_mult_expr): Do not fold
2287         i * 4 + 2 to (i * 2 + 1) * 2.
2288
2289 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
2290
2291         PR c/37772
2292         * c-parser.c (c_parser_asm_statement): Skip until close paren and
2293         return if c_parser_asm_string_literal returned NULL.
2294
2295 2009-04-01  Nick Clifton  <nickc@redhat.com>
2296
2297         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
2298         already defined.
2299         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
2300         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
2301         other typedefs to avoid conflicts with libgcc2.c.  Define labels
2302         to gain 16-bit bit-manipulation functions from libgcc2.c and then
2303         include it.
2304         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
2305         to gain 16-bit trapping arithmetic functions from libgcc2.c and
2306         then include it.
2307
2308 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
2309
2310         * varasm.c (default_function_rodata_section): Declare DOT as
2311         const char*.
2312
2313 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
2314             Andrey Galkin <agalkin@hypercom.com>
2315
2316         PR/39492
2317         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
2318         Make object_name unique for each process.
2319
2320 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
2321
2322         PR other/39591
2323         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
2324         addressable variables in the parallel that could go out of scope while
2325         running queued tasks.
2326
2327 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
2328
2329         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
2330         (CASE_VALUES_THRESHOLD): Redefine.
2331         * config/avr/avr.c (avr_override_options): Remove initialization of
2332         avr_case_values_threshold variable.
2333         (avr_case_values_threshold): Remove variable. Add new function.
2334         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
2335         * config/avr/avr.opt (mno-tablejump): Remove option.
2336         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
2337
2338 2009-04-01  DJ Delorie  <dj@redhat.com>
2339
2340         * varasm.c (default_function_rodata_section): Don't assume
2341         anything about where the first '.' in the section name is.
2342
2343 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
2344
2345         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
2346         rs6000_emit_stack_tie.
2347
2348 2009-03-31  Ian Lance Taylor  <iant@google.com>
2349
2350         * tree-eh.c (tree_remove_unreachable_handlers): Compare
2351         gimple_code with GIMPLE_RESX, not RESX.
2352
2353 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
2354
2355         * c-common.c (c_get_ident): New.
2356         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
2357
2358 2009-04-01  Ben Elliston  <bje@au.ibm.com>
2359
2360         * config/rs6000/sysv4.opt (msdata): Improve option description.
2361
2362 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
2363
2364         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
2365         (divdf3_internal_lat): Remove.
2366         (divxf3_internal_lat): Remove.
2367         (divxf3_internal_thr): Remove.
2368         (divxf): Use divxf3_internal.
2369         * config/ia64/div.md (divsf3_internal_lat): New.
2370         (divdf3_internal_lat): New.
2371         (divxf3_internal): New.
2372
2373 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
2374
2375         PR c/448
2376         * Makefile.in (USE_GCC_STDINT): Define.
2377         (stmp-int-hdrs): Install stdint.h if applicable.
2378         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
2379         if known.
2380         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
2381         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
2382         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
2383         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
2384         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
2385         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
2386         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
2387         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
2388         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
2389         (c_common_nodes_and_builtins): Initialize
2390         underlying_wchar_type_node.  Do not initialize
2391         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
2392         nodes for new types.
2393         (c_stddef_cpp_builtins): Define macros for new types.
2394         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
2395         Remove.
2396         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
2397         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
2398         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
2399         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
2400         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
2401         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
2402         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
2403         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
2404         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
2405         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
2406         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
2407         int16_type_node, int32_type_node, int64_type_node,
2408         uint8_type_node, uint16_type_node, c_uint32_type_node,
2409         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
2410         int_least32_type_node, int_least64_type_node,
2411         uint_least8_type_node, uint_least16_type_node,
2412         uint_least32_type_node, uint_least64_type_node,
2413         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
2414         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
2415         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
2416         uintptr_type_node): Define.
2417         * c-cppbuiltin.c (builtin_define_constants,
2418         builtin_define_type_minmax): New.
2419         (builtin_define_stdint_macros): Define more macros.
2420         (c_cpp_builtins): Define more limit macros.
2421         (type_suffix): New.
2422         (builtin_define_type_max): Define in terms of
2423         builtin_define_type_minmax.  Remove is_long parameter.  All
2424         callers changed.
2425         * config.gcc (use_gcc_stdint): Define.
2426         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
2427         Add newlib-stdint.h for generic targets.
2428         * config/glibc-stdint.h, config/newlib-stdint.h,
2429         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
2430         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
2431         * config/score/score.h (UINTPTR_TYPE): Define.
2432         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
2433         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
2434         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
2435         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
2436         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
2437         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
2438         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
2439         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
2440         * config/spu/spu.h (STDINT_LONG32): Define.
2441         * configure.ac (use_gcc_stdint): Substitute.
2442         * configure: Regenerate.
2443         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
2444         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
2445         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
2446         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
2447         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
2448         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
2449         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
2450         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
2451         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
2452         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
2453         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
2454         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
2455         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
2456         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
2457         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
2458         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
2459         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
2460         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
2461         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
2462         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
2463         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
2464         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
2465         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
2466         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
2467         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
2468         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
2469         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
2470         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
2471         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
2472
2473 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
2474
2475         * loop-iv.c (suitable_set_for_replacement): Renamed from
2476         simplify_using_assignment; changed to return bool and to accept new
2477         args DEST and SRC.  Return true iff we find a source/destination pair
2478         that can be used to make a replacement, and fill SRC and DEST if so.
2479         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
2480         changed.
2481         (simplify_using_initial_values): Deal with altered regs here and track
2482         more precisely the effect they have on the validity of our expression.
2483
2484         * loop-iv.c (simplify_using_condition): A condition of the form
2485         (EQ REG CONST) can be used to simply make a substitution.
2486         (simplify_using_initial_values): Keep track of conditions we have seen
2487         and keep using them to simplify new expressions, while applying the
2488         same substitutions to them as to the expression.
2489
2490         * simplify-rtx.c (simplify_relational_operation_1): Simplify
2491         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
2492         GEU/LTU reversed.
2493
2494         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
2495         changed.  Use this when trying to improve the upper bound.
2496         Generate the comparison by using simplify_gen_relational.
2497
2498         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
2499
2500         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
2501         functions.
2502         (simplify_using_assignment, simplify_using_initial_values): Call 
2503         replace_in_expr to make replacements.  Call replace_single_def_regs
2504         once on the initial version of the expression.
2505
2506 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2507
2508         PR target/27237
2509         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
2510         
2511 2009-03-31  Richard Guenther  <rguenther@suse.de>
2512
2513         PR middle-end/31029
2514         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
2515         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
2516
2517 2009-03-31  Richard Guenther  <rguenther@suse.de>
2518
2519         * tree.h (div_if_zero_remainder): Declare.
2520         * fold-const.c (div_if_zero_remainder): Export.
2521         * tree-ssa-forwprop.c
2522         (forward_propagate_addr_into_variable_array_index): Handle
2523         constant array index addition outside of the variable index.
2524
2525 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
2526
2527         PR target/39592
2528         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
2529         define_splits, floatunssi<mode>2): Require x87 conversions from
2530         DImode to be permitted.
2531
2532 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
2533
2534         PR preprocessor/15638
2535         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
2536
2537 2009-03-31  Richard Guenther  <rguenther@suse.de>
2538
2539         PR middle-end/23401
2540         PR middle-end/27810
2541         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
2542         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
2543         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
2544         a separate statement.
2545         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
2546         (lookup_tmp_var): Likewise.
2547         (is_gimple_formal_tmp_or_call_rhs): Remove.
2548         (is_gimple_reg_or_call_rhs): Rename to ...
2549         (is_gimple_reg_rhs_or_call): ... this.
2550         (is_gimple_mem_or_call_rhs): Rename to ...
2551         (is_gimple_mem_rhs_or_call): ... this.
2552         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
2553         DECL_GIMPLE_REG_P only if is_formal is true.
2554         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
2555         for non-proper post-modify expression gimplification.
2556         (gimplify_self_mod_expr): For post-modify expressions gimplify
2557         the lvalue to a minimal lvalue.
2558         (rhs_predicate_for): Remove formal temp case.
2559         (gimplify_modify_expr_rhs): Likewise.
2560         (gimplify_addr_expr): Use is_gimple_reg.
2561         (gimplify_expr): Remove formal temp cases.
2562         (gimple_regimplify_operands): Likewise.
2563         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
2564         and FILTER_EXPR like constants.
2565         * gimple.c (walk_gimple_op): Fix val_only initialization, use
2566         is_gimple_reg.
2567         (is_gimple_formal_tmp_rhs): Remove.
2568         (is_gimple_reg_rhs): Remove special casing.
2569         (is_gimple_mem_rhs): Fix.
2570         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
2571         (is_gimple_formal_tmp_var): Remove.
2572         (is_gimple_formal_tmp_reg): Likewise.
2573         (is_gimple_min_lval): Allow invariant component ref parts.
2574         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
2575         is_gimple_formal_tmp_reg): Remove declarations.
2576         * tree-cfg.c (verify_expr): Verify that variables with address
2577         taken do not have DECL_GIMPLE_REG_P set.
2578         * tree-mudflap.c (mf_build_check_statement_for): Use
2579         force_gimple_operand instead of gimplify_expr.
2580
2581 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
2582
2583         * modulo-sched.c (sms_schedule_by_order): Pass the actual
2584         schedulable rows to compute_split_row.
2585
2586 2009-03-31  Ben Elliston  <bje@au.ibm.com>
2587
2588         PR target/31635
2589         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
2590         OPT_mvrsave.
2591
2592 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
2593
2594         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
2595         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
2596         * configure: Regenerate.
2597         * config.in: Regenerate.
2598         * config/rs6000/rs6000.opt (mtls-markers): Add.
2599         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
2600         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
2601         (tls_ld_aix, tls_ld_sysv): Likewise.
2602         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
2603         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
2604
2605 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
2606
2607         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
2608
2609 2009-03-30  Jan Hubicka  <jh@suse.cz>
2610
2611         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
2612         out of RESX.
2613         (tree_remove_unreachable_handlers): Cleanup EH predecestor
2614         detection and label handling.
2615
2616 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
2617
2618         * ira-int.h (ira_allocno): Rename left_conflicts_num to
2619         left_conflicts_size.
2620         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
2621         ALLOCNO_LEFT_CONFLICTS_SIZE.
2622
2623         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
2624         remove_allocno_from_bucket_and_push,
2625         allocno_spill_priority_compare, push_allocnos_to_stack,
2626         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
2627         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
2628         (setup_allocno_left_conflicts_num): Ditto.  Rename to
2629         setup_allocno_left_conflicts_size.
2630         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
2631         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
2632         setup_allocno_left_conflicts_size instead of
2633         setup_allocno_left_conflicts_num.
2634
2635         * ira-build.c (ira_create_allocno): Use
2636         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
2637         ALLOCNO_LEFT_CONFLICTS_NUM.
2638                 
2639 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
2640
2641         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
2642         instead of DF_LR_OUT.
2643
2644         * ira-lives.c (process_bb_node_lives): Ditto.
2645
2646         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
2647         instead of DF_LR_{OUT,IN}.
2648
2649         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
2650
2651         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
2652
2653 2009-03-30  Jan Hubicka  <jh@suse.cz>
2654
2655         * except.c (label_to_region_map): Fix thinko.
2656
2657 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
2658
2659         PR middle-end/38237
2660         * tree.h (tree_find_value): New declaration.
2661         * tree.c (tree_find_value): New function.
2662         * varasm.c (assemble_external): Avoid duplicate entries on lists.
2663
2664 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
2665
2666         PR debug/39563
2667         * c-decl.c (struct c_binding): Add locus field.
2668         (bind): Add locus argument, set locus field from it.
2669         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
2670         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
2671         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
2672         implicitly_declare, undeclared_variable, lookup_label,
2673         declare_label, c_make_fname_decl, c_builtin_function,
2674         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
2675         bind callers.
2676
2677 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
2678
2679         PR target/38781
2680         * config/i386/i386.c (classify_argument): Check total size of
2681         structure.
2682
2683 2009-03-30  Martin Jambor  <mjambor@suse.cz>
2684
2685         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
2686         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
2687         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
2688         respectively.
2689
2690         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
2691         seen_variable_array_ref while also traversing a union.
2692
2693         * tree-inline.c (optimize_inline_calls): Do not call
2694         cgraph_node_remove_callees.
2695         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
2696         (pass_remove_cgraph_callee_edges): New variable.
2697         * passes.c (init_optimization_passes): Add
2698         pass_remove_cgraph_callee_edges after early inlining and before all
2699         late intraprocedural passes.
2700
2701         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
2702
2703 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
2704
2705         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
2706         Fix typos in names.
2707
2708 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
2709
2710         * combine.c (simplify_comparison): Use have_insn_for.
2711         * dojump.c (do_jump): Likewise.
2712
2713 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
2714
2715         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
2716         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
2717         sparc_compare_op0 like sparc_compare_emitted used to be handled.
2718         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
2719         instead of sparc_compare_emitted.
2720         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
2721         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
2722         instead of sparc_compare_emitted.
2723
2724 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
2725
2726         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
2727         enter/exit cfglayout mode.
2728         (pass_partition_block): Require it.
2729         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
2730         (combine_instructions): Track basic blocks instead of labels.
2731         (update_cfg_for_uncondjump): New.
2732         (try_combine): Use it.  Update jumps after rescanning.
2733         (pass_combine): Require PROP_cfglayout.
2734         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
2735
2736 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
2737
2738         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
2739         Provide/destroy PROP_cfglayout respectively.
2740         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
2741         * tree-pass.h (PROP_cfglayout): New.
2742
2743 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
2744
2745         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
2746         fold_convert_const_fixed_from_fixed,
2747         fold_convert_const_fixed_from_int,
2748         fold_convert_const_fixed_from_real, fold_negate_const): Do not
2749         set TREE_CONSTANT_OVERFLOW.
2750         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
2751         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
2752
2753 2009-03-30  Ira Rosen  <irar@il.ibm.com>
2754
2755         * tree-vect-loop-manip.c: New file.
2756         * tree-vectorizer.c: Update documentation and included files.
2757         (vect_loop_location): Make extern.
2758         (rename_use_op): Move to tree-vect-loop-manip.c
2759         (rename_variables_in_bb, rename_variables_in_loop, 
2760         slpeel_update_phis_for_duplicate_loop, 
2761         slpeel_update_phi_nodes_for_guard1,
2762         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
2763         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
2764         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
2765         set_prologue_iterations, slpeel_tree_peel_loop_to_edge, 
2766         find_loop_location): Likewise.
2767         (new_stmt_vec_info): Move to tree-vect-stmts.c.
2768         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
2769         get_vectype_for_scalar_type, vect_is_simple_use,
2770         supportable_widening_operation, supportable_narrowing_operation):
2771         Likewise.
2772         (bb_in_loop_p): Move to tree-vect-loop.c.
2773         (new_loop_vec_info, destroy_loop_vec_info, 
2774         reduction_code_for_scalar_code, report_vect_op, 
2775         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
2776         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
2777         (vect_supportable_dr_alignment): Likewise.
2778         * tree-vectorizer.h (tree-data-ref.h): Include.
2779         (vect_loop_location): Declare.
2780         Reorganize function declarations according to the new file structure.
2781         * tree-vect-loop.c: New file.
2782         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c, 
2783         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
2784         * tree-vect-data-refs.c: New file.
2785         * tree-vect-patterns.c (timevar.h): Don't include.
2786         * tree-vect-stmts.c: New file.
2787         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c, 
2788         tree-vect-slp.c, tree-vect-loop.c.
2789         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and 
2790         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o, 
2791         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
2792         (tree-vect-analyze.o): Remove.
2793         (tree-vect-transform.o): Likewise.
2794         (tree-vect-data-refs.o): Add rule.
2795         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o, 
2796         tree-vect-slp.o): Likewise.
2797         (tree-vect-patterns.o): Remove redundant dependencies.
2798         (tree-vectorizer.o): Likewise.
2799         * tree-vect-slp.c: New file.
2800
2801 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2802
2803         * optc-gen.awk: Warn if an option flag has multiple different
2804         help strings.
2805
2806 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
2807
2808         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
2809         -floop-block): Document dependences on PPL, CLooG and Graphite.
2810
2811 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
2812
2813         PR rtl-optimization/323
2814         * c-common.c (c_fully_fold, convert_and_check,
2815         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
2816         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
2817         * c-common.def (EXCESS_PRECISION_EXPR): New.
2818         * c-cppbuiltin.c (builtin_define_float_constants): Define
2819         constants with enough digits for long double.
2820         * c-lex.c (interpret_float): Interpret constant with excess
2821         precision where appropriate.
2822         * c-opts.c (c_common_post_options): Set
2823         flag_excess_precision_cmdline.  Give an error for
2824         -fexcess-precision=standard for C++ for processors where the
2825         option is significant.
2826         * c-parser.c (c_parser_conditional_expression): Handle excess
2827         precision in condition.
2828         * c-typeck.c (convert_arguments): Handle arguments with excess
2829         precision.
2830         (build_unary_op): Move excess precision outside operation.
2831         (build_conditional_expr): Likewise.
2832         (build_compound_expr): Likewise.
2833         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
2834         (build_modify_expr): Handle excess precision in RHS.
2835         (convert_for_assignment): Handle excess precision in converted
2836         value.
2837         (digest_init, output_init_element, process_init_element): Handle
2838         excess precision in initializer.
2839         (c_finish_return): Handle excess precision in return value.
2840         (build_binary_op): Handle excess precision in operands and add
2841         excess precision as needed for operation.
2842         * common.opt (-fexcess-precision=): New option.
2843         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
2844         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
2845         For standard excess precision, output explicit conversion to and
2846         truncation from XFmode.
2847         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
2848         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
2849         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
2850         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
2851         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
2852         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
2853         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
2854         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
2855         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
2856         define_splits, sqrt<mode>2): Disable where appropriate for
2857         standard excess precision.
2858         * convert.c (convert_to_real): Do not shorten arithmetic to type
2859         for which excess precision would be used.
2860         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
2861         * doc/invoke.texi (-fexcess-precision=): Document option.
2862         (-mfpmath=): Correct index entry.
2863         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
2864         flag_excess_precision): New.
2865         * langhooks.c (lhd_post_options): Set
2866         flag_excess_precision_cmdline.
2867         * opts.c (common_handle_option): Handle -fexcess-precision=.
2868         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
2869         init_excess_precision): New.
2870         (lang_dependent_init_target): Call init_excess_precision.
2871         * tree.c (excess_precision_type): New.
2872         * tree.h (excess_precision_type): Declare.
2873
2874 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
2875
2876         PR c/35235
2877         * c-typeck.c (build_component_ref): Do not copy qualifiers from
2878         non-lvalue to component.
2879
2880 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
2881
2882         PR preprocessor/34695
2883         * Makefile.in (c-opts.o): Depend on c-tree.h.
2884         * c-common.c: Move down include of diagnostic.h.
2885         (done_lexing, c_cpp_error): New.
2886         * c-common.h (done_lexing): Declare.
2887         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
2888         (parse_in).
2889         * c-opts.c: Include c-tree.h.
2890         (c_common_init_options): Set preprocessor error callback.
2891         (c_common_handle_option): Do not set preprocessor
2892         inhibit_warnings, warnings_are_errors, warn_system_headers,
2893         pedantic_errors or inhibit_warnings flags.
2894         (c_common_post_options): Do not check cpp_errors (parse_in).
2895         (c_common_finish): Do not output dependencies if there were
2896         errors.  Do not check return value of cpp_finish.
2897         * c-ppoutput.c (pp_file_change): Set input_location.
2898         * c-tree.h (c_cpp_error): Declare.
2899         * diagnostic.c (diagnostic_set_info_translated): Also initialize
2900         override_column.
2901         (diagnostic_build_prefix): Check override_column.
2902         * diagnostic.h (diagnostic_info): Add override_column field.
2903         (diagnostic_override_column): Define.
2904
2905 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
2906
2907         * c-common.c (c_expand_expr, c_staticp): Remove.
2908         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
2909         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
2910         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
2911         * c-gimplify.c (gimplify_compound_literal_expr,
2912         optimize_compound_literals_in_ctor): Remove.
2913         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
2914         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
2915         * c-semantics.c (emit_local_var): Remove.
2916
2917         * langhooks-def.h (lhd_expand_expr): Remove.
2918         * langhooks.c (lhd_expand_expr): Remove.
2919         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
2920
2921         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
2922         handling from c-semantics.c; don't call into langhook.
2923         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
2924         * gimplify.c (gimplify_compound_literal_expr,
2925         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
2926         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
2927         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
2928         as was done in c-gimplify.c.
2929         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
2930         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
2931         Move from c-common.h.
2932         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
2933
2934         * tree.c (staticp): Do not call langhook.
2935         * langhooks.c (lhd_staticp): Delete.
2936         * langhooks-def.h (lhd_staticp): Delete prototype.
2937         (LANG_HOOKS_STATICP): Delete.
2938         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
2939
2940         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
2941         instead of DECL_STMTs.
2942
2943 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
2944
2945         PR c/456
2946         PR c/5675
2947         PR c/19976
2948         PR c/29116
2949         PR c/31871
2950         PR c/35198
2951         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
2952         void_type_node.
2953         (fold_call_expr): Return a NOP_EXPR from folding rather than the
2954         contained expression.
2955         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
2956         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
2957         conditional expressions for C.
2958         (decl_constant_value_for_optimization): Move from
2959         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
2960         whether optimizing and that the expression is a VAR_DECL not of
2961         array type instead of doing such checks in the caller.  Do not
2962         check pedantic.  Call gcc_unreachable for C++.
2963         * c-common.def (C_MAYBE_CONST_EXPR): New.
2964         * c-common.h (c_fully_fold, c_save_expr,
2965         decl_constant_value_for_optimization): New prototypes.
2966         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
2967         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
2968         EXPR_INT_CONST_OPERANDS): Define.
2969         * c-convert.c (convert): Strip nops from expression.
2970         * c-decl.c (groktypename): Take extra parameters expr and
2971         expr_const_operands.  Update call to grokdeclarator.
2972         (start_decl): Update call to grokdeclarator.  Add statement for
2973         expressions used in type of decl.
2974         (grokparm): Update call to grokdeclarator.
2975         (push_parm_decl): Update call to grokdeclarator.
2976         (build_compound_literal): Add parameter non_const and build a
2977         C_MAYBE_COSNT_EXPR if applicable.
2978         (grokdeclarator): Take extra parameters expr and
2979         expr_const_operands.  Track expressions used in declaration
2980         specifiers and declarators.  Fold array sizes and track whether
2981         they are constant expressions and whether they are integer
2982         constant expressions.
2983         (parser_xref_tag): Set expr and expr_const_operands fields in
2984         return value.
2985         (grokfield): Update call to grokdeclarator.
2986         (start_function): Update call to grokdeclarator.
2987         (build_null_declspecs): Set expr and expr_const_operands fields in
2988         return value.
2989         (declspecs_add_type): Handle expressions in typeof specifiers.
2990         * c-parser.c (c_parser_declspecs): Set expr and
2991         expr_const_operands fields for declaration specifiers.
2992         (c_parser_enum_specifier): Likewise.
2993         (c_parser_struct_or_union_specifier): Likewise.
2994         (c_parser_typeof_specifier): Likewise.  Update call to
2995         groktypename.  Fold expression as needed.  Return expressions with
2996         type instead of adding statements.
2997         (c_parser_attributes): Update calls to c_parser_expr_list.
2998         (c_parser_statement_after_labels): Fold expression before passing
2999         to objc_build_throw_stmt.
3000         (c_parser_condition): Fold expression.
3001         (c_parser_asm_operands): Fold expression.
3002         (c_parser_conditional_expression): Use c_save_expr.  Update call
3003         to build_conditional_expr.
3004         (c_parser_alignof_expression): Update call to groktypename.
3005         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
3006         original_code.  Fold expression argument of va_arg.  Create
3007         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
3008         argument to va_arg.  Update calls to groktypename.  Fold array
3009         index for offsetof.  Verify that first argument to
3010         __builtin_choose_expr has integer type.
3011         (c_parser_postfix_expression_after_paren_type): Update calls to
3012         groktypename and build_compound_literal.  Handle expressions with
3013         side effects in type name.
3014         (c_parser_postfix_expression_after_primary): Update call to
3015         c_parser_expr_list.  Set original_code for calls to
3016         __builtin_constant_p.
3017         (c_parser_expr_list): Take extra parameter fold_p.  Fold
3018         expressions if requested.
3019         (c_parser_objc_type_name): Update call to groktypename.
3020         (c_parser_objc_synchronized_statement): Fold expression.
3021         (c_parser_objc_receiver): Fold expression.
3022         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
3023         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
3024         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
3025         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
3026         (struct c_typespec): Add elements expr and expr_const_operands.
3027         (struct c_declspecs): Add elements expr and expr_const_operands.
3028         (groktypename, build_conditional_expr, build_compound_literal):
3029         Update prototypes.
3030         (in_late_binary_op): Declare.
3031         * c-typeck.c (note_integer_operands): New function.
3032         (in_late_binary_op): New variable.
3033         (decl_constant_value_for_broken_optimization): Move to c-common.c
3034         and rename to decl_constant_value_for_optimization.
3035         (default_function_array_conversion): Do not strip nops.
3036         (default_conversion): Do not call
3037         decl_constant_value_for_broken_optimization.
3038         (build_array_ref): Do not fold result.
3039         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
3040         result when operand is a VLA.
3041         (c_expr_sizeof_type): Update call to groktypename.  Handle
3042         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
3043         result when operand names a VLA type.
3044         (build_function_call): Update call to build_compound_literal.
3045         Only fold result for calls to __builtin_* functions.  Strip
3046         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
3047         the function designator.
3048         (convert_arguments): Fold arguments.  Update call to
3049         convert_for_assignment.
3050         (build_unary_op): Handle increment and decrement of
3051         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
3052         decrement earlier.  Fold operand of increment and decrement.
3053         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
3054         built for integer operand.  Wrap returns that are INTEGER_CSTs
3055         without being integer constant expressions or that have integer
3056         constant operands without being INTEGER_CSTs.
3057         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
3058         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
3059         result is an integer constant expression or can be used in
3060         unevaluated parts of one and avoid folding and wrap as
3061         appropriate.  Fold operands before possibly doing -Wsign-compare
3062         warnings.
3063         (build_compound_expr): Wrap result for C99 if operands can be used
3064         in integer constant expressions.
3065         (build_c_cast): Update call to digest_init.  Do not ignore
3066         overflow from casting floating-point constants to integers.  Wrap
3067         results that could be confused with integer constant expressions,
3068         null pointer constants or floating-point constants.
3069         (c_cast_expr): Update call to groktypename.  Handle expressions
3070         included in type name.
3071         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
3072         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
3073         Update calls to convert_for_assignment.
3074         (convert_for_assignment): Take new parameter
3075         null_pointer_constant.  Do not strip nops or call
3076         decl_constant_value_for_broken_optimization.  Set
3077         in_late_binary_op for conversions to boolean.
3078         (store_init_value): Update call to digest_init.
3079         (digest_init): Take new parameter null_pointer_constant.  Do not
3080         call decl_constant_value_for_broken_optimization.  pedwarn for
3081         initializers not constant expressions.  Update calls to
3082         convert_for_assignment.
3083         (constructor_nonconst): New.
3084         (struct constructor_stack): Add nonconst element.
3085         (really_start_incremental_init, push_init_level, pop_init_level):
3086         Handle constructor_nonconst and nonconst element.
3087         (set_init_index): Call constant_expression_warning for array
3088         designators.
3089         (output_init_element): Fold value.  Set constructor_nonconst as
3090         applicable.  pedwarn for initializers not constant expressions.
3091         Update call to digest_init.  Call constant_expression_warning
3092         where constant initializers are required.
3093         (process_init_element): Use c_save_expr.
3094         (c_finish_goto_ptr): Fold expression.
3095         (c_finish_return): Fold return value.  Update call to
3096         convert_for_assignment.
3097         (c_start_case): Fold switch expression.
3098         (c_process_expr_stmt): Fold expression.
3099         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
3100         ensure statement expression is not evaluated in constant expression.
3101         (build_binary_op): Track whether results are integer constant
3102         expressions or may occur in such, disable folding and wrap results
3103         as applicable.  Fold operands for -Wsign-compare warnings unless
3104         in_late_binary_op.
3105         (c_objc_common_truthvalue_conversion): Handle results folded to
3106         integer constants that are not integer constant expressions.
3107         * doc/extend.texi: Document when typeof operands are evaluated,
3108         that condition of __builtin_choose_expr is an integer constant
3109         expression, and more about use of __builtin_constant_p in
3110         initializers.
3111
3112 2009-03-29  Richard Guenther  <rguenther@suse.de>
3113
3114         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
3115         propagate addresses of array references.
3116
3117 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
3118
3119         * regmove.c (perhaps_ends_bb_p): Remove.
3120         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
3121         from INSN and check that the main loop stays within that basic block.
3122         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
3123         (regmove_forward_pass): Split out from regmove_optimize.  Use
3124         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
3125         (regmove_backward_pass): Split out from regmove_optimize.  Use
3126         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
3127         (regmove_optimize): Simplify.
3128
3129 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
3130
3131         PR target/39545
3132         * config/i386/i386.c (classify_argument): Ignore flexible array
3133         member in struct and warn ABI change.
3134
3135 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
3136
3137         * config/i386/i386-protos.h (ix86_agi_dependent): New.
3138
3139         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
3140         (ix86_adjust_cost): Updated.
3141
3142 2009-03-29  Jan Hubicka  <jh@suse.cz>
3143
3144         PR middle-end/28850
3145         * tree-pass.h (pass_cleanup_eh): New function.
3146         (remove_unreachable_regions): Break code handling RTL
3147         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
3148         that can not be reached by runtime.
3149         (can_be_reached_by_runtime): New function.
3150         (label_to_region_map): New function.
3151         (num_eh_regions): New function.
3152         (rtl_remove_unreachable_regions): New function.
3153         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
3154         (remove_eh_region): New function.
3155         * except.h: Include sbitmap and vecprim.
3156         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
3157         num_eh_regions): Declare.
3158         * passes.c (init_optimization_passes): Schedule cleanup_eh.
3159         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
3160         * tree-eh.c (tree_remove_unreachable_handlers): New function.
3161         (tree_empty_eh_handler_p): New function.
3162         (cleanup_empty_eh): New function.
3163         (cleanup_eh): New function.
3164         (pass_cleanup_eh): New function.
3165
3166 2009-03-29  Jan Hubicka  <jh@suse.cz>
3167
3168         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
3169         for removed regions.
3170
3171 2009-03-29  Jan Hubicka  <jh@suse.cz>
3172
3173         * except.c (dump_eh_tree): Dump all datastructures.
3174
3175 2009-03-29  Jan Hubicka  <jh@suse.cz>
3176
3177         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
3178         (duplicate_eh_regions_1): Likewise.
3179         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
3180         vector; call EH verification.
3181         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
3182         Be ready for region being removed.
3183
3184 2009-03-29  Jan Hubicka  <jh@suse.cz>
3185
3186         * bitmap.c (bitmap_last_set_bit): New function.
3187         * bitmap.h (bitmap_last_set_bit): Declare.
3188
3189 2009-03-29  David Ayers  <ayers@fsfe.org>
3190
3191         PR objc/27377
3192         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
3193         by calling objc_compare_types and surpress warnings about
3194         incompatible C pointers that are compatible ObjC pointers.
3195         
3196 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
3197
3198         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
3199         call initialize_inline_failed.
3200         (initialize_inline_failed): Move it from here ...
3201         * cgraph.c (initialize_inline_failed): ... to here.
3202         (cgraph_create_edge): Call initialize_inline_failed rather than
3203         setting inline_failed directly.
3204
3205 2009-03-29  Ben Elliston  <bje@au.ibm.com>
3206
3207         PR target/32542
3208         * sysv4.opt (msdata): Improve comment.
3209         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
3210         * sysv4.h (SVR4_ASM_SPEC): Likewise.
3211
3212 2009-03-29  Ben Elliston  <bje@au.ibm.com>
3213
3214         PR target/30451
3215         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
3216         load and store attributes.
3217
3218 2009-03-29  Ben Elliston  <bje@au.ibm.com>
3219
3220         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
3221         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
3222         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
3223         * doc/extend.texi (X86 Built-in Functions): Add index entries for
3224         __builtin_infq and __builtin_huge_valq.
3225
3226 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
3227
3228         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
3229         atmega8m1 devices.
3230         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3231         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
3232
3233 2009-03-28  Xinliang David Li  <davidxl@google.com>
3234
3235         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support. 
3236         (do_dbg_cnt): New function.
3237
3238 2009-03-28  Jan Hubicka  <jh@suse.cz>
3239
3240         Merge from pretty-ipa:
3241
3242         2009-03-27  Jan Hubicka  <jh@suse.cz>
3243
3244         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
3245         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
3246         * passes.c (function_called_by_processed_nodes_p): New.
3247         * ipa-pure-const.c (check_call): Fix handling of operands.
3248         (analyze_function): Dump debug output for skipped bodies.
3249         (local_pure_const): Use function_called_by_processed_nodes_p.
3250         * dwarf2out.c (reference_to_unused): Use output.
3251         * passes.c (do_per_function_toporder): Likewise.
3252
3253         2008-11-12  Jan Hubicka  <jh@suse.cz>
3254
3255         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
3256         * ipa-pure-const.c (funct_state_d): Add can throw field; make
3257         state_set_in_source enum
3258         (check_decl): Ignore memory tags; do not set fake looping flags;
3259         dump diagnostics.
3260         (check_operand, check_tree, check_rhs_var, check_lhs_var,
3261         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
3262         (check_call, analyze_function): Rewrite.
3263         (check_stmt): New.
3264         (add_new_function): Update call of analyze_function.
3265         (generate_summary): Add call of analyze_function.
3266         (propagate): Propagate can_throw; handle state_set_in_source correctly.
3267         (local_pure_const): New function.
3268         (pass_local_pure_const): New pass.
3269         * ipa-inline.c (inline_transform): Set after_inlining.
3270         * tree-eh.c (stmt_can_throw_external): New.
3271         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
3272         work with aliasing built.
3273         * tree-flow.h (stmt_can_throw_external): New.
3274         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
3275         and local pure/const pass in early and late optimization queue.
3276
3277 2009-03-28  Martin Jambor  <mjambor@suse.cz>
3278
3279         * fold-const.c (get_pointer_modulus_and_residue): New parameter
3280         allow_func_align.
3281         (fold_binary): Allow function decl aligment consideration is the
3282         second argument is integer constant one.
3283         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
3284         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
3285         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
3286
3287 2009-03-28  Jan Hubicka  <jh@suse.cz>
3288
3289         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
3290         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
3291         * function.h (rtl_data): Add nothrow flag.
3292         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
3293         set DECL_NOTHROW for AVAILABLE functions.
3294
3295 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
3296
3297         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
3298         following vector keyword has expansion starting with pixel or bool
3299         keyword, expand vector to __vector and pixel or bool to __pixel or
3300         __bool.
3301
3302         PR c++/39554
3303         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
3304         warn_if_disallowed_function_p): Removed.
3305         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
3306         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
3307         warning_if_disallowed_function_p.
3308         * flags.h (warn_if_disallowed_function_p,
3309         warn_disallowed_functions): Removed.
3310         * common.opt (Wdisallowed-function-list=): Removed.
3311         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
3312
3313 2009-03-28  Richard Guenther  <rguenther@suse.de>
3314
3315         PR tree-optimization/38723
3316         * tree-ssa-pre.c (compute_avail): Add all default definitions to
3317         the entry block.
3318
3319 2009-03-28  Jan Hubicka  <jh@suse.cz>
3320
3321         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
3322         test introduced by my previous patch.
3323
3324 2009-03-28  Richard Guenther  <rguenther@suse.de>
3325
3326         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
3327         the PHIs value undefined.
3328
3329 2009-03-28  Jan Hubicka  <jh@suse.cz>
3330
3331         * tree-pass.h (pass_fixup_cfg): New pass.
3332         * ipa-inline.c (inline_transform): Set
3333         always_inline_functions_inlined/after_inlining.
3334         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
3335         (pass_fixup_cfg): New pass.
3336         * passes.c (init_optimization_passes): Add fixup_cfg.
3337
3338 2009-03-28  Richard Guenther  <rguenther@suse.de>
3339
3340         PR tree-optimization/38458
3341         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
3342         argument use the arguments copy-of value.
3343
3344 2009-03-28  Richard Guenther  <rguenther@suse.de>
3345
3346         PR tree-optimization/38180
3347         * tree-ssa-ccp.c (get_default_value): Simplify.
3348         (likely_value): Likewise.
3349         (surely_varying_stmt_p): Properly handle VOP case.
3350         (ccp_initialize): Likewise.
3351         (ccp_fold): Handle propagating through *&.
3352         (fold_const_aggregate_ref): Also handle decls.
3353
3354 2009-03-28  Jan Hubicka  <jh@suse.cz>
3355
3356         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
3357         * cgraph.h (cgraph_node): Likewise.
3358         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
3359         (cgraph_reset_node): Use process flag.
3360         (cgraph_mark_functions_to_output): Likewise.
3361         (cgraph_expand_function): Likewise.
3362         (cgraph_expand_all_functions): Likewise.
3363         (cgraph_output_in_order): Likewise.
3364         * dwarf2out.c (reference_to_unused): Likewise.
3365         * passes.c do_per_function_toporder): Likewise.
3366
3367 2009-03-28  Jan Hubicka  <jh@suse.cz>
3368
3369         Bring from lto-branch:
3370
3371         2008-09-03  Doug Kwan  <dougkwan@google.com>
3372
3373         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
3374         enums instead of reason strings.
3375         * cgraph.c (cgraph_create_edge): Same.
3376         (cgraph_inline_failed_string): New function.
3377         * cgraph.h (cgraph_inline_failed_t): New enum type.
3378         (cgraph_inline_failed_string): New prototype.
3379         (struct cgraph_edge): Change type of INLINED_FAILED from constant
3380         char pointer to cgraph_inline_failed_t.
3381         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
3382         (cgraph_default_inline_p): Ditto.
3383         * gcc/cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
3384         to cgraph_inline_failed_t pointer.
3385         * cif-code.def: New file.
3386         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
3387         reason string.
3388         (cgraph_check_inline_limits): Change type of REASON to pointer to
3389         cgraph_inline_failed_t.  Replace reason strings with enums.
3390         (cgraph_default_inline_p): Ditto.
3391         (cgraph_recursive_inlining_p): Ditto.
3392         (update_caller_keys): Change type of FAILED_REASON to
3393         cgraph_inline_failed_t.
3394         (cgraph_set_inline_failed): Change type of REASON to pointer to
3395         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
3396         convert enums to strings for text output.
3397         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
3398         to be of type cgraph_inline_failed_t.  Replace reason strings with
3399         enums.  Call cgraph_inline_failed_string to covert enums
3400         to strings for text output.
3401         (cgraph_decide_inlining): Replace reason strings with enums.
3402         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
3403         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
3404         for text output.
3405         * tree-inline.c (expand_call_inline): Change type of REASON
3406         to cgraph_inline_failed_t.  Replace reason strings with enums.
3407         Call cgraph_inline_failed_string for text output.
3408         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
3409         (cgraph.o): Ditto.
3410
3411 2009-03-28  Jan Hubicka  <jh@suse.cz>
3412
3413         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
3414         cgraph_clone_node): Remove master clone handling.
3415         (cgraph_is_master_clone, cgraph_master_clone): Remove.
3416         * cgraph.h (master_clone): Remove.
3417         (cgraph_is_master_clone, cgraph_master_clone): Remove.
3418         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
3419         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
3420
3421 2009-03-28  Jan Hubicka  <jh@suse.cz>
3422
3423         * cgraph.c (cgraph_function_body_availability): Functions declared
3424         inline are always safe to assume that it is not going to be replaced.
3425
3426 2009-03-28  Richard Guenther  <rguenther@suse.de>
3427
3428         PR tree-optimization/38513
3429         * tree-ssa-pre.c (eliminate): Remove redundant stores.
3430         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
3431         EXC_PTR_EXPR and FILTER_EXPR.
3432         (get_ref_from_reference_ops): Likewise.
3433
3434 2009-03-28  Richard Guenther  <rguenther@suse.de>
3435
3436         PR tree-optimization/38968
3437         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
3438         Use FLOOR_MOD_EXPR to compute misalignment.
3439
3440 2009-03-28  Richard Guenther  <rguenther@suse.de>
3441
3442         PR tree-optimization/37795
3443         * tree.h (combine_comparisons): Declare.
3444         * fold-const.c (combine_comparisons): Export.
3445         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
3446         comparisons.
3447         (ifcombine_iforif): Use combine_comparisons.
3448
3449 2009-03-28  Jan Hubicka  <jh@suse.cz>
3450
3451         * tree-eh.c (inlinable_call_p): New function.
3452         (make_eh_edges): Use it.
3453         (verify_eh_edges): Use it.
3454         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
3455         * except.c (reachable_next_level): Add inlinable_function argument
3456         (sjlj_find_directly_reachable_regions): Update.
3457         (add_reachable_handler): Do not set saw_any_handlers.
3458         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
3459         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
3460         Add new inlinable call parameter.
3461         (can_throw_internal, can_throw_external): Update.
3462         * except.h (can_throw_internal_1, can_throw_external_1,
3463         foreach_reachable_handler): Update declaration.
3464
3465 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
3466
3467         * config/arm/t-arm-coff, config/h8300/coff.h,
3468         config/i386/i386-aout.h, config/i386/i386-coff.h,
3469         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
3470         config/pdp11/2bsd.h, config/rs6000/aix41.h,
3471         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
3472         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
3473         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
3474         sys-types.h: Remove.
3475         * Makefile.in: Remove protoize and fixproto support and references
3476         in comments.
3477         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
3478         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
3479         Remove.
3480         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
3481         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
3482         unprotoize$(exeext).
3483         (rest.encap): Don't depend on $(STMP_FIXPROTO)
3484         (.PHONY): Don't depend on proto.
3485         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
3486         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
3487         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
3488         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
3489         build/gen-protos.o, build/scan.o, xsys-protos.h,
3490         build/fix-header$(build_exeext), build/fix-header.o,
3491         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
3492         stmp-install-fixproto): Remove.
3493         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
3494         SYSCALLS.c or fixproto files.
3495         (install-common): Don't install protoize.
3496         (install-headers-tar, install-headers-cpio, install-headers-cp):
3497         Don't depend on $(STMP_FIXPROTO).
3498         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
3499         install fixproto files or write out fixproto settings.
3500         (uninstall): Don't uninstall protoize.
3501         * config.gcc (use_fixproto): Remove.
3502         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
3503         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
3504         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
3505         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
3506         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
3507         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
3508         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
3509         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
3510         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
3511         * config/t-vxworks (STMP_FIXPROTO): Remove.
3512         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
3513         STMP_FIXPROTO): Remove.
3514         * config.in, configure: Regenerate.
3515         * crtstuff.c (gid_t, uid_t): Don't undefine.
3516         * doc/install.texi: Change m68k-coff to m68k-elf in example.
3517         (arm-*-coff, arm-*-aout: Remove target entries.
3518         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
3519         Remove mention of AIX 4.1.
3520         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
3521         * doc/invoke.texi (Running Protoize): Remove.
3522         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
3523         (Protoize Caveats): Remove.
3524         * tsystem.h: Update comments on headers assumed to exist.
3525
3526 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
3527
3528         * genautomata.c: Add a new year to the copyright.  Add a new
3529         reference.
3530         (struct insn_reserv_decl): Add comments for member bypass_list.
3531         (find_bypass): Remove.
3532         (insert_bypass): New.
3533         (process_decls): Use insert_bypass.
3534         (output_internal_insn_latency_func): Output all bypasses with the
3535         same input insn in one switch case.
3536
3537         * rtl.def (define_bypass): Describe bypass choice.
3538         * doc/md.texi (define_bypass): Ditto.
3539
3540 2009-03-27  Richard Guenther  <rguenther@suse.de>
3541
3542         * gimplify.c (mark_addressable): Export.
3543         * tree-flow.h (mark_addressable): Declare.
3544         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
3545         * tree-ssa.c (verify_phi_args): Verify that address taken
3546         variables have TREE_ADDRESSABLE set.
3547
3548 2009-03-27  Richard Guenther  <rguenther@suse.de>
3549
3550         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
3551         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
3552         Do not mark decls TREE_ADDRESSABLE.
3553         (build_fold_addr_expr): Adjust.
3554         (fold_addr_expr): Remove.
3555         (fold_unary): Use build_fold_addr_expr.
3556         (fold_comparison): Likewise.
3557         (split_address_to_core_and_offset): Likewise.
3558         * coverage.c (tree_coverage_counter_addr): Mark the array decl
3559         TREE_ADDRESSABLE.
3560         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
3561         (gimplify_modify_expr_to_memcpy): Mark source and destination
3562         addressable.
3563         * omp-low.c (create_omp_child_function): Mark the object decl
3564         TREE_ADDRESSABLE.
3565         (lower_rec_input_clauses): Mark the var we take the address of
3566         TREE_ADDRESSABLE.
3567         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
3568
3569 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3570
3571         PR middle-end/39315
3572         * cfgexpand.c (expand_one_stack_var_at): Change alignment
3573         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
3574
3575 2009-03-27  Richard Guenther  <rguenther@suse.de>
3576
3577         PR tree-optimization/39120
3578         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
3579         constraints.
3580         (handle_lhs_call): Process return constraints.  Add escape
3581         constraints if necessary.
3582         (handle_const_call): Fill out return constraints.  Make nested
3583         case more precise.  Avoid consttmp if possible.
3584         (handle_pure_call): Fill out return constraints.  Avoid
3585         callused if possible.
3586         (find_func_aliases): Simplify call handling.
3587
3588 2009-03-27  Richard Guenther  <rguenther@suse.de>
3589
3590         PR tree-optimization/39120
3591         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
3592         as a representative.
3593         (solve_graph): Do propagate CALLUSED.
3594         (handle_pure_call): Use a scalar constraint from CALLUSED for
3595         the return value.
3596         (find_what_p_points_to): CALLUSED shall not appear in poins-to
3597         solutions.
3598
3599 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3600
3601         PR c/39323
3602         * c-common.c (handle_aligned_attribute): Properly check alignment
3603         overflow.  Use (1U << i) instead of (1 << i).
3604
3605         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
3606
3607         * expr.h (get_mem_align_offset): Updated.
3608
3609         * tree.h (tree_decl_common): Change align to "unsigned int" and
3610         move it before pointer_alias_set.
3611
3612 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3613             Jakub Jelinek  <jakub@redhat.com>
3614
3615         PR target/38034
3616         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
3617         gr_register_operand with gr_reg_or_0_operand.
3618         (cmpxchg_rel_di): Likewise.
3619         (sync_lock_test_and_set<mode>): Likewise.
3620
3621 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3622
3623         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
3624         (true_regnum): Likewise.
3625
3626         * rtlanal.c (subreg_info): Moved to ...
3627         * rtl.h (subreg_info): Here.  New.
3628         (subreg_get_info): New.
3629
3630         * rtlanal.c (subreg_get_info): Make it extern.
3631
3632 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3633
3634         PR target/39472
3635         * config/i386/i386.c (ix86_abi): New.
3636         (override_options): Handle -mabi=.
3637         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
3638         (ix86_call_abi_override): Likewise.
3639         (init_cumulative_args): Likewise.
3640         (function_arg_advance): Likewise.
3641         (function_arg_64): Likewise.
3642         (function_arg): Likewise.
3643         (ix86_pass_by_reference): Likewise.
3644         (ix86_function_value_regno_p): Likewise.
3645         (ix86_build_builtin_va_list_abi): Likewise.
3646         (setup_incoming_varargs_64): Likewise.
3647         (is_va_list_char_pointer): Likewise.
3648         (ix86_init_machine_status): Likewise.
3649         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
3650         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
3651         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
3652         (ix86_function_abi): Make it static and return enum calling_abi.
3653         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
3654         with ix86_abi.
3655         (ix86_fn_abi_va_list): Updated.
3656
3657         * config/i386/i386.h (ix86_abi): New.
3658         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
3659         (CONDITIONAL_REGISTER_USAGE): Likewise.
3660         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
3661         (machine_function): Likewise.
3662
3663         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
3664         with ix86_abi.
3665         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
3666         (STACK_BOUNDARY): Likewise.
3667         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
3668
3669         * config/i386/i386.opt (mabi=): New.
3670
3671         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
3672         return enum calling_abi.
3673         (ix86_function_type_abi): Likewise.
3674         (ix86_function_abi): Removed.
3675
3676         * doc/invoke.texi: Document -mabi= option for x86.
3677
3678 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3679
3680         * builtins.c (real_dconstp): Delete.
3681         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
3682
3683 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
3684             Jakub Jelinek  <jakub@redhat.com>
3685
3686         PR debug/37959
3687         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
3688         (gen_subprogram_die): When a function is explicit, generate the
3689         DW_AT_explicit attribute.
3690         * langhooks.h (struct lang_hooks_for_decls): Add
3691         function_decl_explicit_p langhook.
3692         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
3693         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
3694
3695 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
3696
3697         * builtins.c (fold_builtin_memory_op): Optimize memmove
3698         into memcpy if we can prove source and destination don't overlap.
3699
3700         * tree-inline.c: Include gt-tree-inline.h.
3701         (clone_fn_id_num): New variable.
3702         (clone_function_name): New function.
3703         (tree_function_versioning): Use it.
3704         * Makefile.in (GTFILES): Add tree-inline.c.
3705
3706 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
3707
3708         * BASE-VER: Change to 4.5.0.
3709
3710 2009-03-27  Xinliang David Li  <davidxl@google.com>
3711
3712         PR tree-optimization/39557
3713         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
3714
3715 2009-03-27  Xinliang David Li  <davidxl@google.com>
3716
3717         PR tree-optimization/39548
3718         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy 
3719         candidate check.
3720
3721 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3722
3723         * c-common.c (pointer_int_sum): Use %wd on return from
3724         tree_low_cst.
3725
3726 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3727
3728         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
3729         on return from tree_low_cst.
3730
3731 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3732
3733         PR c++/36799
3734         * ginclude/stdarg.h (va_copy): Define also for
3735         __GXX_EXPERIMENTAL_CXX0X__.
3736
3737 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3738
3739         PR c++/35652
3740         * builtins.h (c_strlen): Do not warn here.
3741         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
3742         * c-common.c (pointer_int_sum): Take an explicit location.
3743         Warn about offsets out of bounds.
3744         * c-common.h (pointer_int_sum): Adjust declaration.
3745
3746 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3747
3748         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
3749         markup glitch.
3750
3751 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
3752
3753         PR c++/39554
3754         * opts.c (warn_if_disallowed_function_p): Don't assume
3755         get_callee_fndecl must return non-NULL.
3756
3757 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
3758
3759         PR rtl-optimization/39522
3760         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
3761         when reg_reloaded_valid is set.
3762
3763 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3764
3765         * config/spu/divv2df3.c: New file.
3766         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
3767         (DPBIT_FUNCS): Filter out _div_df.
3768
3769 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
3770
3771         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
3772         a jump insn, count that jump in the distance to the loop start.
3773
3774 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
3775
3776         PR target/39523
3777         * config/sh/sh.c (calc_live_regs): Fix condition for global
3778         registers except PIC_OFFSET_TABLE_REGNUM.
3779
3780 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
3781
3782         PR/39518
3783         * doc/invoke.texi (-mconsole): New.
3784         (-mcygwin): New.
3785         (-mno-cygwin): New.
3786         (-mdll): New.
3787         (-mnop-fun-dllimport): New.
3788         (-mthread): New.
3789         (-mwin32): New.
3790         (-mwindows): New.
3791         (sub section "i386 and x86-64 Windows Options"): New.
3792
3793 2009-03-25  Ralf Corsépius <ralf.corsepius@rtems.org>
3794
3795         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
3796         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
3797
3798 2009-03-25  Richard Guenther  <rguenther@suse.de>
3799
3800         PR middle-end/39497
3801         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
3802         of -Wno-error.
3803
3804 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
3805
3806         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
3807         neither of haifa/selective schedulers are working.
3808
3809 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3810
3811         * doc/invoke.texi (Debugging Options): Fix description of
3812         -fno-merge-debug-strings.
3813
3814 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
3815
3816         * config/cris/libgcc.ver: New version-script.
3817         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
3818
3819         * configure.ac <GAS features, nop mnemonic>: Add pattern
3820         crisv32-*-* for "nop".
3821         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
3822         * configure: Regenerate.
3823
3824 2009-03-24  Ira Rosen  <irar@il.ibm.com>
3825
3826         PR tree-optimization/39529
3827         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
3828         mark_sym_for_renaming for the tag copied to the new vector
3829         pointer.
3830
3831 2009-03-24  Arthur Loiret  <aloiret@debian.org>
3832
3833         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
3834         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
3835         EXTRA_SPEC_FUNCTIONS.
3836         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
3837         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
3838         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
3839         -march and -mtune options.
3840
3841 2009-03-24  Ralf Corsépius <ralf.corsepius@rtems.org>
3842
3843         * config/m68k/t-rtems: Add m5329 multilib.
3844
3845 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
3846             Jakub Jelinek  <jakub@redhat.com>
3847
3848         PR debug/39524
3849         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
3850         nodes.
3851
3852 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
3853
3854         PR c/39495
3855         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
3856         instead of c_parser_expression_conv, if original_code isn't one of the
3857         4 allowed comparison codes, fail.
3858
3859 2009-03-23  Richard Guenther  <rguenther@suse.de>
3860
3861         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
3862         * tree.h (struct tree_type): Likewise.
3863         * reload.h (struct insn_chain): Likewise.
3864         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
3865         * function.h (struct function): Likewise.
3866         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
3867
3868 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
3869
3870         PR tree-optimization/39516
3871         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
3872
3873 2009-03-23 Bingfeng Mei  <bmei@broadcom.com>
3874
3875         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint 
3876         should be set true if BITS_PER_WORD of target is bigger than 32
3877
3878 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
3879
3880         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
3881         Translate -B-options to -rpath-link.  Correct existing
3882         rpath-link and conditionalize on !nostdlib.
3883
3884 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3885
3886         * doc/extend.texi (Function Attributes, Variable Attributes):
3887         Fix typos.
3888         * doc/invoke.texi (Debugging Options, Optimize Options)
3889         (i386 and x86-64 Options, MCore Options): Likewise.
3890
3891 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
3892
3893         PR debug/37890
3894         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
3895         it for block local namespace aliases.
3896         (gen_decl_die): Pass context_die to gen_namespace_die.
3897
3898 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
3899
3900         PR c/39495
3901         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
3902         minimum or maximum value.
3903
3904 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
3905
3906         * reginfo.c (globalize_reg): Recompute derived reg sets.
3907
3908 2009-03-19  Ozkan Sezer <sezeroz@gmail.com>
3909
3910         PR target/39063
3911         * libgcc2.c (mprotect): Do not use signed arguments for
3912         VirtualProtect, use DWORD arguments.  Also fix the 'may
3913         be used uninitialized' warning for the np variable.
3914
3915 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
3916
3917         PR target/39496
3918         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
3919         functions using regparm calling conventions when not optimizing.
3920         (ix86_function_sseregparm): Similarly for sseregparm calling
3921         conventions.
3922
3923 2009-03-19  Li Feng  <nemokingdom@gmail.com>
3924
3925         PR middle-end/39500
3926         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
3927         dependence if the first conflict is after niter iterations.
3928
3929 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
3930
3931         PR middle-end/38609
3932         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
3933         functions with dynamic stack-pointer adjustments.
3934
3935 2009-03-19  Ben Elliston  <bje@au.ibm.com>
3936
3937         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
3938         option; change to -msdata=data.
3939
3940 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3941
3942         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
3943         and -fopenmp.
3944
3945 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
3946
3947         PR target/35180
3948         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
3949
3950 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
3951
3952         * doc/invoke.texi (Code Gen Options): Expand discussion of
3953         -fno-common.
3954
3955 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
3956
3957         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
3958         * matrix-reorg.c (struct matrix_info): Likewise.
3959         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
3960         * rtl.h (struct mem_attrs): Likewise.
3961         * df.h (struct df): Likewise.
3962         * tree-data-ref.h (struct data_dependence_relation): Likewise.
3963         * ira-int.h (struct ira_allocno): Likewise.
3964         * df-scan.c (struct df_collection_rec): Likewise.
3965         * ira.c (struct equivalence): Likewise.
3966         * function.c (struct temp_slot): Likewise.
3967         * cfgloop.h (struct loop): Likewise.
3968
3969         PR debug/39485
3970         * function.c (use_register_for_decl): When not optimizing, disregard
3971         register keyword for variables with types containing methods.
3972
3973 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
3974
3975         PR middle-end/39447
3976         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
3977         (is_simple_operand): Call contains_component_ref_p before calling data
3978         reference analysis that would fail on COMPONENT_REFs.
3979
3980         * tree-vrp.c (search_for_addr_array): Fix formatting.
3981
3982 2009-03-18  Richard Guenther  <rguenther@suse.de>
3983
3984         * tree-vect-transform.c (vect_loop_versioning): Fold the
3985         generated comparisons.
3986         * tree-vectorizer.c (set_prologue_iterations): Likewise.
3987         (slpeel_tree_peel_loop_to_edge): Likewise.
3988
3989 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3990
3991         PR middle-end/37805
3992         * opts.c (print_specific_help): In addition to `undocumented',
3993         accept `separate' and `joined' flags if passed alone.  Describe
3994         output by the first matched one of those.
3995         (common_handle_option): Skip over empty strings.
3996         * gcc.c (display_help): Fix help string for `--help='.
3997         * doc/invoke.texi (Option Summary, Overall Options): With
3998         `--help=', classes and qualifiers can both be repeated, but
3999         only the latter can be negated.  One should not pass only
4000         negated qualifiers.  Fix markup and examples.
4001
4002         Revert
4003         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
4004         PR middle-end/37805
4005         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
4006         and -fhelp=separate.
4007
4008 2009-03-17  Jing Yu  <jingyu@google.com>
4009
4010         PR middle-end/39378
4011         * function.h (struct rtl_data): Move is_thunk from here...
4012         (struct function): ...to here.
4013         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
4014         * varasm.c (assemble_start_function): Change is_thunk from crtl to
4015         cfun.
4016         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
4017         cfun.
4018         (alpha_does_function_need_gp, alpha_start_function): Likewise.
4019         (alpha_output_function_end_prologue): Likewise.
4020         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
4021         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
4022         (rs6000_output_function_epilogue): Likewise.
4023         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
4024
4025 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
4026
4027         PR target/39482
4028         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
4029         from different units in a single alternative.
4030         (*truncdfsf_i387): Ditto.
4031         (*truncxfsf2_mixed): Ditto.
4032         (*truncxfdf2_mixed): Ditto.
4033
4034 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
4035
4036         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
4037         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
4038
4039         PR debug/39474
4040         * tree-ssa-live.c (remove_unused_locals): Don't remove local
4041         unused non-artificial variables when not optimizing.
4042
4043         PR debug/39471
4044         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
4045         DW_TAG_imported_module even if decl is IMPORTED_DECL with
4046         NAMESPACE_DECL in its DECL_INITIAL.
4047
4048         PR middle-end/39443
4049         * optabs.c (set_user_assembler_libfunc): New function.
4050         * expr.h (set_user_assembler_libfunc): New prototype.
4051         * c-common.c: Include libfuncs.h.
4052         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
4053         for memcmp, memset, memcpy, memmove and abort.
4054         * Makefile.in (c-common.o): Depend on libfuncs.h.
4055
4056         PR debug/39412
4057         * dwarf2out.c (gen_inlined_enumeration_type_die,
4058         gen_inlined_structure_type_die, gen_inlined_union_type_die,
4059         gen_tagged_type_instantiation_die): Removed.
4060         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
4061         do nothing.
4062
4063 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
4064
4065         PR testsuite/38526
4066         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
4067         its use.
4068         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
4069         (check-parallel-%): Ditto.
4070         (check-consistency): Ditto.
4071
4072 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
4073
4074         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
4075         local variable rhs by NULL_TREE.
4076
4077 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
4078
4079         PR target/39477
4080         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
4081
4082 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
4083
4084         PR target/39476
4085         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
4086
4087 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
4088
4089         PR target/39473
4090         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
4091         for ms->sysv ABI calls only in 64bit mode.
4092
4093         * config/i386/i386.md (untyped_call): Support 32bit.
4094
4095 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4096
4097         * doc/extend.texi: Replace x86_65 with x86_64.
4098
4099 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
4100
4101         PR tree-optimization/39455
4102         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
4103         mismatches for POINTER_TYPE_P (type).
4104         (number_of_iterations_le): Likewise.
4105
4106 2009-03-16  Hariharan Sandanagobalane <hariharan@picochip.com>
4107
4108         * config/picochip/picochip.c: Removed profiling support.
4109         * config/picochip/picochip.md: Removed profiling instruction.
4110         * config/picochip/picochip.h: Removed profiling builtin.
4111
4112 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
4113
4114         * doc/install.texi (--with-host-libstdcxx): Document.
4115
4116 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
4117
4118         PR target/34299
4119         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
4120         generate a warning if the function name does not begin with
4121         "__vector" and the function has either the 'signal' or 'interrupt'
4122         attribute, from here to ...
4123         (avr_declare_function_name): ...here. New function.
4124         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
4125         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
4126
4127 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
4128
4129         PR bootstrap/39454
4130         * cse.c (fold_rtx): Don't modify original const_arg1 when
4131         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
4132         separate variable instead.
4133         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
4134         from out of range shift counts.
4135         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
4136
4137 2008-03-13  Catherine Moore  <clm@codesourcery.com>
4138
4139         * gcc/config/i386/x-mingw32 (host-mingw32.o): Replace
4140         diagnostic.h with $(DIAGNOSTIC_H).
4141
4142 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
4143
4144         PR target/39431
4145         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
4146         predicate.
4147         * config/i386/sync.md (sync_compare_and_swap<mode>,
4148         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
4149         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
4150         into a register.
4151         (sync_double_compare_and_swapdi_pic,
4152         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
4153         cmpxchg8b_pic_memory_operand instead of just memory_operand.
4154
4155 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
4156
4157         PR target/39445
4158         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
4159
4160 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
4161
4162         PR target/39327
4163         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
4164         (avx_addsubv4df3): Likewise.
4165         (*avx_addsubv4sf3): Likewise.
4166         (sse3_addsubv4sf3): Likewise.
4167
4168 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
4169
4170         PR target/38824
4171         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
4172
4173 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
4174
4175         PR debug/39432
4176         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
4177         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
4178         registers for allocnos created from user-defined variables.
4179
4180 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4181
4182         PR target/39181
4183         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
4184         of non-integer mode as well.
4185
4186 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
4187
4188         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
4189         for functions for which the parameter types are unknown.
4190
4191 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
4192
4193         PR target/39137
4194         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
4195         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
4196         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
4197         * config/i386/i386.c (ix86_local_alignment): For
4198         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
4199         long long variables on the stack to avoid dynamic realignment.
4200         Allow the first argument to be a decl rather than type.
4201         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
4202
4203 2009-03-11  Nick Clifton  <nickc@redhat.com>
4204
4205         PR target/5362
4206         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
4207         options.
4208         Add description to mno-lsim option.
4209         * config/mcore/mcore.h: Remove comment about deprecated m4align
4210         option.
4211         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
4212         * doc/invoke.texi: Add description of mno-lsim and
4213         mstack-increment options.
4214
4215         * config/fr30/fr30.opt: Document the -mno-lsim option.
4216         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
4217         and -mno-lsim options.
4218
4219 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4220
4221         * fold-const.c (fold_comparison): Only call fold_inf_compare
4222         if the mode supports infinities.
4223
4224 2009-03-11  Jason Merrill  <jason@redhat.com>
4225
4226         PR debug/39086
4227         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
4228         end already did.  Notice GIMPLE_CALL modifications of the result.
4229         Don't copy debug information from an ignored decl or a decl from
4230         another function.
4231
4232 2009-03-10  Richard Guenther  <rguenther@suse.de>
4233             Nathan Froyd  <froydnj@codesourcery.com>
4234
4235         PR middle-end/37850
4236         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
4237         (__divMODE3): Likewise.
4238
4239 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
4240
4241         PR tree-optimization/39394
4242         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
4243         DECL_SIZE_UNIT of variable length FIELD_DECLs.
4244
4245 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4246
4247         * recog.c (verfiy_changes): Disallow renaming of hard regs in
4248         inline asms for register asm ("") declarations.
4249
4250 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
4251
4252         * fold-const.c (fold_unary): Fix comment.
4253
4254 2009-03-07  Jan Hubicka  <jh@suse.cz>
4255
4256         PR target/39361
4257         * tree-inline.c (setup_one_parameter): Do replacement of const
4258         argument by constant in SSA form.
4259
4260 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4261
4262         PR middle-end/38028
4263         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
4264         determine alignment passed to assign_stack_local.
4265         (assign_parms_unsplit_complex): Likewise.
4266         * except.c (sjlj_build_landing_pads): Likewise.
4267
4268 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
4269
4270         PR middle-end/39360
4271         * tree-flow.h (add_referenced_var): Return bool instead of void.
4272         * tree-dfa.c (add_referenced_var): Return result of
4273         referenced_var_check_and_insert call.
4274         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
4275         of referenced_var_check_and_insert.
4276
4277         PR debug/39372
4278         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
4279         (gen_variable_die): Emit DW_AT_location on abstract static variable's
4280         DIE, don't emit it if abstract origin already has it.
4281         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
4282         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
4283
4284 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4285
4286         * genpreds.c (needs_variable): Fix parentheses at variable name
4287         detection.
4288         (write_tm_constrs_h): Indent generated code.
4289
4290 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4291
4292         * doc/extend.texi (Function Attributes): Add documentation
4293         for isr attributes.
4294
4295 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
4296
4297         PR debug/39387
4298         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
4299         take locus from its DECL_SOURCE_LOCATION instead of input_location.
4300
4301 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
4302
4303         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
4304         the loop as bad.
4305
4306 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
4307
4308         PR debug/39379
4309         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
4310         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
4311
4312 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
4313
4314         * config/i386/i386.md (R8_REG, R9_REG): New constants.
4315         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
4316         constants instead of magic numbers.
4317         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
4318         (QI_REG_P): Ditto.
4319         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
4320         (x86_64_ms_abi_int_parameter_registers): Ditto.
4321         (x86_64_int_return_registers): Ditto.
4322         (ix86_maybe_switch_abi): Ditto.
4323         (ix86_expand_call): Ditto for clobbered_registers array.
4324         (ix86_hard_regno_mode_ok): Ditto.
4325         (x86_extended_QIreg_mentioned_p): Ditto.
4326
4327 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
4328
4329         PR tree-optimization/39349
4330         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
4331
4332         * combine.c (gen_lowpart_for_combine): Use omode when generating
4333         clobber.
4334
4335 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
4336
4337         PR rtl-optimization/39235
4338         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
4339
4340 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
4341
4342         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
4343
4344 2009-03-04  Richard Guenther  <rguenther@suse.de>
4345
4346         PR tree-optimization/39362
4347         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
4348         that occur in abnormal PHIs should be varying.
4349
4350 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
4351
4352         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
4353         Extend comments.
4354         (simple_iv):  Take loop as an argument instead of statement.
4355         * tree-scalar-evolution.h (simple_iv): Declaration changed.
4356         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
4357         to simple_iv.
4358         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
4359         Ditto.
4360         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
4361         * matrix-reorg.c (analyze_transpose): Ditto.
4362         * tree-data-ref.c (dr_analyze_innermost): Ditto.
4363         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
4364         * tree-predcom.c (ref_at_iteration): Ditto.
4365         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
4366
4367 2009-03-04  Richard Guenther  <rguenther@suse.de>
4368
4369         PR tree-optimization/39358
4370         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
4371         escaped_id and callused_id.
4372         (solve_graph): Likewise.
4373
4374 2009-03-04  Richard Guenther  <rguenther@suse.de>
4375
4376         PR tree-optimization/39339
4377         * tree-sra.c (try_instantiate_multiple_fields): Make it
4378         no longer ICE on the above.
4379
4380 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
4381
4382         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
4383         that fits within Pmode.
4384
4385 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
4386
4387         PR middle-end/10109
4388         * tm.texi (LIBCALL_VALUE): Update description.
4389
4390 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
4391
4392         PR middle-end/34443
4393         * doc/extend.texi (section): Update description.
4394
4395 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4396
4397         PR middle-end/39345
4398         * tree-inline.c (remapped_type): New.
4399         (can_be_nonlocal): Call remapped_type instead of remap_type.
4400
4401 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
4402
4403         PR fortran/39354
4404         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
4405         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
4406
4407 2009-03-03  Richard Guenther  <rguenther@suse.de>
4408
4409         PR middle-end/39272
4410         * tree.c (tree_nonartificial_location): New function.
4411         * tree.h (tree_nonartificial_location): Declare.
4412         * builtins.c (expand_builtin_memory_chk): Provide location
4413         of the call location for artificial function pieces.
4414         (maybe_emit_chk_warning): Likewise.
4415         (maybe_emit_sprintf_chk_warning): Likewise.
4416         (maybe_emit_free_warning): Likewise.
4417         * expr.c (expand_expr_real_1): Likewise.
4418
4419 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
4420
4421         PR tree-optimization/39343
4422         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
4423         COMPONENT_REF t has ARRAY_TYPE.
4424
4425 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
4426
4427         PR middle-end/39335
4428         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
4429         when the type precision of the induction variable should be
4430         larger than the type precision of nit.
4431         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
4432         * graphite.c (graphite_loop_normal_form): Same.
4433         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
4434
4435 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
4436
4437         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
4438         (*call_1_rex64_ms_sysv): Use named constants instead of magic
4439         numbers to describe clobbered registers.
4440         (*call_value_0_rex64_ms_sysv): Ditto.
4441         * config/i386/mmx.md (mmx_emms): Ditto.
4442         (mmx_femms): Ditto.
4443
4444 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
4445
4446         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
4447         of ABI_64.
4448
4449 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4450
4451         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
4452         (spu_section_type_flags): New function.
4453
4454 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
4455
4456         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
4457         reg_class_contents of FLOAT_REGS into a temporary.
4458
4459 2009-03-02  Richard Guenther  <rguenther@suse.de>
4460             Ira Rosen  <irar@il.ibm.com>
4461
4462         PR tree-optimization/39318
4463         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
4464         information to the vectorized statement.
4465
4466 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
4467
4468         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
4469         variable.  Use defined names instead of magic constants for REX SSE
4470         registers.
4471
4472 2009-03-01  Richard Guenther  <rguenther@suse.de>
4473
4474         PR tree-optimization/39331
4475         * omp-low.c (lower_send_shared_vars): Do not receive new
4476         values for the reference of DECL_BY_REFERENCE parms or results.
4477
4478 2009-03-01  Jan Hubicka  <jh@suse.cz>
4479
4480         PR debug/39267
4481         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
4482         BLOCK_NONLOCALIZED_VAR): New macros.
4483         (tree_block): Add nonlocalized_vars.
4484         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
4485         gen_decl_die): Add origin argument.  Allow generation of die with
4486         origin at hand only.
4487         (gen_member_die, gen_type_die_with_usage, force_decl_die,
4488         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
4489         of gen_*.
4490         (gen_block_die): Fix checking for unused blocks.
4491         (process_scope_var): Break out from .... ; work with origins only.
4492         (decls_for_scope) ... here; process nonlocalized list.
4493         (dwarf2out_ignore_block): Look for nonlocalized vars.
4494         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
4495         vars.
4496         (dump_scope_block): Dump them.
4497         * tree-inline.c (remap_decls): Handle nonlocalized vars.
4498         (remap_block): Likewise.
4499         (can_be_nonlocal): New predicate.
4500         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
4501
4502 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4503
4504         * configure: Regenerate.
4505
4506 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4507
4508         * optc-gen.awk: No need to duplicate option flags twice.
4509         Reuse help texts for duplicate options which do not have any.
4510
4511         * gcc.c (display_help): Document --version.
4512
4513         * gcc.c (main): If print_help_list and verbose_flag, ensure
4514         driver output comes before subprocess output.
4515
4516         * optc-gen.awk: Assign all remaining fields to help string,
4517         space-separated, for multi-line help in *.opt.
4518
4519         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
4520         -Wno-pedantic-ms-format is for MinGW targets only.
4521
4522         * doc/options.texi (Option file format): Fix bad indentation,
4523         restoring dropped sentence.
4524
4525 2009-02-28  Jan Hubicka  <jh@suse.cz>
4526
4527         * tree-inline.c (tree_function_versioning): Output debug info.
4528
4529 2009-02-28  Jan Hubicka  <jh@suse.cz>
4530
4531         PR debug/39267
4532         * tree-inline.c (setup_one_parameter): Do not copy propagate
4533         arguments when not optimizing.
4534
4535 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
4536
4537         PR target/39327
4538         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
4539         (avx_addsubv4df3): Likewise.
4540         (*avx_addsubv4sf3): Likewise.
4541         (sse3_addsubv4sf3): Likewise.
4542         (*avx_addsubv2df3): Likewise.
4543         (sse3_addsubv2df3): Likewise.
4544         (avx_unpckhps256): Correct item selectors.
4545         (avx_unpcklps256): Likewise.
4546         (avx_unpckhpd256): Likewise.
4547         (avx_unpcklpd256): Likewise.
4548
4549 2009-02-28  Jan Hubicka  <jh@suse.cz>
4550
4551         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
4552         static vars.
4553         (copy_arguments_for_versioning): If var is declared don't declare it.
4554         (tree_function_versioning): First setup substitutions and then copy
4555         args.
4556
4557 2009-02-27  Jan Hubicka  <jh@suse.cz>
4558
4559         PR debug/39267
4560         * cgraph.h (varpool_output_debug_info): Remove.
4561         * cgraphunit.c (varpool_output_debug_info): Remove.
4562         * dwarf2out.c (deferred_locations_struct): New struct
4563         (deferred_locations): New type.
4564         (deferred_locations_list): New static var.
4565         (deffer_location): New function.
4566         (gen_variable_die): Use it.
4567         (decls_for_scope): Output info on local static vars.
4568         (dwarf2out_finish): Process deferred locations.
4569         * varpool.c (varpool_output_debug_info): Remove.
4570
4571 2009-02-27  Jan Hubicka  <jh@suse.cz>
4572
4573         PR debug/39267
4574         * tree.h (TREE_PROTECTED): Fix comment.
4575         (BLOCK_HANDLER_BLOCK): Remove.
4576         (struct tree_block): Remove handler_block add body_block.
4577         (inlined_function_outer_scope_p): New.
4578         (is_body_block): Remove.
4579         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
4580         * dwarf2out.c (is_inlined_entry_point): Remove.
4581         (add_high_low_attributes): Use inlined_function_outer_scope_p.
4582         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
4583         code.
4584         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
4585         * gimplify.c (gimplify_expr): Gimplify body blocks.
4586         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
4587         block with multiple subblocks.
4588         (dump_scope_block): Prettier output; dump more flags and info.
4589         (dump_scope_blocks): New.
4590         (remove_unused_locals): Use dump_scope_blocks.
4591         * tree-flow.h (dump_scope_blocks): Declare.
4592         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
4593         * stmt.c (is_body_block): Remove.
4594         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
4595         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
4596
4597 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
4598
4599         PR middle-end/39308
4600         * graphite.c (graphite_loop_normal_form): Do not call 
4601         number_of_iterations_exit from a gcc_assert.
4602
4603 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4604
4605         * gcc/config/s390/s390.c (s390_swap_cmp): Look for conditional
4606         jumps if COND is NULL.
4607         (find_cond_jump): New function.
4608         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
4609         * gcc/config/s390/s390.md: Remove z10_cobra attribute value.
4610
4611 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
4612
4613         * config/alpha/alpha.h (alpha_expand_mov): Return false if
4614         force_const_mem returns NULL_RTX.
4615
4616 2009-02-26  Jan Hubicka  <jh@suse.cz>
4617
4618         PR debug/39267
4619         * cgraph.h (varpool_output_debug_info): Remove.
4620         * cgraphunit.c (varpool_output_debug_info): Remove.
4621         * dwarf2out.c (deferred_locations_struct): New struct
4622         (deferred_locations): New type.
4623         (deferred_locations_list): New static var.
4624         (deffer_location): New function.
4625         (gen_variable_die): Use it.
4626         (decls_for_scope): Output info on local static vars.
4627         (dwarf2out_finish): Process deferred locations.
4628         * varpool.c (varpool_output_debug_info): Remove.
4629
4630 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
4631
4632         PR rtl-optimization/39241
4633         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
4634         to subreg_offset_representable_p.
4635
4636 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
4637
4638         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
4639         execute function prototype.  Get f and nregs from max_reg_num
4640         and get_insns.  Remove the first backward pass as it's dead,
4641         guard the forward pass by flag_expensive_optimizations.
4642         (rest_of_handle_regmove): Delete.
4643         (pass_regmove): Replace it with regmove_optimize.
4644
4645 2009-02-25  Martin Jambor  <mjambor@suse.cz>
4646
4647         PR tree-optimization/39259
4648         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
4649         calls_alloca function flags.
4650         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
4651         calls are detected.
4652
4653 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
4654
4655         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
4656         flags_set_1_rtx, flags_set_1_set): Delete.
4657         (regmove_optimize): Do not call mark_flags_life_zones.
4658
4659 2009-02-24  Julian Brown  <julian@codesourcery.com>
4660
4661         PR target/35965
4662         * config/arm/arm.c (require_pic_register): Only set
4663         cfun->machine->pic_reg once per function.
4664
4665 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
4666
4667         * doc/invoke.texi (Link Options): Document an easier way to pass
4668         options that take arguments to the GNU linker using -Xlinker and -Wl.
4669
4670 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
4671
4672         PR target/33785
4673         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
4674
4675 2009-02-24  Richard Guenther  <rguenther@suse.de>
4676
4677         PR debug/39285
4678         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
4679
4680 2009-02-24  Richard Guenther  <rguenther@suse.de>
4681             Zdenek Dvorak  <ook@ucw.cz>
4682
4683         PR tree-optimization/39233
4684         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
4685         from converting them to a generic type.
4686
4687 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
4688
4689         PR tree-optimization/39260
4690         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
4691         contains a condition with a real type.
4692         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
4693
4694 2009-02-23  Jason Merrill  <jason@redhat.com>
4695
4696         PR c++/38880
4697         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
4698         narrowing_initializer_constant_valid_p.
4699         (narrowing_initializer_constant_valid_p): Don't return 
4700         null_pointer_node for adding a pointer to itself.
4701
4702 2009-02-23  Jan Hubicka  <jh@suse.cz>
4703
4704         PR c/12245
4705         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
4706         resizing.
4707
4708 2009-02-23  Jan Hubicka  <jh@suse.cz>
4709
4710         PR tree-optimization/37709
4711         * tree.c (block_ultimate_origin): Move here from dwarf2out.
4712         * tree.h (block_ultimate_origin): Declare.
4713         * dwarf2out.c (block_ultimate_origin): Move to tree.c
4714         * tree-ssa-live.c (remove_unused_scope_block_p):
4715         Eliminate blocks containig no instructions nor live variables nor
4716         nested blocks.
4717         (dump_scope_block): New function.
4718         (remove_unused_locals): Enable removal of dead blocks by default;
4719         enable dumping at TDF_DETAILS.
4720
4721 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
4722
4723         * config/i386/i386.c (classify_argument): Don't allow COImode
4724         and OImode.
4725         (function_arg_advance_32): Don't allow OImode.
4726         (function_arg_32): Likewise.
4727         (function_value_32): Likewise.
4728         (return_in_memory_32): Likewise.
4729         (function_arg_64): Remove OImode comment.
4730
4731 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
4732
4733         PR target/39261
4734         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
4735         ix86_expand_vector_set for V4DImode in 64bit mode only.
4736         (ix86_expand_vector_init_one_var): Likewise.
4737
4738 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
4739
4740         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
4741
4742 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
4743
4744         PR bootstrap/39257
4745         * loop-iv.c: Revert last change.
4746         * emit-rtl.c: Likewise.
4747
4748 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
4749
4750         PR target/39256
4751         * config/i386/i386.c (type_natural_mode): Remove an extra
4752         space in the warning message.
4753         (function_value_32): Handle 32-byte vector modes.
4754         (return_in_memory_32): Likewise.
4755
4756 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
4757
4758         * loop-iv.c (truncate_value): New function.
4759         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
4760         of lowpart_subreg.
4761         (lowpart_subreg): Move to...
4762         * emit-rtl.c: ...here.
4763
4764 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
4765
4766         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
4767         accidental and undocumented change at revision 140860.
4768
4769 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
4770
4771         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
4772         take gimple_seq * arguments.
4773         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
4774         types_compatible_p langhook.
4775
4776 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
4777             Joseph Myers  <joseph@codesourcery.com>
4778
4779         * config/arm/arm.c (arm_builtin_va_list): New function.
4780         (arm_expand_builtin_va_start): Likewise.
4781         (arm_gimplify_va_arg_expr): Likewise.
4782         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
4783         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
4784         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
4785         (va_list_type): New variable.
4786         (arm_mangle_type): Mangle va_list_type appropriately.
4787
4788 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
4789
4790         PR middle-end/39157
4791         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
4792         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
4793         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
4794         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
4795         parameter to 1000 for -O1 by default.
4796         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
4797         parameter.
4798         * loop-invariant.c: Include params.h.
4799         (move_loop_invariants): Don't call move_single_loop_invariants on
4800         very large loops.
4801
4802 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
4803
4804         * calls.c (emit_library_call_value_1): Use slot_offset instead of
4805         offset when calculating bounds for indexing stack_usage_map.  Fixes
4806         a buffer overflow with certain target setups.
4807
4808 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
4809
4810         PR target/39240
4811         * calls.c (expand_call): Clear try_tail_call if caller and callee
4812         disagree in promotion of function return value.
4813
4814 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
4815
4816         PR target/39175
4817         * c-common.c (c_determine_visibility): If visibility changed and
4818         DECL_RTL has been already set, call make_decl_rtl to update symbol
4819         flags.
4820
4821 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
4822
4823         PR c++/39188
4824         * varasm.c (assemble_variable): Don't check DECL_NAME when
4825         globalizing a variable.
4826
4827 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
4828
4829         PR c/38483
4830         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
4831         expression before any __builtin_trap call.
4832         * c-typeck.c (build_function_call): Convert and check function
4833         arguments before generating a call to a trap.  Evaluate the
4834         function arguments before the trap.
4835
4836 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
4837
4838         PR target/39228
4839         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
4840         (UNSPEC_FXAM_MEM): New unspec.
4841         (fxam<mode>2_i387_with_temp): New insn and split pattern.
4842         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
4843         memory using fxam<mode>2_i387_with_temp to remove excess precision.
4844
4845 2009-02-19  Richard Guenther  <rguenther@suse.de>
4846
4847         PR tree-optimization/39207
4848         PR tree-optimization/39074
4849         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
4850         storedanything_tree): New.
4851         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
4852         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
4853         (build_succ_graph): Add edges from STOREDANYTHING to all
4854         non-direct nodes.
4855         (init_base_vars): Initialize STOREDANYTHING.
4856         (compute_points_to_sets): Free substitution info after
4857         building the succ graph.
4858         (ipa_pta_execute): Likewise.
4859
4860         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
4861         field.
4862         (do_ds_constraint): Do not add to special var or non-pointer
4863         field solutions.
4864         (type_could_have_pointers): Split out from ...
4865         (could_have_pointers): ... here.  For arrays use the element type.
4866         (create_variable_info_for): Initialize may_have_pointers.
4867         (new_var_info): Likewise.
4868         (handle_lhs_call): Make the HEAP variable unknown-sized.
4869         (intra_create_variable_infos): Use a type with pointers for
4870         PARM_NOALIAS, make it unknown-sized.
4871
4872 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
4873
4874         PR target/39224
4875         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
4876
4877 2009-02-18  Jason Merrill  <jason@redhat.com>
4878
4879         PR target/39179
4880         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
4881         value if DECL_EXTERNAL.
4882         * tree-sra.c (sra_walk_gimple_assign): Likewise.
4883         * target.h (gcc_target::binds_local_p): Clarify "module".
4884         * tree.h (TREE_PUBLIC): Clarify "module".
4885
4886 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
4887
4888         PR target/38891
4889         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
4890         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
4891
4892 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
4893
4894         PR target/39082
4895         * c.opt (Wabi): Support C and ObjC.
4896         (Wpsabi): New.
4897
4898         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
4899
4900         * config/i386/i386.c (classify_argument): Warn once about the ABI
4901         change when passing union with long double.
4902
4903         * doc/invoke.texi: Update -Wabi for warning psABI changes.
4904
4905 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
4906
4907         PR c/35447
4908         * c-parser.c (c_parser_compound_statement): Always enter and leave
4909         a scope.
4910
4911 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4912
4913         PR target/34587
4914         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
4915
4916 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
4917
4918         PR tree-optimization/36922
4919         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
4920         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
4921         Likewise.
4922
4923 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
4924
4925         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
4926         to 0 for EABI64.
4927
4928 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
4929
4930         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
4931
4932 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
4933
4934         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
4935         tree sharing.
4936
4937 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
4938             Richard Sandiford  <rdsandiford@googlemail.com>
4939
4940         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
4941         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
4942         (loongson_biadd): ...this.
4943
4944 2009-02-17  Richard Guenther  <rguenther@suse.de>
4945
4946         PR tree-optimization/39202
4947         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
4948         a var make sure to follow existing collapses.
4949
4950 2009-02-17  Richard Guenther  <rguenther@suse.de>
4951
4952         PR middle-end/39214
4953         * langhooks.c (lhd_print_error_function): Check for NULL block.
4954
4955 2009-02-17  Richard Guenther  <rguenther@suse.de>
4956
4957         PR tree-optimization/39204
4958         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
4959         of the PHI arg.
4960
4961 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
4962
4963         * config/soft-fp/double.h: Update from glibc CVS.
4964
4965 2009-02-17  Richard Guenther  <rguenther@suse.de>
4966
4967         PR tree-optimization/39207
4968         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
4969         strict-aliasing warnings for pointers pointing to NULL.
4970
4971 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
4972
4973         PR c/35446
4974         * c-parser.c (c_parser_braced_init): Call pop_init_level when
4975         skipping until next close brace.
4976
4977 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
4978
4979         PR target/37049
4980         * config/i386/i386.c (ix86_expand_push): Set memory alignment
4981         to function argument boundary.
4982
4983 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
4984
4985         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
4986         in the lea_add. Reload eventually constraints it properly.
4987         * config/picochip/constraints.md : Remove the target constraint
4988         "b", since it is not needed anymore.
4989
4990 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
4991
4992         * gthr-dce.h: Uglify function parameter and local variable names.
4993         * gthr-gnat.h: Likewise.
4994         * gthr-mipssde.h: Likewise.
4995         * gthr-nks.h: Likewise.
4996         * gthr-posix95.h: Likewise.
4997         * gthr-posix.h: Likewise.
4998         * gthr-rtems.h: Likewise.
4999         * gthr-single.h: Likewise.
5000         * gthr-solaris.h: Likewise.
5001         * gthr-tpf.h: Likewise.
5002         * gthr-vxworks.h: Likewise.
5003         * gthr-win32.h: Likewise.
5004
5005 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
5006
5007         PR target/39196
5008         * config/i386/i386.md: Restrict the new peephole2 to move
5009         between MMX/SSE registers.
5010
5011 2009-02-15  Richard Guenther  <rguenther@suse.de>
5012
5013         Revert
5014         2009-02-13  Richard Guenther  <rguenther@suse.de>
5015
5016         * configure.ac: Enable LFS.
5017         * configure: Re-generate.
5018         * config.in: Likewise.
5019
5020 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5021
5022         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
5023         spu_srqwbyte, spu_srqwbytebc): Define.
5024         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
5025         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
5026         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
5027         "shrqby_<mode>"): New insn-and-split patterns.
5028         * config/spu/spu.c (expand_builtin_args): Determine and return
5029         number of operands using spu_builtin_description data.
5030         (spu_expand_builtin_1): Use it.
5031
5032 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
5033
5034         PR target/38056
5035         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
5036         TARGET_CONST_GP.
5037
5038 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
5039
5040         PR target/39149
5041         * config/i386/i386.c (override_options): Correct warning
5042         messages for -malign-loops, -malign-jumps and -malign-functions.
5043
5044 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
5045
5046         PR target/39152
5047         * config/i386/i386.md: Restrict the new peephole2 to move
5048         between the general purpose registers.
5049
5050 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
5051
5052         PR target/39162
5053         * config/i386/i386.c (type_natural_mode): Add a new argument.
5054         Return the original mode and warn ABI change if vector size is 32byte.
5055         (function_arg_advance): Updated.
5056         (function_arg): Likewise.
5057         (ix86_function_value): Likewise.
5058         (ix86_return_in_memory): Likewise.
5059         (ix86_sol10_return_in_memory): Likewise.
5060         (ix86_gimplify_va_arg): Likewise.
5061         (function_arg_32): Don't warn ABX ABI change here.
5062         (function_arg_64): Likewise.
5063
5064 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
5065
5066         * loop-iv.c (implies_p): In the final case, test that operands 0
5067         of the two comparisons match.
5068
5069         * config/bfin/bfin.c (find_prev_insn_start): New function.
5070         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
5071         (find_next_insn_start): Move.
5072
5073 2009-02-13  Richard Guenther  <rguenther@suse.de>
5074
5075         * configure.ac: Enable LFS.
5076         * configure: Re-generate.
5077         * config.in: Likewise.
5078
5079 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
5080
5081         PR c/35444
5082         * c-parser.c (c_parser_parms_list_declarator): Discard pending
5083         sizes on syntax error after some arguments have been parsed.
5084
5085 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
5086
5087         * doc/invoke.texi (-fira): Remove.
5088
5089 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
5090
5091         * caller-save.c: Replace regclass.c with reginfo.c in comments.
5092         * recog.c: Likewise.
5093         * rtl.h: Likewise.
5094
5095 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
5096
5097         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
5098         (umul_ppmm): Likewise.
5099         (count_leading_zeros): Likewise.
5100         (count_trailing_zeros): Likewise.
5101         (UMUL_TIME): Likewise.
5102
5103 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
5104
5105         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
5106         soft-fp/t-softfp to tmake_file.
5107
5108         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
5109         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
5110         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
5111         IA64_BUILTIN_INFQ]: New.
5112         (ia64_init_builtins): Initialize __builtin_infq,
5113         __builtin_fabsq and __builtin_copysignq if not HPUX.
5114         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
5115         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
5116
5117         * config/ia64/lib1funcs.asm (__divtf3): Define only if
5118         SHARED is defined.
5119         (__fixtfti): Likewise.
5120         (__fixunstfti): Likewise.
5121         (__floattitf): Likewise.
5122
5123         * config/ia64/libgcc-glibc.ver: New.
5124         * config/ia64/t-fprules-softfp: Likewise.
5125         * config/ia64/sfp-machine.h: Likewise.
5126
5127         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
5128         (LIBGCC2_TF_CEXT): Likewise.
5129         (TF_SIZE): Likewise.
5130         (TARGET_INIT_LIBFUNCS): Likewise.
5131
5132         * config/ia64/t-glibc (SHLINB_MAPFILES):
5133         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
5134
5135 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
5136
5137         * config/i386/i386.c (construct_container): Rewrite processing
5138         BLKmode with X86_64_SSE_CLASS.
5139
5140 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
5141
5142         PR target/39152
5143         * config/i386/i386.md: Replace simplify_replace_rtx with
5144         replace_rtx in the new peephole2.
5145
5146 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
5147
5148         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
5149         loop unrolling do not happen at -O2.
5150
5151 2009-02-12  Michael Matz  <matz@suse.de>
5152
5153         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
5154
5155 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
5156
5157         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
5158         for -g3.
5159
5160 2009-02-12  Ben Elliston  <bje@au.ibm.com>
5161
5162         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
5163         patterns when updating the back chain.  Missed in the 2009-02-10
5164         change.
5165
5166 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
5167
5168         * doc/extend.texi (Decimal Floating Types): Update identifier of
5169         draft TR and list of missing support.
5170
5171 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
5172
5173         PR middle-end/39154
5174         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
5175         bit to variable length decl's flags, add it also to its
5176         pointer replacement variable.
5177
5178 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
5179             Jakub Jelinek  <jakub@redhat.com>
5180
5181         PR target/39118
5182         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
5183         (memory_blockage): New expander.
5184         (*memory_blockage): New insn pattern.
5185         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
5186         instead of general blockage at the end of function prologue when
5187         frame pointer is used to access red zone area.  Do not emit blockage
5188         when profiling, it is emitted in generic code.
5189         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
5190         function epilogue when frame pointer is used to access red zone area.
5191
5192 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
5193
5194         PR target/38824
5195         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
5196         by arithmetic with memory operands.
5197         * config/i386/predicates.md (commutative_operator): New.
5198
5199 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
5200
5201         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
5202         bulleted lists.
5203
5204 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
5205
5206         * alias.h (record_alias_subset): Declare.
5207         * alias.c (record_alias_subset): Make global.
5208
5209 2009-02-10  Nick Clifton  <nickc@redhat.com>
5210
5211         * tree-parloops.c: Change license to GPLv3.
5212         * ipa-struct-reorg.c: Change license to GPLv3.
5213         * ipa-struct-reorg.h: Change license to GPLv3.
5214
5215 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
5216
5217         PR c/39084
5218         * c-decl.c (start_struct): Return NULL on error.
5219
5220 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
5221
5222         PR middle-end/39124
5223         * cfgloopmanip.c (remove_path): Call remove_bbs after
5224         cancel_loop_tree, not before it.
5225
5226         PR target/39139
5227         * function.h (struct function): Add has_local_explicit_reg_vars bit.
5228         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
5229         VAR_DECLs were seen.
5230         * tree-ssa-live.c (remove_unused_locals): Recompute
5231         cfun->has_local_explicit_reg_vars.
5232         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
5233         copies or clearings if cfun->has_local_explicit_reg_vars.
5234
5235 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
5236
5237         PR target/39118
5238         * config/i386/i386.c (expand_prologue): Emit blockage at the end
5239         of function prologue when frame pointer is used to access
5240         red zone area.
5241
5242 2009-02-10  Richard Guenther  <rguenther@suse.de>
5243
5244         PR middle-end/39127
5245         * gimplify.c (gimple_regimplify_operands): Always look if
5246         we need to create a temporary.
5247
5248 2009-02-10  Richard Guenther  <rguenther@suse.de>
5249
5250         PR tree-optimization/39132
5251         * tree-loop-distribution.c (todo): New global var.
5252         (generate_memset_zero): Trigger TODO_rebuild_alias.
5253         (tree_loop_distribution): Return todo.
5254
5255 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
5256
5257         PR target/39119
5258         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
5259         (x86_64_reg_class_name): Removed.
5260         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
5261         first one isn't X86_64_SSE_CLASS or any other ones aren't
5262         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
5263         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
5264         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
5265         and 3 X86_64_SSEUP_CLASS.
5266         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
5267         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
5268
5269 2009-02-10  Ben Elliston  <bje@au.ibm.com>
5270
5271         * config/rs6000/rs6000.md (allocate_stack): Always use an update
5272         form instruction to update the stack back chain word, even if the
5273         user has disabled the generation of update instructions.
5274         (movdi_<mode>_update_stack): New.
5275         (movsi_update_stack): Likewise.
5276         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
5277         always use an update form instruction to update the stack back
5278         chain word.
5279
5280 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
5281
5282         PR middle-end/38953
5283         * graphite.c (if_region_set_false_region): After moving a region in
5284         the false branch of a condition, remove the empty dummy basic block.
5285         (gloog): Remove wrong fix for PR38953.
5286
5287 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5288
5289         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
5290         generation due to implicit sign extension.
5291
5292 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
5293
5294         PR middle-end/38981
5295         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
5296         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
5297
5298 2009-02-09  Richard Guenther  <rguenther@suse.de>
5299
5300         PR middle-end/35202
5301         * convert.c (convert_to_real): Disable (float)fn((double)x)
5302         to fnf(x) conversion if errno differences may occur and
5303         -fmath-errno is set.
5304
5305 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
5306
5307         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
5308         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
5309         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
5310
5311 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
5312
5313         PR c/35434
5314         * c-common.c (handle_alias_attribute): Disallow attribute for
5315         anything not a FUNCTION_DECL or VAR_DECL.
5316
5317 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
5318
5319         PR c/39035
5320         * real.c (do_compare): Special-case compare of zero against
5321         decimal float value.
5322
5323 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
5324
5325         PR c/36432
5326         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
5327         as indicating flexible array members unless the field itself is
5328         being declarared as the incomplete array.
5329
5330 2009-02-06  Jan Hubicka  <jh@suse.cz>
5331
5332         PR tree-optimization/38844
5333         * ipa-inline.c (try_inline): Stop inlining recursion when edge
5334         is already inlined.
5335
5336 2009-02-06  Richard Guenther  <rguenther@suse.de>
5337
5338         PR middle-end/38977
5339         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
5340         fork because we may expand it as __gcov_fork.
5341
5342 2009-02-06  Nick Clifton  <nickc@redhat.com>
5343
5344         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
5345
5346 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
5347
5348         PR tree-optimization/35659
5349         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
5350         vn_phi_eq): Shortcut if hashcode does not match.
5351         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
5352         NULL operands.
5353         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
5354         and avoid iterative_hash_expr.
5355         (FOR_EACH_VALUE_ID_IN_SET): New.
5356         (value_id_compare): Remove.
5357         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
5358         sort expressions by value id.
5359
5360 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
5361
5362         PR target/38991
5363         * config/sh/predicates.md (general_movsrc_operand): Don't check
5364         the subreg of system registers here.
5365
5366 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
5367
5368         PR c++/39106
5369         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
5370         on the copied decl.
5371
5372 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
5373
5374         PR rtl-optimization/39110
5375         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
5376         addresses, not aligned ones.
5377
5378 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
5379             Richard Guenther  <rguenther@suse.de>
5380
5381         PR tree-optimization/39100
5382         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
5383         comment says and add edges.
5384
5385 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
5386
5387         PR c/35435
5388         * c-common.c (handle_tls_model_attribute): Ignore attribute for
5389         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
5390
5391 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de> 
5392
5393         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
5394         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
5395         register_bb_in_sese, new_sese, free_sese): Moved.
5396         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
5397         outermost_loop_in_scop, build_scop_iteration_domain,
5398         expand_scalar_variables_ssa_name, get_vdef_before_scop,
5399         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
5400         Use loop_in_sese_p instead of loop_in_scop_p.
5401         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
5402         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
5403         (scopdet_basic_block_info): Fix bug in scop detection.
5404         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
5405         eq_loop_to_cloog_loop): Remove.
5406         (nb_loops_around_loop_in_scop, nb_loop
5407         ref_nb_loops): Moved here...
5408         * graphite.h (ref_nb_loops): ... from here.
5409         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
5410         (loop_domain_dim, loop_iteration_vector_dim): Remove.
5411         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
5412         * testsuite/gcc.dg/graphite/scop-19.c: New
5413
5414 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
5415             Hans-Peter Nilsson  <hp@axis.com>
5416
5417         PR rtl-optimization/37889
5418         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
5419         Move offset handling from PLUS to before the switch.  Use new
5420         arguments when considering SYMBOL_REFs too.
5421         (rtx_addr_can_trap_p): Pass dummy offset and size.
5422         (enum may_trap_p_flags): Remove.
5423         (may_trap_p_1): Pass size from MEM_SIZE.
5424
5425         PR rtl-optimization/38921
5426         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
5427         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
5428         * rtlanal.c (may_trap_after_code_motion_p): Delete.
5429         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
5430
5431 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
5432
5433         AVX Programming Reference (January, 2009)
5434         * config/i386/sse.md (*vpclmulqdq): New.
5435
5436 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
5437
5438         PR tree-optimization/38977
5439         PR gcov-profile/38292
5440         * calls.c (special_function_p): Disregard __builtin_ prefix.
5441
5442 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
5443
5444         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
5445         non-indexable addresses even before reload.
5446
5447 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
5448
5449         PR c/29129
5450         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
5451         as having variable size.  Do not give an error for unnamed
5452         parameters with [*] declarators.  Give a warning for type names
5453         with [*] declarators and mark them as variable size.
5454         * c-parser.c (c_parser_sizeof_expression): Do not give an error
5455         for sizeof applied to [*] type names.
5456
5457 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5458
5459         PR C++/36607
5460         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
5461
5462 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
5463
5464         * gcc.c (process_command): Update copyright notice dates.
5465         * gcov.c (print_version): Likewise.
5466         * gcov-dump.c (print_version): Likewise.
5467         * mips-tfile.c (main): Likewise.
5468         * mips-tdump.c (main): Likewise.
5469
5470 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
5471
5472         PR c/35433
5473         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
5474         for composite type involving a zero-length array type.
5475
5476 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
5477
5478         PR target/35318
5479         * function.c (match_asm_constraints_1): Skip over
5480         initial optional % in the constraint.
5481
5482         PR inline-asm/39059
5483         * c-parser.c (c_parser_postfix_expression): If fixed point is not
5484         supported, don't accept FIXED_CSTs.
5485         * c-decl.c (finish_declspecs): Error if fixed point is not supported
5486         and _Sat is used without _Fract/_Accum.  Set specs->type to
5487         integer_type_node for cts_fract/cts_accum if fixed point is not
5488         supported.
5489
5490 2009-02-02  Catherine Moore  <clm@codesourcery.com>
5491
5492         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
5493
5494 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
5495
5496         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
5497         (ABI_HAS_64BIT_SYMBOLS): Use it.
5498         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
5499
5500 2009-02-02  Paul Brook  <paul@codesourcery.com>
5501
5502         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
5503
5504 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
5505
5506         PR inline-asm/39058
5507         * recog.h (asm_operand_ok): Add constraints argument.
5508         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
5509         recurse on matching constraint.
5510         (check_asm_operands): Pass constraints as 3rd argument to
5511         asm_operand_ok.  Don't look up matching constraint here.
5512         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
5513         to asm_operand_ok.
5514
5515 2009-02-02  Ben Elliston  <bje@au.ibm.com>
5516
5517         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
5518         TARGET_NARROW_VOLATILE_BITFIELD macro names.
5519
5520 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5521
5522         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
5523         information.  Remove some obsolete information.  Reorganize.
5524
5525         * config/pa/fptr.c: Revert license to GPL 2.
5526         * config/pa/milli64.S: Likewise.
5527
5528 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
5529
5530         PR target/38904
5531         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
5532         LIBRARY name in, instead of hard-coding it.
5533         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
5534         extra target make frag to tmake_files according to EH model.
5535         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
5536         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
5537         frags that define makefile variable EH_MODEL appropriately.
5538         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
5539         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
5540         to "-sjlj" according to type of EH configured.
5541         (LIBGCC_SONAME):  Concatenate it to shared library base name.
5542         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
5543         to "_sjlj" according to type of EH configured.
5544         (LIBGCC_SONAME):  Concatenate it to shared library base name.
5545         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
5546         (SHLIB_LINK):  Add missing semicolon to if-else construct.
5547         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
5548         string value of "pe_dll" command-line option.
5549         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
5550         (SHLIB_SONAME):  Use it when overriding t-cygming default.
5551         (SHLIB_IMPLIB):  Override t-cygming default.
5552         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
5553         string value of "pe_dll" command-line option.
5554
5555 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
5556
5557         PR target/38952
5558         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
5559         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
5560
5561 2009-01-31  Richard Guenther  <rguenther@suse.de>
5562
5563         PR tree-optimization/38937
5564         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
5565         computing the transitive closure.
5566
5567 2009-01-30  Richard Guenther  <rguenther@suse.de>
5568
5569         PR tree-optimization/39041
5570         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
5571         Propagate variable indices only if the types match for this stmt.
5572
5573 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
5574
5575         PR target/39013
5576         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
5577         inline but never defined.
5578
5579 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
5580
5581         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
5582         (*insv_h_di_reg_extimm): New insn.
5583         (*insv_l<mode>_reg_extimm): New insn.
5584
5585 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
5586
5587         * config/picochip/picochip.c (flag_conserve_stack): set
5588         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
5589         fconserve-stack. Reduce call-overhead used by inliner.
5590
5591 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
5592
5593         PR/38157
5594         * common.opt (flag_conserve_stack): Initialised to zero.
5595
5596 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
5597
5598         PR/39002
5599         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
5600         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
5601         method.
5602
5603 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
5604
5605         * ira-color.c (allocno_reload_assign): Update comments.
5606         * regmove.c (regmove_optimize): Likewise.
5607
5608         * ra.h: Removed.
5609
5610 2009-01-29  Robert Millan  <rmh@aybabtu.com>
5611
5612         * gcc/config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
5613         * gcc/config/i386/kopensolaris-gnu.h: New file.  Undefine
5614         `MD_UNWIND_SUPPORT'.
5615         * gcc/config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
5616
5617 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
5618
5619         PR tree-optimization/39007
5620         * tree-loop-distribution.c (generate_builtin): Use
5621         recompute_dominator to compute the immediate dominator of the
5622         basic block just after the loop.
5623
5624 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5625
5626         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
5627         (ASM_OUTPUT_DWARF_PCREL): Define.
5628
5629 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
5630
5631         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
5632         * doc/passes.texi: Remove entries about regclass, local-alloc, and
5633         global.  Modify entries about regmove and IRA.
5634
5635         * ra-conflict.c: Remove the file.
5636
5637         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
5638
5639         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
5640         (pass_regclass_init): Rename to pass_reginfo_init.
5641
5642         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
5643
5644         * toplev.h (flag_ira): Remove.
5645
5646         * caller-save.c (setup_save_areas): Remove flag_ira.
5647
5648         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
5649
5650         * global.c: Remove the file.
5651
5652         * opts.c (decode_options): Remove flag_ira.
5653
5654         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
5655
5656         * regmove.c: Modify file description.
5657         (find_use_as_address, try_auto_increment): Define them only if
5658         AUTO_INC_DEC is defined.
5659         (replacement_quality, replace_in_call_usage, fixup_match_1,
5660         stable_and_no_regs_but_for_p): Remove.
5661         (reg_set_in_bb): Make it static.
5662         (regmove_optimize): Remove flag_ira and code which worked for
5663         !flag_ira.
5664
5665         * local-alloc.c: Remove the file.
5666
5667         * common.opt (fira): Remove.
5668
5669         * ira.c: Include except.h.
5670         (eliminable_regset): Move from global.c.
5671         (mark_elimination): Ditto.  Remove flag_ira.
5672         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
5673         equiv_mem_modified, validate_equiv_mem_from_store,
5674         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
5675         contains_replace_regs, memref_referenced_p, memref_used_between_p,
5676         no_equiv, recorded_label_ref): Move from local-alloc.c.
5677         (update_equiv_regs): Ditto.  Make it static.
5678         (print_insn_chain, print_insn_chains): Move it from global.c.
5679         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
5680         (build_insn_chain): Ditto.  Make it static.
5681         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
5682         Rename to init_live_subregs.
5683         (gate_ira): Remove flag_ira.
5684
5685         * regclass.c: Rename reginfo.c.  Change file description.
5686         (FORBIDDEN_INC_DEC_CLASSES): Remove.
5687         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
5688         (init_reg_sets_1): Remove code for evaluation of
5689         reg_class_superclasses and losing_caller_save_reg_set.
5690         (init_regs): Remove init_reg_autoinc.
5691         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
5692         ok_for_base_p_nonstrict): Remove.
5693         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
5694         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
5695         corresponding entries.
5696         (dump_regclass, record_operand_costs, scan_one_insn,
5697         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
5698         record_address_regs, auto_inc_dec_reg_p): Remove.
5699         (gt-regclass.h): Rename to gt-reginfo.h.
5700
5701         * rtl.h (dump_global_regs, retry_global_alloc,
5702         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
5703
5704         * Makefile.in (RA_H): Remove.
5705         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
5706         Rename regclass.o to reginfo.o.
5707         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
5708         gt-reginfo.h.
5709         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
5710         (GTFILES): Rename regclass.c to reginfo.c.
5711
5712         * passes.c (init_optimization_passes): Remove pass_local_alloc and
5713         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
5714
5715         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
5716         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
5717         Remove flag_ira.
5718         (finish_spills): Ditto.  Remove code for !flag_ira.
5719         
5720 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
5721
5722         PR middle-end/35854
5723         * doc/invoke.texi (rtl debug options): Complete rewrite.
5724         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
5725         to auto_inc_dec".
5726         * mode-switching.c (pass_mode_switching): Rename pass from
5727         "mode-sw" to "mode_sw".
5728         * except.c (pass_convert_to_eh_ranges): Rename pass from
5729         "eh-ranges" to "eh_ranges".
5730         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
5731         to "subreg1".
5732                 
5733         
5734 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
5735             Alexander Monakov  <amonakov@ispras.ru>
5736
5737         PR middle-end/38857
5738         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
5739         register.
5740         (move_exprs_to_boundary): Change return type and pass through
5741         should_move from move_op.  Relax assert.  Update usage ...
5742         (schedule_expr_on_boundary): ... here.  Use should_move instead of
5743         cant_move.
5744         (move_op_orig_expr_found): Indicate that insn was disconnected from
5745         stream.
5746         (code_motion_process_successors): Do not call after_merge_succs
5747         callback if original expression was not found when traversing any of
5748         the branches.
5749         (code_motion_path_driver): Change return type.  Update prototype.
5750         (move_op): Update comment.  Add a new parameter (should_move).  Update
5751         prototype.  Set *should_move based on indication provided by
5752         move_op_orig_expr_found.
5753
5754 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
5755
5756         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
5757         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
5758         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
5759         * config/rs6000/rs6000.c (rs6000_override_options): Default
5760         avoid-indexed-addresses on for Power6, off for everything else.
5761         (avoiding_indexed_address_p): New function.
5762         (rs6000_legitimize_address): Use it.
5763         (rs6000_legitimate_address): Likewise.
5764         * config/rs6000/rs6000.md (movXX_updateX): Likewise
5765
5766 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
5767
5768         PR tree-optimization/38997
5769         * tree-loop-distribution.c (generate_memset_zero): Use
5770         POINTER_PLUS_EXPR for a pointer addition.
5771
5772 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
5773
5774         * config/s390/s390.md (bswap<mode>2): New pattern added.
5775
5776 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
5777
5778         * config/s390/s390.md (*tls_load_31): Added type attribute.
5779
5780 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
5781
5782         * config/s390/s390.md: Fix a few comments.
5783
5784 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
5785
5786         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
5787         (*tm<mode>_full): Fixed z10prop attribute.
5788         (*tst<mode>_extimm): Fixed z10prop attribute.
5789         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
5790         (*tstqiCCT_cconly): Fixed z10prop attribute.
5791         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
5792         (*movsi_larl): Fixed z10prop attribute.
5793         (*movsi_zarch): Fixed z10prop attribute.
5794         (*movsi_eas): Fixed z10prop attribute.
5795         (*movhi): Fixed z10prop attribute.
5796         (*movqi): Fixed z10prop attribute.
5797         (*movstrictqi): Fixed z10prop attribute.
5798         (*mov<mode>): Fixed z10prop attribute.
5799         (*movcc): Fixed z10prop attribute.
5800         (*sethighpartdi_64): Fixed z10prop attribute.
5801         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
5802         (*negdi2_sign_cc): Fixed z10prop attribute.
5803         (*negdi2_sign): Fixed z10prop attribute.
5804         (*absdi2_sign_cc): Fixed z10prop attribute.
5805         (*absdi2_sign): Fixed z10prop attribute.
5806         (*negabsdi2_sign_cc): Fixed z10prop attribute.
5807         (*negabsdi2_sign): Fixed z10prop attribute.
5808         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
5809         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
5810         (doloop_si64): Fixed z10prop attribute.
5811         (doloop_si31): Fixed z10prop attribute.
5812         (doloop_long): Fixed z10prop attribute.
5813         (indirect_jump): Fixed z10prop attribute.
5814         (nop): Fixed z10prop attribute.
5815         (main_base_64): Fixed z10prop attribute.
5816         (reload_base_64): Fixed z10prop attribute.
5817
5818 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
5819
5820         PR rtl-optimization/38740
5821         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
5822         if !optimize.
5823         * config/mips/mips.c (mips_reorg): Likewise.
5824
5825 2009-01-28  Richard Guenther  <rguenther@suse.de>
5826
5827         PR tree-optimization/38926
5828         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
5829         with the correct value id to a value.
5830         (do_regular_insertion): Use the value number of edoubleprime
5831         for the value number of the expr.
5832
5833         Revert
5834         2008-08-21  Richard Guenther  <rguenther@suse.de>
5835
5836         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
5837         a PHI ask VN if it is already available.
5838         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
5839         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
5840
5841 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
5842
5843         PR middle-end/38934
5844         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
5845         set to varying whenever max has TREE_OVERFLOW set, similarly
5846         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
5847
5848 2009-01-28  Richard Guenther  <rguenther@suse.de>
5849
5850         PR middle-end/38908
5851         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
5852         uninitialized aggregate uses in call arguments.
5853
5854 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
5855
5856         PR tree-optimization/38984
5857         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
5858         the nothing_id variable if -fno-delete-null-pointer-checks.
5859
5860 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
5861
5862         PR target/38988
5863         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
5864         (set_got_offset_rex64): Ditto.
5865
5866 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
5867
5868         PR target/38941
5869         * doc/extend.texi: Improve local variable with asm reg.
5870
5871 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
5872
5873         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
5874         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
5875         was not supplied then set warn_packed_bitfield_compat to the
5876         default value of 1.
5877         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
5878         against 1.
5879
5880 2009-01-27  Richard Guenther  <rguenther@suse.de>
5881
5882         PR tree-optimization/38503
5883         * cfgexpand.c (expand_gimple_basic_block): Ignore
5884         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
5885         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
5886         variables that cannot have TBAA applied.
5887         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
5888         statements.
5889
5890 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
5891
5892         PR middle-end/38969
5893         * calls.c (initialize_argument_information): Do not wrap complex
5894         arguments in SAVE_EXPR.
5895
5896 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
5897
5898         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
5899         (INSTALL_LIBGCC): Revert typo commit.
5900
5901 2009-01-26  Richard Guenther  <rguenther@suse.de>
5902
5903         PR tree-optimization/38745
5904         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
5905         from special handling.
5906
5907 2009-01-26  Richard Guenther  <rguenther@suse.de>
5908
5909         PR tree-optimization/38745
5910         * tree-ssa.c (execute_update_addresses_taken): Do not include
5911         variables that cannot possibly be a register in not_reg_needs.
5912         Do not clear TREE_ADDRESSABLE on vars that may not become
5913         registers.
5914         * tree-ssa.c (update_alias_info_1): Include those in the set
5915         of addressable vars.
5916
5917 2009-01-26  Richard Guenther  <rguenther@suse.de>
5918
5919         PR middle-end/38851
5920         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
5921         * tree-ssa-dse.c: Include langhooks.h
5922         (execute_simple_dse): Remove stores with zero size.
5923
5924 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
5925
5926         PR c/38957
5927         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
5928         as PLUS_EXPR.
5929
5930 2009-01-24  Julian Brown  <julian@codesourcery.com>
5931
5932         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
5933         config/arm/linux-atomic.c.
5934         * config/arm/linux-atomic.c: New.
5935
5936 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
5937
5938         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
5939         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
5940         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
5941
5942 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
5943
5944         PR c/38938
5945         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
5946         properly.
5947
5948 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
5949
5950         PR tree-optimization/38953
5951         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
5952         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
5953         (gloog): Split the exit of the scop when the scop exit is a loop exit.
5954         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
5955         changed the CFG.
5956
5957 2009-01-24  Paul Brook  <paul@codesourcery.com>
5958
5959         * config/arm/neon.md (neon_type): Move to arm.md.
5960         (neon_mov<VSTRUCT>): Add neon_type attribute.
5961         * config/arm/arm.md (neon_type): Move to here.
5962         (conds): Add "unconditioal" and use as default for NEON insns.
5963
5964 2009-01-24  Ben Elliston  <bje@au.ibm.com>
5965
5966         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
5967         void *' warning from -Wc++-compat.
5968         * Makefile.in (dominance.o-warn): Remove.
5969
5970 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
5971
5972         PR tree-optimization/38932
5973         * fold-const.c (fold_unary_ignore_overflow): New.
5974         * tree.h (fold_unary_ignore_overflow): Declare.
5975         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
5976         * tree-ssa-sccvn.c (visit_reference_op_load,
5977         simplify_unary_expression): Likewise.
5978
5979 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
5980
5981         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
5982         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
5983         regardless of their type.
5984         * c-common.c (handle_packed_attribute): Don't ignore packed on
5985         bitfields.
5986         * c.opt (Wpacked-bitfield-compat): New warning option.
5987         * stor-layout.c (place_field): Warn if offset of a field changed.
5988         * doc/extend.texi (packed): Mention the ABI change.
5989         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
5990         (Warning Options): Add it to the list.
5991
5992 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
5993
5994         * c-opts.c (c_common_post_options): Fix a typo in comments.
5995
5996 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
5997
5998         PR middle-end/38615
5999         * gimplify.c (gimplify_init_constructor): Fix promotion of const
6000         variables to static.
6001         * doc/invoke.texi (-fmerge-all-constants): Update description.
6002
6003 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
6004
6005         PR target/38931
6006         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
6007         (*movdi_1_rex64): Use type "mmx" for alternative 5.
6008
6009 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
6010
6011         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
6012         a word boundary.
6013         (LOCAL_ALIGNMENT): Similarly.
6014
6015 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
6016             Joseph Myers  <joseph@codesourcery.com>
6017
6018         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
6019         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
6020         * config/arm/arm-tune.md: Regenerate.
6021         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
6022         -march=iwmmxt2.
6023
6024 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
6025
6026         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
6027         version number to five.
6028
6029 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
6030
6031         PR c++/38930
6032         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
6033         * c-common.c (set_underlying_type): Likewise.
6034         (is_typedef_decl ): Likewise
6035         * tree.h: Likewise
6036         (set_underlying_type): Likewise.
6037         (is_typedef_type): Likewise.
6038
6039 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
6040
6041         PR middle-end/38587
6042         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
6043         crossing setjmps.
6044
6045 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
6046
6047         PR bootstrap/37660
6048         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
6049         (LIBGCC_SPEC):  Don't define.
6050         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
6051
6052 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
6053
6054         PR rtl-optimization/38879
6055         * alias.c (base_alias_check): Unaligned access via AND address can
6056         alias all surrounding object types except those with sizes equal
6057         or wider than the size of unaligned access.
6058
6059 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
6060
6061         PR c++/26693
6062         * c-decl.c (clone_underlying_type): Move this ...
6063         * c-common.c (set_underlying_type): ... here.
6064         Also, make sure the function properly sets TYPE_STUB_DECL() on
6065         the newly created typedef variant type.
6066         (is_typedef_decl ): New entry point.
6067         * tree.h: Added a new member member_types_needing_access_check to
6068         struct tree_decl_non_common.
6069         (set_underlying_type): New entry point.
6070         (is_typedef_type): Likewise.
6071
6072 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
6073
6074         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
6075         Check whether two instructions have memory references that
6076         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
6077         are helper functions for traversing.
6078         * alias.h (insn_alias_sets_confilict_p): New prototypes.
6079         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
6080         not to draw dependency edge for instructions with non-conflicting
6081         alias sets.
6082
6083 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
6084
6085         PR other/38758
6086         * longlong.h: Update copyright years.  Use soft-fp license notice.
6087         Sync __clz_tab declaration with glibc.
6088
6089 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
6090
6091         PR target/30687
6092         * doc/extend.texi (syscall_linkage): New.
6093         (version_id): Modify.
6094
6095 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6096             Richard Guenther  <rguenther@suse.de>
6097
6098         PR tree-optimization/38747
6099         PR tree-optimization/38748
6100         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
6101         conversion if the base address is an indirect reference and the
6102         aliasing sets could cause issues.
6103
6104 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
6105
6106         * common.opt (fgraphite, fgraphite-identity): Add comment for 
6107         explaining why these options are not documented.
6108
6109 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
6110
6111         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
6112         gimple_call_lhs is NULL.
6113
6114 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
6115
6116         PR target/38868
6117         * emit-rtl.c (adjust_address_1): Make sure memref is never
6118         overwritten.
6119
6120 2009-01-20  Ben Elliston  <bje@au.ibm.com>
6121
6122         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
6123         const qualifier from arg parameter. Remove unnecessary cast to char *.
6124         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
6125         const qualifier from arg 2.
6126
6127 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
6128
6129         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
6130
6131 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
6132
6133         PR c/38869
6134         * rtl.h (reinit_regs): New prototype.
6135         * regclass.c: Include ira.h.
6136         (reinit_regs): New.
6137         * Makefile.in (regclass.o): Add ira.h.
6138         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
6139
6140 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
6141
6142         PR target/38736
6143         * c-common.c (handle_aligned_attribute): Use
6144         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
6145         default alignment value.
6146
6147         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
6148
6149         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
6150         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
6151
6152         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
6153         __BIGGEST_ALIGNMENT__.
6154
6155         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
6156
6157 2009-01-18  Richard Guenther  <rguenther@suse.de>
6158
6159         PR tree-optimization/38819
6160         * tree-flow.h (operation_could_trap_helper_p): Declare.
6161         * tree-eh.c (operation_could_trap_helper_p): Export.
6162         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
6163         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
6164         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
6165         are about to insert a possibly trapping instruction and fail
6166         in this case.
6167
6168 2009-01-18  Andreas Schwab  <schwab@suse.de>
6169
6170         * doc/install.texi (Configuration): Remove obsolete paragraph
6171         about use of --with-gnu-ld with --with-gnu-as.
6172
6173 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
6174
6175         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
6176         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
6177         Follow spelling conventions.
6178
6179 2009-01-18  Ben Elliston  <bje@au.ibm.com>
6180
6181         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
6182         C++ warning about implicit conversion from void * to struct
6183         bitmap_head_def *.
6184         (bitmap_obstack_free): Likewise for bitmap_element *.
6185         * Makefile.in (bitmap.o-warn): Remove.
6186
6187 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
6188
6189         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
6190
6191 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
6192             Tobias Grosser  <tobi.grosser@amd.com>
6193
6194         * graphite.c (graphite_trans_scop_block): Do not block single
6195         nested loops.
6196
6197 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
6198
6199         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
6200         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
6201         test with assertion.
6202
6203 2009-01-16  Richard Guenther  <rguenther@suse.de>
6204
6205         PR tree-optimization/38835
6206         PR middle-end/36227
6207         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
6208         and INT + PTR -> (INT)(PTR p+ INT) folding.
6209         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
6210
6211 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
6212
6213         PR target/38554
6214         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
6215         the subreg from a lowpart subreg if it is also casting the value.
6216
6217 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
6218             Tobias Grosser  <tobi.grosser@amd.com>
6219
6220         * graphite.c (compare_prefix_loops): New.
6221         (build_scop_canonical_schedules): Rewritten.
6222         (graphite_transform_loops): Move build_scop_canonical_schedules
6223         after build_scop_iteration_domain.
6224
6225 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
6226             Tobias Grosser  <tobi.grosser@amd.com>
6227
6228         * graphite.c (add_conditions_to_domain): Add the loops to 
6229         the dimension of the iteration domain.  Do copy the domain
6230         only when it exists.
6231         (build_scop_conditions_1): Do not call add_conditions_to_domain.
6232         (add_conditions_to_constraints): New.
6233         (can_generate_code_stmt, can_generate_code): Removed.
6234         (gloog): Do not call can_generate_code.
6235         (graphite_transform_loops): Call add_conditions_to_constraints
6236         after building the iteration domain.
6237
6238 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
6239
6240         PR tree-optimization/38789
6241         * tree-ssa-threadedge.c
6242         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
6243         __builtin_constant_p.
6244
6245 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
6246
6247         * dce.c (delete_unmarked_insns): Reversed the order that insns are
6248         examined before deleting them.
6249         
6250 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
6251
6252         * function.c (aggregate_value_p): Correctly extract the function
6253         type from CALL_EXPR_FN lookup.
6254
6255 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
6256
6257         * config/picochip/picochip.c (picochip_override_options): Revert
6258         CFI asm flag disable commited previously.
6259
6260 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
6261             Tobias Grosser  <tobi.grosser@amd.com>
6262             Jan Sjodin  <jan.sjodin@amd.com>
6263
6264         * graphite.c (scan_tree_for_params): On substractions negate
6265         all the coefficients of the term.
6266         (clast_to_gcc_expression_red): New.  Handle reduction expressions
6267         of more than two operands.
6268         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
6269         (get_vdef_before_scop): Handle also the case of default definitions.
6270
6271 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
6272
6273         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
6274         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
6275         Also use them when walking CALL_INSN_FUNCTION_USAGE.
6276
6277 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
6278             Joey Ye  <joey.ye@intel.com>
6279
6280         PR middle-end/37843
6281         * cfgexpand.c (expand_stack_alignment): Don't update stack
6282         boundary nor check incoming stack boundary here.
6283         (gimple_expand_cfg): Update stack boundary and check incoming
6284         stack boundary here.
6285
6286 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
6287
6288         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
6289         
6290 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
6291
6292         PR rtl-optimization/38245
6293         * calls.c (expand_call): Add stack arguments to
6294         CALL_INSN_FUNCTION_USAGE even for pure calls (when
6295         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
6296         in regs and partially in memory or BLKmode arguments.
6297         (emit_library_call_value_1): Add stack arguments to
6298         CALL_INSN_FUNCTION_USAGE even for pure calls (when
6299         ACCUMULATE_OUTGOING_ARGS).
6300         * dce.c: Include tm_p.h.
6301         (find_call_stack_args): New function.
6302         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
6303         argument.
6304         (mark_insn): Call find_call_stack_args for CALL_Ps.
6305         (prescan_insns_for_dce): Walk insns backwards in bb rather than
6306         forwards.  Allocate and free arg_stores bitmap if needed, pass it
6307         down to deletable_insn_p, don't mark stores set in arg_stores
6308         bitmap, clear the bitmap at the beginning of each bb.
6309         * Makefile.in (dce.o): Depend on $(TM_P_H).
6310
6311 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
6312
6313         PR target/22599
6314         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
6315         to make sure the insn is a conditional test (bug 22599).  Reformat a
6316         few long lines.
6317
6318 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
6319
6320         PR middle-end/38431
6321         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
6322         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
6323         (gloog): Do not call cleanup_tree_cfg.
6324         (graphite_transform_loops): Call cleanup_tree_cfg after all 
6325         scops have been code generated.
6326
6327 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
6328         * doc/gty.texi (Invoking the garbage collector): Added new node
6329         and section documenting ggc_collect.
6330
6331 2009-01-14  Richard Guenther  <rguenther@suse.de>
6332
6333         PR tree-optimization/38826
6334         PR middle-end/38477
6335         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
6336         initialization notes only if we actually emitted a warning.
6337         (intra_create_variable_infos): Add constraints for a result decl
6338         that is passed by hidden reference.
6339         (build_pred_graph): Mark all related variables non-direct on
6340         address-taking.
6341
6342 2009-01-14  Nick Clifton  <nickc@redhat.com>
6343
6344         * ira-conflicts.c: Include addresses.h for the definition of
6345         base_reg_class.
6346         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
6347         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
6348
6349 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
6350
6351         PR target/38811
6352         * Makefile.in (ira-lives.o): Add except.h.
6353
6354         * ira-lives.c: Include except.h.
6355         (process_bb_node_lives): Process can_throw_internal.
6356
6357 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
6358
6359         PR rtl-optimization/38774
6360         * combine.c (simplify_set): When undoing cc_use change, don't do
6361         PUT_CODE on the newly created comparison, but instead put back the
6362         old comparison.
6363
6364 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
6365
6366         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
6367         values.  Remove duplicate arm8 entry.
6368
6369 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
6370
6371         PR tree-optimization/38786
6372         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
6373         the SSA_NAME case of expand_scalar_variables_expr.
6374         Set the type of an expression to the type of its assign statement.
6375         (expand_scalar_variables_expr): Also gather the scalar computation
6376         used to index the memory access.  Do not pass loop_p.
6377         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
6378         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
6379         the gimple_stmt_iterator where it inserts new code.
6380         Do not pass loop_p.
6381         (copy_bb_and_scalar_dependences): Do not pass loop_p.
6382         (translate_clast): Update call to copy_bb_and_scalar_dependences.
6383
6384 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
6385
6386         * graphite.h (debug_value): Removed.
6387         * graphite.c (debug_value): Removed.
6388
6389 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
6390
6391         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
6392         ldrd/strd with two 32-bit instructions.
6393
6394 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
6395
6396         * config/arm/arm.c (struct processors): Pass for speed down into
6397         cost helper functions.
6398         (const_ok_for_op): Handle COMPARE and inequality nodes.
6399         (arm_rtx_costs_1): Rewrite.
6400         (arm_size_rtx_costs): Update prototype.
6401         (arm_rtx_costs): Pass speed down to helper functions.
6402         (arm_slowmul_rtx_costs): Rework cost calculations.
6403         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
6404         (arm_9e_rtx_costs): Likewise.
6405
6406 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
6407
6408         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
6409         relocations of local symbols wider than UNITS_PER_WORD are not valid.
6410         (alpha_legitimize_address): Do not split local symbols wider than
6411         UNITS_PER_WORD into HIGH/LO_SUM parts.
6412
6413 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
6414
6415         PR bootstrap/38580
6416         * gcc.c (process_command): Replace call to execvp with calls
6417         to pex_one and exit.
6418
6419 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
6420
6421         PR target/29141
6422         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
6423         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
6424         variant for devices with 3-byte PC.
6425         (__tablejump_elpm__): New.
6426
6427 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
6428
6429         PR c/32041
6430         * c-parser.c (c_parser_postfix_expression): Allow `->' in
6431         offsetof member-designator, handle it as `[0].'.
6432
6433 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6434
6435         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
6436         function when not using named sections on targets with named sections
6437         if branch distance is less than 262132.
6438
6439 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
6440
6441         * combine.c (combine_instructions):  Recompute
6442         optimize_this_for_speed_p  for each BB in the main combine loop.
6443
6444 2009-01-12  Tomas Bily  <tbily@suse.cz>
6445
6446         PR middlend/38385
6447         * tree-loop-distribution.c (prop_phis): New function.
6448         (generate_builtin): Call prop_phis.
6449         * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
6450
6451 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
6452
6453         PR tree-optimization/38807
6454         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
6455         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
6456
6457 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
6458
6459         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
6460         subreg of op0 to the original op0.
6461
6462 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
6463
6464         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
6465         
6466 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
6467
6468         PR debug/7055
6469         * gcc/mips-tfile.c (parse_def): Fix parsing of def strings
6470         starting with digits.
6471
6472 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
6473
6474         PR target/38695
6475         * config/arm/arm.c (arm_is_long_call_p): Don't call
6476         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
6477
6478 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
6479
6480         * regrename.c (regrename_optimize): Fix dumping.
6481         (find_oldest_value_reg): Preserve REG_POINTER.
6482         (copy_hardreg_forward_1): Likewise.
6483
6484 2009-01-09  Diego Novillo  <dnovillo@google.com>
6485
6486         * gimple.h (struct gimple_statement_base) <uid>: Document
6487         the restrictions on its use.
6488         (gimple_uid): Tidy.
6489         (gimple_set_uid): Tidy.
6490
6491 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
6492
6493         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
6494         zero guard even if align_bytes != 0 and count is smaller than
6495         size_needed.
6496
6497 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
6498
6499         PR rtl-optimization/38495
6500         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
6501         (add_range_and_copies_from_move_list): Print all added ranges.
6502         Add ranges to memory optimized destination.
6503
6504 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
6505
6506         PR target/38686
6507         PR target/38708
6508         * config/i386/i386.c (override_options): Reject
6509         -mstringop-strategy=rep_8byte with -m32.
6510         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
6511         to 1.  Do count comparison against epilogue_size_needed at compile
6512         time even when count_exp was constant forced into register.  For
6513         size_needed don't jump to epilogue, instead just avoid aligning
6514         and invoke the body algorithm.  If need_zero_guard, add zero guard
6515         even if count is non-zero, but smaller than size_needed + number of
6516         bytes that could be stored for alignment.
6517         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
6518         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
6519         but smaller than size_needed + number of bytes that could be stored
6520         for alignment.  Compare size_needed with epilogue_size_needed instead
6521         of desired_align - align, don't adjust size_needed, pass
6522         epilogue_size_needed to the epilogue expanders.
6523
6524         PR c/35742
6525         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
6526
6527 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6528
6529         * pa.c (last_address): Change to unsigned.
6530         (update_total_code_bytes): Change argument to unsigned.  Don't
6531         check if insn addresses are set.
6532         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
6533         addresses are not set.
6534         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
6535
6536 2009-01-09  Nick Clifton  <nickc@redhat.com>
6537
6538         * config/sh/symbian.c: Replace uses of DECL_INLINE with
6539         DECL_DECLARED_INLINE_P.
6540
6541 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
6542
6543         PR middle-end/38347
6544         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
6545         GET_MODE (op0) in operand_subword_force calls.
6546
6547         PR middle-end/38771
6548         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
6549         fold_convert arg0 operands to TREE_TYPE (op0) first.
6550
6551 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
6552
6553         * params.def (ira-max-conflict-table-size): Decrease default value
6554         to 1000.
6555
6556 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
6557
6558         PR tree-optimization/37031
6559         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
6560         on parameter_set.
6561         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
6562         allocate it using gc instead of heap, use VEC_quick_push instead of
6563         VEC_safe_push.
6564         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
6565         instead of heap, use VEC_quick_push instead of VEC_safe_push.
6566         * tree-data-ref.h (struct access_matrix): Change matrix to gc
6567         allocated vector from heap allocated.
6568         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
6569         * tree-loop-linear.c (linear_transform_loops): Allocate nest
6570         vector only after perfect_loop_nest_depth call.
6571
6572 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
6573             Jan Sjodin  <jan.sjodin@amd.com>
6574
6575         PR tree-optimization/38559
6576         * graphite.c (debug_value, copy_constraint,
6577         swap_constraint_variables, scale_constraint_variable, ): New.
6578         (get_lower_bound, get_upper_bound): Removed.
6579         (graphite_trans_bb_strip_mine): Clean up this code that works
6580         only for constant number of iterations.  Fully copy upper and
6581         lower bound constraints, not only the constant part of them.
6582         * graphite.h (debug_value): Declared.
6583
6584 2009-01-08  Ira Rosen  <irar@il.ibm.com>
6585
6586         PR tree-optimization/37194
6587         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
6588         Don't add the cost of cost model guard in prologue to scalar 
6589         outside cost in case of known number of iterations.
6590
6591 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
6592             Alan Modra  <amodra@bigpond.net.au>
6593
6594         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
6595         non-word-aligned REG+CONST addressing.
6596
6597 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
6598
6599         PR target/38706
6600         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
6601         free_after_compilation when outputting a thunk.
6602         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
6603         Do not call free_after_compilation here.
6604
6605 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
6606
6607         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
6608         (ix86_valid_target_attribute_inner_p): Ditto.
6609
6610 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
6611
6612         PR tree-optimization/38492
6613         PR tree-optimization/38498
6614         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
6615         * tree-chrec.h (scev_is_linear_expression): Declared.
6616         * graphite.c (graphite_cannot_represent_loop_niter): New.
6617         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
6618         (graphite_loop_normal_form): Use gcc_assert.
6619         (scan_tree_for_params): Use CASE_CONVERT.
6620         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
6621         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
6622         Use gcc_assert.  Discard scops that contain unhandled cases.
6623         (build_scop_conditions): Return a boolean status for unhandled cases.
6624         (strip_mine_profitable_p): Print the loop number, not its depth.
6625         (is_interchange_valid): Pass the depth of the loop nest, don't
6626         recompute it wrongly.
6627         (graphite_trans_bb_block): Same.
6628         (graphite_trans_bb_block): Print tentative of loop blocking.
6629         (graphite_trans_scop_block): Do not print that the loop has been
6630         blocked.
6631         (graphite_transform_loops): Do not handle scops that contain condition
6632         scalar phi nodes.
6633
6634 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
6635
6636         AVX Programming Reference (December, 2008)
6637         * config/i386/avxintrin.h (_mm256_stream_si256): New.
6638         (_mm256_stream_pd): Likewise.
6639         (_mm256_stream_ps): Likewise.
6640
6641         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
6642         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
6643         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
6644         (bdesc_special_args): Add __builtin_ia32_movntdq256,
6645         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
6646         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
6647         (ix86_expand_special_args_builtin): Likewise.
6648
6649         * config/i386/sse.md (AVXMODEDI): New.
6650         (avx_movnt<mode>): Likewise.
6651         (avx_movnt<mode>): Likewise.
6652         (<sse>_movnt<mode>): Remove AVX support.
6653         (sse2_movntv2di): Likewise.
6654
6655 2009-01-07  Richard Guenther  <rguenther@suse.de>
6656
6657         PR middle-end/38751
6658         * fold-const.c (extract_muldiv): Remove obsolete comment.
6659         (fold_plusminus_mult_expr): Undo MINUS_EXPR
6660         to PLUS_EXPR canonicalization for the canonicalization.
6661
6662 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
6663
6664         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
6665         hosted cross-compilers generating less efficient code.
6666
6667 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
6668
6669         * function.h (rtl_data): Add a dbr_scheduled_p field.
6670         * reorg.c (dbr_schedule): Set it.
6671         (gate_handle_delay_slots): Check it.
6672         * config/mips/mips.c (mips_base_delayed_branch): Delete.
6673         (mips_reorg): Check flag_delayed_branch instead of
6674         mips_base_delayed_branch.
6675         (mips_override_options): Don't set mips_base_delayed_branch
6676         or flag_delayed_branch.
6677
6678 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
6679
6680         PR rtl-optimization/38426.
6681         * ira.c (ira): Set current_function_is_leaf earlier.
6682
6683 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
6684
6685         PR rtl-optimization/38722
6686         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
6687         too early, only set a flag and modify after last possible
6688         undo_all point.
6689
6690 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
6691
6692         PR c/34252
6693         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
6694         * real.c (decimal_single_format): Correct values of emin and emax.
6695         (decimal_double_format): Ditto.
6696         (decimal_quad_format): Ditto.
6697         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
6698         computation of DECnn_MIN and DECnn_MAX for corrected values of
6699         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
6700         __DECnn_MIN__, and adjust its computation for the corrected value
6701         of emin.
6702
6703 2009-01-06  Jan Hubicka  <jh@suse.cz>
6704
6705         PR target/38744
6706         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
6707
6708 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
6709
6710         * doc/contrib.texi (Contributors): Slightly adjust the end note.
6711         Add Robert Clark to the list of testers.
6712
6713 2009-01-06  Jan Hubicka  <jh@suse.cz>
6714             Kai Tietz  <kai.tietz@onevision.com>
6715
6716         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
6717         * config/i386/i386.c (ix86_expand_call): Add clobbers.
6718
6719 2009-01-06  Jan Hubicka  <jh@suse.cz>
6720             Kai Tietz  <kai.tietz@onevision.com>
6721
6722         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
6723         for w64 ABI.
6724         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
6725         (ix86_nsaved_regs): Count only general purpose regs.
6726         (ix86_nsaved_sseregs): New.
6727         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
6728         to 16 for w64; compute padding and size of sse reg save area.
6729         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
6730         general purpose regs.
6731         (ix86_emit_save_sse_regs_using_mov): New.
6732         (ix86_expand_prologue): Save SSE regs if needed.
6733         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
6734         (ix86_emit_restore_sse_regs_using_mov): New.
6735         (ix86_expand_epilogue): Save SSE regs if needed.
6736
6737 2009-01-06  Jan Hubicka  <jh@suse.cz>
6738             Kai Tietz  <kai.tietz@onevision.com>
6739
6740         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
6741         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
6742         functions when accumulate outgoing args is off.
6743
6744 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
6745
6746         PR bootstrap/38742
6747         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
6748         before using pseudos_have_intersected_live_ranges_p.
6749
6750         * ira-int.h (ira_assert): Always define.
6751
6752 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
6753
6754         AVX Programming Reference (December, 2008)
6755         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
6756         (_mm256_permute2_pd): Likewise.
6757         (_mm_permute2_ps): Likewise.
6758         (_mm256_permute2_ps): Likewise.
6759         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
6760         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
6761
6762         * config/i386/i386.c (ix86_builtins): Remove
6763         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
6764         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
6765         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
6766         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
6767         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
6768         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
6769         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
6770         __builtin_ia32_vpermil2ps256.
6771         (ix86_init_mmx_sse_builtins): Updated.
6772         (ix86_expand_args_builtin): Likewise.
6773
6774 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6775
6776         * pa.c (output_call): Relocate non-jump insns in the delay slot of
6777         long absolute calls when generating PA 2.0 code.
6778
6779 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
6780
6781         PR rtl-optimization/38583
6782         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
6783
6784         * params.def (ira-max-conflict-table-size): New.
6785
6786         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
6787         
6788         * ira.h (ira_conflicts_p): New external definition.
6789         
6790         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
6791         table.  Report this.  Return result of building.
6792         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
6793         building conflict table.
6794
6795         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
6796         (ira_color): Use ira_conflicts_p.
6797         
6798         * global.c: Include ira.h.
6799         (pseudo_for_reload_consideration_p, build_insn_chain): Use
6800         ira_conflicts_p.
6801
6802         * Makefile.in (global.o): Add ira.h.
6803         
6804         * ira-build.c (mark_all_loops_for_removal,
6805         propagate_some_info_from_allocno): New.
6806         (remove_unnecessary_allocnos): Call
6807         propagate_some_info_from_allocno.
6808         (remove_low_level_allocnos): New.
6809         (remove_unnecessary_regions): Add parameter.  Call
6810         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
6811         parameter to remove_unnecessary_regions.
6812         (ira_build): Remove all regions but root if the conflict table was
6813         not built.  Update conflict hard regs for allocnos crossing calls.
6814
6815         * ira.c (ira_conflicts_p): New global.
6816         (ira): Define and use ira_conflicts_p.
6817
6818         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
6819         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
6820         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
6821         
6822 2009-01-06  Ben Elliston  <bje@au.ibm.com>
6823
6824         * gengtype-lex.l (YY_NO_INPUT): Define.
6825
6826 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6827
6828         PR c/34911
6829         * c-common.c (handle_vector_size_attribute): Also reject
6830         BOOLEAN_TYPE types.
6831
6832 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
6833
6834         PR tree-optimization/38492
6835         * graphite.c (rename_map_elt, debug_rename_elt,
6836         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
6837         rename_map_elt_info, eq_rename_map_elts,
6838         get_new_name_from_old_name, bb_in_sese_p): Moved around.
6839         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
6840         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
6841         (sese_build_livein_liveouts): New.
6842         (new_sese, free_sese): New.
6843         (new_scop): Call new_sese.
6844         (free_scop): Call free_sese.
6845         (rename_variables_from_edge, rename_phis_end_scop): Removed.
6846         (register_old_new_names): Renamed register_old_and_new_names.
6847         (register_scop_liveout_renames, add_loop_exit_phis,
6848         insert_loop_close_phis, struct igp,
6849         default_liveout_before_guard, add_guard_exit_phis,
6850         insert_guard_phis, copy_renames): New.
6851         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
6852         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
6853         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
6854         (scop_adjust_phis_for_liveouts): New.
6855         (gloog): Call scop_adjust_phis_for_liveouts.
6856
6857         * graphite.h (struct sese): Documented.  Added fields liveout,
6858         num_ver and livein.
6859         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
6860         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
6861         (struct scop): Added field liveout_renames.
6862         (SCOP_LIVEOUT_RENAMES): New.
6863
6864 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
6865
6866         PR tree-optimization/38510
6867         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
6868         (translate_clast): Call recompute_all_dominators before
6869         graphite_verify.
6870         (gloog): Call recompute_all_dominators before graphite_verify.
6871
6872 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
6873             Jan Sjodin  <jan.sjodin@amd.com>
6874
6875         PR tree-optimization/38500
6876         * graphite.c (create_sese_edges): Call fix_loop_structure after
6877         splitting blocks.
6878
6879 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
6880
6881         * config.gcc: Add m32r*-*-rtems*.
6882         * config/m32r/rtems.h: New file.
6883
6884 2009-01-05  Ben Elliston  <bje@au.ibm.com>
6885
6886         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
6887         (.po.pox): Likewise.
6888         (po/gcc.pot): Likewise.
6889
6890 2009-01-04  David S. Miller  <davem@davemloft.net>
6891
6892         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
6893         (STARTING_FRAME_OFFSET): Always set to zero.
6894
6895 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
6896
6897         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
6898         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
6899         fixed-point types, and vectors of the same.
6900
6901 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
6902
6903         * config/mips/sync.md (*mb_barrier): Rename to...
6904         (*memory_barrier): ...this.
6905
6906 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
6907
6908         * doc/extend.texi (Function Attributes): Move @cindex after @item
6909         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
6910         and put in alphabetical order. Fix 'target' name and put in order.
6911         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
6912         typos.
6913
6914 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
6915
6916         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
6917         (memory_barrier): Expand as unspec instead of unspec_volatile.
6918         Remove mem:BLK from insn operands.  Use Pmode scratch register.
6919         (*memory_barrier): Define as unspec instead of unspec_volatile.
6920         Use (match_dup 0) as input operand.
6921
6922         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
6923         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
6924         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
6925         scratch register.  Remove operand 1.
6926         (*stbar): Define as unspec instead of unspec_volatile.
6927         Use (match_dup 0) as input operand, remove (const_int 8).
6928         (*membar): Define as unspec instead of unspec_volatile.
6929         Use (match_dup 0) as input operand, remove input operand 2.
6930
6931         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
6932         (memory_barrier): Expand as unspec instead of unspec_volatile.
6933         Remove mem:BLK from insn operands.  Use Pmode scratch register.
6934         (*memory_barrier): Define as unspec instead of unspec_volatile.
6935         Use (match_dup 0) as input operand.
6936
6937         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
6938         Remove mem:BLK from insn operands.  Use Pmode scratch register.
6939         Set volatile flag on operand 0.
6940         (*memory_barrier): New insn pattern.
6941
6942         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
6943         insn operands.
6944         (*memory_barrier): Use (match_dup 0) as input operand.
6945
6946         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
6947         Remove mem:BLK from insn operands.  Use Pmode scratch register.
6948         Set volatile flag on operand 0.
6949         (*mb_internal): New insn pattern.
6950
6951         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
6952
6953 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
6954
6955         PR middle-end/38586
6956         * function.c (struct temp_slot): Move to the section of the file
6957         that deals with temp slots.  Remove field 'address'.
6958         (temp_slot_address_table): New hash table of address -> temp slot.
6959         (struct temp_slot_address_entry): New struct, items for the table.
6960         (temp_slot_address_compute_hash, temp_slot_address_hash,
6961         temp_slot_address_eq, insert_temp_slot_address): Support functions
6962         for the new table.
6963         (find_temp_slot_from_address): Rewrite to use the new hash table.
6964         (remove_unused_temp_slot_addresses): Remove addresses of temp
6965         slots that have been made available.
6966         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
6967         worker function for remove_unused_temp_slot_addresses.
6968         (assign_stack_temp_for_type): Don't clear the temp slot address list.
6969         Add the temp slot address to the address -> temp slot map.
6970         (update_temp_slot_address): Update via insert_temp_slot_address.
6971         (free_temp_slots): Call remove_unused_temp_slot_addresses.
6972         (pop_temp_slots): Likewise.
6973         (init_temp_slots): Allocate the address -> temp slot map, or empty
6974         the map if it is already allocated.
6975         (prepare_function_start): Initialize temp slot processing.
6976
6977 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
6978
6979         PR middle-end/38584
6980         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
6981         Calculate the size of all stack vars assuming no packing of stack
6982         vars will happen, replacing a quadratic algorithm with a linear one.
6983
6984 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
6985
6986         PR target/38707
6987         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
6988         can't be used.
6989
6990 2009-01-03  Diego Novillo  <dnovillo@google.com>
6991
6992         * doc/contrib.texi: Update contributions.
6993
6994 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
6995
6996         PR c++/38705
6997         * builtins.c (fold_builtin_memory_op): Give up if either operand
6998         is volatile.  Set srctype or desttype to non-qualified version
6999         of the other type.
7000
7001         PR c/38700
7002         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
7003         and FUNCTION_DECLs.
7004
7005 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
7006
7007         PR rtl-optimization/35805
7008         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
7009         problem if fast dce is able to remove any instructions.
7010         * dce.c (dce_process_block): Fix dump message.
7011         
7012 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
7013
7014         PR 33649
7015         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
7016
7017 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
7018
7019         PR middle-end/38690
7020         * tree-flow.h (op_code_prio, op_prio): New prototypes.
7021         * tree-pretty-print.c (op_code_prio): New function.
7022         (op_prio): No longer static.  Use op_code_prio.
7023         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
7024         Use op_prio and op_code_prio to determine if () should be
7025         printed around operand(s) or not.
7026
7027         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
7028         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
7029         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
7030         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
7031         pp_character instead of pp_string for single letter printing.
7032
7033 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
7034
7035         * doc/extend.texi: Fix '#pragma GCC option' typo.
7036
7037 2009-01-02  Richard Guenther  <rguenther@suse.de>
7038
7039         * doc/install.texi (--enable-checking): Mention different
7040         default for stage1.
7041         (--enable-stage1-checking): Document.
7042
7043 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
7044
7045         PR middle-end/30142
7046         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
7047         case to be an error.
7048
7049 2009-01-02  Ben Elliston  <bje@au.ibm.com>
7050
7051         * config/fp-bit.h (pack_d): Constify argument.
7052         * config/fp-bit.c (makenan): Constify return type. Remove casts.
7053         (isnan): Constify argument.
7054         (isinf): Likewise.
7055         (iszero): Likewise.
7056         (pack_d): Likewise.
7057         (_fpadd_parts): Constify return type.
7058         (_fpmul_parts): Likewise.
7059         (_fpdiv_parts): Likewise.
7060
7061 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
7062
7063         PR c/36489
7064         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
7065         warn about overwriting initializer with side-effects or
7066         -Woverride-init if !IMPLICIT.
7067         (output_init_element): Likewise.  Pass IMPLICIT down to
7068         add_pending_init.
7069         (process_init_element): Add IMPLICIT argument.  Pass it down
7070         to output_init_element.
7071         (push_init_element, pop_init_level, set_designator): Adjust
7072         process_init_element callers.
7073         (set_nonincremental_init, set_nonincremental_init_from_string):
7074         Adjust add_pending_init callers.
7075         (output_pending_init_elements): Adjust output_init_element callers.
7076         * c-tree.h (process_init_element): Adjust prototype.
7077         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
7078         process_init_element callers.