lto-plugin.c (add_input_library): New.
[official-gcc.git] / gcc / ChangeLog
blob8f0ba61031f567d408b80a4167d93b58fd450009
1 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
3         * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
4         being statically linked.
6 2009-10-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8         * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
10 2009-10-08  Jan Hubicka  <jh@suse.cz>
12         PR bootstrap/41620
13         * ipa.c (cgraph_externally_visible_p,
14         function_and_variable_visibility,
15         whole_program_function_and_variable_visibility): Skip non-finalized
16         nodes.
18 2009-10-08  Nick Clifton  <nickc@redhat.com>
20         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
21         CONST_DOUBLEs.
23 2009-10-08  Andreas Tobler  <a.tobler@schweiz.org>
25         PR bootstrap/37739
26         * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
28 2009-10-07  Joseph Myers  <joseph@codesourcery.com>
30         PR c/41182
31         * c-common.c (c_fully_fold_internal): Strip nops from the result
32         of recursive calls to c_fully_fold_internal.
33         (c_wrap_maybe_const): New.
34         (c_save_expr): Use c_wrap_maybe_const.
35         * c-common.h (c_wrap_maybe_const): Declare.
36         * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
37         build_binary_op): Use c_wrap_maybe_const.
39 2009-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
41         * real.c: Fix comment to reflect actual exponent size.
43 2009-10-08  Ben Elliston  <bje@au.ibm.com>
45         * config/rs6000/a2.md: Add FSF comment header.
47 2009-10-07  Uros Bizjak  <ubizjak@gmail.com>
49         * config/i386/i386.md (any_extend): New code iterator.
50         (u, s): New code attributes.
51         (sgnprefix): Ditto.
52         (DWIH): Rewrite as code iterator for SI and DI modes.
53         (DWI): Rewrite as mode attribute.
54         (dwi): New mode attribute.
55         (di): Depend on SI mode and DI mode.
56         (doubleint_general_operand): Remove mode attribute.
58         (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
59         DWIH mode iterator.
61         (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
62         (*sub<mode>3_doubleword): Ditto.
64         (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
65         using SWIM248 mode iterator.
66         (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
67         using SWI48 mode iterator.
68         (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
69         patterns using DWIH mode iterator and any_extend code iterator.
70         (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
71         using any_extend code iterator.
72         (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
73         patterns using DWIH mode iterator and any_extend code iterator.
74         (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
75         using any_extend code iterator.
76         (<s>mul<mode>3_highpart): Macroize expander from
77         {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
78         and any_extend code iterator.
79         (*<s>muldi3_highpart_1): Macroize insn from
80         *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
81         (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
82         patterns using any_extend code iterator.
83         (*<s>mulsi3_highpart_zext): Macroize insn from
84         *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
86 2009-10-07  Jakub Jelinek  <jakub@redhat.com>
88         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
89         DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
90         refering to a DIE with DW_AT_const_value.
92 2009-10-07  Vladimir Makarov  <vmakarov@redhat.com>
94         PR middle-end/22072
95         * ira-lives.c (check_and_make_def_conflict): Process all operands.
97 2009-10-06  Jan Hubicka  <jh@suse.cz>
99         * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
100         correctly.
102 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
104         * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
105         *lea_2_rex64): Move before *add<mode>_1 pattern.
107 2009-10-07  Jan Hubicka  <jh@suse.cz>
109         * collect2.c (main): Add -fno-whole-program.
110         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
112 2009-10-07  Jan Hubicka  <jh@suse.cz>
114         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones has
115         no address taken.
116         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
117         never needed.
118         (cgraph_clone_node): Clear externally_visible flag for clones.
119         * cgraph.h (cgraph_only_called_directly_p,
120         cgraph_can_remove_if_no_direct_calls_p): New predicates.
121         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
122         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
123         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
124         ipcp_insert_stage): Likwise.
125         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
126         externally_visible flag.
127         (verify_cgraph_node): Verify that inline clones look right.
128         (process_function_and_variable_attributes): Do not set
129         externally_visible flags.
130         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
131         been already run.
132         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
133         boundaries.
134         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
135         clear externally_visible when turning into inline clones
136         (cgraph_mark_inline_edge): Use new predicates.
137         (cgraph_estimate_growth): Likewise.
138         (cgraph_decide_inlining): Likewise.
139         * ipa.c (cgraph_postorder): Likewise.
140         (cgraph_remove_unreachable_nodes): Likewise; sanity check
141         that inline clones are not needed.
142         (cgraph_externally_visible_p): New predicate.
143         (function_and_variable_visibility): Add whole_program parameter;
144         always set externally_visible flag; handle COMDAT function
145         privatization.
146         (local_function_and_variable_visibility): New function.
147         (gate_whole_program_function_and_variable_visibility): New function.
148         (whole_program_function_and_variable_visibility): New function.
149         (pass_ipa_whole_program_visibility): New function.
150         * passes.c  (init_optimization_passes): Add whole program visibility
151         pass.
152         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
153         not care about needed/reachable flags.
154         * varpool.c: Include flags.h
155         (decide_is_variable_needed): When doing LTO assume whole-program mode.
156         (varpool_finalize_decl): When we are in LTO read-back, all variables
157         are analyzed.
158         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
160 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
162         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
163         add MASK_HARD_DFP.
165 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
167         * config.gcc: Don't include the makefile fragments intended for
168         libgcc.
169         * config/s390/fixdfdi.h: File removed.
170         * config/s390/libgcc-glibc.ver: File removed.
171         * config/s390/s390.h: Remove the fixdfdi.h hack.
172         * config/s390/t-crtstuff: File moved to libgcc dir.
173         * config/s390/t-linux: Likewise.
174         * config/s390/t-tpf: libgcc specific parts removed.
175         * config/s390/t-linux64: Likewise.
177 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
179         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
180         (lto-compress.o): Likewise.
182 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
184         PR target/41512
185         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
186         dllexport to class members here.
187         (i386_pe_determine_dllimport_p): Only check static class data for
188         definition.
189         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
190         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
191         functions for vague linkage.
192         (i386_pe_type_dllexport_p): Fix formatting.
193         (maybe_add_dllexport) New function.
194         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
195         to class members.
197 2009-10-07  Ben Elliston  <bje@au.ibm.com>
199         * config/rs6000/a2.md: Remove duplicated lines.
201 2009-10-07  Ben Elliston  <bje@au.ibm.com>
203         * config.gcc (powerpc*-*-*): Handle a2.
204         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
205         * config/rs6000/a2.md: New file.
206         * config/rs6000/rs6000.opt (mno-update): New.
207         (mupdate): Return to using a mask, not a var.
208         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
209         (enum processor_type): Add PROCESSOR_PPCA2.
210         * config/rs6000/rs6000.c (ppca2_cost): New costs.
211         (rs6000_override_options): Add "a2" to processor_target_table.
212         Update rs6000_always_hint logic.  Correctly set rs6000_cost for a2.
213         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
215 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
217         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
218         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
219         reference to nonexistent gen_truncxfxf2 function.
221 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
223         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
224         (DWIH, g, di, doubleint_general_operand): New mode attributes.
225         (general_operand): Handle TI mode.
226         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
227         using SDWIM mode iterator.
228         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
229         pattern from *add{di,ti}3_1 patterns and corresponding splitters
230         using DWI mode iterator.
231         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
232         patterns using SWI mode iterator.
233         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
234         using SWI48 mode iterator.
235         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
236         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
237         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
238         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
239         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
240         using SDWIM mode iterator.
241         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
242         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
243         using DWI mode iterator.
244         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
245         patterns using SWI mode iterator.
246         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
247         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
248         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
249         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
250         patterns using plusminus code iterator.
251         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
252         sub<mode>3 patterns using plusminus code iterator.
253         * config/i386/i386.c (override_options): Update call to
254         gen_subdi_carry_rex64 for renamed function.
255         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
256         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
257         calls to instruction expanders.
259 2009-10-06  Martin Jambor  <mjambor@suse.cz>
261         PR bootstrap/41395
262         * opts.c (decode_options): Run IPA-SRA at -O2.
264 2009-10-06  Richard Guenther  <rguenther@suse.de>
266         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
268 2009-10-06  Tobias Burnus  <burnus@net-b.de>
270         PR lto/41591
271         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
272         -flto and -fwhole-program flags can be combined.
274 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
276         PR driver/41217
277         * gcc.c (process_command): Check that -o argument was specified.
279 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
281         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix
282         compilation.
284 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
286         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
287         * doc/invoke.texi (Warning Options): Annotate allowed languages
288         for -Wunsuffixed-float-constants.
290 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
292         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
293         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
294         same name and isn't the main variant.
296         PR debug/41558
297         * dwarf2out.c (loc_by_reference): Removed.
298         (dw_loc_list_1): New function.
299         (dw_loc_list): Remove toplev argument, add want_address argument.
300         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
301         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
302         want_address == 2 to dw_loc_list.  For successful dw_loc_list
303         set have_address to 1 only if want_address is not 0.
305 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
307         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
308         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
309         a code block followed by two pointers.
310         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
311         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
312         (MIPS_MOVE): Likewise.
313         (MIPS_LUI): Likewise.
314         (MIPS_JR): Likewise.
315         (MIPS_BAL): Likewise.
316         (MIPS_NOP): Likewise.
317         (mips_asm_trampoline_template): Delete.
318         (mips_trampoline_code_size): New function.
319         (mips_trampoline_init): Add shorter sequences for all cases
320         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
321         Calculate the opcodes directly, rather than copying from a template.
322         Only flush the code part of the trampoline.
323         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
325 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
327         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
328         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
329         (INCOMING_RETURN_ADDR_RTX): Likewise.
330         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
331         with AT_REGNUM.
332         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
333         with RETURN_ADDR_REGNUM.
334         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
335         * config/mips/mips.c (mips16_build_call_stub): Replace
336         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
337         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
338         (mips_print_operand_punctuation): Likewise.
339         (mips_frame_set): Likewise.
340         (mips16e_output_save_restore): Likewise.
341         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
342         (mips_save_reg_p): Likewise.
343         (mips_return_addr): Likewise.
344         (mips_set_return_address): Likewise.
345         (mips_direct_save_slot_move_p): Likewise.
346         (mips_output_function_prologue): Likewise.
347         (mips_restore_reg): Likewise.
348         (mips_expand_epilogue): Likewise.
349         (mips_epilogue_uses): Likewise.
350         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
351         (*mov<mode>_ra): Use it instead of a hard-coded 31.
352         (clear_hazard_<mode>): Likewise.
353         (call_internal): Likewise.
354         (call_internal_direct): Likewise.
355         (call_direct_split): Likewise.
356         (call_value_internal): Likewise.
357         (call_value_split): Likewise.
358         (call_value_internal_direct): Likewise.
359         (call_value_direct_split): Likewise.
360         (call_value_multiple_internal): Likewise.
361         (call_value_multiple_split): Likewise.
363 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
364             Jakub Jelinek  <jakub@redhat.com>
366         PR rtl-optimization/41511
367         * combine.c (record_value_for_reg): Pass explicit values as argument
368         to get_last_value_validate.
369         (get_last_value_validate): Document INSN parameter.
370         For non-readonly MEMs, assume they might have been modified if INSN
371         was in another basic block.
372         (get_last_value): Minor reformatting.
374 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
376         PR tree-opt/40992
377         * final.c (asm_str_count): Split out from asm_insn_count.
378         * rtl.h (asm_str_count): New prototype.
379         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
380         asm_str_count.
382 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
384         * doc/plugins.texi: Change plugin_pass to register_pass_info.
386 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
387             Rafael Espindola  <espindola@google.com>
389         * gengtype.c (write_types): Moved call to write_func_for_structure
390         into seperate loops.
392 2009-10-05  Richard Guenther  <rguenther@suse.de>
394         PR lto/41281
395         * lto-cgraph.c (output_cgraph): Output toplevel asms.
396         (input_cgraph_1): Input toplevel asms.
398 2009-10-05  Richard Guenther  <rguenther@suse.de>
400         PR lto/40902
401         * lto-symtab.c (lto_compatible_attributes_p): Remove.
402         (external_aggregate_decl_p): Likewise.
403         (lto_symtab_compatible): Re-structure.  Remove dead code.
404         For variables ignore toplevel qualifiers when comparing types.
405         Issue warnings, not errors for mismatched user-alignment.
407 2009-10-05  Richard Guenther  <rguenther@suse.de>
409         PR lto/41552
410         PR lto/41487
411         * lto-symtab.c (struct lto_symtab_base_def): Remove.
412         (struct lto_symtab_identifier_def): Likewise.
413         (struct lto_symtab_decl_def): Likewise.
414         (struct lto_symtab_entry_def): New.
415         (lto_symtab_identifier_t): Rename to ...
416         (lto_symtab_entry_t): ... this.
417         (lto_symtab_decls): Remove.
418         (lto_symtab_base_hash): Rename to ...
419         (lto_symtab_entry_hash): ... this.
420         (lto_symtab_base_eq): Rename to ...
421         (lto_symtab_entry_eq): ... this.
422         (lto_symtab_base_marked_p): Rename to ...
423         (lto_symtab_entry_marked_p): ... this.
424         (lto_symtab_identifier_marked_p): Remove.
425         (lto_symtab_decl_marked_p): Likewise.
426         (lto_symtab_maybe_init_hash_tables): Rename to ...
427         (lto_symtab_maybe_init_hash_table): ... this.
428         (lto_symtab_set_resolution_and_file_data): Remove.
429         (lto_symtab_register_decl): New function.
430         (lto_symtab_get_identifier): Remove.
431         (lto_symtab_get): New function.
432         (lto_symtab_get_resolution): Adjust.
433         (lto_symtab_get_identifier_decl): Remove.
434         (lto_symtab_set_identifier_decl): Likewise.
435         (lto_symtab_merge_decl): Rename to ...
436         (lto_symtab_merge): ... this.  Rewrite.
437         (lto_symtab_merge_var): Remove.
438         (lto_symtab_merge_fn): Likewise.
439         (lto_symtab_prevailing_decl): Adjust.
440         (lto_cgraph_replace_node): New function.
441         (lto_symtab_merge_decls_2): Likewise.
442         (lto_symtab_merge_decls_1): Likewise.
443         (lto_symtab_fixup_var_decls): Likewise.
444         (lto_symtab_resolve_symbols): Likewise.
445         (lto_symtab_merge_decls): Likewise.
446         (lto_symtab_prevailing_decl): Adjust.
447         (lto_symtab_get_symtab_def): Remove.
448         (lto_symtab_get_file_data): Likewise.
449         (lto_symtab_clear_resolution): Adjust.
450         (lto_symtab_clear_resolution): Likewise.
451         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
452         (input_cgraph_1): Likewise.
453         * lto-streamer-in.c (get_resolution): Do not provide fake
454         symbol resolutions here.
455         (deferred_global_decls): Remove.
456         (lto_register_deferred_decls_in_symtab): Likewise.
457         (lto_register_var_decl_in_symtab): Change signature, register
458         variable via lto_symtab_register_decl.
459         (lto_register_function_decl_in_symtab): Likewise.
460         (lto_read_tree): Adjust.
461         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
462         (lto_symtab_merge_var): Likewise.
463         (lto_symtab_merge_fn): Likewise.
464         (lto_symtab_register_decl): Declare.
465         (lto_symtab_merge_decls): Likewise.
467 2009-10-05  Richard Guenther  <rguenther@suse.de>
469         PR tree-optimization/23821
470         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
471         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
472         simple IV increments.
474 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
476         * config/arm/arm.c (arm_override_options): Really initialize
477         flag_dwarf2_cfi_asm to 0.
479 2009-10-05  Doug Kwan  <dougkwan@google.com>
481         PR rtl-optimization/41574
482         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
483         floating point and we are not doing unsafe math optimizations.
485 2009-10-03  Simon Baldwin  <simonb@google.com>
486             Cary Coutant  <ccoutant@google.com>
487             Rafael Espindola  <espindola@google.com>
488             Richard Guenther  <rguenther@suse.de>
489             Jan Hubicka  <jh@suse.cz>
490             Doug Kwan <dougkwan@google.com>
491             H.J. Lu  <hongjiu.lu@intel.com>
492             Bill Maddox  <maddox@google.com>
493             Ryan Mansfield  <rmansfield@qnx.com>
494             Diego Novillo  <dnovillo@google.com>
495             Ollie Wild  <aaw@google.com>
496             Kenneth Zadeck <zadeck@naturalbridge.com>
498         * lto-cgraph.c: New file.
499         * lto-compress.c: New file.
500         * lto-compress.h: New file.
501         * lto-opts.c: New file.
502         * lto-section-in.c: New file.
503         * lto-section-out.c: New file.
504         * lto-streamer-in.c: New file.
505         * lto-streamer-out.c: New file.
506         * lto-streamer.c: New file.
507         * lto-streamer.h: New file.
508         * lto-symtab.c: New file.
509         * lto-wpa-fixup.c: New file.
510         * lto-wrapper.c: New file.
512 2009-10-03  Simon Baldwin  <baldwin@google.com>
513             Ben Elliston  <bje@au.ibm.com>
514             Rafael Espindola  <espindola@google.com>
515             Nathan Froyd  <froydnj@codesourcery.com>
516             Jan Hubicka  <jh@suse.cz>
517             Doug Kwan  <dougkwan@google.com>
518             Diego Novillo  <dnovillo@google.com>
519             Kenneth Zadeck  <zadeck@naturalbridge.com>
521         * Makefile.in (enable_lto): New.
522         (site.exp): If @enable_lto@ is set to 'yes' define
523         ENABLE_LTO.
524         (LINKER_PLUGIN_API_H): Define.
525         (LTO_SYMTAB_H): Define.
526         (LTO_STREAMER_H): Define.
527         (TREE_VECTORIZER_H): Define.
528         (INCLUDES): Add LIBELFINC.
529         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
530         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
531         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o,
532         lto-compress.o.
533         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
534         (native): Add lto-wrapper$(exeext)
535         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
536         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
537         lto-symtab.o, lto-opts.o, lto-streamer.o,
538         lto-wpa-fixup.o): New rules.
539         (gimple.o): Add dependency on LTO_HEADER_H and
540         LTO_SECTION_OUT_H.
541         (varasm.o): Add dependency on tree-iterator.h.
542         (cgraph.o): Add dependency on cif-code.def.
543         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
544         (ipa-pure-const.o): Likewise.
545         (GTFILES): Add lto-symtab.c.
546         (install-lto-wrapper): New.
547         * configure.ac: If 'lto' is in enable_languages, define
548         ENABLE_LTO and enable_lto.
549         If LIBELFLIBS is set, define HAVE_libelf.
550         * config.in: Regenerate.
552 2009-10-03  Rafael Espindola  <espindola@google.com>
553             Diego Novillo  <dnovillo@google.com>
555         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
556         ipa_write_summaries.
557         Call execute_ipa_summary_passes for all_regular_ipa_passes and
558         all_lto_gen_passes.
559         (cgraph_optimize): Make extern.
561 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
562             Kenneth Zadeck <zadeck@naturalbridge.com>
564         * toplev.c (in_lto_p): Declare.
565         * collect2.c (scan_prog_file): Read all the output when reading
566         information for LTO.
567         (enum lto_mode_d): Declare.
569 2009-10-03  Richard Guenther  <rguenther@suse.de>
570             Diego Novillo  <dnovillo@google.com>
572         * gimple.c: Include target.h and alias.h.
573         (gimple_types): Declare.
574         (type_hash_cache): Declare.
575         (gimple_alloc_stat): Make extern.
576         (gimple_build_eh_must_not_throw): Call
577         gimple_eh_must_not_throw_set_fndecl.
578         (struct type_pair_d): Declare.
579         (type_pair_t): Declare.
580         (type_pair_hash): New.
581         (type_pair_eq): New.
582         (lookup_type_pair): New.
583         (gimple_force_type_merge): New.
584         (compare_type_names_p): New.
585         (compare_field_offset): New.
586         (gimple_types_compatible_p): New.
587         (struct sccs): Declare.
588         (next_dfs_num): Declare.
589         (iterative_hash_gimple_type): New.
590         (visit): New.
591         (iterative_hash_type_name): New.
592         (iterative_hash_gimple_type): New.
593         (gimple_type_hash): New.
594         (gimple_type_eq): New.
595         (gimple_register_type): New.
596         (print_gimple_types_stats): New.
597         (gimple_signed_or_unsigned_type): New.
598         (gimple_unsigned_type): New.
599         (gimple_signed_type): New.
600         (gimple_get_alias_set): New.
601         (gimple_decl_printable_name): Do not use DMGL_TYPES.
602         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
603         (gimple_force_type_merge): Declare.
604         (gimple_types_compatible_p): Declare.
605         (gimple_register_type): Declare.
606         (print_gimple_types_stats): Declare.
607         (gimple_unsigned_type): Declare.
608         (gimple_signed_type): Declare.
609         (gimple_get_alias_set): Declare.
610         (gimple_eh_must_not_throw_set_fndecl): New.
612 2009-10-03  Jan Hubicka  <jh@suse.cz>
613             Kenneth Zadeck <zadeck@naturalbridge.com>
615         * ipa-pure-const.c: Include lto-streamer.h.
616         (register_hooks): Factor out of ...
617         (generate_summary): ... here.
618         (pure_const_write_summary): New.
619         (pure_const_read_summary): New.
620         (pass_ipa_pure_const): Add pure_const_write_summary and
621         pure_const_read_summary.
622         * ipa-reference.c: Include lto-streamer.h.
623         (add_new_function): New.
624         (remove_node_data): New.
625         (duplicate_node_data): New.
626         (ipa_init): Guard against multiple calls.
627         Move hook setup from analyze_function.
628         (write_node_summary_p): New.
629         (ipa_reference_write_summary): New.
630         (ipa_reference_read_summary): New.
631         (pass_ipa_reference): Add ipa_reference_write_summary and
632         ipa_reference_read_summary.
633         * cgraph.h (cgraph_local_info): Add field lto_file_data.
634         (struct cgraph_edge): Add fields lto_stmt_uid and
635         call_stmt_cannot_inline_p.
636         (cgraph_optimize): Declare.
637         (cgraph_decide_is_function_needed): Declare.
638         (reset_inline_failed): Declare.
639         (enum LTO_cgraph_tags): Declare.
640         (LTO_cgraph_tag_names): Declare.
641         (LCC_NOT_FOUND): Define.
643 2009-10-03  Doug Kwan  <dougkwan@google.com>
644             Rafael Espindola  <espindola@google.com>
645             Jan Hubicka  <jh@suse.cz>
646             Diego Novillo  <dnovillo@google.com>
647             Kenneth Zadeck  <zadeck@naturalbridge.com>
649         * passes.c (all_regular_ipa_passes): New.
650         (all_ipa_passes): Rename to all_small_ipa_passes.
651         (init_optimization_passes): Init all_regular_ipa_passes.
652         * tree-pass.h (all_regular_ipa_passes): New.
653         (all_ipa_passes): Rename to all_small_ipa_passes.
654         * passes.c (all_lto_gen_passes): New.
655         (init_optimization_passes): Initialize all_lto_gen_passes.
656         (execute_ipa_summary_passes): Make non-static.
657         (ipa_write_summaries_1): New.
658         (ipa_write_summaries_2): New.
659         (ipa_write_summaries): New.
660         (ipa_write_summaries_of_cgraph_node_set): New.
661         (ipa_read_summaries_1): New.
662         (ipa_read_summaries): New.
663         (execute_ipa_pass_list): Call cgraph_process_new_functions.
664         (execute_regular_ipa_pass_list): Remove.
665         (init_optimization_passes): Schedule
666         pass_rebuild_cgraph_edges and pass_early_inline outside
667         of pass_all_early_optimizations.  Document reason.
668         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
669         pass_ipa_lto_finish_out): New pass.
670         (pass_ipa_summary_passes): Start and stop timers if the pass
671         has them.
672         (execute_all_ipa_transforms): New.
673         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
674         (dump_properties, debug_properties): New.
675         * tree-optimize.c (gate_all_early_local_passes): Return
676         false if we are in lto1.
677         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
678         * tree-pass.h (execute_all_ipa_transforms): Declare.
679         (pass_ipa_function_and_variable_visibility): Declare.
680         (pass_ipa_early_inline): Declare.
681         (pass_ipa_lto_gimple_out): Declare.
682         (pass_ipa_lto_wpa_fixup): Declare.
683         (pass_ipa_lto_finish_out): Declare.
684         (all_small_ipa_passes, all_regular_ipa_passes,
685         all_lto_gen_passes): Declare.
686         (execute_ipa_summary_passes): Declare.
687         (execute_all_ipa_transforms): Declare.
688         (ipa_write_summaries): Declare
689         (ipa_write_summaries_of_cgraph_node_set): Declare.
690         (ipa_read_summaries): Declare.
692 2009-10-03  Doug Kwan  <dougkwan@google.com>
693             Ollie Wild  <aaw@google.com>
695         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do
696         nothing in WPA.
698         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
699         (lto_mode): New variable.
700         (maybe_run_lto_and_relink): Handle the -fwpa option.
701         (main): Handle the -fwpa option.
702         (maybe_unlink_list): New function.
703         * gcc.c (link_lto_options): Replace -flto with -fwpa.
704         * common.opt (flto): New flag.
705         * toplev.c (flag_generate_lto): Declare.
707 2009-10-03  Simon Baldwin  <simonb@google.com>
709         * common.opt (flto-compression-level): New flag.
711         * opts.c: Include lto-opts.h.
712         (handle_option): Call lto_register_user_option for each
713         valid option handled.
714         * (decode_options): Clear registered options before the options
715         handling loop.
717 2009-10-03  Cary Coutant  <ccoutant@google.com>
719         * collect2.c (is_elf): New function.
720         (scan_prog_file): Require LTO object to be in ELF format.
722 2009-10-03  Rafael Espindola  <espindola@google.com>
724         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
725         libgcc to the linker.
727         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is
728         running.
730         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
731         (collect_execute): Add flags argument. Pass flags to pex_run. Update
732         all callers.
733         * collect2.h (collect_execute): Add flags argument.
734         * tlink.c (tlink_execute): Update call to collect_execute.
735         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
736         (use_linker_plugin): New.
737         (use_linker_plugin_spec_function): New.
738         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
739         (linker_plugin_file_spec): New.
740         (lto_wrapper_spec): New.
741         (lto_gcc_spec): New.
742         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
743         (static_spec_functions): Add use-linker-plugin.
744         (process_command): Handle -use-linker-plugin.
745         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
746         linker_plugin_file_spec and lto_gcc_spec.
747         (use_linker_plugin_spec_function): New.
749 2009-10-03  Richard Guenther  <rguenther@suse.de>
751         PR lto/41547
752         PR lto/41548
753         * tree.h (is_lang_specific): Include LANG_TYPE.
754         * tree.c (find_decls_types_r): Manually add interesting parts
755         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
757         * gimple.c (type_pair_hash): Make symmetric.
758         (type_pair_eq): Likewise.
759         (lookup_type_pair): Increase initial hashtable size.
760         (gimple_force_type_merge): Rely on type-pair symmetry.
761         (visit): Remove excessive checking code.
762         (iterative_hash_type_name): Do not hash TYPE_NAME of
763         anonymous unions.
764         (gimple_register_type): Remove getenv calls, shrink initial
765         hashtable size.
767         PR middle-end/41502
768         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
769         inline functions if not generating lto output.
771         PR lto/41379
772         * toplev.c (finalize): In WPA mode remove the asm file.
774 2009-10-03  Doug Kwan  <dougkwan@google.com>
776         * ipa-inline.c (cgraph_mark_inline): Check
777         edge->call_stmt_cannot_inline_p instead of calling
778         gimple_call_cannot_inline_p.
779         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
780         (cgraph_gate_ipa_early_inlining): Return false if
781         in_lto_p is set.
782         (inline_generate_summary): Do nothing in LTRANS.
783         * cgraph.c (initialize_inline_failed): Make sure
784         e->call_stmt exists before calling
785         gimple_call_cannot_inline_p.
786         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
787         (cgraph_clone_edge): Add argument STMT_UID.  Modify all
788         callers.
789         Update new_edge->lto_stmt_uid.
790         * cgraphbuild.c (reset_inline_failed): New.
792         * common.opt (fwpa): New flag.
793         (fltrans): New option.
794         * gcc.c (gcc_lto_option_t): New type.
795         (current_lto_option): New variable.
796         (lto_single_spec_function): Remove and is replaced by ..
797         (lto_option_spec_function): New function.
798         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
799         passing the -flto flag.
800         (cc1_options): Separate non-LTO related parts into ..
801         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
802         (lto1_options): New spec for lto FE.
803         (link_lto_options): New spec for handling LTO flags in linker.
804         (invoke_lto_single): Re-format to fit in 80 column.  Replace
805         lto-single with lto-option.
806         (static_specs): Add cc1_non_lto_options, lto1_options and
807         link_lto_options.
808         (static_spec_function): Replace lto-single with lto-option.
809         (process_command): Handle -flto, -fwpa and -fltran
810         by setting current_lto_option and not passing it to subprocess
811         unconditionally.
813 2009-10-03  Bill Maddox  <maddox@google.com>
815         Add `gcc' driver support for link-time code generation (LTO).
817         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
818         (lto_flag, lto_objects, lto_o_file): New variables.
819         (struct lto_object, struct lto_object_list): New structures.
820         (collect_exit, handler): Remove LTO temporary output file on exit.
821         (add_lto_object): New function.
822         (maybe_run_lto_and_relink): New function. Perform link time code
823         generation and relinking for object files containing LTO information.
824         (main): Invoke maybe_run_lto_and_relink().
825         (dump_argv): New function.  For debugging, currently disabled.
826         (scan_prog_file): Add LTO information pass.
827         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
828         collect2.
829         * toplev.c (compile_file): Emit assembler directive to create
830         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
832 2009-10-03  Diego Novillo  <dnovillo@google.com>
834         * c.opt: Add LTO to warn_abi and warn_psabi.
836         * tree.c (fld_worklist_push): Rename from PUSH.
837         Convert to static inline function.
838         Ignore language-specific nodes.
839         Update all users.
840         (find_decls_types_r): Do not traverse the subtrees of
841         language-specific nodes.
842         Do not traverse DECL_INITIAL for TYPE_DECLs.
843         * tree.h (is_lang_specific): New.
844         * langhooks.h (struct lang_hooks_for_decls): Remove
845         may_need_assembler_name_p.  Update all users.
847         * c-common.c (set_builtin_user_assembler_name): Move ...
848         * builtins.c (set_builtin_user_assembler_name): ... here.
849         (is_builtin_name): Add comment
850         (is_builtin_fn): New.
851         * except.c (output_ttype): Only call
852         lookup_type_for_runtime if TYPE is not a runtime type.
854         * passes.c (register_pass): Call position_pass on
855         all_small_ipa_passes, all_regular_ipa_passes and
856         all_lto_gen_passes.
857         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
858         (TV_IPA_LTO_DECL_IO): Define.
859         (TV_IPA_LTO_CGRAPH_IO): Define.
860         (TV_LTO): Define.
861         (TV_WHOPR_WPA): Define.
862         (TV_WHOPR_WPA_IO): Define.
863         (TV_WHOPR_LTRANS): Define.
864         (TV_WHOPR_WPA_FIXUP): Define.
865         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
866         * tree-cfg.c (tree_node_can_be_shared): Make extern.
867         * tree-flow.h (tree_node_can_be_shared): Declare.
868         * tree-inline.c (tree_can_inline_p): Check that E has a
869         statement associated with it.
870         * tree.c (free_lang_data_in_binf): Factor out of ...
871         (free_lang_data_in_type): ... here.
872         Call RECORD_OR_UNION_TYPE_P.
873         (need_assembler_name_p): Ignore DECL if it does not have
874         TREE_PUBLIC set.
875         Call lang_hooks.decls.may_need_assembler_name_p if set.
876         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for
877         CONST_DECLs.
878         (free_lang_data): Set debug_info_level to
879         DINFO_LEVEL_NONE.
880         Set write_symbols to NO_DEBUG.
881         Set debug_hooks to do_nothing_debug_hooks.
882         (gate_free_lang_data): Return true if flag_generate_lto
883         is set.
884         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
885         * c-common.h (set_builtin_user_assembler_name): Move ...
886         * tree.h (set_builtin_user_assembler_name): ... here.
888         * common.opt (flto-report): New flag.
889         * opts.c (complain_wrong_lang): Do not complain if
890         running lto1.
891         * collect2.c (scan_prog_file): Send the error output of
892         'nm' to HOST_BIT_BUCKET.
894 2009-10-03  Ollie Wild  <aaw@google.com>
896         * langhooks-def.h (lhd_begin_section): New function declaration.
897         (lhd_write_section): New function declaration.
898         (lhd_end_section): New function declaration.
899         (LANG_HOOKS_BEGIN_SECTION): New macro.
900         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
901         (LANG_HOOKS_END_SECTION): New macro.
902         (LANG_HOOKS_LTO): New macro.
903         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
904         * langhooks.c (output.h): Add include.
905         (saved_section): New static variable.
906         (lhd_begin_section): New function.
907         (lhd_write_section_data): New function.
908         (lhd_end_section): New function.
909         * langhooks.h (struct lang_hooks_for_lto): New structure.
910         (struct lang_hooks): Add member lto.
911         * Makefile.in (langhooks.o): Add dependency on output.h.
913         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
915 2009-10-03  Richard Guenther  <rguenther@suse.de>
917         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
918         Handle LTO.
920 2009-10-03  Simon Baldwin  <simonb@google.com>
921             Richard Guenther  <rguenther@suse.de>
922             Janis Johnson  <janis187@us.ibm.com>
923             Doug Kwan  <dougkwan@google.com>
924             Diego Novillo  <dnovillo@google.com>
925             Ramana Radhakrishnan  <ramana.r@gmail.com>
926             Ollie Wild  <aaw@google.com>
928         * doc/install.texi: Add documentation for libelf and --enable-lto.
929         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr,
930         -fltrans, -flto-report, -flto-compression-level and
931         -use-linker-plugin.
932         * doc/sourcebuild.texi: Document use of zlib.
933         Document lto-plugin.
934         Add section for LTO Testing.
936 2009-10-02  Cary Coutant  <ccoutant@google.com>
938         Add support for comdat type sections for DWARF v4.  Merge from dwarf4
939         branch.
940         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
941         (dw_die_ref): Define vector type.
942         (enum dw_val_class): Add dw_val_class_data8.
943         (struct dw_val_struct): Add v.val_data8.
944         (comdat_type_node_ref): New type.
945         (struct die_struct): Move die_symbol into a union; add new field
946         die_type_node.  Change all uses.
947         (comdat_type_node): New type.
948         (skeleton_chain_node): New type.
949         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
950         (comdat_type_list): New variable.
951         (dwarf_tag_name): Add DW_TAG_type_unit.
952         (dwarf_attr_name): Add DW_AT_signature.
953         (add_AT_data8): New function.
954         (replace_child): New function.
955         (move_all_children): New function.
956         (print_signature): New function.
957         (print_die): Print signature information; add dw_val_class_data8.
958         (attr_checksum): Support dw_val_class_data8.
959         (CHECKSUM_STRING): Redefine for DWARF-4 to include
960         trailing NULL byte.
961         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
962         (checksum_sleb128, checksum_uleb128): New functions.
963         (checksum_die_context): New function.
964         (loc_checksum_ordered): New function.
965         (attr_checksum_ordered): New function.
966         (struct checksum_attributes): New structure.
967         (collect_checksum_attributes): New function.
968         (die_checksum_ordered): New function.
969         (generate_type_signature): New function.
970         (same_dw_val_p): Add dw_val_class_data8.
971         (is_symbol_die): Use new is_declaration_die function.
972         (is_declaration_die): New function.
973         (should_move_die_to_comdat): New function.
974         (clone_die): New function.
975         (clone_tree): New function.
976         (clone_as_declaration): New function.
977         (copy_declaration_context): New function.
978         (generate_skeleton_ancestor_tree): New function.
979         (generate_skeleton_bottom_up): New function.
980         (generate_skeleton): New function.
981         (remove_child_or_replace_with_skeleton): New function.
982         (break_out_comdat_types): New function.
983         (struct decl_table_entry): New type.
984         (htab_decl_hash): New function.
985         (htab_decl_eq): New function.
986         (htab_decl_del): New function.
987         (copy_ancestor_tree): New function.
988         (copy_decls_walk): New function.
989         (copy_decls_for_unworthy_types): New function.
990         (build_abbrev_table): Don't assert on missing die_symbol when doing
991         comdat type sections.
992         (size_of_die): Use DW_FORM_sig8 for external references; Add
993         dw_val_class_data8.
994         (unmark_dies): Don't assert for unmarked dies when doing comdat
995         type sections.
996         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
997         (output_signature): New function.
998         (output_die): Likewise.
999         (output_compilation_unit_header): Mark output as DWARF version 3
1000         even if generating DWARF 4.
1001         (output_comdat_type_unit): New function.
1002         (output_line_info): Mark output as DWARF version 3 even if generating
1003         DWARF 4.
1004         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
1005         DWARF-4.
1006         (dwarf2out_end_source_file): Likewise.
1007         (prune_unused_types_walk_attribs): Don't follow references into
1008         comdat type sections.
1009         (prune_unused_types_mark): When generating type units, do not mark
1010         children of non-defining declarations of types; do mark children of
1011         type entries.
1012         (prune_unused_types): Process comdat type sections.
1013         (htab_ct_hash): New function.
1014         (htab_ct_eq): New function.
1015         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
1016         Add a pointer to the line table from type unit entries so
1017         DW_AT_decl_file has meaning.
1018         * varasm.c (default_elf_asm_named_section): Use identifier name as
1019         comdat key instead of lang hook.
1021 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
1023         * gcov-io.c (gcov_open): Open files read-only when MODE < 0
1025 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
1027         * config/i386/i386.md (SWIM248): New mode iterator.
1028         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
1029         divmodhi4 patterns using SWIM248 macro.
1030         (*divmod<mode>4): Macroize insn_and_split pattern from
1031         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
1032         and their corresponding splitters usign SWIM248 macro.  Split SImode
1033         insn to generate cltd and DImode insn to generate cqto instead of
1034         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
1035         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
1036         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
1037         *divmodsi_noext patterns using SWIM248 macro.
1038         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
1039         udivmodhi4 patterns using SWIM248 macro.
1040         (*udivmod<mode>4): Macroize insn_and_split pattern from
1041         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
1042         corresponding splitters using SWIM248 macro.
1043         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
1044         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
1046 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
1048         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
1049         of zero-sized element is zero-sized regardless of its extent.
1051 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
1053         PR debug/40521
1054         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
1055         * configure: Regenerated.
1056         * config.in: Regenerated.
1057         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
1058         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
1059         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
1060         not emitting .eh_frame, emit .cfi_sections .debug_frame
1061         directive.
1063         PR debug/41404
1064         PR debug/41353
1065         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
1066         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end with
1067         '\0'.
1068         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
1069         vars use DECL_RTL with resetting it back to NULL afterwards.
1070         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
1071         rtx_equal_p instead of asserting it is a SYMBOL_REF.
1072         (value_format): For dw_val_class_addr only use DW_FORM_addr if
1073         the attribute type allows it, otherwise use DW_FORM_dataN.
1074         (mem_loc_descriptor): Handle CONST_STRING.
1075         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
1076         Handle MEM with CONST_STRING address using add_AT_string.
1077         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
1078         CONST_STRING for const arrays initialized with a string literal.
1079         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
1080         (dwarf2out_finish): Call resolve_addr.
1082 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
1083             Maxim Kuvyrkov  <maxim@codesourcery.com>
1085         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
1087 2009-10-02  Nick Clifton  <nickc@redhat.com>
1089         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
1090         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
1092 2009-10-01  Jan Hubicka  <jh@suse.cz>
1094         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
1095         (cgraph_create_virtual_clone): Just pass redirect_callers
1096         around.
1097         * cgraph.h (cgraph_clone_node): Update prototype.
1098         * ipa-pure-const.c (self_recursive_p): New function.
1099         (propagate): Use it.
1100         * ipa-inline.c (cgraph_clone_inlined_nodes,
1101         cgraph_decide_recursive_inlining): Update.
1103 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
1105         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
1106         instructions for TARGET_OCTEON.
1108 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1110         * config/arm/arm.c (arm_override_options): Turn off
1111         flag_dwarf2_cfi_asm for AAPCS variants.
1113 2009-10-01  Martin Jambor  <mjambor@suse.cz>
1115         PR middle-end/12392
1116         * tree-sra.c (convert_callers): Do not call
1117         compute_inline_parameters on one caller more than once.
1119 2009-10-01  Nick Clifton  <nickc@redhat.com>
1121         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
1122         an empty string if not already defined.
1124 2009-10-01  Martin Jambor  <mjambor@suse.cz>
1126         PR bootstrap/41395
1127         * tree-sra.c (is_va_list_type): New function.
1128         (find_var_candidates): Call is_va_list_type.
1129         (find_param_candidates): Check that the type or the type pointed
1130         to are not va_list types.
1132 2009-10-01  Martin Jambor  <mjambor@suse.cz>
1134         PR c++/41503
1135         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
1136         DECL_ARTIFICIAL (param_decl) is true.
1138 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
1140         * tree.h (tree_decl_common::lang_flag_8): New.
1141         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
1142         keyword.
1143         * c-common.h (RID_CONSTEXPR): New.
1145 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
1147         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
1148         Use ref-all pointers.
1149         (alpha_gimplify_va_arg): Ditto.
1151 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
1153         PR target/41279
1154         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
1155         before insn counting loop now that BB_END (bb) is counted.  Ensure
1156         the return value isn't zero.
1158 2009-09-30  Nick Clifton  <nickc@redhat.com>
1160         * config.gcc (sh-symbianelf): Replace definition of extra_objs
1161         with separate definitions of c_target_objs and cxx_target_objs.
1162         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
1163         and symbian-base.o.
1164         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
1165         sh_symbian_import_export_class.
1166         * config/sh/sh-protos.h: Fix names of exported symbian functions.
1167         * config/sh/symbian.c: Delete, moving code into...
1168         * config/sh/symbian-base.c: ... here
1169         * config/sh/symbian-c.c: ... and here
1170         * config/sh/symbian-cxx.c: ... and here.
1172 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
1174         PR target/22093
1175         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
1176         of plus RTX into register.
1178 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1180         * doc/install.texi: Linguistic and markup fixes.
1181         (Configuration) <--disable-cpp>: Remove description.
1182         <--enable-maintainer-mode>: Autotools files are affected, too.
1183         <--with-sysroot>: Improve description.
1184         (Building): Bump required GNU make version.
1186 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
1188         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
1189         (x86_64-*-*): Ditto.
1191         * config/i386/fma4intrin.h: New file, provide common x86 compiler
1192         intrinisics for FMA4.
1193         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
1194         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
1195         Add FMA4 check and fma4intrin.h.
1196         * config/i386/i386-c.c(ix86_target_macros_internal): Check
1197         ISA_FLAG for FMA4.
1198         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
1199         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
1200         constant for FMA4 support.
1201         (UNSPEC_FMA4_FMADDSUB): Ditto.
1202         (UNSPEC_FMA4_FMSUBADD): Ditto.
1203         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
1204         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
1205         (ix86_expand_fma4_multiple_memory): Ditto.
1206         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
1207         (OPTION_MASK_ISA_FMA4_UNSET): New.
1208         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
1209         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
1210         (ix86_handle_option): Handle -mfma4.
1211         (isa_opts): Handle -mfma4.
1212         (enum pta_flags): Add PTA_FMA4.
1213         (override_options): Add FMA4 support.
1214         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
1215         (IX86_BUILTIN_VFMADDSD): Ditto.
1216         (IX86_BUILTIN_VFMADDPS): Ditto.
1217         (IX86_BUILTIN_VFMADDPD): Ditto.
1218         (IX86_BUILTIN_VFMSUBSS): Ditto.
1219         (IX86_BUILTIN_VFMSUBSD): Ditto.
1220         (IX86_BUILTIN_VFMSUBPS): Ditto.
1221         (IX86_BUILTIN_VFMSUBPD): Ditto.
1222         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
1223         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
1224         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
1225         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
1226         (IX86_BUILTIN_VFNMADDSS): Ditto.
1227         (IX86_BUILTIN_VFNMADDSD): Ditto.
1228         (IX86_BUILTIN_VFNMADDPS): Ditto.
1229         (IX86_BUILTIN_VFNMADDPD): Ditto.
1230         (IX86_BUILTIN_VFNMSUBSS): Ditto.
1231         (IX86_BUILTIN_VFNMSUBSD): Ditto.
1232         (IX86_BUILTIN_VFNMSUBPS): Ditto.
1233         (IX86_BUILTIN_VFNMSUBPD): Ditto.
1234         (IX86_BUILTIN_VFMADDPS256): Ditto.
1235         (IX86_BUILTIN_VFMADDPD256): Ditto.
1236         (IX86_BUILTIN_VFMSUBPS256): Ditto.
1237         (IX86_BUILTIN_VFMSUBPD256): Ditto.
1238         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
1239         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
1240         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
1241         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
1242         (IX86_BUILTIN_VFNMADDPS256): Ditto.
1243         (IX86_BUILTIN_VFNMADDPD256): Ditto.
1244         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
1245         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
1246         (enum multi_arg_type): New enum for describing the various FMA4
1247         intrinsic argument types.
1248         (bdesc_multi_arg): New table for FMA4 intrinsics.
1249         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
1250         (ix86_expand_multi_arg_builtin): New function for creating FMA4
1251         intrinsics.
1252         (ix86_expand_builtin): Add FMA4 intrinsic support.
1253         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
1254         operand instructions.
1255         (ix86_expand_fma4_multiple_memory): New function to split the
1256         second memory reference from FMA4 instructions.
1257         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
1258         (ssemodesuffixf2s): Ditto.
1259         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
1260         instructions.
1261         (fma4_fmsub<mode>4): Ditto.
1262         (fma4_fnmadd<mode>4): Ditto.
1263         (fma4_fnmsub<mode>4): Ditto.
1264         (fma4_vmfmadd<mode>4): Ditto.
1265         (fma4_vmfmsub<mode>4): Ditto.
1266         (fma4_vmfnmadd<mode>4): Ditto.
1267         (fma4_vmfnmsub<mode>4): Ditto.
1268         (fma4_fmadd<mode>4256): Ditto.
1269         (fma4_fmsub<mode>4256): Ditto.
1270         (fma4_fnmadd<mode>4256): Ditto.
1271         (fma4_fnmsub<mode>4256): Ditto.
1272         (fma4_fmaddsubv8sf4): Ditto.
1273         (fma4_fmaddsubv4sf4): Ditto.
1274         (fma4_fmaddsubv4df4): Ditto.
1275         (fma4_fmaddsubv2df4): Ditto.
1276         (fma4_fmsubaddv8sf4): Ditto.
1277         (fma4_fmsubaddv4sf4): Ditto.
1278         (fma4_fmsubaddv4df4): Ditto.
1279         (fma4_fmsubaddv2df4): Ditto.
1280         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
1281         instructions for intrinsics.
1282         (fma4i_fmsub<mode>4): Ditto.
1283         (fma4i_fnmadd<mode>4): Ditto.
1284         (fma4i_fnmsub<mode>4): Ditto.
1285         (fma4i_vmfmadd<mode>4): Ditto.
1286         (fma4i_vmfmsub<mode>4): Ditto.
1287         (fma4i_vmfnmadd<mode>4): Ditto.
1288         (fma4i_vmfnmsub<mode>4): Ditto.
1289         (fma4i_fmadd<mode>4256): Ditto.
1290         (fma4i_fmsub<mode>4256): Ditto.
1291         (fma4i_fnmadd<mode>4256): Ditto.
1292         (fma4i_fnmsub<mode>4256): Ditto.
1293         (fma4i_fmaddsubv8sf4): Ditto.
1294         (fma4i_fmaddsubv4sf4): Ditto.
1295         (fma4i_fmaddsubv4df4): Ditto.
1296         (fma4i_fmaddsubv2df4): Ditto.
1297         (fma4i_fmsubaddv8sf4): Ditto.
1298         (fma4i_fmsubaddv4sf4): Ditto.
1299         (fma4i_fmsubaddv4df4): Ditto.
1300         (fma4i_fmsubaddv2df4): Ditto.
1302         * doc/invoke.texi (-mfma4): Add documentation.
1303         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
1305 2009-09-29  Richard Henderson  <rth@redhat.com>
1307         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
1308         an edge to the new destination block.
1310 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1312         PR target/41393
1313         * pa.c (hppa_profile_hook): Use
1314         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
1316 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
1317             Alexander Monakov  <amonakov@ispras.ru>
1319         PR target/41365
1320         * config/ia64/predicates.md (not_postinc_destination_operand): New.
1321         (not_postinc_memory_operand): New.
1322         (not_postinc_move_operand): New.
1323         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
1324         (*cmovsi_internal): Ditto.
1326 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
1328         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
1329         restrict issue_rate in first pass when scheduling for register
1330         pressure.
1332 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
1333             Rafael Avila de Espindola  <espindola@google.com>
1335         * gengtype.c (plugin_output): New.
1336         (get_output_file_with_visibility): Return plugin_output for plugins.
1337         (main): Parse and use the -P option.
1338         * gty.texi: Update the command line format.
1340 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
1342         PR debug/41438
1343         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
1344         functions.
1345         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
1346         out if !const_ok_for_output.
1348         PR debug/41474
1349         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
1350         case VAR_LOCATION>: Remove gcc_unreachable ().
1352 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
1354         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
1355         (x86_64-*-*): Ditto.
1356         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
1357         back to smmintrin.h.
1358         * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
1359         * config/i386/x86intrin.h: Remove SSE5.
1360         * config/i386/mmintrin-common.h: Delete file.
1361         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
1363 2009-09-29  Richard Guenther  <rguenther@suse.de>
1365         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
1366         resulting from stack temporaries on STRICT_ALIGNMENT targets.
1368 2009-09-29  Nick Clifton  <nickc@redhat.com>
1370         * function.c (current_function_name): If there is no current
1371         function just return "<none>".
1373 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
1375         * tree-pass.h (register_pass_info): New structure.
1376         (pass_positioning_ops): Move enum from gcc-plugin.h.
1377         (register_pass): New function.
1378         * gcc-plugin.h (plugin_pass): Delete structure.
1379         (pass_positioning_ops): Delete enum.
1380         * plugin.c (regsiter_pass): Delete function.
1381         (position_pass): Delete function.
1382         (added_pass_nodes): Delete variable.
1383         (prev_added_pass_nodes): Delete variable.
1384         (pass_list_node): Delete structure.
1385         * passes.c (make_pass_instance): New function.
1386         (next_pass_1): Change to call make_pass_instance.
1387         (pass_list_node): Move structure from gcc-plugin.h.
1388         (added_pass_nodes): Move variable from plugin.c.
1389         (prev_added_pass_nodes): Move variable from plugin.c.
1390         (position_pass): New function.
1391         (register_pass): New function.
1393 2009-09-28  Easwaran Raman  <eraman@google.com>
1395         * ifcvt.c (noce_try_abs): Recognize pattern and call
1396         expand_one_cmpl_abs_nojump.
1397         * optabs.c (expand_one_cmpl_abs_nojump): New function.
1398         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
1400 2009-09-28  Ian Lance Taylor  <iant@google.com>
1402         PR middle-end/40500
1403         * c-opts.c (c_common_handle_option): Don't set
1404         warn_jump_misses_init for -Wall.
1405         * doc/invoke.texi (Warning Options): Update documentation.
1407 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1409         * Makefile.in ($(out_object_file)): Depend on
1410         gt-$(basename $(notdir $(out_file))).h.
1412 2009-09-28  Richard Henderson  <rth@redhat.com>
1414         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
1415         * except.c (gen_eh_region): Set it.
1416         (duplicate_eh_regions_1): Copy it.
1417         * tree-eh.c (lower_resx): Use it to determine which function
1418         to call to resume.
1420         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
1421         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
1422         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
1423         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
1424         BUILT_IN_CXA_END_CLEANUP if necessary.
1426         * c-common.c (c_define_builtins): Update call to
1427         build_common_builtin_nodes.
1429 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1431         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
1433 2009-09-28  Michael Matz  <matz@suse.de>
1435         * builtins.c (interclass_mathfn_icode): New helper.
1436         (expand_builtin_interclass_mathfn): Use it here, and split folding
1437         into ...
1438         (fold_builtin_interclass_mathfn): ... this new folder.
1439         (build_call_nofold_loc): New static helper.
1440         (build_call_nofold): New wrapper macro for above.
1441         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
1442         (expand_builtin_pow): Ditto.
1443         (expand_builtin_memset_args): Ditto.
1444         (expand_builtin_printf): Ditto.
1445         (expand_builtin_fprintf): Ditto.
1446         (expand_builtin_sprintf): Ditto.
1447         (expand_builtin_memory_chk): Ditto.
1448         (expand_builtin_mempcpy_args): Ditto and don't call folders.
1449         (expand_builtin_stpcpy): Ditto.
1450         (expand_builtin_strcmp): Ditto.
1451         (expand_builtin_strncmp): Ditto.
1452         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
1453         (expand_builtin_strcpy_args): Don't call folders.
1454         (expand_builtin_memcmp): Ditto.
1455         (expand_builtin_strncpy): Ditto, and use target.
1456         (expand_builtin_memcpy): Ditto.
1457         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
1458         expand_builtin_strpbrk, expand_builtin_memmove,
1459         expand_builtin_memmove_args, expand_builtin_bcopy,
1460         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
1461         expand_builtin_strspn, expand_builtin_strcspn,
1462         expand_builtin_fputs): Remove these.
1463         (expand_builtin): Don't call the above, change calls to other
1464         expanders that changed prototype.
1465         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
1466         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
1467         fold_builtin_interclass_mathfn.
1468         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
1469         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
1471         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
1472         * passes.c (init_optimization_passes): Move pass_fold_builtins
1473         after last phiopt pass.
1474         * tree-inline.c (fold_marked_statements): When folding builtins
1475         iterate over all instruction potentially generated.
1476         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
1477         earlier.
1478         (fold_gimple_call): Use it to always fold calls (into potentially
1479         multiple instructions).
1480         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
1481         calls into zero at this time.
1482         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
1483         statements generated by builtin folding.
1485 2009-09-28  Nick Clifton  <nickc@redhat.com>
1487         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging
1488         insns.
1490 2009-09-28  Duncan Sands  <baldrick@free.fr>
1492         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
1493         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
1494         (register_callback): Dispatch it.
1495         (invoke_plugin_callbacks): Incorporate in sanity check.
1496         * ggc.h (ggc_register_cache_tab): Add declaration.
1497         * ggc-common.c (ggc_register_root_tab): Simplify.
1498         (const_ggc_cache_tab_t): New typedef.
1499         (extra_cache_vec): New vector of dynamically added cache tables.
1500         (ggc_register_cache_tab): New function.
1501         (ggc_scan_cache_tab): New function.
1502         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
1503         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
1505 2009-09-27  Richard Henderson  <rth@redhat.com>
1507         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
1508         which we remove __builtin_stack_restore.
1510 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
1512         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
1513         to test for GRD_INVARIANT.
1514         (simple_rhs_p): Anything that's function_invariant_p is fine.
1516 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
1518         * gengtype.c (main): Use plunge_files instead of plugin_output.
1520 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
1521             Rafael Avila de Espindola  <espindola@google.com>
1523         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
1524         Don't print pch related info if it is false.
1525         (main): Don't print pch info in plugin mode.
1527 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
1529         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
1530         with dw_val_class_const_double.
1531         (struct dw_val_struct): Replace val_long_long with val_double and
1532         adjust for above change.
1533         (output_loc_operands): Likewise.
1534         (add_AT_long_long): Rename into...
1535         (add_AT_double): ...this.
1536         (print_die): Replace dw_val_class_long_long with
1537         dw_val_class_const_double and adjust.
1538         (attr_checksum): Likewise.
1539         (same_dw_val_p): Likewise.
1540         (size_of_die): Likewise.
1541         (value_format): Likewise.
1542         (output_die): Likewise.
1543         (loc_descriptor) <CONST_DOUBLE>: Likewise.
1544         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
1545         instead of add_AT_long_long.
1546         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
1547         value with the precision of its type.
1549 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
1551         PR c/41476
1552         * c-typeck.c (build_conditional_expr): Use the readonly and
1553         volatile flags of the operand types, not of the operands itself.
1555 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
1557         collect2.c (main): Look for -brtl before adding libraries.
1559 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
1561         * config.gcc: Update OpenBSD targets.
1562         * config/openbsd-stdint.h: New file.
1563         * config/openbsd-libpthread.h: New file.
1564         * config/openbsd.h: Update and break out LIB_SPEC definition.
1565         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
1566         * config/i386/openbsdelf.h: Correct types.
1567         * config/m68k/openbsd.h: Likewise.
1568         * config/mips/openbsd.h: Likewise.
1569         * config/vax/openbsd.h: Likewise.
1571 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
1573         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
1574         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
1575         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
1576         of the length and zero.
1578 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1580         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
1581         (FLAGS_H): Add options.h $(REAL_H).
1582         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
1583         (TREE_VECTORIZER_H): New.
1584         (EBITMAP_H): Renamed from EBIMAP_H.
1585         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
1586         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
1587         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
1588         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
1589         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
1590         (graphite-clast-to-gimple.o, graphite-dependences.o)
1591         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
1592         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
1593         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
1594         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
1595         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
1596         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
1597         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
1598         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
1599         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
1600         updated and fixed as per above changes and per
1601         check_makefile_deps.sh output.
1603         PR bootstrap/40928
1604         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
1605         * configure: Regenerate.
1607 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1609         * doc/install.texi: Update minimum MPC version to 0.7.
1611 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
1613         * doc/install.texi (Binaries): Remove reference to the binary
1614         distribution CD-ROM from the FSF.
1616 2009-09-26  Michael Matz  <matz@suse.de>
1618         PR lto/40758
1619         PR middle-end/41470
1620         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
1621         that are mentioned in the body.
1623 2009-09-26  Michael Matz  <matz@suse.de>
1625         PR tree-optimization/41454
1626         * tree-ssa-dom (stmts_to_rescan): Remove variable.
1627         (tree_ssa_dominator_optimize): Don't allocate and free it.
1628         (dom_opt_leave_block): Don't iterate over it.
1629         (eliminate_redundant_computations): Don't return a value.
1630         (cprop_operand, cprop_into_stmt): Ditto.
1631         (optimize_stmt): Don't defer updating stmts.
1633 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
1635         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
1636         generic_parameter_die, template_parameter_pack_die,
1637         gen_formal_parameter_die, gen_subprogram_die): Adjust after renaming
1638         DW_TAG_formal_parameter_pack and DW_TAG_template_parameter_pack into
1639         DW_TAG_GNU_formal_parameter_pack and DW_TAG_GNU_template_parameter_pack.
1641 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
1643         * config/v850/v850.h (FUNCTION_VALUE): Remove.
1644         * config/v850/v850.c (v850_function_value): New function.
1645         (TARGET_FUNCTION_VALUE): Define.
1647 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
1649         * tree-vect-stmts.c (vectorizable_call): Call
1650         mark_symbols_for_renaming after vect_finish_stmt_generation.
1652         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
1653         to loc_descriptor_from_tree.
1654         (add_location_or_const_value_attribute): Pass 0 instead of 2
1655         for decl_by_reference_p decls.
1657 2009-09-25  Richard Guenther  <rguenther@suse.de>
1659         PR middle-end/41463
1660         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
1661         arrays again.
1663 2009-09-25  Ben Elliston  <bje@au.ibm.com>
1665         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
1666         after `power7'.
1668 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
1670         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
1671         form of instruction.
1673 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1675         PR middle-end/41435
1676         * fold-const.c (const_binop): Handle complex int division.
1677         * tree-complex.c (expand_complex_div_straight,
1678         expand_complex_div_wide): Update comments.
1680 2009-09-24  DJ Delorie  <dj@redhat.com>
1682         PR target/41456
1683         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
1684         (reg_class): Likewise.
1685         (REG_CLASS_NAMES): Likewise.
1686         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
1688         * config/m32c/m32c.c (m32c_override_options): Disable -fivopts for
1689         M32C.
1691 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1693         * config/rs6000/predicates.md (indexed_or_indirect_operand):
1694         Delete VSX load/store with update support.
1695         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
1696         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
1697         (vsx_movti): Ditto.
1698         (VSX_U): Delete.
1699         (VSbit): Ditto.
1700         (VStype_load_update): Ditto.
1701         (VStype_store_update): Ditto.
1702         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
1703         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
1705         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
1706         load/store with update builtins.
1708 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
1710         * libgcc2.c (L_trampoline): Prototype for getpagesize
1711         and mprotect in WINNT case.
1713 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
1715         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
1716         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
1717         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
1718         'outgoing' argument.
1719         (TARGET_FUNCTION_VALUE): Define.
1721 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1723         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
1725 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1727         PR bootstrap/41405
1728         * common.opt: Initialize dwarf_strict to -1.
1729         * toplev.c (process_options): Catch unset dwarf_strict
1730         and set to 0 for all targets not overriding.
1731         * config/darwin.c (darwin_override_options): Catch unset
1732         dwarf_strict and override to 1.
1734 2009-09-24  Jeff Law  <law@redhat.com>
1736         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
1738 2009-09-24  Richard Guenther  <rguenther@suse.de>
1740         PR tree-optimization/36143
1741         PR tree-optimization/38747
1742         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
1743         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
1745 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
1747         PR bootstrap/41457
1748         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
1749         return false instead of gcc_unreachable ().  For CONST return the
1750         value returned by recursive call instead of always returning true.
1751         (tree_add_const_value_attribute): Return the value returned by
1752         add_const_value_attribute instead of always returning true if rtl
1753         is non-NULL.
1755 2009-09-23  Justin Seyster  <jrseys@gmail.com>
1757         * Makefile.in (PLUGIN_HEADERS): Include real.h.
1759 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
1761         * cgraphunit.c (cgraph_lower_function): Revert last change.
1762         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
1763         instead of DECL_NO_STATIC_CHAIN.
1764         * tree-cfg.c (verify_gimple_call): Likewise.
1765         * tree-nested.c (get_chain_decl, get_chain_field,
1766         convert_tramp_reference_op, convert_gimple_call): Likewise.
1767         (convert_all_function_calls): Likewise.  Always set or clear
1768         DECL_STATIC_CHAIN initially, for !n->outer clear it.
1769         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
1770         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
1771         if nested.
1772         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
1773         DECL_NO_STATIC_CHAIN.
1774         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
1775         instead of DECL_NO_STATIC_CHAIN.
1776         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
1777         decl_function_context.
1778         * varasm.c (initializer_constant_valid_p): Likewise.
1779         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
1780         (DECL_STATIC_CHAIN): ... this.
1781         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
1782         instead of DECL_NO_STATIC_CHAIN.
1784 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
1785             Rafael Avila de Espindola  <espindola@google.com>
1787         * gengtype.c (nb_plugin_files): Make it unsigned to match
1788         num_gt_files. Adjust other variables to avoid warnings.
1789         (main): Allocate an all zero lang_bitmap before each plugin file name
1790         to match regular file names.
1792 2009-09-23  Richard Henderson  <rth@redhat.com>
1794         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
1795         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
1796         static chain passed in memory.
1797         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
1798         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
1799         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
1800         STATIC_CHAIN_REGNUM defined.
1802         * config/picochip/picochip-protos.h: s/class/klass/.
1803         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
1804         (picochip_static_chain): New.
1805         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
1806         (STATIC_CHAIN_INCOMING): Remove.
1808         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
1809         (xtensa_static_chain): New.
1810         * config/xtensa/xtensa.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
1812 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
1814         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
1815         * config/pa/pa-protos.h (function_value): Remove.
1816         * config/pa/pa.c (pa_function_value): Rename from function_value.
1817         Make static, add 'outgoing' argument.
1818         (TARGET_FUNCTION_VALUE): Define.
1820 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
1822         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
1823         instead of cfun->machine->is_leaf.
1824         * config/avr/avr.h (machine_function): Remove is_leaf field.
1826 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
1828         PR debug/41439
1829         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
1830         DW_OP_piece after DW_OP_stack_value, adjust size calculations
1831         for it, when DW_OP_stack_value and DW_OP_implicit_value has
1832         the same size, prefer DW_OP_stack_value.
1833         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
1834         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
1836 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
1838         PR debug/41353
1839         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
1841 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
1843         PR debug/41248
1844         * cfgexpand.c (convert_debug_memory_address): New.
1845         (expand_debug_expr): Convert base address and offset to the same
1846         mode.  Use it to convert addresses to other modes.  Accept
1847         ptr_mode addresses.
1849 2009-09-23  Richard Guenther  <rguenther@suse.de>
1851         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
1852         produced for bigendian targets with promoted subregs.
1854 2009-09-23  Richard Guenther  <rguenther@suse.de>
1856         * value-prof.c (gimple_ic): Purge old EH edges only after building
1857         the new ones.
1859 2009-09-23  Nick Clifton  <nickc@redhat.com>
1861         * config/arc/arc.c (arc_trampoline_init): Fix typo.
1863 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
1865         PR bootstrap/41405
1866         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
1868         PR bootstrap/41436
1869         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
1870         on non-nested functions.
1872 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
1873             Jan Hubicka  <jh@suse.cz>
1875         * dwarf2out.c (loc_list_plus_const): Only define if
1876         DWARF2_DEBUGGING_INFO.
1877         (address_of_int_loc_descriptor): Likewise.
1879         PR debug/41411
1880         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
1882 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
1884         PR c/39779
1885         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
1886         constant is more than zero.
1888 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
1890         PR target/40473
1891         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
1892         call final to emit non-scheduled prologue, instead insert at entry.
1894 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
1895             Joseph S. Myers  <joseph@codesourcery.com>
1897         * doc/install.texi (*-*-freebsd*): Add proper format codes.
1899 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
1900             Rafael Avila de Espindola  <espindola@google.com>
1902         * gengtype.c (is_file_equal): New function.
1903         (close_output_files): Use is_file_equal. Free of->buf.
1905 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
1906             Rafael Avila de Espindola  <espindola@google.com>
1908         * gengtype.c (write_types, write_local): Add the output_header
1909         argument. Update all callers.
1911 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
1913         * dwarf2out.c (template_parameter_pack_die,
1914         gen_formal_parameter_pack_die ): New functions.
1915         (make_ith_pack_parameter_name): Remove this function.
1916         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
1917         DW_TAG_formal_parameter_pack.
1918         (gen_generic_params_dies): Represent each template parameter pack
1919         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
1920         represented by usual DW_TAG_template_*_parameter DIEs that are
1921         children of the DW_TAG_template_parameter_pack element DIE.
1922         (generic_parameter_die): This doesn't deal with parameter pack
1923         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
1924         of parameter pack DIEs.
1925         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
1926         in certain cases, e.g. for pack elements.
1927         (gen_formal_types_die, gen_decl_die): Adjust usage of
1928         gen_formal_parameter_die.
1929         (gen_subprogram_die): Represent each function parameter pack by a
1930         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
1931         represented by usual DW_TAG_formal_parameter DIEs that are children
1932         of the DW_TAG_formal_parameter_pack DIE. Remove references to
1933         ____builtin_va_alist decls as no part of the compiler uses those
1934         anymore.
1935         * langhooks.h (struct lang_hooks_for_decls): Add
1936         function_parm_expanded_from_pack_p, get_generic_function_decl
1937         and function_parameter_pack_p hooks.  Fix comment for
1938         get_innermost_generic_parms hook.
1939         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
1940         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
1941         macros and use them to initialize lang_hook.
1943 2009-09-22  Richard Henderson  <rth@redhat.com>
1945         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
1946         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
1947         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
1948         on TRAMPOLINE_TEMPLATE.
1949         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
1950         TRAMPOLINE_ADJUST_ADDRESS.
1951         * targhooks.c (default_asm_trampoline_template): Remove.
1952         (default_trampoline_adjust_address): Remove.
1953         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
1954         * targhooks.h: Update decls.
1956 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
1958         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
1959         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
1960         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
1962 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
1964         PR debug/41295
1965         * reload1.c (reload): Reset debug insns with pseudos without
1966         equivalences.
1968 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
1970         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
1971         unconditional true for decimal float modes.
1972         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
1973         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
1975 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
1977         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
1978         Enable a new case for __FreeBSD__ >= 7.
1979         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
1980         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
1981         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
1982         and USE_LD_AS_NEEDED.
1984         * doc/install.texi (*-*-freebsd*): Update target information.
1986 2009-09-22  Richard Guenther  <rguenther@suse.de>
1988         PR middle-end/41395
1989         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
1990         arrays really properly.
1992 2009-09-22  Richard Henderson  <rth@redhat.com>
1994         PR target/41246
1995         * target.h (struct gcc_target): Add asm_out.trampoline_template,
1996         calls.static_chain, calls.trampoline_init,
1997         calls.trampoline_adjust_address.
1998         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1999         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2000         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2001         * builtins.c (expand_builtin_setjmp_receiver): Use
2002         targetm.calls.static_chain; only clobber registers.
2003         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
2004         set up memory attributes properly for the trampoline block.
2005         (expand_builtin_adjust_trampoline): Use
2006         targetm.calls.trampoline_adjust_address.
2007         * calls.c (prepare_call_address): Add fndecl argument.  Use
2008         targetm.calls.static_chain.
2009         * df-scan.c (df_need_static_chain_reg): Remove.
2010         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
2011         consolodate static chain handling.
2012         * doc/tm.texi: Document new hooks.
2013         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
2014         (init_emit_regs): Don't initialize them.
2015         * expr.h (prepare_call_address): Update decl.
2016         * final.c (profile_function): Use targetm.calls.static_chain.
2017         * function.c (expand_function_start): Likewise.
2018         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
2019         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
2020         only clobber registers.
2021         * targhooks.c (default_static_chain): New.
2022         (default_asm_trampoline_template, default_trampoline_init): New.
2023         (default_trampoline_adjust_address): New.
2024         * targhooks.h: Declare them.
2025         * varasm.c (assemble_trampoline_template): Use
2026         targetm.asm_out.trampoline_template.  Make the memory block const
2027         and set its size.
2029         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
2030         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
2031         differences into the TARGET_ABI_OPEN_VMS code block.
2032         (TARGET_TRAMPOLINE_INIT): New.
2033         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
2034         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
2035         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
2036         (INITIALIZE_TRAMPOLINE): Remove.
2038         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
2039         (TRAMPOLINE_TEMPLATE): Merge with ...
2040         (INITIALIZE_TRAMPOLINE): ... this and move ...
2041         * config/arc/arc.c (arc_trampoline_init): ... here.
2042         (TARGET_TRAMPOLINE_INIT): New.
2044         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2045         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2046         (arm_asm_trampoline_template): New.
2047         (arm_trampoline_init, arm_trampoline_adjust_address): New.
2048         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
2049         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
2050         code to arm_asm_trampoline_template.
2051         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
2052         arm_trampoline_adjust_address.
2053         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
2054         adjust for target hook parameters.
2056         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
2057         Remove.
2059         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
2060         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
2061         (bfin_trampoline_init): Rename from initialize_trampoline;
2062         make static; update for target hook parameters.
2063         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2064         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
2065         bfin_asm_trampoline_template.
2066         (INITIALIZE_TRAMPOLINE): Remove.
2068         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2069         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
2070         cris_trampoline_init): New.
2071         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
2072         cris_asm_trampoline_template.
2073         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
2074         adjust for target hook parameters.
2076         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
2078         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2079         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
2080         fr30_trampoline_init): New.
2081         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
2082         fr30_asm_trampoline_template.
2083         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
2084         adjust for target hook parameters.
2086         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
2087         (frv_trampoline_init): Rename from frv_initialize_trampoline;
2088         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
2089         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
2090         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
2092         * config/h8300/h8300.c (h8300_trampoline_init): New.
2093         (TARGET_TRAMPOLINE_INIT): New.
2094         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
2095         to h8300_trampoline_init and adjust for hook parameters.
2097         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
2098         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
2099         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
2100         make static; adjust for hook parameters.
2101         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
2103         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2104         (TARGET_TRAMPOLINE_INIT): New.
2105         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
2106         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
2107         iq2000_asm_trampoline_template.
2108         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
2109         (TRAMPOLINE_CODE_SIZE): New.
2110         (TRAMPOLINE_SIZE): Use it.
2111         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
2113         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
2114         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
2115         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
2116         adjust for hook parameters.
2117         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
2119         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
2120         (m32r_trampoline_init): New.
2121         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
2122         m32r_trampoline_init.
2124         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
2125         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
2126         make static; update for hook parameters.
2127         * config/m68hc11/m68hc11-protos.h: Update.
2128         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
2130         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2131         (TARGET_TRAMPOLINE_INIT): New.
2132         (mcore_function_value): Fix typo.
2133         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
2134         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
2135         to mcore_asm_trampoline_template.
2136         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
2138         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
2139         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
2140         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
2141         update for hook parameters.
2142         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
2144         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2145         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2146         mips_trampoline_init): New.
2147         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
2148         mips_asm_trampoline_template.
2149         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
2150         update for hook parameters.
2152         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2153         (TARGET_TRAMPOLINE_INIT): New.
2154         (mmix_trampoline_size): Remove.
2155         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
2156         make static.  Remove out-of-date tetra vs octa comment.
2157         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
2158         make static; update for hook parameters.
2159         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
2160         (INITIALIZE_TRAMPOLINE): Remove.
2161         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
2162         (TRAMPOLINE_ALIGNMENT): New.
2163         * gcc/config/mmix/mmix-protos.h: Update.
2165         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2166         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2167         mn10300_trampoline_init): New.
2168         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
2169         mn10300_asm_trampoline_template.
2170         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
2172         * config/moxie/moxie.c (moxie_static_chain,
2173         moxie_asm_trampoline_template, moxie_trampoline_init,
2174         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
2175         TARGET_TRAMPOLINE_INIT): New.
2176         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
2177         moxie_trampoline_init.
2178         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
2179         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2181         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2182         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2183         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
2184         pa_trampoline_adjust_address): New.
2185         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
2186         pa_asm_trampoline_template.
2187         (TRAMPOLINE_ALIGNMENT): New.
2188         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
2189         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
2190         adjust for hook parameters.
2191         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
2193         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
2194         (TARGET_TRAMPOLINE_INIT): New.
2195         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
2196         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
2198         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
2200         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
2201         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
2202         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
2203         make static; adjust parameters for the hook.
2204         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
2206         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
2207         s390_trampoline_template; make static.
2208         (s390_trampoline_init): Rename from s390_initialize_trampoline;
2209         make static; adjust for target hook.
2210         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2211         * config/s390/s390-protos.h: Remove trampoline decls.
2212         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
2213         (TRAMPOLINE_TEMPLATE): Remove.
2214         (TRAMPOLINE_ALIGNMENT): New.
2216         * config/score/score-protos.h (score_initialize_trampoline): Remove.
2217         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2218         (TARGET_TRAMPOLINE_INIT): New.
2219         (score_asm_trampoline_template): New.
2220         (score_trampoline_init): Rename from score_initialize_trampoline;
2221         make static; adjust for hook parameters.
2222         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
2223         score[37]_asm_trampoline_template.
2224         (INITIALIZE_TRAMPOLINE): Remove.
2225         * config/score/score3.c (score3_asm_trampoline_template): New.
2226         (score3_trampoline_init): Rename from score3_initialize_trampoline;
2227         adjust for target hook.
2228         * config/score/score7.c (score7_asm_trampoline_template): New.
2229         (score7_trampoline_init): Rename from score7_initialize_trampoline;
2230         adjust for target hook.
2231         * config/score/score3.h, config/score/score7.h: Update.
2233         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
2234         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
2235         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2236         (sh_trampoline_init): Rename from sh_initialize_trampoline;
2237         make static; adjust for target hook parameters.
2238         (sh_trampoline_adjust_address): New.
2239         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
2240         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
2242         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
2243         (sparc32_initialize_trampoline): Rename from
2244         sparc_initialize_trampoline; make static; replace tramp parameter
2245         with m_tramp and update memory accesses.
2246         (sparc64_initialize_trampoline): Similarly.
2247         (sparc_trampoline_init): New.
2248         * config/sparc/sparc-protos.h: Remove trampoline decls.
2249         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
2250         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
2252         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
2253         (array_to_constant): Make ARR parameter const.
2254         (spu_trampoline_init): Rename from spu_initialize_trampoline;
2255         make static; update for hook parameters.
2256         * config/spu/spu-protos.h: Update decls.
2257         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
2259         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
2260         from xstormy16_initialize_trampoline; make static; update for
2261         hook parameters.
2262         (TARGET_TRAMPOLINE_INIT): New.
2263         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
2265         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2266         (TARGET_TRAMPOLINE_INIT): New.
2267         (v850_can_eliminate): Make static.
2268         (v850_asm_trampoline_template, v850_trampoline_init): New.
2269         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
2270         v850_asm_trampoline_template.
2271         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
2272         and adjust for target hook parameters.
2274         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2275         (TARGET_TRAMPOLINE_INIT): New.
2276         (vax_asm_trampoline_template, vax_trampoline_init): New.
2277         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
2278         vax_asm_trampoline_template.
2279         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
2281         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2282         (TARGET_TRAMPOLINE_INIT): New.
2283         (xtensa_asm_trampoline_template): Rename from
2284         xtensa_trampoline_template; make static.
2285         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
2286         make static; update for hook parameters.
2287         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
2288         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
2289         (INITIALIZE_TRAMPOLINE): Remove.
2291         * config/i386/i386.c (ix86_function_regparm): Do not issue an
2292         error for nested functions with regparm=3.
2293         (ix86_compute_frame_layout): Adjust frame pointer offset for
2294         ix86_static_chain_on_stack.
2295         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
2296         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
2297         don't reset to UNITS_PER_WORD.
2298         (ix86_emit_leave): Adjust ix86_cfa_state.
2299         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
2300         (ix86_static_chain): New.
2301         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
2302         make static; update for target hook parameters; use ix86_static_chain.
2303         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2304         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
2305         (INITIALIZE_TRAMPOLINE): Remove.
2306         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
2307         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
2308         to the end.  Add static_chain_on_stack.
2309         (ix86_static_chain_on_stack): New.
2311         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
2312         (m68k_output_mi_thunk): Don't use static_chain_rtx.
2313         (m68k_trampoline_init): New.
2314         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
2315         m68k_trampoline_init and adjust for hook parameters.
2316         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
2317         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
2319 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
2321         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
2322         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
2324         * reload1.c (reload): Call wrap_constant when substituting
2325         reg for equiv inside of DEBUG_INSNs.
2327         PR bootstrap/41405
2328         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
2329         add_call_src_coords_attributes, add_high_low_attributes,
2330         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
2331         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
2332         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
2333         when -gdwarf-2 -gstrict-dwarf.
2334         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
2335         -gdwarf-[23] -gstrict-dwarf.
2336         (address_of_int_loc_descriptor, loc_descriptor,
2337         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
2338         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
2339         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
2341 2009-09-22  Richard Guenther  <rguenther@suse.de>
2343         PR tree-optimization/41428
2344         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
2345         (ccp_finalize): Pass it to substitute_and_fold.
2347 2009-09-22  Richard Guenther  <rguenther@suse.de>
2349         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
2350         (substitute_and_fold): Adjust prototype.
2351         * tree-vrp.c (vrp_evaluate_conditional): Make static.
2352         (simplify_stmt_using_ranges): Likewise.
2353         (fold_predicate_in): Move here from tree-ssa-propagate.c.
2354         (vrp_fold_stmt): New function.
2355         (vrp_finalize): Pass it to substitute_and_fold.
2356         * tree-flow.h (vrp_evaluate_conditional): Remove.
2357         (simplify_stmt_using_ranges): Likewise.
2358         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
2359         * tree-ssa-copy.c (fini_copy_prop): Likewise.
2360         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
2361         member.
2362         (fold_predicate_in): Move to tree-vrp.c.
2363         (substitute_and_fold): Use the callback instead of calling into
2364         tree-vrp.c functions directly.
2366 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
2368         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
2369         comparison warning on rs6000.
2371         PR middle-end/41429
2372         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
2373         GIMPLE_EH_MUST_NOT_THROW cleanup.
2374         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
2376 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
2378         PR middle-end/41260
2379         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
2380         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
2381         LIB_SPEC for darwin10 and later since it always uses the unwinder in
2382         libSystem which is derived from the gcc 4.2.1 unwinder.
2384 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2386         PR middle-end/41357
2387         * varasm.c (default_encode_section_info): Copy TLS model into
2388         sym_ref flags regardless of backend support for TLS, for all
2389         model types except TLS_MODEL_EMULATED.
2391 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2393         PR bootstrap/41404
2394         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
2395         we can handle it correctly.
2397 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
2399         * doc/install.texi (os2): Remove section.
2401 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
2403         * doc/standards.texi (Objective-C): Adjust two URLs.
2405 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
2407         * tree-tailcall.c (process_assignment): Don't check if a
2408         multiplication or an addition are already present.
2409         (find_tail_calls): Combine multiple additions and multiplications.
2410         (adjust_accumulator_values): Emit accumulators.
2412 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
2414         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
2415         xmm register restore.
2417 2009-09-21  Jan Hubicka  <jh@suse.cz>
2419         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
2420         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
2421         restore at the end.
2423 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
2425         * stor-layout.c (layout_type): Remove obsolete code.
2427 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
2429         PR middle-end/41395
2430         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
2432 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2434         PR middle-end/30789
2435         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
2436         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
2437         (fold_builtin_2, do_mpc_arg1): Update accordingly.
2438         * fold-const.c (const_binop): Likewise.
2439         * real.h (do_mpc_arg2): Update prototype.
2441 2009-09-20  Jan Hubicka  <jh@suse.cz>
2443         * dwarf2out.c (add_const_value_attribute): Return true if successful.
2444         (add_location_or_const_value_attribute): Rewrite using
2445         loc_list_from_tree.
2446         (tree_add_const_value_attribute): Return true if successful.
2447         (tree_add_const_value_attribute_for_decl): Likewise.
2449         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
2450         (loc_descriptor): ... here;
2451         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2452         (cst_pool_loc_descr): Break out from ...; do not reffer constant
2453         pool items that was not marked for output.
2454         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
2455         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2456         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2457         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
2458         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
2459         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
2460         DW_OP_stack_value to get address of items that are not available
2461         as addresses.
2462         (dw_loc_list): Handle single element lists correctly.
2464 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
2465             Pascal Obry  <obry@adacore.com>
2467         * unwind-dw2-fde.c (classify_object_over_fdes):
2468         Cast the constant 1 to _Unwind_Ptr.
2469         (add_fdes): Likewise.
2470         (linear_search_fdes): Likewise.
2472 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
2474         * stor-layout.c (set_sizetype): Avoid useless type copy.
2476 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
2478         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
2479         feature check.
2480         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
2481         * configure, config.in: Regenerate.
2482         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
2483         DW_EH_PE_absptr.
2484         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
2485         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
2486         for global data if the output could be used in a shared library.
2487         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
2488         to 0 if TARGET_WRITABLE_EH_FRAME.
2490 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
2492         PR rtl-optimization/39886
2493         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
2494         just when insn is equal to BB_END (bb).
2496 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
2498         * config/mips/mips.opt (mrelax-pic-calls): New option.
2499         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
2500         the file.
2501         (mips_unspec_call): Change "unspec_call" expander into this.
2502         (mips_strip_unspec_call): New function.
2503         (mips_got_load): Call mips_unspec_call instead of
2504         gen_unspec_call<mode>.
2505         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
2506         MIPS_CALL.
2507         (mips_cfg_in_reorg): New function.
2508         (mips16_lay_out_constants): Use it to decide whether to call
2509         CFG-aware insn splitting.
2510         (r10k_insert_cache_barriers): Move CFG set-up code from here to
2511         mips_reorg.  Move DF set-up code from here ...
2512         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
2513         from here.
2514         (mips_reorg): Call mips_df_reorg instead of
2515         r10k_insert_cache_barriers.  Move CFG set-up code here from
2516         r10k_insert_cache_barriers.
2517         (mips_call_expr_from_insn): New function.
2518         (mips_pic_call_symbol_from_set): Likewise.
2519         (mips_find_pic_call_symbol): Likewise.
2520         (mips_annotate_pic_call_expr): Likewise.
2521         (mips_get_pic_call_symbol): Likewise.
2522         (mips_annotate_pic_calls): Likewise.
2523         (mips_override_options): Disable -mrelax-pic-calls unless PIC
2524         calls are used.
2525         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
2526         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
2527         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
2528         directive.
2529         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
2530         (unspec_call<mode>): Remove it.
2531         (sibcall_internal, sibcall_value_internal,
2532         sibcall_value_multiple_internal, call_internal, call_split,
2533         call_value_internal, call_value_split,
2534         call_value_multiple_internal, call_value_multiple_split): Pass
2535         SIZE_OPNO to MIPS_CALL.
2536         (call_internal_direct, call_direct_split,
2537         call_value_internal_direct, call_value_direct_split): Pass -1 as
2538         SIZE_OPNO to MIPS_CALL.
2539         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
2540         * configure: Regenerate.
2541         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
2542         and -mno-relax-pic-calls.
2543         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
2545 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2547         PR bootstrap/35619
2548         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
2549         in the directory this rule is called from, rather than the
2550         toplevel 'gcc' directory, to fix in-tree build.
2552 2009-09-19  Chris Demetriou  <cgd@google.com>
2554         PR preprocessor/28435:
2555         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
2556         to cpplib that the preprocessor output is needed.
2558 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
2560         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
2561         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
2562         *return_and_restore_fpregs_<mode>,
2563         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
2565         PR bootstrap/41397
2566         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
2567         instead of assuming it has always a REG inside of it.
2569 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
2571         * config/freebsd.h: Update comment on types.
2572         (WINT_TYPE): Define.
2574 2009-09-18  Jason Merrill  <jason@redhat.com>
2576         * c.opt: Add -fno-deduce-init-list.
2578 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
2580         * value-prof.c (interesting_stringop_to_profile_p): Added output
2581         argument to indicate which parameter is the size parameter.
2582         * value-prof.c (gimple_stringop_fixed_value): Use
2583         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
2584         * value-prof.c (gimple_stringops_transform): Update call sites to
2585         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
2587 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
2589         PR target/38288
2590         From David Binderman <dcb314@hotmail.com>:
2591         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
2592         local variable f.  Remove stale comments.
2593         (ix86_compute_frame_layout): Remove useless local variable total_size.
2594         Remove #if 0'd code.
2595         (legitimate_address_p): Remove useless local variables
2596         reason_rtx and reason.
2597         (ix86_split_copysign_const): Remove useless local variable op1.
2598         (scale_counter): Remove useless local variable piece_size_mask.
2600 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
2602         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
2603         output decl.
2605 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
2607         PR target/40913
2608         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
2610 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
2612         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
2613         TYPE_STUB_DECL.
2615 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
2617         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
2618         DW_OP_implicit_value even without dwarf_version 4.
2620 2009-09-17  Jan Hubicka  <jh@suse.cz>
2622         * dwarf2out.c: Include tree-pass.h and gimple.h.
2623         (loc_list_plus_const): New function.
2624         (loc_descriptor_from_tree_1): Rename to ...
2625         (loc_descriptor_from_tree): ... remove original.
2626         (loc_list_from_tree): New function.
2627         (add_AT_location_description): Accept location list.
2628         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
2629         (concatn_mem_loc_descriptor): Remove.
2630         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
2631         returning NULL.
2632         (secname_for_decl): Move up.
2633         (hidden_reference_p): New function; break out from ...
2634         (loc_by_refernece): ... here; move up.
2635         (dw_loc_list): New function.
2636         (single_element_loc_list): New function.
2637         (single_element_loc_list_p): New function.
2638         (add_loc_descr_to_each): New function.
2639         (add_loc_list): New function.
2640         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
2641         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
2642         add diagnostics why expansion failed.
2643         (add_location_or_const_value_attribute): Support location lists.
2644         (add_bound_info): Likewise.
2645         (descr_info_loc): Update call of loc_descriptor_from_tree.
2646         (gen_variable_die): Work on location lists.
2647         * final.c (pass_final): Add dump file.
2648         * Makefile.in (dwarf2out.o): Add new dependencies.
2650 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
2652         PR c/41049
2653         * real.c decimal_from_integer, decimal_integer_string): New.
2654         (real_from_integer): Use them as special case for decimal float.
2655         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
2656         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
2657         Do not append zero after the decimal point in string to convert.
2659 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
2661         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
2662         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
2664 2009-09-17  Martin Jambor  <mjambor@suse.cz>
2666         * common.opt (fipa-sra): New switch.
2667         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
2668         * timevar.def (TV_IPA_SRA): New timevar.
2669         * params.def (ipa-sra-ptr-growth-factor): New parameter.
2670         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
2671         * tree-sra.c: Include cgraph.c.
2672         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
2673         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
2674         and grp_not_necessarilly_dereferenced.
2675         (func_param_count): New variable.
2676         (encountered_apply_args): New variable.
2677         (bb_dereferences): New variable.
2678         (final_bbs): New variable.
2679         (no_accesses_representant): New variable.
2680         (no_accesses_p): New function.
2681         (dump_access): Dump the new fields.
2682         (sra_initialize): Set encountered_apply_args to false.
2683         (get_ssa_base_param): New function.
2684         (mark_parm_dereference): New function.
2685         (create_access): Caring for INIDRECT_REFs and different handling of
2686         varialble length accesses in early IPA SRA.  Store the stmt - a new
2687         parameter - to the new access.
2688         (build_access_from_expr_1): New parameter stmt, passed to
2689         create_access.  Handle INDIRECT_REFs.
2690         (build_access_from_expr): Pass the current statement to
2691         build_access_from_expr_1.
2692         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
2693         passes.
2694         (build_accesses_from_assign): Pass the current statement to
2695         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
2696         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
2697         final_bbs when necessary.  Check for calls to __builtin_apply_args.
2698         Fixup EH info if anythng was changed.
2699         (is_unused_scalar_param): New function.
2700         (ptr_parm_has_direct_uses): New function.
2701         (find_param_candidates): New function.
2702         (mark_maybe_modified): New function.
2703         (analyze_modified_params): New function.
2704         (propagate_dereference_distances): New function.
2705         (dump_dereferences_table): New function.
2706         (analyze_caller_dereference_legality): New function.
2707         (unmodified_by_ref_scalar_representative): New function.
2708         (splice_param_accesses): New function.
2709         (decide_one_param_reduction): New function.
2710         (enum ipa_splicing_result): New type.
2711         (splice_all_param_accesses): New function.
2712         (get_param_index): New function.
2713         (turn_representatives_into_adjustments): New function.
2714         (analyze_all_param_acesses): New function.
2715         (get_replaced_param_substitute): New function.
2716         (get_adjustment_for_base): New function.
2717         (replace_removed_params_ssa_names): New function.
2718         (sra_ipa_reset_debug_stmts): New function.
2719         (sra_ipa_modify_expr): New function.
2720         (sra_ipa_modify_assign): New function.
2721         (convert_callers): New function.
2722         (modify_function): New function.
2723         (ipa_sra_preliminary_function_checks): New function.
2724         (ipa_early_sra): New function.
2725         (ipa_early_sra_gate): New function.
2726         (pass_early_ipa_sra): New variable.
2727         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
2729 2009-09-17  Michael Matz  <matz@suse.de>
2731         PR middle-end/41347
2732         * tree.c (build_type_attribute_qual_variant): Export.
2733         * tree.h (build_type_attribute_qual_variant): Declare.
2734         * tree-inline.c (remap_type_1): Use it to build variants with
2735         the original qualifiers and attributes.
2737 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2739         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
2740         without a fallthrough edge.
2742 2009-09-16  DJ Delorie  <dj@redhat.com>
2744         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
2745         chip and ignore the "fast_interrupt" attribute if so.
2747 2009-09-16  Richard Henderson  <rth@redhat.com>
2749         PR middle-end/41360
2750         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
2751         barrier fix.
2753 2009-09-16  Richard Henderson  <rth@redhat.com>
2755         PR target/41246
2756         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
2757         is set only if DECL_NO_STATIC_CHAIN is unset.
2758         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
2759         (FOR_EACH_NEST_INFO): New.
2760         (walk_all_functions): Use it.
2761         (finalize_nesting_tree): Likewise.
2762         (unnest_nesting_tree): Likewise.
2763         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
2764         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
2765         (convert_gimple_call): Early out if gimple_call_chain already set.
2766         (convert_all_function_calls): Iterate until no new functions
2767         require a static chain.
2768         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
2769         when building a trampoline.  Use dump_function_to_file instead
2770         of dump_function.
2771         (lower_nested_functions): Open dump_file.  Validate that decls
2772         that have DECL_NO_STATIC_CHAIN from the front end don't have that
2773         bit reset by this pass.
2775 2009-09-16  Michael Matz  <matz@suse.de>
2777         PR fortran/41212
2778         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
2779         shorten decl_common_unused.
2780         (DECL_RESTRICTED_P): New accessor.
2781         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
2782         to disambiguate marked decls and restrict pointers.
2784 2009-09-16  Richard Henderson  <rth@redhat.com>
2786         PR middle-end/41360
2787         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
2789 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
2791         * integrate.c (set_block_abstract_flags): Call
2792         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
2794 2009-09-16  Richard Guenther  <rguenther@suse.de>
2796         PR middle-end/34011
2797         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
2798         as non-aliased.
2800 2009-09-16  DJ Delorie  <dj@redhat.com>
2801             Kaz Kojima  <kkojima@gcc.gnu.org>
2803         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
2804         (sh_expand_prologue): Update calls to output_stack_adjust.
2805         (sh_expand_epilogue): Likewise.
2807 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
2809         PR bootstrap/41349
2810         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
2811         trying to limit the extent of searches in the insn stream.
2813 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
2814             Jakub Jelinek  <jakub@redhat.com>
2816         PR target/41175
2817         PR target/40677
2818         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
2819         problem.
2820         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
2821         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
2822         (rs6000_savres_strategy): Always save FP registers inline if the
2823         target doesn't support hardware double-precision.  Set the above
2824         bits in return value when needed.
2825         (rs6000_savres_routine_sym): Fix computation for cache selector.
2826         Mark the generated symbol as a function.  Rename exitp argument to
2827         lr.  Move code for determining the name of the symbol...
2828         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
2829         getting the names right on AIX and 64-bit Linux.
2830         (savres_routine_name): New variable.
2831         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
2832         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
2833         on what the target routine uses as a base register.  If savep && lr
2834         describe saving of r0 into memory slot.
2835         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
2836         line calls for AIX ABI.
2837         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
2838         determine FP save/restore functions.
2839         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
2840         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
2841         gen_addsi3.
2842         (rs6000_emit_epilogue): Adjust computation of restore_lr.
2843         Duplicate restoration of LR and execute the appropriate one
2844         depending on whether GPRs are being restored inline.  Set r11 from
2845         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
2846         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
2847         Fix out of line calls for AIX ABI.
2848         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
2849         New insn.
2850         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
2851         register 11.
2852         (*restore_gpregs_spe): Likewise.
2853         (*return_and_restore_gpregs_spe): Likewise.
2854         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
2855         Define to empty string unconditionally.
2856         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
2857         Define to empty string unconditionally.
2858         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
2859         !TARGET_64BIT.
2861 2009-09-15  Jan Hubicka  <jh@suse.cz>
2863         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
2864         * params.def (inline-insns-auto): Likewise.
2866 2009-09-15  Martin Jambor  <mjambor@suse.cz>
2868         * ipa-inline.c (estimate_function_body_sizes): Dump info about
2869         individual statements only at TDF_DETAILS dump level.  Format
2870         source for 80 characters per line.
2872 2009-09-15  Christian Bruel  <christian.bruel@st.com>
2874         * regrename.c (do_replace): Update REG_DEAD notes.
2876 2009-09-15  Revital Eres  <eres@il.ibm.com>
2878         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
2879         * targhooks.c (default_builtin_support_vector_misalignment):
2880         New builtin function.
2881         * targhooks.h (default_builtin_support_vector_misalignment):
2882         Declare.
2883         * target.h (builtin_support_vector_misalignment):
2884         New field in struct gcc_target.
2885         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
2886         new builtin function.
2887         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
2888         Define.
2889         * config/rs6000/rs6000.c
2890         (rs6000_builtin_support_vector_misalignment): New function.
2891         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
2893 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
2895         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
2896         instead of INSN_P.
2897         (bfin_optimize_loop): Likewise.
2898         (bfin_gen_bundles): Likewise.
2899         (workaround_speculation): Likewise.
2900         (find_load): Return NULL_RTX for debug_insn.
2902 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
2904         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
2905         (sminsf3): Ditto.
2907 2009-09-14  DJ Delorie  <dj@redhat.com>
2909         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
2910         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
2911         VLIW mode.
2913 2009-09-14  Richard Henderson  <rth@redhat.com>
2914             Jakub Jelinek  <jakub@redhat.com>
2916         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
2917         * cfgbuild.c (make_edges): Handle asm goto.
2918         * cfglayout.c (fixup_reorder_chain): Likewise.
2919         * cfgrtl.c (patch_jump_insn): Likewise.
2920         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
2921         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
2922         (gimple_build_asm_vec): Add and use labels parameter.
2923         (gimple_build_asm): Remove.
2924         (walk_gimple_asm): Walk labels too.
2925         * gimple.def (GIMPLE_ASM): Update docs.
2926         * gimple.h: Update decls.
2927         (struct gimple_statement_asm): Change nc to use unsigned char;
2928         add nl member.
2929         (gimple_asm_nlabels): New.
2930         (gimple_asm_label_op, gimple_asm_set_label_op): New.
2931         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
2932         into gimple_build_asm_vec.
2933         * jump.c (mark_jump_label_asm): New.
2934         (mark_jump_label): Use it.
2935         (redirect_jump_1): Handle asm goto.
2936         (invert_jump_1): Soft fail if X is null.
2937         * recog.c (extract_asm_operands): New.
2938         (asm_noperands): Use it; handle asm labels.
2939         (decode_asm_operands): Use extract_asm_operands.
2940         (asm_operand_ok): Properly handle empty string.
2941         * reg-stack.c (get_asm_operands_in_out): Rename from
2942         get_asm_operand_n_inputs; use extract_asm_operands; return both
2943         inputs and outputs by reference; update all callers.
2944         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
2945         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
2946         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
2947         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
2948         (extract_asm_operands): Declare.
2949         * stmt.c (expand_asm_operands): Add and use labels parameter.
2950         (check_unique_operand_names): Likewise.
2951         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
2952         (expand_asm_stmt): Handle asm labels.
2953         * tree-cfg.c (make_gimple_asm_edges): New.
2954         (make_edges): Use it.
2955         (cleanup_dead_labels): Handle asm labels.
2956         (is_ctrl_altering_stmt): Likewise.
2957         (gimple_redirect_edge_and_branch): Likewise.
2958         * tree.def (ASM_EXPR): Add 5th operand.
2959         * tree.h (ASM_LABELS): New.
2960         (resolve_asm_operand_names): Update decl.
2962         * c-parser.c (c_parser_asm_statement): Parse asm goto.
2963         (c_parser_asm_goto_operands): New.
2964         * c-tree.h (build_asm_expr): Update decl.
2965         * c-typeck.c (build_asm_expr): Add and use labels parameter.
2966         * doc/extend.texi: Document asm goto.
2968 2009-09-14  Richard Henderson  <rth@redhat.com>
2970         * except.h: Update declarations.
2971         (struct pointer_map_t): Forward declare.
2972         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
2973         (struct eh_landing_pad_d, eh_landing_pad): New.
2974         (struct eh_catch_d, eh_catch): New.
2975         (struct eh_region_d): Remove next_region_sharing_label, aka,
2976         label, tree_label, landing_pad, post_landing_pad, resume,
2977         may_contain_throw.  Rename region_number to index.  Remove
2978         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
2979         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
2980         (VEC(eh_landing_pad,gc)): New.
2981         (struct eh_status): Remove last_region_number.  Add lp_array,
2982         throw_stmt_table, ttype_data, ehspec_data.
2983         (ehr_next, FOR_ALL_EH_REGION_AT): New.
2984         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
2985         * except.c (lang_protect_cleanup_actions): Return tree.
2986         (struct ehl_map_entry): Remove.
2987         (init_eh_for_function): Push zero entries for region and lp_array.
2988         (gen_eh_region): Add to region_array immediately.
2989         (gen_eh_region_catch): Operate on eh_catch objects.
2990         (gen_eh_landing_pad): New.
2991         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
2992         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
2993         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
2994         (get_eh_landing_pad_from_number_fn): New.
2995         (get_eh_landing_pad_from_number): New.
2996         (get_eh_region_from_lp_number_fn): New.
2997         (get_eh_region_from_lp_number): New.
2998         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
2999         (get_exception_pointer, get_exception_filter): Remove.
3000         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
3001         (current_function_has_exception_handlers): Simplify.
3002         (bring_to_root, eh_region_replaceable_by_p): Remove.
3003         (replace_region, hash_type_list, hash_eh_region): Remove.
3004         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
3005         (label_to_region_map, num_eh_regions): Remove.
3006         (get_next_region_sharing_label, must_not_throw_labels): Remove.
3007         (find_exception_handler_labels): Remove.
3008         (duplicate_eh_regions_0, find_prev_try): Remove.
3009         (struct duplicate_eh_regions_data): New.
3010         (duplicate_eh_regions_1): Rewrite.
3011         (duplicate_eh_regions): Return a pointer map instead of an
3012         integer offset.
3013         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
3014         (redirect_eh_edge_to_label): Remove.
3015         (eh_region_outermost): Rewrite using eh_region pointers
3016         instead of integers.
3017         (add_ttypes_entry): Update for ttype_data move to eh_status.
3018         (add_ehspec_entry): Rewrite with VEC instead of varray.
3019         (assign_filter_values): Likewise.  Export.
3020         (build_post_landing_pads, connect_post_landing_pads): Remove.
3021         (dw2_build_landing_pads): Rewrite to use lp_array.
3022         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
3023         (sjlj_assign_call_site_values): Rewrite to use lp_array.
3024         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
3025         (sjlj_mark_call_sites): Update for landing pad numbers.
3026         (finish_eh_generation): Rewrite.
3027         (gate_handle_eh): Do nothing for no eh tree.
3028         (pass_rtl_eh): Move up near finish_eh_generation.
3029         (remove_eh_landing_pad): New.
3030         (remove_eh_handler): Export.
3031         (remove_eh_region, remove_eh_handler_and_replace): Remove.
3032         (for_each_eh_label): Rewrite to use lp_array.
3033         (make_reg_eh_region_note): New.
3034         (make_reg_eh_region_note_nothrow_nononlocal): New.
3035         (insn_could_throw_p): New.
3036         (copy_reg_eh_region_note_forward): New.
3037         (copy_reg_eh_region_note_backward): New.
3038         (check_handled, add_reachable_handler): Remove.
3039         (reachable_next_level, foreach_reachable_handler): Remove.
3040         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
3041         (get_eh_region_and_lp_from_rtx): New.
3042         (get_eh_region_from_rtx): New.
3043         (can_throw_internal_1, can_throw_external_1): Remove.
3044         (can_throw_internal): Use get_eh_region_from_rtx.
3045         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
3046         (insn_nothrow_p, can_nonlocal_goto): New.
3047         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
3048         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
3049         (add_action_record): Use VEC not varray.
3050         (collect_one_action_chain): Update for eh_region changes.
3051         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
3052         Use get_eh_region_and_lp_from_rtx.
3053         (gate_convert_to_eh_region_ranges): New.
3054         (pass_convert_to_eh_region_ranges): Use it.
3055         (push_uleb128, push_sleb128): Use VEC not varray.
3056         (output_one_function_exception_table): Likewise.
3057         (dump_eh_tree): Update for eh_region changes.
3058         (verify_eh_tree): Likewise.
3059         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
3060         * tree-eh.c: Include target.h.
3061         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
3062         Don't disallow GIMPLE_RESX; adjust argument check.
3063         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
3064         (record_stmt_eh_region): Update for landing pad numbers;
3065         generate a landing pad if necessary.
3066         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
3067         (remove_stmt_from_eh_lp_fn): Similarly.
3068         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
3069         Update for lp numbers; don't special case missing throw_stmt_table.
3070         (lookup_expr_eh_lp): Similarly.
3071         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
3072         (eh_seq, eh_region_may_contain_throw): New.
3073         (struct leh_state): Add ehp_region.
3074         (struct leh_tf_state): Remove eh_label.
3075         (emit_post_landing_pad): New.
3076         (emit_resx, emit_eh_dispatch): New.
3077         (note_eh_region_may_contain_throw): New.
3078         (frob_into_branch_around): Take eh_region not eh label;
3079         emit eh code into eh_seq.
3080         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
3081         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
3082         lower_eh_must_not_throw.  Emit code to eh_seq.
3083         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
3084         (lower_try_finally_onedest): Likewise.
3085         (lower_try_finally_copy): Likewise.
3086         (lower_try_finally_switch): Likewise.
3087         (lower_try_finally): Initialize ehp_region.
3088         (lower_catch): Update for eh_catch objects.
3089         (lower_eh_filter): Don't handle must_not_throw.
3090         (lower_eh_must_not_throw): New.
3091         (lower_cleanup): Don't set eh_label.
3092         (lower_eh_constructs_2): Resolve eh builtins.
3093         Handle GIMPLE_EH_MUST_NOT_THROW.
3094         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
3095         Add eh_seq to the end of the function body.
3096         (make_eh_dispatch_edges): New.
3097         (make_eh_edge): Remove.
3098         (make_eh_edges): Simplify for landing pads.
3099         (redirect_eh_edge_1): New.
3100         (redirect_eh_edge): Use it.
3101         (redirect_eh_dispatch_edge): New.
3102         (stmt_could_throw_p): Use a switch.  Allow RESX.
3103         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
3104         (stmt_can_throw_internal): Likewise.
3105         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
3106         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
3107         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
3108         (gate_refactor_eh): New.
3109         (pass_refactor_eh): Use it.
3110         (lower_resx, execute_lower_resx, pass_lower_resx): New.
3111         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
3112         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
3113         (remove_unreachable_handlers): Rename from
3114         tree_remove_unreachable_handlers; rewrite for landing pads;
3115         call remove_eh_handler directly.
3116         (remove_unreachable_handlers_no_lp): New.
3117         (unsplit_eh, unsplit_all_eh): New.
3118         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
3119         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
3120         (cleanup_empty_eh_unsplit): New.
3121         (cleanup_empty_eh): Rewrite.
3122         (cleanup_all_empty_eh): New.
3123         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
3124         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
3125         (gate_cleanup_eh): New.
3126         (pass_cleanup_eh): Use it.
3127         (verify_eh_edges): Move later in file.  Expect one EH edge.
3128         (verify_eh_dispatch_edge): New.
3130         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
3131         (gtype-desc.o): Add TARGET_H.
3132         (tree.o): Use EXCEPT_H, not except.h.
3133         (cfgbuild.o): Add EXPR_H.
3134         (GTFILES): Add vecprim.h.
3135         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
3136         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
3137         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
3138         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
3139         * calls.c (emit_call_1): Use make_reg_eh_region_note.
3140         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
3141         calls to can_throw_internal.
3142         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
3143         (make_edges): Don't handle RESX; use can_nonlocal_goto.
3144         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
3145         (expand_gimple_stmt): Use make_reg_eh_region_note.
3146         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
3147         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
3148         or find_exception_handler_labels.
3149         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
3150         there is exacly one EH edge.  Use can_nonlocal_goto and
3151         can_throw_internal.
3152         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
3153         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
3154         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
3155         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
3156         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
3157         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
3158         * dse.c (scan_insn): Use insn_could_throw_p.
3159         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
3160         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
3161         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
3162         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
3163         EXC_PTR_EXPR or FILTER_EXPR.
3164         (tree_expr_nonzero_warnv_p): Likewise.
3165         * function.h: Include vecprim.h, not varray.h
3166         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
3167         move ttype_data and ehspec_data members to struct eh_status; change
3168         action_record_data member to a VEC.
3169         * gcse.c (hash_scan_set): Use can_throw_internal.
3170         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
3171         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
3172         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3173         (block_may_fallthru): Don't handle RESX_EXPR.
3174         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
3175         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
3176         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
3177         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
3178         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
3179         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
3180         (gimple_size): Likewise.
3181         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
3182         (gimple_build_resx): Use gimple_build_with_ops.
3183         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
3184         (is_gimple_val): Likewise.
3185         (is_gimple_stmt): Remove RESX_EXPR.
3186         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
3187         (GIMPLE_RESX): Reorder with other EH constructs.
3188         * gimple.h (struct gimple_statement_eh_mnt): New.
3189         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
3190         (gimple_eh_filter_must_not_throw): Remove.
3191         (gimple_eh_filter_set_must_not_throw): Remove.
3192         (gimple_eh_must_not_throw_fndecl): New.
3193         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
3194         (is_gimple_resx): New.
3195         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
3196         Don't copy EH_FILTER_MUST_NOT_THROW.
3197         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
3198         * ipa-inline.c (estimate_function_body_sizes): Don't try to
3199         handle must_not_throw_labels specially.
3200         * ipa-pure-const.c (check_call): Update debug statement for LP.
3201         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
3202         * ipa-utils.c (get_base_var): Likewise.
3203         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
3204         * lower-subreg.c (move_eh_region_note): Remove.
3205         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
3206         * omp-low.c (new_omp_context): Update for eh_lp_nr.
3207         (create_task_copyfn): Likewise.
3208         (maybe_catch_exception): Use gimple_build_eh_filter.
3209         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
3210         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
3211         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
3212         and pass_lower_resx.
3213         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
3214         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
3215         can_throw_internal, can_nonlocal_goto.
3216         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
3217         copy_reg_eh_region_note_forward.
3218         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
3219         (emit_output_reload_insns): Likewise.
3220         (copy_eh_notes): Remove.
3221         * rtl.def (RESX): Remove.
3222         * rtl.h: Update declarations.
3223         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
3224         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
3225         (update_eh_label): Remove.
3226         (cleanup_dead_labels_eh): New.
3227         (cleanup_deal_labels): Use it instead of update_eh_label.
3228         (gimple_merge_blocks): Update landing pad data structure when
3229         removing a landing pad label.
3230         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
3231         test; handle GIMPLE_EH_MUST_NOT_THROW.
3232         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
3233         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
3234         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
3235         (verify_stmt): Likewise.  Verify landing pads.
3236         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
3237         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
3238         (struct move_stmt_d): Add eh_map.
3239         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
3240         (move_stmt_r): Remap eh region numbers in builtin calls,
3241         resx and eh_dispatch.
3242         (move_block_to_fn): Remove eh_offset parameter.  Use
3243         maybe_duplicate_eh_stmt_fn.
3244         (find_outermost_region_in_block): Operate on eh_region pointers
3245         instead of region numbers.
3246         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
3247         duplicate_eh_regions.
3248         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
3249         test earlier.  Disallow EH landing pads.
3250         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
3251         * tree-flow.h: Update declarations.
3252         (struct tree_ann_common_d): Replace rn with lp_nr.
3253         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
3254         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
3255         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
3256         resx and eh_dispatch.
3257         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
3258         (copy_edges_for_bb): Use make_eh_dispatch_edges.
3259         (copy_cfg_body): Expect eh_map instead of eh_region_offset
3260         from duplicate_eh_regions.
3261         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
3262         update RESX; handle EH_DISPATCH.
3263         (expand_call_inline): Set eh_lp_nr, not eh_region.
3264         (maybe_inline_call_in_expr): Likewise.
3265         * tree-inline.h (struct copy_body_data): Replace eh_region with
3266         eh_lp_nr, eh_region_offset with eh_map.
3267         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
3268         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
3269         * tree-pretty-print.c (dump_generic_node): Don't handle
3270         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
3271         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
3272         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
3273         EXC_PTR_EXPR, FILTER_EXPR.
3274         * tree-ssa-operands.c (get_expr_operands): Likewise.
3275         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
3276         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3277         (ao_ref_init_from_vn_reference): Likewise.
3278         * tree-ssa-sink.c (statement_sink_location): Likewise.
3279         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3280         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
3281         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
3282         EXC_PTR_EXPR, FILTER_EXPR.
3283         (is_exception_related): Remove.
3284         (compute_avail): Don't call it.
3285         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
3286         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
3287         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
3288         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
3289         Build EH builtins.
3290         (build_resx): Remove.
3291         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
3292         * tree.h: Update declarations.
3293         (EH_FILTER_MUST_NOT_THROW): Remove.
3294         (struct tree_label_decl): Add eh_landing_pad_nr.
3295         (EH_LANDING_PAD_NR): New.
3296         * value-prof.c (gimple_ic): Tidy variable names.  Update for
3297         landing pad numbers.
3298         (gimple_stringop_fixed_value): Tidy variable names.  Assert
3299         that neither call stmt can throw.
3300         * vecprim.h (uchar): New.
3301         (VEC(uchar,heap), VEC(uchar,gc)): New.
3303         * c-common.c (c_define_builtins): Update call to
3304         build_common_builtin_nodes.
3305         * c-parser.c (c_parse_file): Don't call
3306         default_init_unwind_resume_libfunc.
3308 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3310         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
3311         (mips_cprestore_address_p): Likewise.
3312         (mips_save_gp_to_cprestore_slot): Likewise.
3313         (mips_restore_gp): Rename to...
3314         (mips_restore_gp_from_cprestore_slot): ...this.
3315         (mips_must_initialize_gp_p): Declare.
3316         (mips_emit_save_slot_move): Likewise.
3317         (mips_output_load_label): Return nothing.
3318         (mips_eh_uses): Declare.
3319         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
3320         (TARGET_CPRESTORE_DIRECTIVE): New macro.
3321         (TARGET_ABSOLUTE_JUMPS): Likewise.
3322         (EH_USES): Likewise.
3323         (FIRST_PSEUDO_REGISTER): Update comment.
3324         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
3325         (MIPS_CALL): ...here.
3326         (REGISTER_NAMES): Add $cprestore.
3327         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
3328         Add load_label_length, has_inflexible_gp_insn_p,
3329         has_flexible_gp_insn_p, must_initialize_gp_p and
3330         must_restore_gp_when_clobbered_p.
3331         (mips_expand_call): Don't generate split instructions here.
3332         (mips_split_call): Update the call to mips_restore_gp after
3333         the above name change.
3334         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
3335         (mips_find_gp_ref): New function.
3336         (mips_insn_has_inflexible_gp_ref_p): Likewise.
3337         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
3338         (mips_insn_has_flexible_gp_ref_p): Likewise.
3339         (mips_cfun_has_flexible_gp_ref_p): Likewise.
3340         (mips_function_has_gp_insn): Delete.
3341         (mips_global_pointer): Drop the df_regs_ever_live_p check.
3342         Use the new functions above.  Only return INVALID_REGNUM
3343         for TARGET_ABSOLUTE_JUMPS.
3344         (mips_must_initialize_gp_p): New function.
3345         (mips_get_cprestore_base_and_offset): New function, extracted from...
3346         (mips_cprestore_slot): ...here.  Take a bool parameter.
3347         (mips_cfun_has_cprestore_slot_p): New function.
3348         (mips_cprestore_address_p): Likewise.
3349         (mips_save_gp_to_cprestore_slot): Likewise.
3350         (mips_restore_gp): Rename to...
3351         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
3352         epilogue_completed.  Update the call to mips_cprestore_slot.
3353         Test cfun->machine->must_restore_gp_when_clobbered_p.
3354         (mips_direct_save_slot_move_p): New function.
3355         (mips_emit_save_slot_move): Likewise.
3356         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
3357         of cfun->machine->global_pointer.
3358         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
3359         (mips_save_reg): Use mips_emit_save_slot_move.
3360         (mips_expand_prologue): Set must_initialize_gp_p.
3361         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
3362         for all cprestore saves.  Emit a use_cprestore instruction after
3363         setting up the cprestore slot.
3364         (mips_restore_reg): Use mips_emit_save_slot_move.
3365         (mips_process_load_label): New function.
3366         (mips_load_label_length): Likewise.
3367         (mips_output_load_label): Don't return asm: output it here instead.
3368         Use mips_process_load_label.
3369         (mips_adjust_insn_length): Adjust the length of branch instructions
3370         that have length MAX_PIC_BRANCH_LENGTH.
3371         (mips_output_conditional_branch): Update the call to
3372         mips_output_load_label.  Assume the branch target is OPERANDS[0]
3373         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
3374         (mips_output_order_conditional_branch): Swap the meaning of
3375         OPERANDS[0] and OPERANDS[1].
3376         (mips_variable_issue): Don't count ghost instructions.
3377         (mips_expand_ghost_gp_insns): New function.
3378         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
3379         (mips_output_mi_thunk): Set must_initialize_gp_p.
3380         (mips_eh_uses): New function.
3381         * config/mips/predicates.md (cprestore_save_slot_operand)
3382         (cprestore_load_slot_operand): New predicates.
3383         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
3384         (UNSPEC_MOVE_GP): Likewise.
3385         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
3386         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
3387         (CPRESTORE_SLOT_REGNUM): New register.
3388         (MAX_PIC_BRANCH_LENGTH): New constant.
3389         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
3390         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
3391         branches.  Fix commentary.
3392         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
3393         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
3394         Change type to "ghost".
3395         (loadgp_absolute_<mode>): Likewise.
3396         (loadgp_rtp_<mode>): Likewise.
3397         (copygp_mips16): Likewise.
3398         (loadgp_blockage): Remove redundant mode attribute.
3399         (potential_cprestore): New instruction.
3400         (cprestore): Turn into an unspec set.
3401         (use_cprestore): New instruction.
3402         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
3403         (*branch_fp_inverted): Likewise.
3404         (*branch_order<mode>): Likewise.
3405         (*branch_order<mode>_inverted): Likewise.
3406         (*branch_equality<mode>): Likewise.
3407         (*branch_equality<mode>_inverted): Likewise.
3408         (*branch_bit<bbv><mode>): Likewise.
3409         (*branch_bit<bbv><mode>_inverted): Likewise.
3410         (*branch_equality<mode>_mips16): Remove redundant mode.
3411         (jump): Turn into a define_expand.
3412         (*jump_absolute): New instruction.
3413         (*jump_pic): Likewise.
3414         (*jump_mips16): Rename previously-unnamed pattern.  Remove
3415         redundant mode attribute.
3416         (restore_gp): Split on epilogue_completed rather than
3417         reload_completed.  Change type to "ghost".
3418         (move_gp<mode>): New instruction.
3419         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
3420         Remove redundant mode attribute.
3421         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
3422         (bc1any4f, bc1any2t, bc1any2f): Likewise.
3423         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
3425 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3427         PR target/41210
3428         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
3429         are returned in the same register (vs34 or v2) that Altivec vector
3430         types are returned in.
3431         (rs6000_libcall_value): Ditto.
3433         PR target/41331
3434         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
3435         instead of explicit addsi3/adddi3 calls.
3436         (rs6000_split_multireg_move): Ditto.
3437         (rs6000_emit_allocate_stack): Ditto.
3438         (rs6000_emit_prologue): Ditto.
3439         (rs6000_output_mi_thunk): Ditto.
3441         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
3442         size is 64 bits if we can use 64-bit registers.
3444 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
3446         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
3447         symbols.
3449         From Jie Zhang <jie.zhang@analog.com>:
3450         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
3451         save FP and RETS with saveall attribute.
3452         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
3453         with saveall attribute.
3455         * config/bfin/bfin.c (bfin_expand_builtin,
3456         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
3457         operands.
3459         From Jie Zhang <jie.zhang@analog.com>:
3460         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
3461         before use in two places.
3462         * config/bfin/bfin.md (AREG): Define mode iterator.
3463         (reload_in, reload_out): Use mode iterator AREG.
3465 2009-09-14  Richard Guenther  <rguenther@suse.de>
3467         PR middle-end/41350
3468         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
3469         EH personality path.
3471 2009-09-13  Richard Guenther  <rguenther@suse.de>
3472             Rafael Avila de Espindola  <espindola@google.com>
3474         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
3475         (LANG_HOOKS_EH_PERSONALITY): Likewise.
3476         (LANG_HOOKS_INITIALIZER): Adjust.
3477         (lhd_pass_through_t): Declare.
3478         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
3479         eh_personality.
3480         * langhooks.c (lhd_pass_through_t): New function.
3481         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
3482         dwarf2out_begin_prologue): Use personality from current_function_decl.
3483         * expr.h (get_personality_function): Declare.
3484         * expr.c (get_personality_function): New function.
3485         (build_personality_function): Likewise.
3486         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
3487         (eh_personality_libfunc): Remove.
3488         * optabs.c (build_libfunc_function): New function split out from ...
3489         (init_one_libfunc): ... here.
3490         * tree.h (DECL_FUNCTION_PERSONALITY): New.
3491         (tree_function_decl): Add personality.
3492         (lhd_gcc_personality): Declare.
3493         (build_personality_function): Likewise.
3494         * tree.c (gcc_eh_personality_decl): New.
3495         (lhd_gcc_personality): New function.
3496         * except.h (lang_eh_runtime_type): Remove.
3497         (enum eh_personality_kind): New.
3498         (build_personality_function): Declare.
3499         (function_needs_eh_personality): Declare.
3500         * except.c (lang_eh_runtime_type): Remove.
3501         (function_needs_eh_personality): New function.
3502         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
3503         (sjlj_emit_function_enter, output_function_exception_table):
3504         Use personality from current_function_decl.
3505         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
3506         * tree-inline.c (tree_can_inline_p): Do not inline across different
3507         EH personalities.
3508         (expand_call_inline): Likewise.  Adjust the callers EH personality.
3509         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
3510         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
3511         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
3512         (c-parser.o): Likewise
3513         * c-tree.h (c_eh_initialized_p): Remove.
3514         (c_maybe_initialize_eh): Likewise.
3515         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
3516         (finish_decl): Don't call c_maybe_initialize_eh.
3517         (c_eh_initialized_p): Remove.
3518         (c_maybe_initialize_eh): Likewise.
3519         * c-parser.c (c_parser_omp_construct): Likewise.
3520         (c_parse_file): Initialize exception handling.
3522 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
3524         * config.gcc (tm_file): Remove i386/biarch32.h
3525         for i?86-w64-mingw* case.
3526         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
3527         support.
3528         * config.host: Set for x64 mingw the option
3529         use_long_long_for_widest_fast_int to yes.
3531 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
3533         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
3534         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
3535         (dbxout_begin_function): Likewise.
3536         * final.c (dwarf2_debug_info_emitted_p): New predicate.
3537         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
3538         set on the function.
3539         (final_end_function): Likewise.
3540         (final_scan_insn): Likewise.
3541         (rest_of_handle_final): Likewise.
3542         * varasm.c (assemble_start_function): Likewise.
3543         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3545 2009-09-12  Jason Merrill  <jason@redhat.com>
3547         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
3548         * opts.c (common_handle_option): constify.
3550 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
3552         * doc/install.texi (avr): Remove obsolete reference site.
3554 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
3556         * doc/install.texi (Binaries): Adjust AIX link.
3558 2009-09-12  Akim Demaille  <demaille@gostai.com>
3560         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
3561         Use an imperative sentence.
3563 2009-09-11  Richard Henderson  <rth@redhat.com>
3565         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
3566         structure-name and has-tree-operands arguments; update all entries.
3567         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
3568         update all entries.
3569         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
3570         (gsstruct_code_size): New.
3571         (gss_for_code_): New.
3572         (gss_for_code): Remove.
3573         (gimple_size): Rewrite using gsstruct_code_size.
3574         (gimple_statement_structure): Move to gimple.h.
3575         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
3576         (gss_for_code, gimple_statement_structure): New.
3577         (gimple_ops): Use new arrays; tidy.
3579 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3581         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
3582         operand to be a PLUS expression.
3583         * config/pa/pa.c (pa_secondary_reload): Likewise.
3585 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
3587         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
3589         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
3590         XEXP (in_rtx, 8).
3592 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
3594         From Jie Zhang <jie.zhang@analog.com>:
3595         * doc/extend.texi (node Function Attributes): Document l2
3596         function attribute.
3597         (node Blackfin Variable Attributes): Document l2 variable attributes.
3599 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
3601         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
3602         to match the system compiler's configuration at inflection point.
3603         Add comment to remark a remaining difference with system compiler.
3605         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
3606         * configure: Regenerate.
3608 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
3610         From Jie Zhang <jie.zhang@analog.com>:
3611         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
3612         (bfin_handle_l2_attribute): New.
3613         (bfin_attribute_table): Add l2 attribute.
3615 2009-09-11  Michael Matz  <matz@suse.de>
3617         PR middle-end/41275
3618         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
3619         on the local_decls list.
3621 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
3623         PR debug/41276
3624         PR debug/41307
3625         * cselib.c (cselib_expand_value_rtx_cb): Document callback
3626         interface.
3627         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
3628         for VALUEs, to implement the documented interface.
3629         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
3630         Adjust for VALUEs and anything else, to implement the
3631         documented interface.
3633 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
3635         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
3636         with actual SPE/paired vector modes before using 64-bit alignment.
3637         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
3639 2009-09-10  DJ Delorie  <dj@redhat.com>
3641         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
3642         emitted.
3644         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
3645         * config/mep/mep.c (mep_legitimate_constant_p): New.
3646         * config/mep/mep-protos.h: Prototype it.
3648 2009-09-10  Richard Henderson  <rth@redhat.com>
3650         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
3652 2009-09-10  Jason Merrill  <jason@redhat.com>
3654         * tree.c (chain_index): New fn.
3655         * tree.h: Declare it.
3657 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3659         * config/sol2-c.c (cmn_err_length_specs): Initialize
3660         scalar_identity_flag.
3662 2009-09-10  Richard Henderson  <rth@redhat.com>
3664         * tree.h (struct tree_decl_common): Move align member earlier;
3665         move label_decl_uid member ...
3666         (struct tree_label_decl): ... here.
3667         (LABEL_DECL_UID): Update to match.
3669         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
3670         not TDF_DETAILS.
3672         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
3673         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
3675         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
3676         dest_prev if the edge is complex.
3678         * tree-cfg.c (is_ctrl_stmt): Use a switch.
3680         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
3681         loop latch tests earlier.
3683         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
3684         before GIMPLE_RETURN, not after its predecessor; insert
3685         before GIMPLE_RESX.
3687         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
3688         gimple_seq_empty_p to test for no PHI nodes.
3689         * tree-cfg.c (split_critical_edges): Likewise.
3691         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
3693 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
3695         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
3696         introduced by the VTA branch merge.
3698 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
3700         * ira-conflicts.c: Use fputs or putc instead of fprintf
3701         where appropriate.
3702         * cfg.c: Ditto.
3703         * toplev.c: Ditto.
3704         * tree-switch-conversion.c: Ditto.
3706 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
3708         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
3709         introduced by the VTA branch merge.
3711 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
3713         Revert:
3714         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
3716         PR rtl-optimization/39779
3717         * expr.c (convert_modes): Return when mode == oldmode after
3718         CONST_INTs are processed.
3720 2009-09-10  Nick Clifton  <nickc@redhat.com>
3722         * config/mep/mep.c (mep_encode_section_info): Copy weakness
3723         attribute and referring decl when creating renamed symbol.
3725 2009-09-10  Richard Guenther  <rguenther@suse.de>
3727         PR middle-end/41257
3728         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
3729         reachable nodes.
3730         (cgraph_finalize_compilation_unit): Compute reachability
3731         before emitting thunks.  Properly process aliases before
3732         possibly removing unreachable nodes.
3734 2009-09-10  Richard Guenther  <rguenther@suse.de>
3736         PR middle-end/41254
3737         * tree.c (struct free_lang_data_d): Add worklist member.
3738         (find_decls_types_r): Push onto the worklist instead of recursing.
3739         Handle TREE_BINFOs properly.
3740         (find_decls_types): New function wrapped around find_decls_types_r
3741         to process the worklist.
3742         (find_decls_types_in_eh_region): Use it.
3743         (find_decls_types_in_node): Likewise.
3744         (find_decls_types_in_var): Likewise.
3745         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
3746         * tree.h (RECORD_OR_UNION_TYPE_P): New.
3747         (AGGREGATE_TYPE_P): Adjust.
3749 2009-09-09  Jason Merrill  <jason@redhat.com>
3751         * configure.ac: Check glibc version even if we have an in-tree
3752         assembler.
3754 2009-09-09  Anthony Green  <green@moxielogic.com>
3756         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
3757         the constant 0 when appropriate.
3758         * config/moxie/constraints.md: Add constraint O.
3760         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
3761         to pass up to 6 32-bit argument values in registers.
3762         (moxie_function_arg): Ditto.
3763         (moxie_arg_partial_bytes): Ditto.
3764         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
3765         (REG_PARM_STACK_SPACE): Ditto.
3766         (FUNCTION_ARG_REGNO_P): Ditto.
3768         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
3769         instruction to allocate stack space.
3771 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
3773         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
3774         unnecessarily stringent constraints.  Fix address
3775         calculation in the splitters.
3777 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
3779         PR rtl-optimization/39779
3780         * expr.c (convert_modes): Return when mode == oldmode after
3781         CONST_INTs are processed.
3783 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
3785         PR/41315
3786         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
3787         (ix86_expand_prologue): Take frame.padding0 into logic of
3788         to_allocate checks.
3789         (ix86_expand_epilogue): Likewise.
3791 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
3793         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
3794         New variables.
3795         (SHLIB_LINK, SHLIB_INSTALL): Use them.
3796         * config/t-slibgcc-libgcc: New file.
3797         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
3799 2009-09-09  Martin Jambor  <mjambor@suse.cz>
3801         PR tree-optimization/41089
3802         * tree-sra.c (find_var_candidates): Do not consider va_lists in
3803         early SRA.
3805 2009-09-09  Richard Henderson  <rth@redhat.com>
3807         * gimple.h (CASE_GIMPLE_OMP): New.
3808         (is_gimple_omp): Use it.
3809         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
3810         (verify_gimple_debug): Likewise.
3812 2009-09-09  Richard Guenther  <rguenther@suse.de>
3814         PR tree-optimization/41101
3815         * tree-ssa-pre.c (maximal_set): Remove.
3816         (compute_antic_aux): Treat the maximal set as implicitly all ones.
3817         Defer all blocks we didn't visit at least one successor.
3818         (add_to_exp_gen): Do not add to the maximal set.
3819         (make_values_for_phi): Likewise.
3820         (compute_avail): Likewise.
3821         (init_pre): Do not allocate the maximal set.
3822         (execute_pre): Do not dump it.
3824 2009-09-09  Martin Jambor  <mjambor@suse.cz>
3826         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
3827         an SSA_NAME rather than a is_gimple_variable.
3829 2009-09-09  Richard Guenther  <rguenther@suse.de>
3831         PR middle-end/41317
3832         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
3833         code dealing with plain pointer bases.
3834         (maybe_fold_offset_to_reference): Likewise.
3835         (maybe_fold_stmt_addition): Adjust.
3837 2009-09-09  Richard Guenther  <rguenther@suse.de>
3839         * tree.c (free_lang_data_in_type): Do not free the type variant
3840         chains.
3841         (free_lang_data): Merge char_type_node with its properly signed
3842         variant.
3843         (pass_ipa_free): Collect after freeing language specific data.
3845 2009-09-09  Michael Matz  <matz@suse.de>
3847         PR middle-end/41268
3848         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
3849         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
3850         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
3851         to reflect reality.
3853 2009-09-08  DJ Delorie  <dj@redhat.com>
3855         * config/mep/mep.c (conversions[]): Add "ml" pattern.
3857 2009-09-04  Jason Merrill  <jason@redhat.com>
3859         * tree.c (tree_find_value): Remove.
3860         * tree.h: Remove prototype.
3861         * varasm.c (assemble_external): Use value_member instead.
3863 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
3865         * toplev.c (process_options): Choose default debugging type when
3866         gtoggle enables debug info and type is unset.
3868 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
3870         PR debug/41276
3871         PR debug/41307
3872         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
3873         invalid subreg.
3875 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
3877         * configure: Rebuilt with modified libtool.m4.
3879 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
3881         PR debug/41229
3882         PR debug/41291
3883         PR debug/41300
3884         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
3886 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
3888         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
3889         (remove_statement): Likewise.
3890         (rewrite_use_nonlinear_expr): Adjust.
3891         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
3892         * tree-ssa.c (release_defs_bitset): ... this.  New.
3893         * tree-flow.h (release_defs_bitset): Declare.
3895 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
3897         PR debug/41232
3898         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
3899         in the middle block.
3901 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
3903         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
3904         via intptr_t to long type.
3905         (insert_operand_rank): Cast long type via intptr_t to
3906         pointer type.
3907         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
3908         pointer to scalar.
3909         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
3910         from pointer to unsigned via uintptr_t.
3912         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
3913         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
3914         and HAVE_INTPTR_T.
3915         * configure: Regenerated.
3916         * config.in: Regenerated
3917         * system.h (stdint.h): Add include.
3918         (inttypes.h): Likewise.
3919         * Makefile.in (aclocal): Add config/stdint.m4.
3920         * aclocal.m4: Regenerated.
3922 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
3924         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
3925         variables.
3926         (note_np_check_stores): New function.
3927         (harmless_null_pointer_p): New function.
3928         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
3929         changed.  Take into account whether we're in the shadow of a condjump
3930         that tested NP_REG for NULL.
3931         Lose all code that tested for SEQUENCEs.
3932         (workaround_speculation): Avoid inserting NOPs for loads that are
3933         either always executed or a NULL pointer.
3935 2009-09-08  Jan Hubicka  <jh@suse.cz>
3937         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
3938         * params.def (early-inlining-insns): Likewise.
3940 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
3942         PR rtl-optimization/41239
3943         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
3944         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
3945         lists.
3946         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
3947         across calls, as the calls might not always return normally.
3948         (call_may_noreturn_p): New function.
3949         (deps_analyze_insn): Update last_function_call_may_noreturn list.
3950         (init_deps): Initialize it.
3951         (remove_from_deps): Also remove calls from
3952         last_function_call_may_noreturn list.
3954 2009-09-07  Richard Henderson  <rth@redhat.com>
3956         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
3957         more VR->OPERANDS than LHS operands.  Free LHS before returning.
3959 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
3961         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
3962         (attr "addrtype"): New member "spreg".
3963         Use it if mem_spfp_address_operand is true for the address.
3964         (attr "type"): New entry "stall".
3965         (cpu_unit "load"): New.
3966         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
3967         "load".
3968         (insn_reservation "loadsp"): New.
3969         (insn_reservation "load_stall1"): New.
3970         (insn_reservation "load_stall3"): New.
3971         (stall): New insn.
3972         * config/bfin/predicates.md (const1_operand, const3_operand): New.
3973         (mem_p_address_operand): Exclude stack and frame pointer based
3974         addresses.
3975         (mem_spfp_address_operand): New; match them here.
3976         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
3977         (bfin_reorg): Call it if scheduling insns.
3978         (bfin_gen_bundles): Remove dummy insns created by
3979         add_sched_insns_for_speculation.
3981         From Jie Zhang <jie.zhang@analog.com>:
3982         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
3983         bfin_si_revision, bfin_workarounds): Move these ...
3984         * config/bfin/bfin.h: ... here.
3986         From Mike Frysinger  <michael.frysinger@analog.com>
3987         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
3988         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
3989         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
3990         bf547m, bf548m, and bf549m.
3991         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
3992         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
3993         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
3994         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
3995         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
3996         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
3997         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
3998         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
3999         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
4000         bf542m, bf544m, bf547m, bf548m, and bf549m.
4002         From Jie Zhang <jie.zhang@analog.com>:
4003         * config/bfin/predicates.md (p_register_operand): New predicate.
4004         (dp_register_operand): New predicate.
4005         * config/bfin/bfin-protos.h (WA_05000074): Define.
4006         (ENABLE_WA_05000074): Define.
4007         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
4008         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
4009         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
4010         (define_attr addrtype): Allow load/store register to be P register.
4011         (define_attr storereg): New.
4012         (define_cpu_unit anomaly_05000074): New.
4013         (define_insn_reservation dsp32shiftimm): New.
4014         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
4015         (define_insn_reservation loadp): Cannot use slot2.
4016         (define_insn_reservation loadsp): Cannot use slot2.
4017         (define_insn_reservation storep): Cannot use slot2. Does not
4018         apply when working around 05000074.
4019         (define_insn_reservation storep_anomaly_05000074): New.
4020         (define_insn_reservation storei): Does not apply when working
4021         around 05000074.
4022         (define_insn_reservation storei_anomaly_05000074): New.
4023         (define_attr length): Add dsp32shiftimm case.
4024         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
4025         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
4026         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
4027         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
4028         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
4030 2009-09-07  Martin Jambor  <mjambor@suse.cz>
4032         PR middle-end/41282
4033         * tree-sra.c (create_artificial_child_access): Return NULL if
4034         build_ref_for_offset fails.
4035         (propagate_subacesses_accross_link): Allow build_ref_for_offset
4036         and create_artificial_child_access to fail.
4038 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
4040         PR c++/41214
4041         * unwind-dw2.c (uw_init_context_1): Mark noinline.
4042         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
4043         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
4045 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
4047         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
4048         block, ensure it has an exit edge.  Emit a barrier after a jump.
4050 2009-09-07  Nick Clifton  <nickc@redhat.com>
4052         * gcc.c (this_is_linker_script): New variable.  Like
4053         this_is_library_file but for the %T constructor.
4054         (end_going_arg): If this_is_linker_script is set then locate the
4055         script and insert a --script switch before it
4056         (do_spec_2): Initialise this_is_linker_script.
4057         (do_spec_1): Likewise.  Handle %T construct.
4058         (eval_spec_function): Preserve this_is_linker_script.
4059         * doc/invoke.texi: Document %T construct in spec files.
4060         * config/m32c/m32c.h (LIB_SPEC): Use it.
4062 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4064         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
4065         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
4066         when volatile flag is set.
4067         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
4069 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
4071         PR bootstrap/41241
4072         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
4073         (combine_stack_adjustments_for_block): Allow insns between stack
4074         adjustments and stores with corresponding pre-(dec|inc)rement or
4075         pre-modify operation.
4077 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
4079         PR bootstrap/41241
4080         * combine-stack-adj.c (struct csa_memlist): Rename to...
4081         (struct csa_reflist): ... this.  Rename mem field to ref.
4082         (free_csa_memlist): Rename to...
4083         (free_csa_reflist): ... this.
4084         (record_one_stack_memref): Rename to...
4085         (record_one_stack_ref): ... this.  Handle also REG_P.
4086         (try_apply_stack_adjustment): Handle also REG_P.
4087         (struct record_stack_memrefs_data): Rename to...
4088         (struct record_stack_refs_data): ... this.  Rename memlist field to
4089         reflist.
4090         (record_stack_memrefs): Rename to...
4091         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
4092         subexpressions instead of failing when a MEM contains SP references.
4093         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
4094         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
4096 2009-09-06  Richard Guenther  <rguenther@suse.de>
4098         PR middle-end/41144
4099         * tree.c (build_array_type): Do not record types marked
4100         with structural equality in the canonical type hashtable.
4102 2009-09-06  Richard Guenther  <rguenther@suse.de>
4104         PR middle-end/41261
4105         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
4107 2009-09-05  Richard Guenther  <rguenther@suse.de>
4109         PR middle-end/41181
4110         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
4112 2009-09-05  Richard Guenther  <rguenther@suse.de>
4114         PR debug/41273
4115         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
4117 2009-09-05  Richard Guenther  <rguenther@suse.de>
4119         PR middle-end/41271
4120         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
4121         before comparing function argument types.
4123 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4125         PR target/41024
4126         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
4127         the assembler.
4129 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
4131         Revert:
4132         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
4134         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
4135         locators before emit_insn is called.
4137 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
4139         PR bootstrap/41241
4140         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
4141         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
4142         (reginfo_init): Don't call allocate_reg_info.
4144 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
4146         PR target/41262
4147         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
4148         NONDEBUG_INSN_P instead of INSN_P.
4150 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4152         PR debug/41225
4153         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
4155 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4157         PR target/41252
4158         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
4159         pattern of the split.
4161 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4163         * toplev.c (process_options): Move setter of flag_var_tracking
4164         before other tests that depend on it.  Move down setter of
4165         flag_rename_registers.  Don't enable var-tracking-assignments
4166         by default if selective scheduling is enabled.  Warn if both
4167         are enabled.
4169 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4171         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
4172         comment.  Use switch statement to catch overlaps between rtx
4173         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
4174         (IS_DECL_CODE): ... here. Remove.
4175         (check_value_is_not_decl): Remove.
4176         (dv_from_decl, dv_from_value): Check after conversion.
4178 2009-09-04  Richard Guenther  <rguenther@suse.de>
4180         PR middle-end/41257
4181         * (cgraph_finalize_compilation_unit): Move finalizing aliases
4182         after emitting tunks.  Move emitting thunks and ctors from ...
4183         (cgraph_optimize): ... here.  Remove redundant
4184         cgraph_analyze_functions.
4185         * varasm.c (find_decl_and_mark_needed): Remove no longer
4186         necessary check.
4187         (finish_aliases_1): Adjust check for thunk aliases.
4189 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
4191         * config/arm/arm.md (ctzsi2): Added braces
4192         to avoid warning that broke booststrap.
4194 2009-09-04  Martin Jambor  <mjambor@suse.cz>
4196         PR tree-optimization/41112
4197         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
4198         handle variable-bounded arrays.
4199         (expr_with_var_bounded_array_refs_p): New function.
4200         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
4202 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
4204         * config/s390/2097.md: Removed two incorrect bypasses.
4205         (z10_fsimpdf): Fixed latency.
4206         (z10_fhex): New insn_reservation.
4207         (z10_floaddf): Fixed latency.
4208         (z10_floadsf): Fixed latency.
4209         (z10_ftrunctf): Fixed latency.
4210         (z10_ftruncdf): Fixed latency.
4211         * config/s390/s390.c (z10_cost): Fixed values.
4212         (s390_adjust_priority): Added z10 path.
4213         * config/s390/s390.md (type): Added fhex.
4214         (*mov<mode>_64dfp): Updated type attribute.
4215         (*mov<mode>_64): Updated type attribute.
4216         (*mov<mode>_31): Updated type attribute.
4217         (*mov<mode>"): Likewise.
4218         * config/s390/2084.md (x_fsimpdf): Updated condition.
4220 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
4222         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
4223         RTXs in the predicate for operand 1.
4225 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
4227         * config/arm/arm.md (UNSPEC_RBIT): New constant.
4228         (rbitsi2): New insn.
4229         (ctzsi2): New expand.
4230         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
4232 2009-09-03  Martin Jambor  <mjambor@suse.cz>
4234         * tree-sra.c (duplicate_expr_for_different_base): Removed.
4235         (create_artificial_child_access): Use build_ref_for_offset instead
4236         of duplicate_expr_for_different_base.
4237         (propagate_subacesses_accross_link): Likewise.
4239 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
4241         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
4242         of INSN_P.
4243         (mips16e_collect_argument_saves): Skip debug instructions.
4244         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
4245         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
4246         (r10k_insert_cache_barriers): Likewise.
4247         (mips_reorg_process_insns): Likewise.
4249 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
4251         PR bootstrap/41241
4252         * ira.c (update_equiv_reg): Remove check on class likely spill.
4254 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
4256         PR debug/41236
4257         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
4258         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
4259         it or SUBREG.
4261         PR debug/41238
4262         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
4263         the stack slot if it is passed by invisible reference.
4264         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
4265         by invisible reference.
4267 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
4269         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
4270         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
4271         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
4272         0.
4273         * config/bfin/sync.md: New file.
4274         * config/bfin/bfin.md: Include it.
4275         (UNSPEC_ATOMIC): New.
4276         (UNSPEC_ONES): Provide a unique number.
4278         From Jie Zhang <jie.zhang@analog.com>:
4279         * config/bfin/bfin.c (ret_regs): New.
4280         (must_save_fp_p): Don't return true because of frame_pointer_needed.
4281         (must_save_rets_p): New.
4282         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
4283         current_function_is_leaf.
4284         (do_link): Likewise.
4285         (do_unlink): Likewise.
4286         (expand_interrupt_handler_prologue): Use ret_regs array.
4287         (expand_interrupt_handler_epilogue): Use ret_regs array and
4288         pass return register to gen_return_internal.
4289         (bfin_expand_epilogue): Pass return register to
4290         gen_return_internal.
4291         (bfin_expand_call): Explicitly clobber RETS.
4292         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
4293         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
4294         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
4295         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
4296         RETS.
4297         (return_internal): Take a reg rtx rather than the register number.
4299 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
4301         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
4302         when comparing against estimated_loop_iterations_int return.
4304 2009-09-03  Richard Guenther  <rguenther@suse.de>
4306         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
4307         eh_personality_libfunc.
4309 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
4311         * tree-parloops.c (separate_decls_in_region): Add space.
4313 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
4315         * tree-parloops.c (separate_decls_in_region): Change the condition
4316         checking if there are reductions in the loop.
4318 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
4320         PR tree-optimization/38275
4321         * tree-parloops.c (parallelize_loops): Replace profitability condition
4322         for expected number of iterations.
4324 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
4326         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
4327         (bootstrap-debug): Explain conditions in which it becomes default.
4328         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
4329         make it add to it.
4331 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
4333         * doc/invoke.texi (Optimize Options): Move
4334         -finline-small-functions to the -O2 list.
4336 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
4338         * toplev.c (process_options): Enable var-tracking-assignments
4339         by default if var-tracking is enabled.
4341 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
4343         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
4344         barrier.
4345         * emit-rtl.c (prev_nonnote_insn_bb): New function.
4346         * rtl.h (prev_nonnote_insn_bb): Declare it.
4348 2009-09-03  Diego Novillo  <dnovillo@google.com>
4350         * cgraph.c (cgraph_node_for_decl): New.
4351         * cgraph.h (cgraph_node_for_decl): Declare.
4352         * tree.c (host_integerp): Return 0 if T is NULL.
4354 2009-09-03  Diego Novillo  <dnovillo@google.com>
4356         * tree.h (struct alias_pair): Move from varasm.c.
4357         (alias_pairs): Likewise.
4358         (TYPE_MAXVAL): Define.
4359         (TYPE_MINVAL): Define.
4360         (iterative_hash_host_wide_int): Declare.
4361         (remove_unreachable_alias_pairs): Declare.
4362         * tree-pass.h (pass_ipa_free_lang_data): Declare.
4363         * diagnostic.c (default_diagnostic_starter): Make extern.
4364         (default_diagnostic_finalizer): Make extern.
4365         * diagnostic.h (default_diagnostic_starter): Declare.
4366         (default_diagnostic_finalizer): Declare.
4367         (default_tree_printer): Declare.
4368         * toplev.c (default_tree_printer): Make extern.
4370 2009-09-03  Richard Guenther  <rguenther@suse.de>
4371             Diego Novillo  <dnovillo@google.com>
4373         * cgraph.c (cgraph_add_new_function): Remove gimplification.
4374         * cgraphunit.c (cgraph_expand_function): Do not emit
4375         associated thunks from here.
4376         (cgraph_emit_thunks): New.
4377         (cgraph_optimize): Call it.
4378         Return if any IPA pass finds an error.
4379         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
4380         by thunks.
4382 2009-09-03  Simon Baldwin  <simonb@google.com>
4383             Rafael Espindola  <espindola@google.com>
4384             Richard Guenther  <rguenther@suse.de>
4385             Doug Kwan  <dougkwan@google.com>
4386             Diego Novillo  <dnovillo@google.com>
4388         * tree.c: Include tree-pass.h, langhooks-def.h,
4389         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
4390         (free_lang_data_in_type): New.
4391         (need_assembler_name_p): New.
4392         (free_lang_data_in_block): New.
4393         (free_lang_data_in_decl): New.
4394         (struct free_lang_data_d): New.
4395         (add_tree_to_fld_list): New.
4396         (find_decls_types_r): New.
4397         (get_eh_types_for_runtime): New.
4398         (find_decls_types_in_eh_region): New.
4399         (find_decls_types_in_node): New.
4400         (find_decls_types_in_var): New.
4401         (free_lang_data_in_cgraph): New.
4402         (free_lang_data): New.
4403         (gate_free_lang_data): New.
4404         (pass_ipa_free_lang_data): New.
4406 2009-09-03  Diego Novillo  <dnovillo@google.com>
4408         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
4409         * langhooks.h (struct lang_hooks): Add field free_lang_data.
4410         (lang_hooks): Remove const qualifier.
4411         * ipa.c (cgraph_remove_unreachable_nodes): Call
4412         remove_unreachable_alias_pairs.
4413         * except.c (add_type_for_runtime): Check if TYPE has
4414         already been converted.
4415         (lookup_type_for_runtime): Likewise.
4416         (check_handled): Handle converted types.
4417         * varasm.c (remove_unreachable_alias_pairs): New.
4418         * gimple.c: Include demangle.h.
4419         (gimple_decl_printable_name): New.
4420         (gimple_fold_obj_type_ref): New.
4421         * gimple.h (gimple_decl_printable_name): Declare.
4422         (gimple_fold_obj_type_ref): Declare.
4423         * passes.c (init_optimization_passes): Add pass
4424         pass_ipa_free_lang_data.
4425         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
4426         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
4428 2009-09-03  Diego Novillo  <dnovillo@google.com>
4430         * c-lang.c (lang_hooks): Remove const qualifier.
4432 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
4434         * doc/install.texi (*-*-freebsd*): Update target information.
4436 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
4438         * hard-reg-set.h (call_fixed_regs): Remove.
4439         * reginfo.c (call_fixed_regs): Remove.
4440         (init_reg_sets_1): Remove initialization of call_fixed_regs.
4441         (globalize_reg): Don't use call_fixed_regs.
4442         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
4443         call_fixed_regs.
4445 2009-09-01  Michael Matz  <matz@suse.de>
4447         * expr.h (emit_storent_insn, expand_expr_real_1,
4448         expand_expr_real_2): Declare.
4449         * expr.c (emit_storent_insn, expand_expr_real_1,
4450         expand_expr_real_2): Export.
4451         (store_expr): Setting and evaluating dont_return_target is useless.
4452         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
4453         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
4454         * except.c (expand_resx_expr): Rename to ...
4455         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
4456         * except.h (expand_resx_stmt): Declare.
4457         * stmt.c: Add include gimple.h
4458         (expand_asm_expr): Rename to ...
4459         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
4460         (expand_case): Rewrite to take gimple statement.
4461         * tree.h (expand_asm_stmt): Declare.
4462         (expand_case): Change prototype.
4463         * Makefile.in (stmt.o): Depend on gimple.h.
4464         * builtins.c (expand_builtin_synchronize): Build gimple asm
4465         statement, not an ASM_EXPR.
4466         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
4467         gimple_to_tree, release_stmt_tree): Remove.
4468         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
4469         ggc_free, but hold comparison code and operands separately.
4470         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
4471         (expand_call_stmt, expand_gimple_stmt_1,
4472         expand_gimple_stmt): New helpers.
4473         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
4474         release_stmt_tree.  Call expand_gimple_stmt instead.
4475         (expand_gimple_basic_block): Ditto.
4477         * calls.c (emit_call_1): Don't look at EH regions here, make
4478         fntree parameter useless.
4479         (expand_call): New local rettype for TREE_TYPE(exp), use it
4480         throughout.  Remove local p, use addr instead.
4481         Don't look at EH regions here.
4483 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
4485         * doc/invoke.texi (-fsched-pressure): Document it.
4486         (-fsched-reg-pressure-heuristic): Remove it.
4488         * reload.c (ira.h): Include.
4489         (find_reloads): Add choosing reload on number of small spilled
4490         classes.
4492         * haifa-sched.c (ira.h): Include.
4493         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
4494         saved_reg_pressure, curr_reg_live, saved_reg_live,
4495         region_ref_regs): New variables.
4496         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
4497         initiate_reg_pressure_info, setup_ref_regs,
4498         initiate_bb_reg_pressure_info, save_reg_pressure,
4499         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
4500         functions.
4501         (setup_insn_reg_pressure_info): New function.
4502         (rank_for_schedule): Add pressure checking and insn issue time.
4503         Remove comparison of insn reg weights.
4504         (ready_sort): Set insn reg pressure info.
4505         (update_register_pressure, setup_insn_max_reg_pressure,
4506         update_reg_and_insn_max_reg_pressure,
4507         sched_setup_bb_reg_pressure_info): New functions.
4508         (schedule_insn): Add code for printing and updating reg pressure info.
4509         (find_set_reg_weight, find_insn_reg_weight): Remove.
4510         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
4511         (debug_ready_list): Print reg pressure info.
4512         (schedule_block): Ditto.  Check insn issue time.
4513         (sched_init): Set up sched_pressure_p.  Allocate and set up some
4514         reg pressure related info.
4515         (sched_finish): Free some reg pressure related info.
4516         (fix_tick_ready): Make insn always ready if pressure_p.
4517         (init_h_i_d): Don't call find_insn_reg_weight.
4518         (haifa_finish_h_i_d): Free insn reg pressure info.
4520         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
4521         ira_memory_move_cost, ira_class_hard_regs,
4522         ira_class_hard_regs_num, ira_no_alloc_regs,
4523         ira_available_class_regs, ira_reg_class_cover_size,
4524         ira_reg_class_cover, ira_class_translate): Move to ira.h.
4526         * ira-lives.c (single_reg_class): Check mode to find how many
4527         registers are necessary for operand.
4528         (ira_implicitly_set_insn_hard_regs): New.
4530         * common.opt (fsched-pressure): New options.
4531         (fsched-reg-pressure-heuristic): Remove.
4533         * ira.c (setup_eliminable_regset): Rename to
4534         ira_setup_eliminable_regset.  Make it external.
4535         (expand_reg_info): Pass cover class to setup_reg_classes.
4536         (ira): Call resize_reg_info instead of allocate_reg_info.
4538         * sched-deps.c: Include ira.h.
4539         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
4540         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
4541         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
4542         mark_insn_hard_regno_birth, mark_insn_reg_birth,
4543         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
4544         mark_insn_reg_store, mark_insn_reg_clobber,
4545         setup_insn_reg_pressure_info): New.
4546         (sched_analyze_1): Update implicit_reg_pending_uses.
4547         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
4548         Use them to create dependencies.  Set insn reg uses and pressure
4549         info.  Process reg_pending_uses in one place.
4550         (free_deps): Free implicit sets.
4551         (remove_from_deps): Remove implicit sets if necessary.  Check
4552         implicit sets when clearing reg_last_in_use.
4553         (init_deps_global): Clear implicit_reg_pending_clobbers and
4554         implicit_reg_pending_uses.
4556         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
4557         ira_memory_move_cost, ira_class_hard_regs,
4558         ira_class_hard_regs_num, ira_no_alloc_regs,
4559         ira_available_class_regs, ira_reg_class_cover_size,
4560         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
4561         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
4562         ira_implicitly_set_insn_hard_regs): New prototypes.
4564         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
4565         cost_elements_num): New variables.
4566         (allocno_costs, total_costs): Rename to costs and
4567         total_allocno_costs.
4568         (COSTS_OF_ALLOCNO): Rename to COSTS.
4569         (allocno_pref): Rename to pref.
4570         (allocno_pref_buffer): Rename to pref_buffer.
4571         (common_classes): Rename to regno_cover_class.
4572         (COST_INDEX): New.
4573         (record_reg_classes): Set allocno attributes only if allocno_p.
4574         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
4575         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
4576         and COSTS_OF_ALLOCNO.
4577         (print_costs): Rename to print_allocno_costs.
4578         (print_pseudo_costs): New.
4579         (process_bb_node_for_costs): Split into 2 functions with new
4580         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
4581         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
4582         new parameter dump_file.  Use cost_elements_num instead of
4583         ira_allocnos_num.  Make one iteration if preferred classes were
4584         already calculated for scheduler.  Make 2 versions of code
4585         depending on allocno_p.
4586         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
4587         regno_cover_class and COSTS instead of common_classes and
4588         COSTS_OF_ALLOCNO.
4589         (init_costs, finish_costs): New.
4590         (ira_costs): Set up allocno_p and cost_elements_num.  Call
4591         init_costs and finish_costs.
4592         (ira_set_pseudo_classes): New.
4594         * rtl.h (allocate_reg_info): Remove.
4595         (resize_reg_info): Change return type.
4596         (reg_cover_class): New.
4597         (setup_reg_classes): Add new parameter.
4599         * sched-int.h (struct deps_reg): New member implicit_sets.
4600         (sched_pressure_p, sched_regno_cover_class): New external definitions.
4601         (INCREASE_BITS): New macro.
4602         (struct reg_pressure_data, struct reg_use_data): New.
4603         (struct _haifa_insn_data): Remove reg_weight.  Add members
4604         reg_pressure, reg_use_list, reg_set_list, and
4605         reg_pressure_excess_cost_change.
4606         (struct deps): New member implicit_sets.
4607         (pressure_p): New variable.
4608         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
4609         (struct reg_pressure_data, struct reg_use_data): New.
4610         (INSN_REG_WEIGHT): Remove.
4611         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
4612         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
4613         (sched_init_region_reg_pressure_info,
4614         sched_setup_bb_reg_pressure_info): New prototypes.
4616         * reginfo.c (struct reg_pref): New member coverclass.
4617         (reg_cover_class): New function.
4618         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
4619         (reg_info_size): New variable.
4620         (allocate_reg_info): Make static.  Setup reg_info_size.
4621         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
4622         (setup_reg_classes): Add a new parameter.  Setup cover class too.
4624         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
4625         the dependencies.
4627         * sched-rgn.c (deps_join): Set up implicit_sets.
4628         (schedule_region): Set up region and basic blocks pressure
4629         relative info.
4631         * passes.c (init_optimization_passes): Move
4632         pass_subregs_of_mode_init before pass_sched.
4634 2009-09-02  Martin Jambor  <mjambor@suse.cz>
4636         * tree-sra.c (struct access): New field grp_hint.
4637         (dump_access): Dump grp_hint.
4638         (sort_and_splice_var_accesses): Set grp_hint if a group is read
4639         multiple times.
4640         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
4641         those which have been specifically read and somehow written to.
4642         (propagate_subacesses_accross_link): Set grp_hint of right child and
4643         also possibly of the left child.
4645 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
4647         * tree-object-size.c (addr_object_size): Always use object_size_type
4648         0 or 2 when determining the pointer pointed object size.
4650 2009-09-02  Richard Guenther  <rguenther@suse.de>
4652         Revert
4653         2009-08-31  Richard Guenther  <rguenther@suse.de>
4655         * builtins.c (fold_builtin_memory_op): Use the alias oracle
4656         to query if the memory regions for memmove overlap.
4657         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
4658         asserts on pointers, instead deal with odd trees.
4659         (ptr_derefs_may_alias_p): Likewise.
4660         (refs_may_alias_p_1): Constructor bases also never alias.
4662 2009-08-01  Christian Bruel  <christian.bruel@st.com>
4664         Revert:
4665         2009-07-31  Christian Bruel  <christian.bruel@st.com>
4666         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
4668 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
4670         * doc/invoke.texi (-fvar-tracking-assignments): New.
4671         (-fvar-tracking-assignments-toggle): New.
4672         (-fdump-final-insns=file): Mark filename as optional.
4673         (--param min-nondebug-insn-uid): New.
4674         (-gdwarf-@{version}): Mention version 4.
4675         * opts.c (common_handle_option): Accept it.
4676         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
4677         * regrename.c (regrename_optimize): Drop last.  Don't count debug
4678         insns as uses.  Don't reject change because of debug insn.
4679         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
4680         from the chain starter, and check for inexact matches in DEBUG_INSNS.
4681         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
4682         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
4683         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
4684         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
4685         * doc/gimple.texi (is_gimple_debug): New.
4686         (gimple_debug_bind_p): New.
4687         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
4688         * doc/install.texi (bootstrap-debug): More details.
4689         (bootstrap-debug-big, bootstrap-debug-lean): Document.
4690         (bootstrap-debug-lib): More details.
4691         (bootstrap-debug-ckovw): Update.
4692         (bootstrap-time): New.
4693         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
4694         (insert_phi_nodes_for): Insert debug stmts.
4695         (rewrite_stmt): Take iterator.  Insert debug stmts.
4696         (rewrite_enter_block): Adjust.
4697         (maybe_replace_use_in_debug_stmt): New.
4698         (rewrite_update_stmt): Use it.
4699         (mark_use_interesting): Return early for debug stmts.
4700         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
4701         stmts before replacing stmt.
4702         (move_computations_stmt): Likewise.
4703         * ira-conflicts.c (add_copies): Skip debug insns.
4704         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
4705         (regstat_bb_compute_ri): Skip debug insns.
4706         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
4707         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
4708         check_loop_closed_ssa_stmt): Skip debug stmts.
4709         * tree-tailcall.c (find_tail_calls): Likewise.
4710         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
4711         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
4712         (build_var_debug_value_stat): Declare.
4713         (build_var_debug_value): Define.
4714         (target_for_debug_bind): Declare.
4715         * reload.c (find_equiv_reg): Skip debug insns.
4716         * rtlanal.c (reg_used_between_p): Skip debug insns.
4717         (side_effects_p): Likewise.
4718         (canonicalize_condition): Likewise.
4719         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
4720         insns never depend on debug insns.
4721         (create_ddg_dep_no_link): Likewise.
4722         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
4723         Don't add inter-loop dependencies for debug insns.
4724         (build_intra_loop_deps): Likewise.
4725         (create_ddg): Count debug insns.
4726         * ddg.h (struct ddg::num_debug): New.
4727         (num_backargs): Pair up with previous int field.
4728         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
4729         -fcompare-debug-second.
4730         * final.c (get_attr_length_1): Skip debug insns.
4731         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
4732         * gcc.c (invoke_as): Call compare-debug-dump-opt.
4733         (driver_self_specs): Map -fdump-final-insns to
4734         -fdump-final-insns=..
4735         (get_local_tick): New.
4736         (compare_debug_dump_opt_spec_function): Test for . argument and
4737         compute output name.  Compute temp output spec without flag name.
4738         Compute -frandom-seed.
4739         (OPT): Undef after use.
4740         * cfgloopanal.c (num_loop_insns): Skip debug insns.
4741         (average_num_loop_insns): Likewise.
4742         * params.h (MIN_NONDEBUG_INSN_UID): New.
4743         * gimple.def (GIMPLE_DEBUG): New.
4744         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
4745         * auto-inc-dec.c (merge_in_block): Skip debug insns.
4746         (merge_in_block): Fix whitespace.
4747         * toplev.c (flag_var_tracking): Update comment.
4748         (flag_var_tracking_assignments): New.
4749         (flag_var_tracking_assignments_toggle): New.
4750         (process_options): Don't open final insns dump file if we're not
4751         going to write to it.  Compute defaults for var_tracking.
4752         * df-scan.c (df_insn_rescan_debug_internal): New.
4753         (df_uses_record): Handle debug insns.
4754         * haifa-sched.c (ready): Initialize n_debug.
4755         (contributes_to_priority): Skip debug insns.
4756         (dep_list_size): New.
4757         (priority): Use it.
4758         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
4759         they're ready.  Disregard previous debug insns to make decisions.
4760         (queue_insn): Never queue debug insns.
4761         (ready_add, ready_remove_first, ready_remove): Count debug insns.
4762         (schedule_insn): Don't reject debug insns because of issue rate.
4763         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
4764         (queue_to_ready): Skip and discount debug insns.
4765         (choose_ready): Let debug insns through.
4766         (schedule_block): Check boundary debug insns.  Discount debug
4767         insns, schedule them early.  Adjust whitespace.
4768         (set_priorities): Check for boundary debug insns.
4769         (add_jump_dependencies): Use dep_list_size.
4770         (prev_non_location_insn): New.
4771         (check_cfg): Use it.
4772         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
4773         stmts.
4774         (remove_unused_ivs): Reset debug stmts.
4775         * modulo-sched.c (const_iteration_count): Skip debug insns.
4776         (res_MII): Discount debug insns.
4777         (loop_single_full_bb_p): Skip debug insns.
4778         (sms_schedule): Likewise.
4779         (sms_schedule_by_order): Likewise.
4780         (ps_has_conflicts): Likewise.
4781         * caller-save.c (refmarker_fn): New.
4782         (save_call_clobbered_regs): Replace regs with saved mem in
4783         debug insns.
4784         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
4785         Call refmarker_fn mark for hardregnos.
4786         (mark_reg_as_referenced): New.
4787         (replace_reg_with_saved_mem): New.
4788         * ipa-pure-const.c (check_stmt): Skip debug stmts.
4789         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
4790         searching back.
4791         (cse_extended_basic_block): Skip debug insns.
4792         (count_reg_usage): Likewise.
4793         (is_dead_reg): New, split out of...
4794         (set_live_p): ... here.
4795         (insn_live_p): Use it for debug insns.
4796         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
4797         (execute_optimize_stdarg): Likewise.
4798         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
4799         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
4800         changes in debug stmts as changes.
4801         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
4802         (moveup_expr): Don't move across debug insns.  Don't move
4803         debug insn if it would create a bookkeeping block.
4804         (moveup_expr_cached): Don't use cache for debug insns that
4805         are heads of blocks.
4806         (compute_av_set_inside_bb): Skip debug insns.
4807         (sel_rank_for_schedule): Schedule debug insns first.  Remove
4808         dead code.
4809         (block_valid_for_bookkeeping_p); Support lax searches.
4810         (create_block_for_bookkeeping): Adjust block numbers when
4811         encountering debug-only blocks.
4812         (find_place_for_bookkeeping): Deal with debug-only blocks.
4813         (generate_bookkeeping_insn): Accept no place to insert.
4814         (remove_temp_moveop_nops): New argument full_tidying.
4815         (prepare_place_to_insert): Deal with debug insns.
4816         (advance_state_on_fence): Debug insns don't start cycles.
4817         (update_boundaries): Take fence as argument.  Deal with
4818         debug insns.
4819         (schedule_expr_on_boundary): No full_tidying on debug insns.
4820         (fill_insns): Deal with debug insns.
4821         (track_scheduled_insns_and_blocks): Don't count debug insns.
4822         (need_nop_to_preserve_insn_bb): New, split out of...
4823         (remove_insn_from_stream): ... this.
4824         (fur_orig_expr_not_found): Skip debug insns.
4825         * rtl.def (VALUE): Move up.
4826         (DEBUG_INSN): New.
4827         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
4828         (nearest_common_dominator_of_uses): Take debug_stmts argument.
4829         Set it if debug stmts are found.
4830         (statement_sink_location): Skip debug stmts.  Propagate
4831         moving defs into debug stmts.
4832         * ifcvt.c (first_active_insn): Skip debug insns.
4833         (last_active_insns): Likewise.
4834         (cond_exec_process_insns): Likewise.
4835         (noce_process_if_block): Likewise.
4836         (check_cond_move_block): Likewise.
4837         (cond_move_convert_if_block): Likewise.
4838         (block_jumps_and_fallthru_p): Likewise.
4839         (dead_or_predicable): Likewise.
4840         * dwarf2out.c (debug_str_hash_forced): New.
4841         (find_AT_string): Add comment.
4842         (gen_label_for_indirect_string): New.
4843         (get_debug_string_label): New.
4844         (AT_string_form): Use it.
4845         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
4846         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
4847         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
4848         several operations that cannot be represented with DWARF opcodes.
4849         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
4850         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
4851         (dwarf2out_var_location): Take during-call mark into account.
4852         (output_indirect_string): Update comment.  Output if there are
4853         label and references.
4854         (prune_indirect_string): New.
4855         (prune_unused_types): Call it if debug_str_hash_forced.
4856         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
4857         (dw_long_long_const): Remove.
4858         (struct dw_val_struct): Change val_long_long type to rtx.
4859         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
4860         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
4861         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
4862         component instead of HOST_BITS_PER_LONG.
4863         (output_loc_operands): Likewise.  For const8* assert
4864         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
4865         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
4866         rather than HOST_BITS_PER_LONG is >= 64.
4867         (add_AT_long_long): Remove val_hi and val_lo arguments, add
4868         val_const_double.
4869         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
4870         HOST_BITS_PER_LONG for dw_val_class_long_long.
4871         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
4872         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
4873         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
4874         DW_OP_stack_value.
4875         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
4876         Handle DW_OP_implicit_value.
4877         (extract_int): Move prototype earlier.
4878         (mem_loc_descriptor): For SUBREG punt if inner
4879         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
4880         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
4881         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
4882         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
4883         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
4884         instead of Pmode size.
4885         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
4886         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
4887         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
4888         (concat_loc_descriptor, concatn_loc_descriptor,
4889         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
4890         (add_location_or_const_value_attribute): Likewise.  For single
4891         location loc_lists attempt to use add_const_value_attribute
4892         for constant decls.  Add DW_AT_const_value even if
4893         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
4894         in its expression.
4895         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
4896         (control_flow_insn_p): Likewise.
4897         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
4898         (separate_decls_in_region_debug_bind): New.
4899         (separate_decls_in_region): Process debug bind stmts afterwards.
4900         * recog.c (verify_changes): Handle debug insns.
4901         (extract_insn): Likewise.
4902         (peephole2_optimize): Skip debug insns.
4903         * dse.c (scan_insn): Skip debug insns.
4904         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
4905         Pass it on.
4906         (setup_id_for_insn): Handle debug insns.
4907         (maybe_tidy_empty_bb): Adjust whitespace.
4908         (tidy_control_flow): Skip debug insns.
4909         (sel_remove_insn): Adjust for debug insns.
4910         (sel_estimate_number_of_insns): Skip debug insns.
4911         (create_insn_rtx_from_pattern): Handle debug insns.
4912         (create_copy_of_insn_rtx): Likewise.
4913         * sel-sched-.h (sel_bb_end): Declare.
4914         (sel_bb_empty_or_nop_p): New.
4915         (get_all_loop_exits): Use it.
4916         (_eligible_successor_edge_p): Likewise.
4917         (return_nop_to_pool): Adjust.
4918         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
4919         * ira-lives.c (process_bb_node_lives): Skip debug insns.
4920         * gimple-pretty-print.c (dump_gimple_debug): New.
4921         (dump_gimple_stmt): Use it.
4922         (dump_bb_header): Skip gimple debug stmts.
4923         * regmove.c (optimize_reg_copy_1): Discount debug insns.
4924         (fixup_match_2): Likewise.
4925         (regmove_backward_pass): Likewise.  Simplify combined
4926         replacement.  Handle debug insns.
4927         * function.c (instantiate_virtual_regs): Handle debug insns.
4928         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
4929         * print-rtl.h: Include cselib.h.
4930         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
4931         * df.h (df_inns_rescan_debug_internal): Declare.
4932         * gcse.c (alloc_hash_table): Estimate n_insns.
4933         (cprop_insn): Don't regard debug insns as changes.
4934         (bypass_conditional_jumps): Skip debug insns.
4935         (one_pre_gcse_pass): Adjust.
4936         (one_code_hoisting_pass): Likewise.
4937         (compute_ld_motion_mems): Skip debug insns.
4938         (one_cprop_pass): Adjust.
4939         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
4940         (if_convertible_stmt_p): Handle debug stmts.
4941         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
4942         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
4943         * ira-build.c (create_bb_allocnos): Skip debug insns.
4944         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
4945         (has_single_use): Likewise.
4946         (single_imm_use): Likewise.
4947         (num_imm_uses): Likewise.
4948         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
4949         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
4950         (create_outofssa_var_map): Likewise.
4951         * lower-subreg.c (adjust_decomposed_uses): New.
4952         (resolve_debug): New.
4953         (decompose_multiword_subregs): Use it.
4954         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
4955         * emit-rtl.c: Include params.h.
4956         (cur_debug_insn_uid): Define.
4957         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
4958         (copy_rtx_if_shared_1): Handle debug insns.
4959         (reset_used_flags): Likewise.
4960         (set_used_flags): LIkewise.
4961         (get_max_insn_count): New.
4962         (next_nondebug_insn): New.
4963         (prev_nondebug_insn): New.
4964         (make_debug_insn_raw): New.
4965         (emit_insn_before_noloc): Handle debug insns.
4966         (emit_jump_insn_before_noloc): Likewise.
4967         (emit_call_insn_before_noloc): Likewise.
4968         (emit_debug_insn_before_noloc): New.
4969         (emit_insn_after_noloc): Handle debug insns.
4970         (emit_jump_insn_after_noloc): Likewise.
4971         (emit_call_insn_after_noloc): Likewise.
4972         (emit_debug_insn_after_noloc): Likewise.
4973         (emit_insn_after): Take loc from earlier non-debug insn.
4974         (emit_jump_insn_after): Likewise.
4975         (emit_call_insn_after): Likewise.
4976         (emit_debug_insn_after_setloc): New.
4977         (emit_debug_insn_after): New.
4978         (emit_insn_before): Take loc from later non-debug insn.
4979         (emit_jump_insn_before): Likewise.
4980         (emit_call_insn_before): Likewise.
4981         (emit_debug_insn_before_setloc): New.
4982         (emit_debug_insn_before): New.
4983         (emit_insn): Handle debug insns.
4984         (emit_debug_insn): New.
4985         (emit_jump_insn): Handle debug insns.
4986         (emit_call_insn): Likewise.
4987         (emit): Likewise.
4988         (init_emit): Take min-nondebug-insn-uid into account.
4989         Initialize cur_debug_insn_uid.
4990         (emit_copy_of_insn_after): Handle debug insns.
4991         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
4992         location of single rhs in place.
4993         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
4994         (floor_sdiv_adjust): New.
4995         (cell_sdiv_adjust): New.
4996         (cell_udiv_adjust): New.
4997         (round_sdiv_adjust): New.
4998         (round_udiv_adjust): New.
4999         (wrap_constant): Moved from cselib.
5000         (unwrap_constant): New.
5001         (expand_debug_expr): New.
5002         (expand_debug_locations): New.
5003         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
5004         debug bind stmts.
5005         (gimple_expand_cfg): Expand debug locations.
5006         * cselib.c: Include tree-pass.h.
5007         (struct expand_value_data): New.
5008         (cselib_record_sets_hook): New.
5009         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
5010         (cselib_clear_table): Move, and implemnet in terms of...
5011         (cselib_reset_table_with_next_value): ... this.
5012         (cselib_get_next_unknown_value): New.
5013         (discard_useless_locs): Don't discard preserved values.
5014         (cselib_preserve_value): New.
5015         (cselib_preserved_value_p): New.
5016         (cselib_preserve_definitely): New.
5017         (cselib_clear_preserve): New.
5018         (cselib_preserve_only_values): New.
5019         (new_cselib_val): Take rtx argument.  Dump it in details.
5020         (cselib_lookup_mem): Adjust.
5021         (expand_loc): Take regs_active in struct.  Adjust.  Silence
5022         dumps unless details are requested.
5023         (cselib_expand_value_rtx_cb): New.
5024         (cselib_expand_value_rtx): Rename and reimplment in terms of...
5025         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
5026         without details.  Copy more subregs.  Try to resolve values
5027         using a callback.  Wrap constants.
5028         (cselib_subst_to_values): Adjust.
5029         (cselib_log_lookup): New.
5030         (cselib_lookup): Call it.
5031         (cselib_invalidate_regno): Don't count preserved values as useless.
5032         (cselib_invalidate_mem): Likewise.
5033         (cselib_record_set): Likewise.
5034         (struct set): Renamed to cselib_set, moved to cselib.h.
5035         (cselib_record_sets): Adjust.  Call hook.
5036         (cselib_process_insn): Reset table when it would be cleared.
5037         (dump_cselib_val): New.
5038         (dump_cselib_table): New.
5039         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
5040         (remove_forwarder_block): Support moving debug stmts.
5041         * cselib.h (cselib_record_sets_hook): Declare.
5042         (cselib_expand_callback): New type.
5043         (cselib_expand_value_rtx_cb): Declare.
5044         (cselib_reset_table_with_next_value): Declare.
5045         (cselib_get_next_unknown_value): Declare.
5046         (cselib_preserve_value): Declare.
5047         (cselib_preserved_value_p): Declare.
5048         (cselib_preserve_only_values): Declare.
5049         (dump_cselib_table): Declare.
5050         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
5051         (try_crossjump_to_edge): Likewise.
5052         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
5053         dominated blocks when debug stmts are present.
5054         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
5055         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
5056         (set_var_live_on_entry): Likewise.
5057         * loop-invariant.c (find_invariants_bb): Skip debug insns.
5058         * cfglayout.c (curr_location, last_location): Make static.
5059         (set_curr_insn_source_location): Don't avoid bouncing.
5060         (get_curr_insn_source_location): New.
5061         (get_curr_insn_block): New.
5062         (duplicate_insn_chain): Handle debug insns.
5063         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
5064         into debug stmts.
5065         * common.opt (fcompare-debug): Move to sort order.
5066         (fdump-unnumbered-links): Likewise.
5067         (fvar-tracking-assignments): New.
5068         (fvar-tracking-assignments-toggle): New.
5069         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
5070         because of debug stmts.
5071         (mark_stmt_if_obviously_necessary): Mark debug stmts.
5072         (eliminate_unnecessary_stmts): Walk dominated blocks before
5073         dominators.
5074         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
5075         * ira.c (memref_used_between_p): Skip debug insns.
5076         (update_equiv_regs): Likewise.
5077         * sched-deps.c (sd_lists_size): Accept empty list.
5078         (sd_init_insn): Mark debug insns.
5079         (sd_finish_insn): Unmark them.
5080         (sd_add_dep): Reject non-debug deps on debug insns.
5081         (fixup_sched_groups): Give debug insns group treatment.
5082         Skip debug insns.
5083         (sched_analyze_reg): Don't mark debug insns for sched before call.
5084         (sched_analyze_2): Handle debug insns.
5085         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
5086         insns.
5087         (deps_analyze_insn): Handle debug insns.
5088         (deps_start_bb): Skip debug insns.
5089         (init_deps): Initialize last_debug_insn.
5090         * tree-ssa.c (target_for_debug_bind): New.
5091         (find_released_ssa_name): New.
5092         (propagate_var_def_into_debug_stmts): New.
5093         (propagate_defs_into_debug_stmts): New.
5094         (verify_ssa): Skip debug bind stmts without values.
5095         (warn_uninialized_vars): Skip debug stmts.
5096         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
5097         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
5098         (rtx_equal_p): Likewise.
5099         * ira-costs.c (scan_one_insn): Skip debug insns.
5100         (process_bb_node_for_hard_reg_moves): Likewise.
5101         * rtl.h (DEBUG_INSN_P): New.
5102         (NONDEBUG_INSN_P): New.
5103         (MAY_HAVE_DEBUG_INSNS): New.
5104         (INSN_P): Accept debug insns.
5105         (RTX_FRAME_RELATED_P): Likewise.
5106         (INSN_DELETED_P): Likewise
5107         (PAT_VAR_LOCATION_DECL): New.
5108         (PAT_VAR_LOCATION_LOC): New.
5109         (PAT_VAR_OCATION_STATUS): New.
5110         (NOTE_VAR_LOCATION_DECL): Reimplement.
5111         (NOTE_VAR_LOCATION_LOC): Likewise.
5112         (NOTE_VAR_LOCATION_STATUS): Likewise.
5113         (INSN_VAR_LOCATION): New.
5114         (INSN_VAR_LOCATION_DECL): New.
5115         (INSN_VAR_LOCATION_LOC): New.
5116         (INSN_VAR_LOCATION_STATUS): New.
5117         (gen_rtx_UNKNOWN_VAR_LOC): New.
5118         (VAR_LOC_UNKNOWN_P): New.
5119         (NOTE_DURING_CALL_P): New.
5120         (SCHED_GROUP_P): Accept debug insns.
5121         (emit_debug_insn_before): Declare.
5122         (emit_debug_insn_before_noloc): Declare.
5123         (emit_debug_insn_beore_setloc): Declare.
5124         (emit_debug_insn_after): Declare.
5125         (emit_debug_insn_after_noloc): Declare.
5126         (emit_debug_insn_after_setloc): Declare.
5127         (emit_debug_insn): Declare.
5128         (make_debug_insn_raw): Declare.
5129         (prev_nondebug_insn): Declare.
5130         (next_nondebug_insn): Declare.
5131         (delegitimize_mem_from_attrs): Declare.
5132         (get_max_insn_count): Declare.
5133         (wrap_constant): Declare.
5134         (unwrap_constant): Declare.
5135         (get_curr_insn_source_location): Declare.
5136         (get_curr_insn_block): Declare.
5137         * tree-inline.c (insert_debug_decl_map): New.
5138         (processing_debug_stmt): New.
5139         (remap_decl): Don't create new mappings in debug stmts.
5140         (remap_gimple_op_r): Don't add references in debug stmts.
5141         (copy_tree_body_r): Likewise.
5142         (remap_gimple_stmt): Handle debug bind stmts.
5143         (copy_bb): Skip debug stmts.
5144         (copy_edges_for_bb): Likewise.
5145         (copy_debug_stmt): New.
5146         (copy_debug_stmts): New.
5147         (copy_body): Copy debug stmts at the end.
5148         (insert_init_debug_bind): New.
5149         (insert_init_stmt): Take id.  Skip and emit debug stmts.
5150         (setup_one_parameter): Remap variable earlier, register debug mapping.
5151         (estimate_num_insns): Skip debug stmts.
5152         (expand_call_inline): Preserve debug_map.
5153         (optimize_inline_calls): Check for no debug_stmts left-overs.
5154         (unsave_expr_now): Preserve debug_map.
5155         (copy_gimple_seq_and_replace_locals): Likewise.
5156         (tree_function_versioning): Check for no debug_stmts left-overs.
5157         Init and destroy debug_map as needed.  Split edges unconditionally.
5158         (build_duplicate_type): Init and destroy debug_map as needed.
5159         * tree-inline.h: Include gimple.h instead of pointer-set.h.
5160         (struct copy_body_data): Add debug_stmts and debug_map.
5161         * sched-int.h (struct ready_list): Add n_debug.
5162         (struct deps): Add last_debug_insn.
5163         (DEBUG_INSN_SCHED_P): New.
5164         (BOUNDARY_DEBUG_INSN_P): New.
5165         (SCHEDULE_DEBUG_INSN_P): New.
5166         (sd_iterator_cond): Accept empty list.
5167         * combine.c (create_log_links): Skip debug insns.
5168         (combine_instructions): Likewise.
5169         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
5170         return value is always unshared.
5171         (struct rtx_subst_pair): New.
5172         (auto_adjust_pair): New.
5173         (propagate_for_debug_subst): New.
5174         (propagate_for_debug): New.
5175         (try_combine): Skip debug insns.  Propagate removed defs into
5176         debug insns.
5177         (next_nonnote_nondebug_insn): New.
5178         (distribute_notes): Use it.  Skip debug insns.
5179         (distribute_links): Skip debug insns.
5180         * tree-outof-ssa.c (set_location_for_edge): Likewise.
5181         * resource.c (mark_target_live_regs): Likewise.
5182         * var-tracking.c: Include cselib.h and target.h.
5183         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
5184         MO_VAL_SET.
5185         (micro_operation_type_name): New.
5186         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
5187         (struct micro_operation_def): Update comments.
5188         (decl_or_value): New type.  Use instead of decls.
5189         (struct emit_note_data_def): Add vars.
5190         (struct attrs_def): Use decl_or_value.
5191         (struct variable_tracking_info_def): Add permp, flooded.
5192         (struct location_chain_def): Update comment.
5193         (struct variable_part_def): Use decl_or_value.
5194         (struct variable_def): Make var_part a variable length array.
5195         (valvar_pool): New.
5196         (scratch_regs): New.
5197         (cselib_hook_called): New.
5198         (dv_is_decl_p): New.
5199         (dv_is_value_p): New.
5200         (dv_as_decl): New.
5201         (dv_as_value): New.
5202         (dv_as_opaque): New.
5203         (dv_onepart_p): New.
5204         (dv_pool): New.
5205         (IS_DECL_CODE): New.
5206         (check_value_is_not_decl): New.
5207         (dv_from_decl): New.
5208         (dv_from_value): New.
5209         (dv_htab_hash): New.
5210         (variable_htab_hash): Use it.
5211         (variable_htab_eq): Support values.
5212         (variable_htab_free): Free from the right pool.
5213         (attrs_list_member, attrs_list_insert): Use decl_or_value.
5214         (attrs_list_union): Adjust.
5215         (attrs_list_mpdv_union): New.
5216         (tie_break_pointers): New.
5217         (canon_value_cmp): New.
5218         (unshare_variable): Return possibly-modified slot.
5219         (vars_copy_1): Adjust.
5220         (var_reg_decl_set): Adjust.  Split out of...
5221         (var_reg_set): ... this.
5222         (get_init_value): Adjust.
5223         (var_reg_delete_and_set): Adjust.
5224         (var_reg_delete): Adjust.
5225         (var_regno_delete): Adjust.
5226         (var_mem_decl_set): Split out of...
5227         (var_mem_set): ... this.
5228         (var_mem_delete_and_set): Adjust.
5229         (var_mem_delete): Adjust.
5230         (val_store): New.
5231         (val_reset): New.
5232         (val_resolve): New.
5233         (variable_union): Adjust.  Speed up merge of 1-part vars.
5234         (variable_canonicalize): Use unshared slot.
5235         (VALUED_RECURSED_INTO): New.
5236         (find_loc_in_1pdv): New.
5237         (struct dfset_merge): New.
5238         (insert_into_intersection): New.
5239         (intersect_loc_chains): New.
5240         (loc_cmp): New.
5241         (canonicalize_loc_order_check): New.
5242         (canonicalize_values_mark): New.
5243         (canonicalize_values_star): New.
5244         (variable_merge_over_cur): New.
5245         (variable_merge_over_src): New.
5246         (dataflow_set_merge): New.
5247         (dataflow_set_equiv_regs): New.
5248         (remove_duplicate_values): New.
5249         (struct dfset_post_merge): New.
5250         (variable_post_merge_new_vals): New.
5251         (variable_post_merge_perm_vals): New.
5252         (dataflow_post_merge_adjust): New.
5253         (find_mem_expr_in_1pdv): New.
5254         (dataflow_set_preserve_mem_locs): New.
5255         (dataflow_set_remove_mem_locs): New.
5256         (dataflow_set_clear_at_call): New.
5257         (onepart_variable_different_p): New.
5258         (variable_different_p): Use it.
5259         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
5260         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
5261         if not needed.
5262         (track_loc_p): Pass it true.
5263         (struct count_use_info): New.
5264         (find_use_val): New.
5265         (replace_expr_with_values): New.
5266         (log_op_type): New.
5267         (use_type): New, partially split out of...
5268         (count_uses): ... this.  Count new micro-ops.
5269         (count_uses_1): Adjust.
5270         (count_stores): Adjust.
5271         (count_with_sets): New.
5272         (VAL_NEEDS_RESOLUTION): New.
5273         (VAL_HOLDS_TRACK_EXPR): New.
5274         (VAL_EXPR_IS_COPIED): New.
5275         (VAL_EXPR_IS_CLOBBERED): New.
5276         (add_uses): Adjust.  Generate new micro-ops.
5277         (add_uses_1): Adjust.
5278         (add_stores): Generate new micro-ops.
5279         (add_with_sets): New.
5280         (find_src_status): Adjust.
5281         (find_src_set_src): Adjust.
5282         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
5283         Handle new micro-ops.  Canonicalize value equivalances.
5284         (vt_find_locations): Compute total size of hash tables for
5285         dumping.  Perform merge for var-tracking-assignments.  Don't
5286         disregard single-block loops.
5287         (dump_attrs_list): Handle decl_or_value.
5288         (dump_variable): Take variable.  Deal with decl_or_value.
5289         (dump_variable_slot): New.
5290         (dump_vars): Use it.
5291         (dump_dataflow_sets): Adjust.
5292         (set_slot_part): New, extended to support one-part variables
5293         after splitting out of...
5294         (set_variable_part): ... this.
5295         (clobber_slot_part): New, split out of...
5296         (clobber_variable_part): ... this.
5297         (delete_slot_part): New, split out of...
5298         (delete_variable_part): .... this.
5299         (check_wrap_constant): New.
5300         (vt_expand_loc_callback): New.
5301         (vt_expand_loc): New.
5302         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
5303         EMIT_NOTE_AFTER_CALL_INSN.
5304         (emit_notes_for_differences_1): Adjust.  Handle values.
5305         (emit_notes_for_differences_2): Likewise.
5306         (emit_notes_for_differences): Adjust.
5307         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
5308         Adjust.  Handle new micro-ops.
5309         (vt_add_function_parameters): Adjust.  Create and bind values.
5310         (vt_initialize): Adjust.  Initialize scratch_regs and
5311         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
5312         operations.  Move some code to count_with_sets and add_with_sets.
5313         (delete_debug_insns): New.
5314         (vt_debug_insns_local): New.
5315         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
5316         cselib.
5317         (var_tracking_main): If var-tracking-assignments is enabled
5318         but var-tracking isn't, delete debug insns and leave.  Likewise
5319         if we exceed limits or fail the stack adjustments tests, and
5320         after all var-tracking processing.
5321         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
5322         (dataflow_set): Add traversed_vars.
5323         (value_chain, const_value_chain): New typedefs.
5324         (value_chain_pool, value_chains): New variables.
5325         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
5326         add_value_chains, add_cselib_value_chains, remove_value_chain,
5327         remove_value_chains, remove_cselib_value_chains): New functions.
5328         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
5329         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
5330         static inlines.
5331         (shared_hash_find_slot_unshare, shared_hash_find_slot,
5332         shared_hash_find_slot_noinsert, shared_hash_find): Update.
5333         (dst_can_be_shared): New variable.
5334         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
5335         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
5336         different from set->vars, look up slot again instead of using the
5337         passed in slot.
5338         (dataflow_set_init): Initialize traversed_vars.
5339         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
5340         lookup if set->vars is shared.  Don't keep slot cleared before
5341         calling unshare_variable.  Unshare set->vars if needed.  Adjust
5342         unshare_variable callers.  Clear dst_can_be_shared if needed.
5343         Even ->refcount == 1 vars must be unshared if set->vars is shared
5344         and var needs to be modified.
5345         (dataflow_set_union): Set traversed_vars during canonicalization.
5346         (VALUE_CHANGED, DECL_CHANGED): Define.
5347         (set_dv_changed, dv_changed_p): New static inlines.
5348         (track_expr_p): Clear DECL_CHANGED.
5349         (dump_dataflow_sets): Set it.
5350         (variable_was_changed): Call set_dv_changed.
5351         (emit_note_insn_var_location): Likewise.
5352         (changed_variables_stack): New variable.
5353         (check_changed_vars_1, check_changed_vars_2): New functions.
5354         (emit_notes_for_changes): Do nothing if changed_variables is
5355         empty.  Traverse changed_variables with check_changed_vars_1,
5356         call check_changed_vars_2 on each changed_variables_stack entry.
5357         (emit_notes_in_bb): Add SET argument.  Just clear it at the
5358         beginning, use it instead of local &set, don't destroy it at the end.
5359         (vt_emit_notes): Call dataflow_set_clear early on all
5360         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
5361         computed set, dataflow_set_clear also VTI(bb)->in when we are
5362         done with the basic block.  Initialize changed_variables_stack,
5363         free it afterwards.  If ENABLE_CHECKING verify that after noting
5364         differences to an empty set value_chains hash table is empty.
5365         (vt_initialize): Initialize value_chains and value_chain_pool.
5366         (vt_finalize): Delete value_chains htab, free value_chain_pool.
5367         (variable_tracking_main): Call dump_dataflow_sets before calling
5368         vt_emit_notes, not after it.
5369         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
5370         (propagate_var_def_into_debug_stmts): Declare.
5371         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
5372         (df_set_note): Reject debug insns.
5373         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
5374         add notes to debug insns.
5375         (df_note_bb_compute): Adjust.  Likewise.
5376         (df_simulate_uses): Skip debug insns.
5377         (df_simulate_initialize_backwards): Likewise.
5378         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
5379         (subst_stack_regs_pat): Reject debug insns.
5380         (convert_regs_1): Handle debug insns.
5381         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
5382         (print-rtl.o): Depend on cselib.h.
5383         (cselib.o): Depend on TREE_PASS_H.
5384         (var-tracking.o): Depend on cselib.h and TARGET_H.
5385         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
5386         (init_ready_list): Skip boundary debug insns.
5387         (add_branch_dependences): Skip debug insns.
5388         (free_block_dependencies): Check for blocks with only debug insns.
5389         (compute_priorities): Likewise.
5390         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
5391         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
5392         all callers.
5393         (gimple_build_debug_bind_stat): New.
5394         (empty_body_p): Skip debug stmts.
5395         (gimple_has_side_effects): Likewise.
5396         (gimple_rhs_has_side_effects): Likewise.
5397         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
5398         (gimple_build_debug_bind_stat): Declare.
5399         (gimple_build_debug_bind): Define.
5400         (is_gimple_debug): New.
5401         (gimple_debug_bind_p): New.
5402         (gimple_debug_bind_get_var): New.
5403         (gimple_debug_bind_get_value): New.
5404         (gimple_debug_bind_get_value_ptr): New.
5405         (gimple_debug_bind_set_var): New.
5406         (gimple_debug_bind_set_value): New.
5407         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
5408         (gimple_debug_bind_reset_value): New.
5409         (gimple_debug_bind_has_value_p): New.
5410         (gsi_next_nondebug): New.
5411         (gsi_prev_nondebug): New.
5412         (gsi_start_nondebug_bb): New.
5413         (gsi_last_nondebug_bb): New.
5414         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
5415         (print_insn): Handle DEBUG_INSN.
5416         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
5417         of first insn prevail.
5418         (first_stmt): Skip debug stmts.
5419         (first_non_label_stmt): Likewise.
5420         (last_stmt): Likewise.
5421         (has_zero_uses_1): New.
5422         (single_imm_use_1): New.
5423         (verify_gimple_debug): New.
5424         (verify_types_in_gimple_stmt): Handle debug stmts.
5425         (verify_stmt): Likewise.
5426         (debug_loop_num): Skip debug stmts.
5427         (remove_edge_and_dominated_blocks): Remove dominators last.
5428         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
5429         (linearize_expr): Likewise.
5430         * config/i386/i386.c (ix86_delegitimize_address): Call
5431         default implementation.
5432         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
5433         (group_barrier_needed): Skip debug insns.
5434         (emit_insn_group_barriers): Likewise.
5435         (emit_all_insn_group_barriers): Likewise.
5436         (ia64_variable_issue): Handle debug insns.
5437         (ia64_dfa_new_cycle): Likewise.
5438         (final_emit_insn_group_barriers): Skip debug insns.
5439         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
5440         def cfa without frame.
5441         (process_set): Likewise.
5442         (process_for_unwind_directive): Pass frame on.
5443         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
5444         (rs6000_delegitimize_address): New.
5445         (rs6000_debug_adjust_cost): Handle debug insns.
5446         (is_microcoded_insn): Likewise.
5447         (is_cracked_insn): Likewise.
5448         (is_nonpipeline_insn): Likewise.
5449         (insn_must_be_first_in_group): Likewise.
5450         (insn_must_be_last_in_group): Likewise.
5451         (force_new_group): Likewise.
5452         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
5453         contains only debug insns.
5454         (rtl_merge_blocks): Skip debug insns.
5455         (purge_dead_edges): Likewise.
5456         (rtl_block_ends_with_call_p): Skip debug insns.
5457         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
5458         (mark_reg_dependencies): Skip debug insns.
5459         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
5460         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
5461         * tree-ssa-threadedge.c
5462         (record_temporary_equivalences_from_stmts): Skip debug stmts.
5463         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
5464         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
5465         (copyprop_hardreg_forward_1): Handle debug insns.
5466         * reload1.c (reload): Skip debug insns.  Replace unassigned
5467         pseudos in debug insns with their equivalences.
5468         (eliminate_regs_in_insn): Skip debug insns.
5469         (emit_input_reload_insns): Skip debug insns at first, adjust
5470         them later.
5471         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
5472         (get_indirect_ref_operands): Pass opf_no_vops on.
5473         (get_expr_operands): Likewise.  Skip debug stmts.
5474         (parse_ssa_operands): Scan debug insns with opf_no_vops.
5476 2009-09-01  Richard Henderson  <rth@redhat.com>
5478         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
5479         stmt_ends_pp_p statements at least once.
5480         * tree-vrp.c (vrp_initialize): Likewise.
5481         (vrp_visit_stmt): Be prepared for non-interesting stmts.
5483 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
5485         PR bootstrap/41205
5486         Fix AIX bootstrap after PR debug/30161
5487         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
5488         that is a GNU extension.
5489         (tmpl_value_parm_die_table): Move the definition of this global
5490         outside #ifdef DWARF2_DEBUGGING_INFO region.
5492 2009-09-01  Richard Guenther  <rguenther@suse.de>
5494         * tree.c (tree_expr_size): New function.
5495         * tree.h (tree_expr_size): Declare.
5496         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
5497         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
5498         * langhooks.c (lhd_expr_size): Remove.
5499         * langhooks.h (struct lang_hooks): Remove expr_size.
5500         * explow.c (expr_size): Use tree_expr_size.
5501         (int_expr_size): Likewise.
5502         * langhooks-def.h (lhd_expr_size): Remove.
5503         (LANG_HOOKS_EXPR_SIZE): Likewise.
5504         (LANG_HOOKS_INITIALIZER): Adjust.
5506 2009-09-01  Richard Guenther  <rguenther@suse.de>
5508         * tree-flow.h (mark_addressable): Move declaration ...
5509         * tree.h (mark_addressable): ... here.
5510         * stmt.c (expand_asm_operands): Use mark_addressable, not
5511         lang_hooks.mark_addressable.
5512         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
5513         LANG_HOOKS_MARK_ADDRESSABLE.
5514         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
5515         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
5517 2009-08-31  Chris Demetriou  <cgd@google.com>
5519         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
5520         vectorize if not TARGET_SSE2.
5522 2009-08-31  DJ Delorie  <dj@redhat.com>
5524         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
5525         registers if no coprocessor is enabled.
5527 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
5529         PR debug/30161
5530         * cgraph.h (cgraph_get_node): Declare ...
5531         * cgraph.c (cgraph_get_node): ... new function.
5532         * dwarf2out.c (gen_generic_params_dies,
5533         generic_parameter_die, tree_add_const_value_attribute_for_decl,
5534         make_ith_pack_parameter_name,
5535         append_entry_to_tmpl_value_parm_die_table,
5536         gen_remaining_tmpl_value_param_die_attribute): New functions.
5537         (gen_subprogram_die): Generate debug info for template parameters
5538         if debug info level is higher than DINFO_LEVEL_TERSE.
5539         Use tree_add_const_value_attribute_for_decl instead of
5540         tree_add_const_value_attribute.
5541         (gen_const_die): Use tree_add_const_value_attribute_for_decl
5542         instead of tree_add_const_value_attribute.
5543         (gen_struct_or_union_type_die): Generate debug
5544         info for template parameters if debug info level is higher than
5545         DINFO_LEVEL_TERSE.
5546         (tree_add_const_value_attribute): Handle integral and pointer
5547         constants. Update comment.
5548         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
5549         (dwarf_attr_name): Support DW_AT_GNU_template_name.
5550         (reference_to_unused): Fix thinko. Remove redundant predicates from
5551         tests.
5552         (tree_add_const_value_attribute): Make this work for constant
5553         expressions only.
5554         tree_add_const_value_attribute_for_decl is to be used for variable
5555         DECLs now.
5556         (add_location_or_const_value_attribute): Use
5557         tree_add_const_value_attribute_for_decl now.
5558         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
5559         DW_TAG_template_value_param DIEs after function DIEs have been
5560         emitted.
5561         * langhooks.h (lang_hooks_for_types): Add
5562         get_argument_pack_elems.
5563         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
5564         (lang_hooks): Added get_innermost_generic_parms,
5565         get_innermost_generic_args.
5566         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
5567         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
5568         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
5569         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
5571 2009-08-31  DJ Delorie  <dj@redhat.com>
5573         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
5574         it once we start generating the prologue or epilogue.
5575         (mep_call_saves_register): If the frame is locked, re-use
5576         cached values.
5577         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
5578         (mep_expand_prologue): Call it.
5579         (mep_expand_epilogue): Likewise.
5580         (mep_start_function): Use the same logic as mep_expand_prologue.
5581         (mep_pass_by_reference): Make logic more readable.
5582         (mep_return_in_memory): Zero-sized objects are passed in memory.
5583         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
5585 2009-08-31  Richard Guenther  <rguenther@suse.de>
5587         * builtins.c (fold_builtin_memory_op): Use the alias oracle
5588         to query if the memory regions for memmove overlap.
5589         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
5590         asserts on pointers, instead deal with odd trees.
5591         (ptr_derefs_may_alias_p): Likewise.
5592         (refs_may_alias_p_1): Constructor bases also never alias.
5594 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
5596         * doc/install.texi (Final install): Adjust reference on where to
5597         order printed manuals.
5599 2009-08-30  Olivier Hainque  <hainque@adacore.com>
5601         * dwarf2out.c (switch_to_frame_table_section): Move
5602         definition prior to first use.
5604 2009-08-30  Richard Guenther  <rguenther@suse.de>
5606         PR tree-optimization/41186
5607         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
5608         (ao_ref_init_from_ptr_and_size): New function.
5609         (ref_maybe_used_by_call_p_1): Be more precise tracking
5610         used ranges for builtin functions.
5611         (ref_maybe_used_by_call_p): Adjust.
5612         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
5613         ranges for builtin functions.
5614         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
5616 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
5618         PR target/41081
5619         * fwprop.c (get_reg_use_in): Delete.
5620         (free_load_extend): New function.
5621         (forward_propagate_subreg): Use it.
5623 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
5625         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
5627 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
5629         PR/41184
5630         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
5631         padding.
5633 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
5635         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
5636         fini or fini_array section.
5638 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5640         * graphite-dependences.c (graphite_legal_transform_bb): Call
5641         pbb_remove_duplicate_pdrs.
5642         * graphite-poly.c (can_collapse_pdr): Removed.
5643         (pdr_find_duplicate): Removed.
5644         (can_collapse_pdrs): New.
5645         (pbb_remove_duplicate_pdrs): New.
5646         (new_poly_dr): Do not look for duplicates.
5647         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
5648         (PBB_PDR_DUPLICATES_REMOVED): New.
5649         (pbb_remove_duplicate_pdrs): Declared.
5651 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5653         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
5654         the strides by multiplying by PDR_NB_REFS.
5655         * graphite-poly.c (can_collapse_pdr): New.
5656         (pdr_find_duplicate): New.
5657         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
5658         Initialize PDR_NB_REFS.
5659         * graphite-poly.h (struct poly_dr): Add field nb_refs.
5660         (PDR_NB_REFS): New.
5661         (new_poly_dr): Number of subscripts is a graphite_dim_t.
5663 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5665         PR middle-end/40965
5666         * graphite-poly.c (apply_poly_transforms): Remove legality test before
5667         any transform.
5669 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5671         * graphite-dependences.c (pddr_original_scattering): Return NULL
5672         for read-read dependence relations.
5673         * graphite-poly.h (enum poly_dr_type): Fix comment.
5674         (pdr_read_p): New.
5675         (pdr_write_p): New.
5676         (pdr_may_write_p): New.
5678 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5680         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
5681         (struct poly_dr): Same.
5682         (new_poly_dr): Same.
5683         * graphite-poly.c (new_poly_dr): Same.
5684         * graphite-dependences.c (dot_deps): Disable call to system.
5686 2009-08-28  Cary Coutant  <ccoutant@google.com>
5688         PR debug/41063
5689         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
5690         struct/union/enum types local to a function.
5692 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
5693             Sebastian Pop  <sebastian.pop@amd.com>
5695         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
5696         pbb_strip_mine_time_depth.  Changed the implementation so that
5697         transformation is expressed as a transformation on
5698         time (scatttering) dimensions.  Also, ensures that the 2d+1
5699         scheduling format is preserved.
5700         (pbb_strip_mine_profitable_p): Profitability is based on the
5701         iteration number of a given time (scattering) dimension,
5702         and not on a original loop depth dimension.
5703         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
5704         (pbb_do_strip_mine): Call psct_dynamic_dim.
5705         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
5706         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
5707         (pbb_nb_dynamic_scattering_transform): New.
5708         (psct_dynamic_dim): New.
5710 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
5712         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
5713         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
5714         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
5715         * graphite-interchange.c (build_linearized_memory_access): Same.
5716         (memory_stride_in_loop): Same.
5718 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5720         * graphite-dependences.c (pddr_original_scattering): New.
5721         (graphite_legal_transform_dr): Call pddr_original_scattering.
5722         (dot_deps_1): New.
5723         (dot_deps): New.
5724         * graphite-dependences.h (dot_deps): Declared.
5725         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
5726         (print_pdr): Print PDR_ID.
5727         * graphite-poly.h (struct poly_dr): Add field id.
5728         (PDR_ID): New.
5729         (pbb_index): New.
5730         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
5732 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5734         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
5735         not delete the original dependence relation.
5737 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5739         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
5740         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
5741         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
5742         (free_poly_ddr): New.
5743         (pddr_is_empty): New.
5744         (dependence_polyhedron_1): Now returns a poly_ddr_p.
5745         (dependence_polyhedron): Same.  Remove useless gcc_assert.
5746         Remove fprintfs.
5747         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
5748         (graphite_carried_dependence_level_k): Call pddr_is_empty.
5749         * graphite-dependences.h (enum poly_dependence_kind): New.
5750         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
5751         (PDRP_SOURCE): Renamed PDDR_SOURCE.
5752         (PDRP_SINK): Renamed PDDR_SINK.
5753         (PDRP_DDP): Renamed PDDR_DDP.
5754         (PDDR_KIND): New.
5755         (free_poly_ddr): Declared.
5756         * graphite-poly.c (new_scop): Use the new hash function names.
5757         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
5758         into original_pddrs.
5759         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
5761 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5763         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
5764         bounds with LT_EXPR to make niter analysis more precise on code
5765         generated by Graphite.
5767 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5769         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
5770         (graphite_legal_transform_bb): Same.
5771         (poly_drs_may_alias_p): Same.
5773 2009-08-28  Richard Guenther  <rguenther@suse.de>
5775         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
5777 2009-08-28  Jan Beulich  <jbeulich@novell.com>
5779         * config/i386/netware.c: Include langhooks.h.
5780         (i386_nlm_encode_section_info): Simplify.
5781         (netware_override_options): Delete.
5782         * config/i386/netware.h (netware_override_options): Delete
5783         declaration.
5784         (OVERRIDE_OPTIONS): Delete definition.
5785         (SUBTARGET_OVERRIDE_OPTIONS): Define.
5786         (ASM_COMMENT_START): Define.
5787         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
5789 2009-08-28  Jan Beulich  <jbeulich@novell.com>
5791         * configure.ac: For in-tree ld, do a plain version check to
5792         determine whether comdat groups are supported.
5793         * configure: Regenerate.
5795 2009-08-28  Olivier Hainque  <hainque@adacore.com>
5797         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
5798         always defined.  Reflect definition or absence of such for
5799         COLLECT_EXPORT_LIST.  Readability helper.
5800         (scanfilter): New enum, to help control what symbols
5801         are to be considered or ignored by scan_prog_file.
5802         (enum pass): Rename as "scanpass", moved together with scanfilter
5803         prior to scan_prog_file's prototype.
5804         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
5805         Group prototype with the scanpass/scanfilter definitions, factorize
5806         head comments for the several implementations at the prototype.
5807         (main): Reorganize the first pass link control to let AIX
5808         drag only the needed frame tables in executables.  Prevent
5809         frame tables collection during the scan aimed at static ctors.
5810         Pre-link and scan for frame tables later to compensate.
5811         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
5812         A C statement to issue assembly directives that create a reference
5813         to the given DWARF table identifier label from the current function
5814         section.
5815         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
5816         to differentiate first time section entry.  Only emit a .data
5817         tables start identifier label the first time around.
5818         (switch_to_frame_table_section): New function.  Helper for
5819         output_call_frame_info to switch possibly BACK into the eh_frame
5820         or the debug_frame section depending on FOR_EH.
5821         (output_call_frame_info): Use helper to first enter the proper
5822         frame section.
5823         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
5824         emit a link to the frame table start label from each function
5825         section.
5826         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
5827         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
5828         * config/rs6000/rs6000-protos.h: Declare it.
5829         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
5831 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
5833         * config/sh/sh.c (split_branches): Check the result of
5834         next_active_insn.
5836 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
5838         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
5839         using -pthread -fopenmp
5841 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
5843         * doc/service.texi (service directory): Update URL.
5845 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
5847         PR rtl-optimization/40861
5848         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
5849         extract word from a multi-word subreg for negative byte positions.
5851 2009-08-27  Tristan Gingold  <gingold@adacore.com>
5852             Douglas B Rupp  <rupp@gnat.com>
5854         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
5855         (SECTION_VMS_OVERLAY): Define.
5856         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
5857         attribute.
5858         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
5859         for common_object.
5860         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
5861         common_object declarations.
5862         (ia64_section_type_flags): Set section flag for common_object.
5863         * config/ia64/ia64-protos.h
5864         (ia64_vms_output_aligned_decl_common): Declare.
5865         (ia64_vms_elf_asm_named_section): Declare.
5867 2009-08-27  Michael Matz  <matz@suse.de>
5869         * expr.c (expand_expr_real_2): New function taking exploded
5870         unary or binary expression, split out from ...
5871         (expand_expr_real_1): ... here.  Move over all unary/binary
5872         switch parts to above function, in particular these codes:
5873         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
5874         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
5875         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
5876         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
5877         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
5878         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
5879         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
5880         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
5881         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
5882         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
5883         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
5884         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
5885         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
5886         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
5887         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
5888         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
5889         VEC_PACK_FIX_TRUNC_EXPR.
5890         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
5891         full expression.
5893 2009-08-27  Richard Guenther  <rguenther@suse.de>
5895         * gengtype.c (main): Handle uint64_t.
5896         * ipa-utils.c (get_base_var): Indent properly.
5897         * tree-ssa-live.c (debug_scope_block): New function.
5898         * tree-flow.h (debug_scope_block): Declare.
5899         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
5900         * basic-block.h (enum profile_status): Rename to
5901         enum profile_status_d.
5902         (x_profile_status): Adjust type.
5904 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
5906         PR debug/41170
5907         * dwarf2out.c (get_context_die): Declare this static function.
5908         (gen_type_die_with_usage): Make sure a DIE is a generated for
5909         the context of a typedef.
5911 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
5913         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
5914         switch.
5916 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
5918         * config/mips/mips-protos.h (mips_output_sync): Declare.
5919         (mips_sync_loop_insns): Likewise.
5920         (mips_output_sync_loop): Replace first two parameters with an rtx.
5921         * config/mips/mips.c (mips_multi_member): New structure.
5922         (mips_multi_members): New variable.
5923         (mips_multi_start): New function.
5924         (mips_multi_add): Likewise.
5925         (mips_multi_add_insn): Likewise.
5926         (mips_multi_add_label): Likewise.
5927         (mips_multi_last_index): Likewise.
5928         (mips_multi_copy_insn): Likewise.
5929         (mips_multi_set_operand): Likewise.
5930         (mips_multi_write): Likewise.
5931         (mips_print_operand_punctuation): Remove '%|' and '%-'.
5932         (mips_init_print_operand_punct): Update accordingly.
5933         (mips_start_ll_sc_sync_block): New function.
5934         (mips_end_ll_sc_sync_block): Likewise.
5935         (mips_output_sync): Likewise.
5936         (mips_sync_insn1_template): Likewise.
5937         (mips_sync_insn2_template): Likewise.
5938         (mips_get_sync_operand): Likewise.
5939         (mips_process_sync_loop): Likewise.
5940         (mips_output_sync_loop): Use mips_process_sync_loop.
5941         (mips_sync_loop_insns): New function.
5942         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
5943         (MIPS_COMPARE_AND_SWAP_12): Likewise.
5944         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
5945         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
5946         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
5947         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
5948         (MIPS_SYNC_OLD_OP_12): Likewise.
5949         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
5950         (MIPS_SYNC_NEW_OP_12): Likewise.
5951         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
5952         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
5953         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
5954         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
5955         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
5956         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
5957         * config/mips/mips.md (sync_mem): New attribute.
5958         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
5959         (sync_exclusive_mask, sync_required_oldval): Likewise.
5960         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
5961         (sync_release_barrier): Likewise.
5962         (length): Handle sync loops.
5963         (sync): Use mips_output_sync.
5964         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
5965         (sync_compare_and_swap<mode>): Set the new sync_* attributes
5966         and use mips_output_sync_loop.
5967         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
5968         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
5969         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
5970         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
5971         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
5972         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
5973         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
5974         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
5975         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
5977 2009-08-26  Richard Guenther  <rguenther@suse.de>
5979         PR middle-end/41163
5980         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
5981         the types to not match.
5982         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
5983         verification.
5984         * tree-ssa.c (useless_type_conversion_p): Conversions to
5985         pointers to unprototyped functions are useless.
5987 2009-08-26  Richard Guenther  <rguenther@suse.de>
5989         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
5990         whole-program condition, prepare to be called for non-globals.
5991         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
5992         params build a representative with known type and track its fields.
5994 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
5996         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
5997         clearing by a taken branch.
5998         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
5999         effectively after bbro pass.
6000         (sync_nand<mode>): Ditto.
6001         (sync_old_<fetchop_name><mode>): Ditto.
6002         (sync_old_nand<mode>): Ditto.
6003         (sync_new_<fetchop_name><mode>): Dito.
6004         (sync_new_nand<mode>): Ditto.
6005         (sync_compare_and_swap<mode>_1): Ditto.
6006         (*sync_compare_and_swap<mode>): Ditto.
6007         (sync_lock_test_and_set<mode>_1): Ditto.
6008         ("sync_lock_test_and_set<mode>): Ditto.
6010 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
6012         * hwint.h (HOST_LONG_FORMAT): New macro
6013         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
6014         Use HOST_PTR_PRINTF.
6015         * system.h (HOST_PTR_PRINTF): Resurrect old macro
6016         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
6017         (HOST_PTR_PRINTF): Document.
6019 2009-08-25 Jan Hubicka  <jh@suse.cz>
6021         * config/i386/bmmintrin.h: Replace by #error.
6023         Revert:
6024         Michael Meissner  <michael.meissner@amd.com>
6025         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
6026         Tony Linthicum  <tony.linthicum@amd.com>
6028         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
6029         (TARGET_ROUND): New macro for the round/ptest instructions which
6030         are shared between SSE4.1 and SSE5.
6031         (OPTION_MASK_ISA_ROUND): Ditto.
6032         (OPTION_ISA_ROUND): Ditto.
6033         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
6034         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
6036         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
6037         (-mfused-madd): New switch to give users control over whether the
6038         compiler optimizes to use the multiply/add SSE5 instructions.
6040         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
6041         (ix86_handle_option): Turn off 3dnow if -msse5.
6042         (override_options): Add SSE5 support.
6043         (print_operand): %Y prints comparison codes for SSE5 com/pcom
6044         instructions.
6045         (ix86_expand_sse_movcc): Add SSE5 support.
6046         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
6047         vector type to the next largest size.
6048         (ix86_expand_sse5_pack): New function to use pperm to pack a
6049         vector type to the next smallest size.
6050         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
6051         (IX86_BUILTIN_FMADDSD): Ditto.
6052         (IX86_BUILTIN_FMADDPS): Ditto.
6053         (IX86_BUILTIN_FMADDPD): Ditto.
6054         (IX86_BUILTIN_FMSUBSS): Ditto.
6055         (IX86_BUILTIN_FMSUBSD): Ditto.
6056         (IX86_BUILTIN_FMSUBPS): Ditto.
6057         (IX86_BUILTIN_FMSUBPD): Ditto.
6058         (IX86_BUILTIN_FNMADDSS): Ditto.
6059         (IX86_BUILTIN_FNMADDSD): Ditto.
6060         (IX86_BUILTIN_FNMADDPS): Ditto.
6061         (IX86_BUILTIN_FNMADDPD): Ditto.
6062         (IX86_BUILTIN_FNMSUBSS): Ditto.
6063         (IX86_BUILTIN_FNMSUBSD): Ditto.
6064         (IX86_BUILTIN_FNMSUBPS): Ditto.
6065         (IX86_BUILTIN_FNMSUBPD): Ditto.
6066         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
6067         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
6068         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
6069         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
6070         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
6071         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
6072         (IX86_BUILTIN_PPERM): Ditto.
6073         (IX86_BUILTIN_PERMPS): Ditto.
6074         (IX86_BUILTIN_PERMPD): Ditto.
6075         (IX86_BUILTIN_PMACSSWW): Ditto.
6076         (IX86_BUILTIN_PMACSWW): Ditto.
6077         (IX86_BUILTIN_PMACSSWD): Ditto.
6078         (IX86_BUILTIN_PMACSWD): Ditto.
6079         (IX86_BUILTIN_PMACSSDD): Ditto.
6080         (IX86_BUILTIN_PMACSDD): Ditto.
6081         (IX86_BUILTIN_PMACSSDQL): Ditto.
6082         (IX86_BUILTIN_PMACSSDQH): Ditto.
6083         (IX86_BUILTIN_PMACSDQL): Ditto.
6084         (IX86_BUILTIN_PMACSDQH): Ditto.
6085         (IX86_BUILTIN_PMADCSSWD): Ditto.
6086         (IX86_BUILTIN_PMADCSWD): Ditto.
6087         (IX86_BUILTIN_PHADDBW): Ditto.
6088         (IX86_BUILTIN_PHADDBD): Ditto.
6089         (IX86_BUILTIN_PHADDBQ): Ditto.
6090         (IX86_BUILTIN_PHADDWD): Ditto.
6091         (IX86_BUILTIN_PHADDWQ): Ditto.
6092         (IX86_BUILTIN_PHADDDQ): Ditto.
6093         (IX86_BUILTIN_PHADDUBW): Ditto.
6094         (IX86_BUILTIN_PHADDUBD): Ditto.
6095         (IX86_BUILTIN_PHADDUBQ): Ditto.
6096         (IX86_BUILTIN_PHADDUWD): Ditto.
6097         (IX86_BUILTIN_PHADDUWQ): Ditto.
6098         (IX86_BUILTIN_PHADDUDQ): Ditto.
6099         (IX86_BUILTIN_PHSUBBW): Ditto.
6100         (IX86_BUILTIN_PHSUBWD): Ditto.
6101         (IX86_BUILTIN_PHSUBDQ): Ditto.
6102         (IX86_BUILTIN_PROTB): Ditto.
6103         (IX86_BUILTIN_PROTW): Ditto.
6104         (IX86_BUILTIN_PROTD): Ditto.
6105         (IX86_BUILTIN_PROTQ): Ditto.
6106         (IX86_BUILTIN_PROTB_IMM): Ditto.
6107         (IX86_BUILTIN_PROTW_IMM): Ditto.
6108         (IX86_BUILTIN_PROTD_IMM): Ditto.
6109         (IX86_BUILTIN_PROTQ_IMM): Ditto.
6110         (IX86_BUILTIN_PSHLB): Ditto.
6111         (IX86_BUILTIN_PSHLW): Ditto.
6112         (IX86_BUILTIN_PSHLD): Ditto.
6113         (IX86_BUILTIN_PSHLQ): Ditto.
6114         (IX86_BUILTIN_PSHAB): Ditto.
6115         (IX86_BUILTIN_PSHAW): Ditto.
6116         (IX86_BUILTIN_PSHAD): Ditto.
6117         (IX86_BUILTIN_PSHAQ): Ditto.
6118         (IX86_BUILTIN_FRCZSS): Ditto.
6119         (IX86_BUILTIN_FRCZSD): Ditto.
6120         (IX86_BUILTIN_FRCZPS): Ditto.
6121         (IX86_BUILTIN_FRCZPD): Ditto.
6122         (IX86_BUILTIN_CVTPH2PS): Ditto.
6123         (IX86_BUILTIN_CVTPS2PH): Ditto.
6124         (IX86_BUILTIN_COMEQSS): Ditto.
6125         (IX86_BUILTIN_COMNESS): Ditto.
6126         (IX86_BUILTIN_COMLTSS): Ditto.
6127         (IX86_BUILTIN_COMLESS): Ditto.
6128         (IX86_BUILTIN_COMGTSS): Ditto.
6129         (IX86_BUILTIN_COMGESS): Ditto.
6130         (IX86_BUILTIN_COMUEQSS): Ditto.
6131         (IX86_BUILTIN_COMUNESS): Ditto.
6132         (IX86_BUILTIN_COMULTSS): Ditto.
6133         (IX86_BUILTIN_COMULESS): Ditto.
6134         (IX86_BUILTIN_COMUGTSS): Ditto.
6135         (IX86_BUILTIN_COMUGESS): Ditto.
6136         (IX86_BUILTIN_COMORDSS): Ditto.
6137         (IX86_BUILTIN_COMUNORDSS): Ditto.
6138         (IX86_BUILTIN_COMFALSESS): Ditto.
6139         (IX86_BUILTIN_COMTRUESS): Ditto.
6140         (IX86_BUILTIN_COMEQSD): Ditto.
6141         (IX86_BUILTIN_COMNESD): Ditto.
6142         (IX86_BUILTIN_COMLTSD): Ditto.
6143         (IX86_BUILTIN_COMLESD): Ditto.
6144         (IX86_BUILTIN_COMGTSD): Ditto.
6145         (IX86_BUILTIN_COMGESD): Ditto.
6146         (IX86_BUILTIN_COMUEQSD): Ditto.
6147         (IX86_BUILTIN_COMUNESD): Ditto.
6148         (IX86_BUILTIN_COMULTSD): Ditto.
6149         (IX86_BUILTIN_COMULESD): Ditto.
6150         (IX86_BUILTIN_COMUGTSD): Ditto.
6151         (IX86_BUILTIN_COMUGESD): Ditto.
6152         (IX86_BUILTIN_COMORDSD): Ditto.
6153         (IX86_BUILTIN_COMUNORDSD): Ditto.
6154         (IX86_BUILTIN_COMFALSESD): Ditto.
6155         (IX86_BUILTIN_COMTRUESD): Ditto.
6156         (IX86_BUILTIN_COMEQPS): Ditto.
6157         (IX86_BUILTIN_COMNEPS): Ditto.
6158         (IX86_BUILTIN_COMLTPS): Ditto.
6159         (IX86_BUILTIN_COMLEPS): Ditto.
6160         (IX86_BUILTIN_COMGTPS): Ditto.
6161         (IX86_BUILTIN_COMGEPS): Ditto.
6162         (IX86_BUILTIN_COMUEQPS): Ditto.
6163         (IX86_BUILTIN_COMUNEPS): Ditto.
6164         (IX86_BUILTIN_COMULTPS): Ditto.
6165         (IX86_BUILTIN_COMULEPS): Ditto.
6166         (IX86_BUILTIN_COMUGTPS): Ditto.
6167         (IX86_BUILTIN_COMUGEPS): Ditto.
6168         (IX86_BUILTIN_COMORDPS): Ditto.
6169         (IX86_BUILTIN_COMUNORDPS): Ditto.
6170         (IX86_BUILTIN_COMFALSEPS): Ditto.
6171         (IX86_BUILTIN_COMTRUEPS): Ditto.
6172         (IX86_BUILTIN_COMEQPD): Ditto.
6173         (IX86_BUILTIN_COMNEPD): Ditto.
6174         (IX86_BUILTIN_COMLTPD): Ditto.
6175         (IX86_BUILTIN_COMLEPD): Ditto.
6176         (IX86_BUILTIN_COMGTPD): Ditto.
6177         (IX86_BUILTIN_COMGEPD): Ditto.
6178         (IX86_BUILTIN_COMUEQPD): Ditto.
6179         (IX86_BUILTIN_COMUNEPD): Ditto.
6180         (IX86_BUILTIN_COMULTPD): Ditto.
6181         (IX86_BUILTIN_COMULEPD): Ditto.
6182         (IX86_BUILTIN_COMUGTPD): Ditto.
6183         (IX86_BUILTIN_COMUGEPD): Ditto.
6184         (IX86_BUILTIN_COMORDPD): Ditto.
6185         (IX86_BUILTIN_COMUNORDPD): Ditto.
6186         (IX86_BUILTIN_COMFALSEPD): Ditto.
6187         (IX86_BUILTIN_COMTRUEPD): Ditto.
6188         (IX86_BUILTIN_PCOMEQUB): Ditto.
6189         (IX86_BUILTIN_PCOMNEUB): Ditto.
6190         (IX86_BUILTIN_PCOMLTUB): Ditto.
6191         (IX86_BUILTIN_PCOMLEUB): Ditto.
6192         (IX86_BUILTIN_PCOMGTUB): Ditto.
6193         (IX86_BUILTIN_PCOMGEUB): Ditto.
6194         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
6195         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
6196         (IX86_BUILTIN_PCOMEQUW): Ditto.
6197         (IX86_BUILTIN_PCOMNEUW): Ditto.
6198         (IX86_BUILTIN_PCOMLTUW): Ditto.
6199         (IX86_BUILTIN_PCOMLEUW): Ditto.
6200         (IX86_BUILTIN_PCOMGTUW): Ditto.
6201         (IX86_BUILTIN_PCOMGEUW): Ditto.
6202         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
6203         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
6204         (IX86_BUILTIN_PCOMEQUD): Ditto.
6205         (IX86_BUILTIN_PCOMNEUD): Ditto.
6206         (IX86_BUILTIN_PCOMLTUD): Ditto.
6207         (IX86_BUILTIN_PCOMLEUD): Ditto.
6208         (IX86_BUILTIN_PCOMGTUD): Ditto.
6209         (IX86_BUILTIN_PCOMGEUD): Ditto.
6210         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
6211         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
6212         (IX86_BUILTIN_PCOMEQUQ): Ditto.
6213         (IX86_BUILTIN_PCOMNEUQ): Ditto.
6214         (IX86_BUILTIN_PCOMLTUQ): Ditto.
6215         (IX86_BUILTIN_PCOMLEUQ): Ditto.
6216         (IX86_BUILTIN_PCOMGTUQ): Ditto.
6217         (IX86_BUILTIN_PCOMGEUQ): Ditto.
6218         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
6219         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
6220         (IX86_BUILTIN_PCOMEQB): Ditto.
6221         (IX86_BUILTIN_PCOMNEB): Ditto.
6222         (IX86_BUILTIN_PCOMLTB): Ditto.
6223         (IX86_BUILTIN_PCOMLEB): Ditto.
6224         (IX86_BUILTIN_PCOMGTB): Ditto.
6225         (IX86_BUILTIN_PCOMGEB): Ditto.
6226         (IX86_BUILTIN_PCOMFALSEB): Ditto.
6227         (IX86_BUILTIN_PCOMTRUEB): Ditto.
6228         (IX86_BUILTIN_PCOMEQW): Ditto.
6229         (IX86_BUILTIN_PCOMNEW): Ditto.
6230         (IX86_BUILTIN_PCOMLTW): Ditto.
6231         (IX86_BUILTIN_PCOMLEW): Ditto.
6232         (IX86_BUILTIN_PCOMGTW): Ditto.
6233         (IX86_BUILTIN_PCOMGEW): Ditto.
6234         (IX86_BUILTIN_PCOMFALSEW): Ditto.
6235         (IX86_BUILTIN_PCOMTRUEW): Ditto.
6236         (IX86_BUILTIN_PCOMEQD): Ditto.
6237         (IX86_BUILTIN_PCOMNED): Ditto.
6238         (IX86_BUILTIN_PCOMLTD): Ditto.
6239         (IX86_BUILTIN_PCOMLED): Ditto.
6240         (IX86_BUILTIN_PCOMGTD): Ditto.
6241         (IX86_BUILTIN_PCOMGED): Ditto.
6242         (IX86_BUILTIN_PCOMFALSED): Ditto.
6243         (IX86_BUILTIN_PCOMTRUED): Ditto.
6244         (IX86_BUILTIN_PCOMEQQ): Ditto.
6245         (IX86_BUILTIN_PCOMNEQ): Ditto.
6246         (IX86_BUILTIN_PCOMLTQ): Ditto.
6247         (IX86_BUILTIN_PCOMLEQ): Ditto.
6248         (IX86_BUILTIN_PCOMGTQ): Ditto.
6249         (IX86_BUILTIN_PCOMGEQ): Ditto.
6250         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
6251         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
6252         (enum multi_arg_type): New enum for describing the various SSE5
6253         intrinsic argument types.
6254         (bdesc_multi_arg): New table for SSE5 intrinsics.
6255         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
6256         (ix86_expand_multi_arg_builtin): New function for creating SSE5
6257         intrinsics.
6258         (ix86_expand_builtin): Add SSE5 intrinsic support.
6259         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
6260         operand instructions.
6261         (ix86_expand_sse5_multiple_memory): New function to split the
6262         second memory reference from SSE5 instructions.
6263         (type_has_variadic_args_p): Delete in favor of stdarg_p.
6264         (ix86_return_pops_args): Use stdarg_p to determine if the function
6265         has variable arguments.
6266         (ix86_setup_incoming_varargs): Ditto.
6267         (x86_this_parameter): Ditto.
6269         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
6270         declaration.
6271         (ix86_expand_sse5_pack): Ditto.
6272         (ix86_sse5_valid_op_p): Ditto.
6273         (ix86_expand_sse5_multiple_memory): Ditto.
6275         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
6276         constant for SSE5 support.
6277         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
6278         (UNSPEC_SSE5_TRUEFALSE): Ditto.
6279         (UNSPEC_SSE5_PERMUTE): Ditto.
6280         (UNSPEC_SSE5_ASHIFT): Ditto.
6281         (UNSPEC_SSE5_LSHIFT): Ditto.
6282         (UNSPEC_FRCZ): Ditto.
6283         (UNSPEC_CVTPH2PS): Ditto.
6284         (UNSPEC_CVTPS2PH): Ditto.
6285         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
6286         (PCOM_TRUE): Ditto.
6287         (COM_FALSE_S): Ditto.
6288         (COM_FALSE_P): Ditto.
6289         (COM_TRUE_S): Ditto.
6290         (COM_TRUE_P): Ditto.
6291         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
6292         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
6293         types.
6294         (memory attribute): Ditto.
6295         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
6296         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
6297         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
6298         (floor<mode>2): Ditto.
6299         (ceil<mode>2): Ditto.
6300         (btrunc<mode>2): Ditto.
6301         (nearbyintdf2): Ditto.
6302         (nearbyintsf2): Ditto.
6303         (sse_setccsf): Disable if SSE5.
6304         (sse_setccdf): Ditto.
6305         (sse5_setcc<mode>): New support for SSE5 conditional move.
6306         (sse5_pcmov_<mode>): Ditto.
6308         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
6309         (SSEMODEF4): Ditto.
6310         (SSEMODEF2P): Ditto.
6311         (ssemodesuffixf4): New mode attribute for SSE5.
6312         (ssemodesuffixf2s): Ditto.
6313         (ssemodesuffixf2c): Ditto.
6314         (sserotatemax): Ditto.
6315         (ssescalarmode): Ditto.
6316         (sse_maskcmpv4sf3): Disable if SSE5.
6317         (sse_maskcmpv2df3): Ditto.
6318         (sse_vmmaskcmpv4sf3): Ditto.
6319         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
6320         (sse5_vmfmadd<mode>4): Ditto.
6321         (sse5_fmsub<mode>4): Ditto.
6322         (sse5_vmfmsub<mode>4): Ditto.
6323         (sse5_fnmadd<mode>4): Ditto.
6324         (sse5_vmfnmadd<mode>4): Ditto.
6325         (sse5_fnmsub<mode>4): Ditto.
6326         (sse5_vmfnmsub<mode>4): Ditto.
6327         (sse5i_fmadd<mode>4): Ditto.
6328         (sse5i_fmsub<mode>4): Ditto.
6329         (sse5i_fnmadd<mode>4): Ditto.
6330         (sse5i_fnmsub<mode>4): Ditto.
6331         (sse5i_vmfmadd<mode>4): Ditto.
6332         (sse5i_vmfmsub<mode>4): Ditto.
6333         (sse5i_vmfnmadd<mode>4): Ditto.
6334         (sse5i_vmfnmsub<mode>4): Ditto.
6335         (mulv16qi3): Add SSE5 support.
6336         (mulv4si3): Ditto.
6337         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
6338         (sse2_mulv4si3): Disable if SSE5.
6339         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
6340         (sse4_1_roundps): Ditto.
6341         (sse4_1_roundsd): Ditto.
6342         (sse4_1_roundss): Ditto.
6343         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
6344         be generated.
6345         (sse_maskcmpsf3): Ditto.
6346         (sse_vmmaskcmpv4sf3): Ditto.
6347         (sse2_maskcmpv2df3): Ditto.
6348         (sse2_maskcmpdf3): Ditto.
6349         (sse2_vmmaskcmpv2df3): Ditto.
6350         (sse2_eq<mode>3): Ditto.
6351         (sse2_gt<mode>3): Ditto.
6352         (sse5_pcmov_<mode>): Add SSE5 support.
6353         (vec_unpacku_hi_v16qi): Ditto.
6354         (vec_unpacks_hi_v16qi): Ditto.
6355         (vec_unpacku_lo_v16qi): Ditto.
6356         (vec_unpacks_lo_v16qi): Ditto.
6357         (vec_unpacku_hi_v8hi): Ditto.
6358         (vec_unpacks_hi_v8hi): Ditto.
6359         (vec_unpacku_lo_v8hi): Ditto.
6360         (vec_unpacks_lo_v8hi): Ditto.
6361         (vec_unpacku_hi_v4si): Ditto.
6362         (vec_unpacks_hi_v4si): Ditto.
6363         (vec_unpacku_lo_v4si): Ditto.
6364         (vec_unpacks_lo_v4si): Ditto.
6365         (sse5_pmacsww): New SSE5 intrinsic insn.
6366         (sse5_pmacssww): Ditto.
6367         (sse5_pmacsdd): Ditto.
6368         (sse5_pmacssdd): Ditto.
6369         (sse5_pmacssdql): Ditto.
6370         (sse5_pmacssdqh): Ditto.
6371         (sse5_pmacsdqh): Ditto.
6372         (sse5_pmacsswd): Ditto.
6373         (sse5_pmacswd): Ditto.
6374         (sse5_pmadcsswd): Ditto.
6375         (sse5_pmadcswd): Ditto.
6376         (sse5_pcmov_<move>): Conditional move support on SSE5.
6377         (sse5_phaddbw): New SSE5 intrinsic insn.
6378         (sse5_phaddbd): Ditto.
6379         (sse5_phaddbq): Ditto.
6380         (sse5_phaddwd): Ditto.
6381         (sse5_phaddwq): Ditto.
6382         (sse5_phadddq): Ditto.
6383         (sse5_phaddubw): Ditto.
6384         (sse5_phaddubd): Ditto.
6385         (sse5_phaddubq): Ditto.
6386         (sse5_phadduwd): Ditto.
6387         (sse5_phadduwq): Ditto.
6388         (sse5_phaddudq): Ditto.
6389         (sse5_phsubbw): Ditto.
6390         (sse5_phsubwd): Ditto.
6391         (sse5_phsubdq): Ditto.
6392         (sse5_pperm): Ditto.
6393         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
6394         (sse5_pperm_zero_v16qi_v8hi): Ditto.
6395         (sse5_pperm_sign_v8hi_v4si): Ditto.
6396         (sse5_pperm_zero_v8hi_v4si): Ditto.
6397         (sse5_pperm_sign_v4si_v2di): Ditto.
6398         (sse5_pperm_sign_v4si_v2di): Ditto.
6399         (sse5_pperm_pack_v2di_v4si): Ditto.
6400         (sse5_pperm_pack_v4si_v8hi): Ditto.
6401         (sse5_pperm_pack_v8hi_v16qi): Ditto.
6402         (sse5_perm<mode>): New SSE5 intrinsic insn.
6403         (rotl<mode>3): Ditto.
6404         (sse5_rotl<mode>3): Ditto.
6405         (sse5_ashl<mode>3): Ditto.
6406         (sse5_lshl<mode>3): Ditto.
6407         (sse5_frcz<mode>2): Ditto.
6408         (sse5s_frcz<mode>2): Ditto.
6409         (sse5_cvtph2ps): Ditto.
6410         (sse5_cvtps2ph): Ditto.
6411         (sse5_vmmaskcmp<mode>3): Ditto.
6412         (sse5_com_tf<mode>3): Ditto.
6413         (sse5_maskcmp<mode>3): Ditto.
6414         (sse5_maskcmp_uns<mode>3): Ditto.
6415         (sse5_maskcmp_uns2<mode>3): Ditto.
6416         (sse5_pcom_tf<mode>3): Ditto.
6418         * config/i386/predicates.md (sse5_comparison_float_operator):
6419         New predicate to match the comparison operators supported by
6420         the SSE5 com instruction.
6421         (ix86_comparison_int_operator): New predicate to match just the
6422         signed int comparisons.
6423         (ix86_comparison_uns_operator): New predicate to match just the
6424         unsigned int comparisons.
6426         * doc/invoke.texi (-msse5): Add documentation.
6427         (-mfused-madd): Ditto.
6429         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
6431         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
6432         mmintrin-common.h.
6433         (x86_64-*-*): Ditto.
6435         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
6437         * config/i386/bmmintrin.h: New file, provide common x86 compiler
6438         intrinisics for SSE5.
6440         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
6441         mmintrin-common.h.
6443         * config/i386/mmintrin-common.h: New file, to contain common
6444         instructions between SSE4.1 and SSE5.
6446         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
6447         FOREACH_FUNCTION_ARGS to iterate over the argument list.
6448         (gen_regparm_prefix): Ditto.
6450         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
6451         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
6452         prototype_p to determine if a function is prototyped.
6454 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
6456         * c-common.c (c_common_reswords) add the alignof keyword,
6457         with same RID as __alignof and __alignof__
6459 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
6461         * hooks.h (hook_bool_const_int_const_int_true): Declare.
6462         * hooks.c (hook_bool_const_int_const_int_true): New function.
6463         * target.h (struct gcc_target): Add can_eliminate field.
6464         * target-def.h (TARGET_CAN_ELIMINATE): Define.
6465         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
6466         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
6467         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
6468         (elim_table): Revise comment.
6469         * system.h (CAN_ELIMINATE): Poison.
6470         * defaults.h (CAN_ELIMINATE): Remove.
6471         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
6473         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
6474         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
6475         Define macro.
6476         (alpha_vms_can_eliminate): Declare as static, change return type to
6477         bool.
6478         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
6480         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
6481         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
6482         (arm_can_eliminate): New function.
6484         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
6485         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
6486         (avr_can_eliminate): Declare as static.
6487         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
6489         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
6490         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
6491         (bfin_can_eliminate): New function.
6493         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
6494         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
6495         (crx_can_eliminate): New function.
6497         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
6498         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
6499         (fr30_can_eliminate): New function.
6501         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
6502         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
6503         (frv_can_eliminate): New function.
6505         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
6506         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
6507         (h8300_can_eliminate): New function.
6509         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
6510         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
6511         (i386_can_eliminate): Declare as static, change return type to bool.
6512         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
6514         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
6515         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
6516         (ia64_can_eliminate): New function.
6518         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
6519         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
6520         (iq2000_can_eliminate): New function.
6522         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
6523         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
6524         (m32r_can_eliminate): New function.
6526         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
6527         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
6528         (m68hc11_can_eliminate): New function.
6530         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
6531         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
6532         (m68k_can_eliminate): New function.
6534         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
6535         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
6536         (mep_can_eliminate): New function.
6538         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
6539         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
6540         (mips_can_eliminate): New function.
6542         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
6543         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
6544         (rs6000_can_eliminate): New function.
6546         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
6547         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
6548         (s390_can_eliminate): Declare as static.
6549         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
6551         * config/score/score.h (CAN_ELIMINATE): Remove macro.
6552         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
6553         (score_can_eliminate): New function.
6555         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
6556         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
6557         (sparc_can_eliminate): Declare as static.
6558         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
6560         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
6561         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
6562         (xstormy16_can_eliminate): New function.
6564         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
6565         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
6566         (v850_can_eliminate): New function.
6568 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
6570         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
6571         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
6572         (*movdfcc_ext[1234]): Disable for IEEE mode.
6574 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
6576         * gimplify.c (prepare_gimple_addressable): New static function.
6577         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
6578         it addressable.
6579         (gimplify_addr_expr): Invoke it similarly on the operand instead of
6580         manually fiddling with it.
6582 2009-08-25  Michael Matz  <matz@suse.de>
6584         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
6585         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
6586         full expression.
6587         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
6588         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
6589         (do_jump): Split out code for simple binary comparisons into ...
6590         (do_jump_1): ... this, taking the individual operands and code.
6591         Change callers to helper function above accordingly.
6592         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
6593         comparisons.
6595 2009-08-25  Michael Matz  <matz@suse.de>
6597         * expr.h (struct separate_ops, sepops): New type for passing
6598         around an exploded simple expression.
6599         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
6600         Use this structure instead of expression tree.
6601         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
6602         expression, only its type.
6603         (expand_vec_cond_expr): Take type and individual operands instead
6604         of full expression.
6605         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
6606         expand_vec_shift_expr): Change prototype accordingly.
6607         * tree-vect-stmts.c (vectorizable_condition): Change call of
6608         expand_vec_cond_expr_p to pass only type.
6609         * expr.c (do_store_flags): Change prototype and implementation
6610         to take an exploded expression.
6611         (expand_expr_real_1): New local ops initialized with details
6612         of the full expression.  Use it instead of full
6613         expression in calls to do_store_flags, expand_vec_cond_expr,
6614         expand_widen_pattern_expr and expand_vec_shift_expr.
6616 2009-08-25  Michael Matz  <matz@suse.de>
6618         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
6619         treeop2 initialized with first three operands of the full expression.
6620         Substitute all TREE_OPERAND (exp, [012]) calls with them.
6622 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
6624         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
6625         (__gthread_objc_condition_allocate): Mark arguments as unused.
6626         (__gthread_objc_condition_deallocate): Likewise.
6627         (__gthread_objc_condition_wait): Likewise.
6628         (__gthread_objc_condition_broadcast): Likewise.
6629         (__gthread_objc_condition_signal): Likewise.
6630         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
6631         (__gthread_objc_thread_id): Likewise.
6633 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
6635         PR middle-end/41149
6636         * tree-pretty-print.c (print_call_name): Print the correct call name
6637         for procedure pointer components.
6639 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
6641         * config/ia64/ia64.c (ia64_promote_function_mode): Call
6642         default_promote_function_mode when not VMS.
6644 2009-08-24  Olivier Hainque  <hainque@adacore.com>
6646         * convert.c (convert_to_integer): Don't assume an input pointer is
6647         POINTER_SIZE wide.  Fetch from the type instead.
6649 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6651         * configure.ac (AC_PREREQ): Bump to 2.64.
6653 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
6655         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
6656         (process_command): Don't search standard_exec_prefix_1 and
6657         standard_exec_prefix_2.
6659 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6661         * config/arm/arm.c (output_return_instruction): Handle for
6662         unified syntax.
6664 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6666         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
6668 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6670         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
6671         (*arm_movdf_vfp): Likewise.
6673 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6675         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
6676         (vashr<mode>3): Rename from ashr<mode>3.
6677         (vlshr<mode>3): Rename from lshr<mode>3.
6679 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
6681         PR/40786
6682         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
6683         (check_format_info_main): Use scalar_identify_flag.
6684         (check_format_types): Check for scalar size identity if
6685         scalar_identify_flag is set.
6686         (printf_length_specs): Extend by new field.
6687         (asm_fprintf_length_specs): Likewise.
6688         (gcc_diag_length_specs): Likewise.
6689         (scanf_length_specs): Likewise.
6690         (strfmon_length_specs): Likewise.
6691         (gcc_gfc_length_specs): Likewise.
6692         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
6693         (ms_printf_flag_specs): Likewise.
6694         * c-format.h (format_length_info): Add new member scalar_identity_flag.
6696 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
6698         PR target/40718
6699         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
6700         (*call_value_pop_1): Ditto.
6701         (*sibcall_pop_1): New insn pattern.
6702         (*sibcall_value_pop_1): Ditto.
6704 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
6706         PR target/41081
6707         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
6708         ashrsi3_64): New.
6710 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
6712         PR target/41081
6713         * fwprop.c (try_fwprop_subst): Allow multiple sets.
6714         (get_reg_use_in): New function.
6715         (forward_propagate_subreg): Propagate through subreg of zero_extend
6716         or sign_extend.
6718 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
6720         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
6721         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
6723 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6725         * configure.ac: Remove --with-datarootdir, --with-docdir,
6726         --with-htmldir switches.  No need to call AC_SUBST for
6727         datarootdir, docdir, htmldir any more.
6728         * configure: Regenerate.
6729         * doc/install.texi (Configuration): Document --datarootdir,
6730         --docdir, --htmldir, --pdfdir; update documentation for
6731         --infodir, --mandir.
6732         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
6733         M4 to 1.4.6.
6735         * aclocal.m4: Regenerate.
6736         * config.in: Regenerate.
6737         * configure: Regenerate.
6739 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
6740             Olivier Hainque  <hainque@adacore.com>
6742         * config/ia64/ia64.c: Include libfuncs.h.
6743         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
6744         (ia64_expand_call): Use reg 25 on VMS.
6745         (ia64_initialize_trampoline): Fix for VMS ABI.
6746         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
6747         (ia64_function_arg): Initialize reg 25 on VMS.
6748         Fix OpenVMS ABI issues for varargs.
6749         For OpenVMS, emit the Argument Information register set in the
6750         incoming/sibcall case as well.
6751         (ia64_arg_type): New function.
6752         (ia64_function_arg_advance): Keep track of cum->words.
6753         Fix OpenVMS ABI issues for varargs.
6754         (ia64_function_value): On VMS, promote mode of non-aggregate types.
6755         (ia64_override_options): Set flag_no_common on VMS.
6756         (ia64_init_builtins): Disable FWRITE builtin.
6757         (ia64_asm_output_external): Call DO_CRTL_NAMES.
6758         (ia64_vms_init_libfuncs): Add decc$ routines.
6759         (ia64_vms_valid_pointer_mode): New function.
6760         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
6761         (ia64_promote_function_mode): New function
6762         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
6763         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
6764         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
6765         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
6766         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
6767         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
6768         Suppress trailing '#' if VALUE is numeric.
6769         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
6770         ia64_promote_function_mode.
6771         (TARGET_VALID_POINTER_MODE): Define.
6773 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6775         PR target/40671
6776         * config/rs6000/rs6000.c (rs6000_override_options): Use
6777         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
6779         PR target/41145
6780         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
6781         reporting of vector + decimal/boolean/complex error.
6783 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
6785         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
6786         __vector double TYPE_DECL.
6788 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
6790         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
6791         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
6792         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
6793         to pointer to enum machine_mode.  Update all callers as needed.
6795 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
6797         * config/alpha/alpha.md (exception_receiver): Emit alternative
6798         GP load sequence if flag_reorder_blocks_and_partition is set.
6799         (*exception_receiver_2): Also enable when
6800         flag_reorder_blocks_and_partition is set.
6802 2009-08-20  Matt Rice  <ratmice@gmail.com>
6803             Diego Novillo  <dnovillo@google.com>
6805         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
6806         tree-ssa-sccvn.h.
6808 2009-08-20  Richard Guenther  <rguenther@suse.de>
6810         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
6811         * c-tree.h (c_dup_lang_specific_decl): Remove.
6812         (struct lang_decl, struct lang_type): Move definitions ...
6813         * c-lang.h: ... here.  New file.
6814         * c-decl.c: Include c-lang.h.
6815         (c_dup_lang_specific_decl): Remove.
6816         * c-typeck.c: Include c-lang.h.
6817         * Makefile.in (c-decl.o): Add c-lang.h dependency.
6818         (c-typeck.o): Likewise.
6819         * c-config-lang.in (gtfiles): Add c-lang.h.
6820         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
6821         like c-tree.h.
6823 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
6825         * config/alpha/alpha.c (alpha_end_function): Do not clear
6826         crtl->emit structure and free insn locators if cfun->is_thunk is true,
6827         this is now handled in generic code.
6829 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
6831         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
6832         (s390_z10_fix_long_loop_prediction): New function.
6833         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
6834         (s390_reorg): Walk over the INSNs and invoke
6835         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
6837 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
6839         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
6840         "*brx_64bit", "*brx_31bit"): New patterns.
6841         * config/s390/s390.c ('E'): New output modifier.
6843 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6844             Richard Earnshaw  <richard.earnshaw@arm.com>
6846         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
6847         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
6849 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6851         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
6852         patterns.
6853         * pa.c (emit_move_sequence): Check if address of operand1 is valid
6854         for mode mode of operand0 when doing secondary reload for SAR.
6856 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
6858         PR middle-end/41123
6859         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
6860         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
6862 2009-08-19  Jason Merrill  <jason@redhat.com>
6864         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
6865         supported template depth in C++0x.
6867 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
6869         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
6870         free_after_compilation.
6871         * config/score/score7.c (score7_output_mi_thunk): Likewise.
6872         * config/score/score3.c (score3_output_mi_thunk): Likewise.
6873         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
6874         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
6875         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
6876         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
6877         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
6879 2009-08-19  Ian Lance Taylor  <iant@google.com>
6881         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
6882         of (plus (mult (neg B) C) A).
6884 2009-08-18  Michael Matz  <matz@suse.de>
6886         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
6887         instead of comparing TYPE_MAIN_VARIANT for equality.
6888         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
6889         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
6890         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
6891         * gimplify.c (goa_lhs_expr_p): Ditto and use
6892         STRIP_USELESS_TYPE_CONVERSION.
6894 2009-08-18  Michael Matz  <matz@suse.de>
6896         * tree-ssa-structalias.c (create_variable_info_for): Also mark
6897         first field in a struct.
6898         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
6900 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
6902         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
6903         locators before emit_insn is called.  Remove assert that
6904         cfun->is_thunk.
6905         (alpha_end_function): Clear crtl->emit structure and free insn
6906         locators if cfun->is_thunk is true.
6908 2009-08-18  Jason Merrill  <jason@redhat.com>
6910         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
6911         type if available.
6912         * configure.ac: Test for it.
6913         * configure, config.in: Regenerate.
6914         * doc/install.texi: Document --enable-gnu-unique-object.
6916 2009-08-18  Richard Guenther  <rguenther@suse.de>
6918         PR middle-end/41094
6919         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
6920         pow(x,y*z) only if x is nonnegative.
6922 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
6924         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
6925         on jumps.
6927         PR target/40971
6928         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
6929         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
6931 2009-08-17  DJ Delorie  <dj@redhat.com>
6933         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
6934         * config/m32c/prologue.md (epilogue_freit): New.
6935         (fset_b): New.
6936         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
6937         (bank_switch_p): Likewise.
6938         (fast_interrupt_p): Likewise.
6939         (interrupt_p): Likewise.
6940         (m32c_conditional_register_usage): Round memregs size up.
6941         (need_to_save): We only need to save $a0 when we use ENTER.
6942         (interrupt_p): Check for fast_interrupt too.
6943         (bank_switch_p): New.
6944         (fast_interrupt_p): New.
6945         (m32c_attribute_table): Add bank_switch and fast_interrupt.
6946         (m32c_emit_prolog): Support bank switching and fast interrupts.
6947         * doc/extend.texi (Function Attributes): Add bank_switch and
6948         fast_interrupt.
6950 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
6952         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
6953         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
6955 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
6957         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
6958         (menu): Add IA-64/VMS Options.
6959         (IA-64/VMS Options): Likewise.
6961 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
6963         PR target/38599
6964         * config/mips/mips.md (*lwxs): Use :P for pointer values.
6966 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
6968         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
6969         (mips_pop_asm_switch): Likewise.
6970         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
6971         with...
6972         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
6973         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
6974         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
6975         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
6976         instead of set_noreorder.
6977         (mips_output_function_prologue): Use the new functions.
6978         (mips_output_function_epilogue): Likewise.
6979         (mips_need_noat_wrapper_p): New function, split out from...
6980         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
6981         Use mips_push_asm_switch and mips_pop_asm_switch.
6982         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
6983         and mips_pop_asm_switch.
6984         (ASM_OUTPUT_REG_POP): Likewise.
6985         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
6986         Use mips_pop_asm_switch.
6987         (mips_asm_switch): New structure.
6988         (set_noreorder, set_nomacro): Replace with...
6989         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
6990         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
6991         instead of set_nomacro.
6992         (fix_truncsfsi2_macro): Likewise.
6993         (cprestore): Likewise.
6994         (hazard): Use mips_noreorder instead of set_noreorder.
6995         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
6997 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
6999         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
7000         from prev_active_insn.
7002 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
7004         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
7005         * config/avr/avr.c (avr_override_options): Initialize
7006         avr_current_arch variable.
7007         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
7008         __AVR_HAVE_16BIT_SP__ according to the device type.
7009         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
7010         TARGET_TINY_STACK.
7011         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
7012         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
7014 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
7016         PR debug/37801
7017         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
7018         generating inlined subroutine die only. We shouldn't be
7019         called for anything else.
7020         (gen_block_die): Don't generate inline subroutine debug info for
7021         abstract blocks.
7023 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
7025         * graphite-poly.c (print_pbb): Print PBB index.
7027 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
7029         PR middle-end/40981
7030         * graphite-interchange.c (ppl_max_for_le): Moved...
7031         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
7032         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
7033         ppl_Pointset_Powerset_C_Polyhedron_maximize.
7034         * graphite-ppl.h (ppl_max_for_le): Declared.
7036 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
7038         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
7039         supported on all platforms.
7040         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
7041         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
7042         * c-pragma.c: Likewise.
7043         * target-def.h (TARGET_INITIALIZER): Remove
7044         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7045         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7047 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
7049         * config/ia64/fde-vms.c: New file.
7050         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
7051         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
7052         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
7053         (uw_frame_state_for): Only register a personality routine if it is
7054         known to be compatible with our expectations.
7055         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
7056         Declare unw_table_entry stack variable and
7057         mod all calls to _Unwind_FindTableEntry to add arg.
7058         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
7059         (_Unwind_FindTableEntry): Add arg to prototype.
7061 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
7063         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
7064         field 'signal_pfs_loc'.
7065         (uw_frame_state_for): Remove duplicate code dealing with leaf
7066         procedures without unwind info.
7067         If in the frame after unwinding through a signal handler, restore
7068         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
7069         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
7070         'pfs_loc' to the AR.PFS location in the signal context; instead
7071         set 'signal_pfs_loc'.
7072         Manually generate the unwind info for the AR.PFS register.
7073         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
7074         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
7075         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
7076         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
7077         instead set 'signal_pfs_loc'.
7078         Remove code preventing the AR.PFS register from being restored
7079         from the signal context.
7081 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
7082             Tristan Gingold  <gingold@adacore.com>
7084         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
7085         * config/ia64/t-vms: New file.
7086         * config/ia64/vms64.h: New file.
7087         * config/ia64/vms.h: New file.
7088         * config/ia64/vms-crtinit.asm: New file.
7089         * config/ia64/vms_symvec_libgcc_s.opt: New file.
7090         * config/ia64/vms-unwind.h: New file.
7092 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
7094         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
7095         TFmode compares.
7097 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7099         PR middle-end/30789
7100         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
7101         Move declaration...
7102         * real.h (do_mpc_arg2): ... here.
7103         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
7104         and RDIV_EXPR.
7106 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
7108         * final.c (add_debug_prefix_map): Don't use GC memory for
7109         old_prefix and new_prefix.
7111 2009-08-14  Richard Guenther  <rguenther@suse.de>
7113         * ipa-prop.c (compute_complex_pass_through): If we cannot
7114         compute a non-varying offset for IPA_JF_ANCESTOR punt.
7116 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7118         * c-lex.c (c_lex_with_flags): Increase size of local variable
7119         to avoid memory clobber.
7121 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
7123         PR target/40934
7124         * config/i386/i386.c (ix86_fp_comparison_strategy):
7125         Only enable/disable sahf at function granularity.
7127 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
7129         PR rtl-optimization/41064
7130         * reload1.c (reload_as_needed): Don't call extract_insn
7131         for known invalid replacements after calling
7132         validate_replace_rtx_group and verify_changes.
7134 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
7136         PR target/41019
7137         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
7138         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
7139         ix86_expand_fp_vcond.
7140         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
7141         Assert that operation is supported by ix86_expand_int_vcond.
7142         (vcondu<SSEMODE124C8:mode>): Ditto.
7144 2009-08-13  DJ Delorie  <dj@redhat.com>
7146         * config/i386/djgpp-stdint.h: New.
7147         * config.gcc (djgpp): Use it.
7149 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
7151         * config/sh/sh.c (sh_override_options): When flag_exceptions or
7152         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
7154 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
7156         * tree-ssa-loop-prefetch.c
7157         (prune_ref_by_group_reuse): Enhance probabilistic analysis
7158         for long-stride pruning.
7159         (compute_miss_rate): New function to compute the probability
7160         that two memory references access different cache lines.
7162 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
7164         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
7166 2009-08-13  Richard Guenther  <rguenther@suse.de>
7168         PR middle-end/41047
7169         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
7170         use the constant pointer type.
7171         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
7172         of CV qualifiers on the target pointer type.
7173         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
7174         conversion check before restrict check.
7176 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7178         PR target/41029
7179         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
7181 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7183         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
7185 2009-08-12  Richard Guenther  <rguenther@suse.de>
7187         PR tree-optimization/41011
7188         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
7189         and reference constructing.
7191 2009-08-12  Xinliang David Li  <davidxl@google.com>
7193         PR tree-optimization/41012
7194         * tree-flow.h : New external interface.
7195         * gimple-low.c (check_call_arg): Change to public function.
7196         Remove argument mismatch check in lowering.
7197         * tree-inline.h (tree_can_inline_p): Interface change.
7198         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
7199         into this function.
7200         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
7201         Call change to tree_can_inline_p function.
7202         (cgraph_decide_inlining_incrementally): Ditto.
7204 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
7206         PR tree-optimization/41031
7207         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
7208         on the partition variable rather than promote_mode on the source
7209         type.  Assert that the partition variable's type has the same
7210         mode as the source value's.
7212 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
7214         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
7215         for for_return == 2.
7216         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
7217         comments.
7218         * calls.c (expand_call): Fix typo.
7219         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
7220         and PARM_DECL.
7221         * stmt.c (expand_value_return): Use promote_function_mode to copy out
7222         of pseudo.
7223         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
7224         * config/cris/cris.c (cris_promote_function_mode): Likewise.
7225         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
7226         * config/pa/pa.c (pa_promote_function_mode): Likewise.
7228 2009-08-12  Andrew Haley  <aph@redhat.com>
7230         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
7232 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7234         PR bootstrap/40103
7235         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
7237 2009-08-12  Richard Guenther  <rguenther@suse.de>
7239         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
7240         * gimplify.c (gimplify_modify_expr): Do not use
7241         lang_hooks.types_compatible_p.
7242         * tree-ssa.c (useless_type_conversion_p): For aggregates
7243         just return false if the canonical types differ.
7245 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7247         PR middle-end/40980
7248         * sese.c (convert_for_phi_arg): New.
7249         (add_guard_exit_phis): Use convert_for_phi_arg.
7251 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7253         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
7254         unknown subscript upper bounds.
7256 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7257             Pranav Garg  <pranav.garg2107@gmail.com>
7259         * graphite-interchange.c (gather_access_strides): Removed.
7260         (ppl_max_for_le): New.
7261         (build_linearized_memory_access): New.
7262         (memory_stride_in_loop): New.
7263         (pbb_interchange_profitable_p): Reimplemented.
7264         * graphite-ppl.h (ppl_new_id_map): New.
7265         (ppl_interchange): New.
7267 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7269         * graphite-interchange.c (compute_subscript): Removed.
7270         (compute_array_size_cstr): Removed.
7271         (compute_array_size_poly): Removed.
7272         (compute_array_size): Removed.
7273         (gather_access_strides_poly): Removed.
7274         (gather_access_strides): Empty.
7276 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7278         * graphite-dependences.c (dependence_polyhedron_1): Replace
7279         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
7280         (graphite_legal_transform_dr): Same.
7281         (graphite_carried_dependence_level_k): Same.
7282         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
7283         Initialize PDR_NB_SUBSCRIPTS.
7284         (print_pdr_access_layout): Replace pdr_nb_subscripts with
7285         PDR_NB_SUBSCRIPTS.
7286         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
7287         (PDR_NB_SUBSCRIPTS): New.
7288         (pdr_nb_subscripts): Removed.
7289         (pdr_dim): Simplified.
7290         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
7291         with PDR_NB_SUBSCRIPTS.
7293 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7295         * graphite-interchange.c (compute_array_size): Remove use of
7296         PDR_DATA_CONTAINER.
7297         * graphite-poly.c (new_poly_dr): Remove argument data_container.
7298         Do not initialize PDR_DATA_CONTAINER.
7299         (print_pdr): Do not print PDR_DATA_CONTAINER.
7300         * graphite-poly.h (struct poly_dr): Remove data_container field.
7301         (PDR_DATA_CONTAINER): Removed.
7302         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
7303         PDR_DATA_CONTAINER.
7304         (build_poly_dr): Same.
7306 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
7307             Sebastian Pop  <sebastian.pop@amd.com>
7309         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
7310         copy of the dependence polyhedron.  Free the temporary objects.
7311         (graphite_carried_dependence_level_k): Free unused objects before
7312         returning.
7314 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7316         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
7317         Early return without analyzing the data dependences if no
7318         transform has been done.  Call restore_scattering if the transform
7319         is not legal.
7320         (graphite-interchange.c): Same.
7321         * graphite-poly.c (print_scattering_function): Test for
7322         PBB_TRANSFORMED.
7323         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
7324         (apply_poly_transforms): Do not gcc_assert that
7325         the transform is legal.
7326         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
7327         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
7328         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
7329         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
7330         * graphite-poly.h (struct poly_scattering): New.
7331         (struct poly_bb): Add original, transformed, and saved fields.
7332         Remove transformed_scattering, original_scattering,
7333         nb_local_variables and nb_scattering_transform fields.
7334         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
7335         (poly_scattering_new): New.
7336         (poly_scattering_free): New.
7337         (poly_scattering_copy): New.
7338         (store_scattering_pbb): New.
7339         (store_scattering): New.
7340         (restore_scattering_pbb): New.
7341         (restore_scattering): New.
7342         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
7343         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
7345 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7347         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
7348         (print_scop): Same.
7350 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7352         * Makefile.in (graphite.o): Depends on PREDICT_H.
7353         * graphite.c: Include predict.h.
7354         (graphite_finalize): Call tree_estimate_probability.
7355         * predict.c (predict_loops): Do not call scev_initialize and
7356         scev_finalize.
7357         (tree_estimate_probability_bb): New.
7358         (tree_estimate_probability): Do not initialize loops: move that
7359         code to the driver.  Call tree_estimate_probability_bb.
7360         (tree_estimate_probability_driver): New.
7361         (pass_profile): Use tree_estimate_probability_driver.
7362         * predict.h (tree_estimate_probability): Declared.
7364 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7366         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
7367         * graphite-dependences.c (graphite_legal_transform): Add time to
7368         TV_GRAPHITE_DATA_DEPS.
7369         (dependency_between_pbbs_p): Same.
7370         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
7372 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
7374         PR rtl-optimization/41033
7375         * alias.c (nonoverlapping_component_refs_p): Punt when strict
7376         aliasing is disabled.
7378 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
7380         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
7381         si_mask_operand, and_load_operand, low_bitmask_operand,
7382         and_reg_operand, and_operand): New predicates.
7383         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
7384         * config/mips/mips.c (and_operands_ok): New function.
7385         * config/mips/mips-protos.h (and_operands_ok): Declare it.
7386         * config/mips/mips.md (move_type): Add ext_ins and logical.
7387         (type): Handle them.
7388         (and<mode>3): Use and_reg_operand as the second operand's predicate.
7389         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
7390         shift_shift.  Remove commutative constraint modifier.
7391         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
7392         shift_shift.
7393         (*clear_upper32_dext): Remove define_insn_and_split.
7394         (*clear_upper32): Turn this define_insn_and_split ...
7395         (splitter for ANDing register with 0xffff_ffff): .. into this.
7397 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
7399         * combine.c (try_widen_shift_mode): Factor out code to check if an
7400         integer constant is a low-order bitmask from here ...
7401         * rtlanal.c (low_bitmask_len): ... to here.
7402         * rtl.h (low_bitmask_len): Declare.
7404 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
7406         PR target/8603
7407         * config/alpha/alpha.md (addsi3): Remove expander.
7408         (addsi3): Rename from *addsi3_internal insn pattern.
7409         (subsi3): Remove expander.
7410         (subsi3): Rename from *subsi3_internal insn pattern.
7412 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
7414         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
7415         FWRITE_UNLOCKED.
7417 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
7418             Eric Botcazou  <botcazou@adacore.com>
7419             Douglas B Rupp  <rupp@gnat.com>
7421         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
7422         that records that fit in 64 bits are returned by immediate value,
7423         as required by OpenVMS Calling Standard.
7424         (function_value): Adjust for above modification.
7425         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
7426         virtual_incoming_args_rtx as base object, not next_arg.
7427         * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
7429 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7431         * reload.c (find_reloads_subreg_address): Check the original
7432         req_equiv_mem address to detect the case where an address is
7433         not valid in the outer mode.
7435 2009-08-11  Richard Guenther  <rguenther@suse.de>
7437         PR bootstrap/40788
7438         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
7440 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
7442         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
7443         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
7445 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
7446             Douglas B Rupp  <rupp@gnat.com>
7448         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
7449         PT_STACK when frame_pointer_needed on OpenVMS.
7450         (alpha_pv_save_size, alpha_using_fp): Remove.
7451         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
7452         with proper processing for PT_NULL.
7453         (alpha_vms_initial_elimination_offset): New function. Support for
7454         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
7455         (alpha_sa_size): Force procedure type to PT_STACK when
7456         frame_pointer_needed on OpenVMS.
7457         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
7458         (alpha_using_fp): Likewise.
7459         (alpha_vms_can_eliminate): Add prototype.
7460         (alpha_vms_initial_elimination_offset): Likewise.
7461         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
7462         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
7464 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
7465             Douglas B Rupp  <rupp@gnat.com>
7467         * config/alpha/alpha.c (common_object_handler): New function.
7468         (vms_attribute_table): Declare a single attribute "common_object".
7469         (vms_output_aligned_decl_common): New global function.
7470         (SECTION_VMS_OVERLAY): Delete.
7471         (SECTION_VMS_GLOBAL): Likewise.
7472         (SECTION_VMS_INITIALIZE): Likewise.
7473         (vms_asm_named_section): Remove support for above flags.
7474         (vms_section_type_flags): Delete.
7475         (TARGET_SECTION_TYPE_FLAGS): Likewise.
7476         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
7477         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
7478         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
7480 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7482         PR target/41015
7483         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
7484         (sub_ddmmss): Likewise.
7486 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
7488         PR bootstrap/41018
7489         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
7490         year.
7492 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7494         PR target/37053
7495         * reload1.c (reload_as_needed): Use cancel_changes to completely
7496         undo a failed replacement attempt.
7498 2009-08-10  Richard Guenther  <rguenther@suse.de>
7500         PR middle-end/41006
7501         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
7502         (useless_type_conversion_p): ... here.  Require pointer targets
7503         to be compatible.
7505 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
7507         PR c++/40866
7508         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
7509         loose the original type of the statement list.
7511 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7513         * config/alpha/alpha.c: Include libfuncs.h
7514         (avms_asm_output_extern): New function.
7515         (alpha_init_libfuncs): Init some decc libfuncs.
7516         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
7517         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
7518         (DO_CRTL_NAMES): Define.
7519         (LIB_SPEC): Remove.
7520         * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
7521         (LONG_TYPE_SIZE): Define.
7522         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
7523         (SUBTARGET_SWITCHES): Define malloc64 switch.
7524         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
7525         (MASK_RETURN_ADDR): Define.
7526         doc/invoke.texi (mmalloc64): Document switch.
7528 2009-08-09  Olivier Hainque  <hainque@adacore.com>
7529             Douglas B Rupp  <rupp@gnat.com>
7531         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
7532         uses_condition_handler.
7533         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
7534         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
7535         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
7536         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
7537         (code_for_builtin): New insn codes for the new alpha_builtins.
7538         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
7539         (alpha_sa_size): Account for uses_condition_handler.
7540         (alpha_expand_prologue): Likewise.
7541         (alpha_start_function): Likewise.
7542         (alpha_expand_epilogue): Likewise.
7543         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
7544         establish/revert expanders.
7545         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
7546         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
7547         New expander, resorting to the alpha.c associated function.
7548         (builtin_revert_vms_condition_handler): Likewise.
7549         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
7550         __gcc_shell_handler, the static VMS condition handler used as
7551         an indirection wrapper to the current dynamically established
7552         handler.
7553         * config/alpha/vms-unwind.h: Complete rewrite.
7554         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
7555         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
7557 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
7558             Douglas B Rupp  <rupp@gnat.com>
7560         * config/alpha/alpha.c (alpha_links): Add 'target' field.
7561         (alpha_need_linkage): Handle aliases.  Return function symbol.
7562         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
7563         Use ultimate alias target for the linkage name.
7564         * config/alpha/alpha.md (movmemdi): Use the symbol returned
7565         by alpha_need_linkage for the function symbol.
7566         (setmemdi): Likewise.
7568 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7570         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
7571         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
7572         (ASM_WEAKEN_LABEL): Define.
7573         (CRT_CALL_STATIC_FUNCTION): Define.
7574         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
7575         (ENDFILE_SPEC): Define.
7576         (INIT_SECTION_ASM_OP): Define.
7577         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
7578         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
7579         crtend.o crtendS.o.
7580         (MULTILIB_OSDIRNAMES): Define.
7581         (shlib_version): Define.
7582         (SHLIB_EXT): Define.
7583         (SHLIB_OBJS): Define.
7584         (SHLIB_NAME): Define.
7585         (SHLIB_MULTILIB): Define.
7586         (SHLIB_INSTALL): Define.
7587         (SHLIB_SYMVEC): Define.
7588         (SHLIB_SYMVECX2): Define.
7589         (SHLIB_LINK): Define.
7591 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7593         * config/alpha/alpha.c (alpha_initialize_trampoline):
7594         Initialize VMS trampoline IAW ABI for bounded procedure calls.
7595         (alpha_start_function): Emit transfer address on nested functions
7596         for VMS trampoline call.
7597         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
7598         since no longer used.
7599         * config/alpha/vms-tramp.asm: Remove.
7600         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
7601         since now only data initialized at runtime.
7603 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7605         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
7606         (LINK_GCC_C_SEQUENCE_SPEC): Define.
7607         (MD_EXEC_PREFIX): Remove, no longer used.
7608         (MD_STARTFILE_PREFIX): Likewise.
7609         (INCLUDE_DEFAULTS): Likewise.
7610         * config/alpha/t-vms:
7611         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
7613 2009-08-09  Richard Guenther  <rguenther@suse.de>
7615         PR tree-optimization/41016
7616         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
7617         (operand_precision): Remove.
7618         (integral_operand_p): Likewise.
7619         (recognize_single_bit_test): Adjust.
7621 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
7623         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
7624         operation overflows.  Likewise non-cast unary arithmetic.
7625         If one arm of a conditional expression is always taken,
7626         inhibit evaluation warnings for the other arm.  Likewise inhibit
7627         evaluation warnings for the second && or || operand if the first
7628         operand is enough to determine the result.
7629         * c-typeck.c (build_conditional_expr): Apply the same inhibition
7630         rules here.
7631         (build_binary_op): Prevent duplicate evaluation warnings.
7633 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
7635         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
7636         and destination have different modes, Use promote_mode to
7637         determine the signedness of the conversion.  Assert that the
7638         promoted source mode matches the destination mode.  Don't pass
7639         the destination and destination mode to expand_expr if the source
7640         mode is different.  Simplify conversion logic.
7642 2009-08-09  Ira Rosen  <irar@il.ibm.com>
7644         PR tree-optimization/41008
7645         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
7646         from condition only in case it's a comparison. Adjust checks.
7648 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
7650         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
7651         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
7652         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
7653         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
7654         (dump_cand): Handle them.
7655         (struct iv_cand): New members COST_STEP and AINC_USE.
7656         (stmt_after_increment): Likewise.
7657         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
7658         callers changed.  Use gimple_uid comparison instead of scanning.
7659         (add_candidate_1): When looking for identical candidates, take
7660         AINC_USE into account.  Set it for new candidates.
7661         (force_expr_to_var_cost): Cast target_spill_cost to int.
7662         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
7663         All callers changed.  Check for availability of autoinc addressing
7664         modes, both in general for a given mode, and in the specific use case.
7665         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
7666         changed.
7667         (get_computation_cost): Likewise.
7668         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
7669         add_autoinc_candidates): New static functions.
7670         (add_candidate): Call add_autoinc_candidates for candidates based on
7671         a USE_ADDRESS use.
7672         (find_iv_candidates): Call set_autoinc_for_original_candidates.
7673         (determine_use_iv_cost_address): If we have an autoinc candidate at
7674         the matching use, verify autoinc is possible and subtract the cost
7675         of the candidate's step from the cost.
7676         (determine_iv_cost): Record the cost of the increment in the COST_STEP
7677         member of the candidate.
7678         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
7679         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
7681 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7683         * config.build (ia64-hp-*vms*): New target.
7684         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
7685         with ia64-hp-*vms*.
7686         * config.gcc (ia64-hp-*vms*): New target.
7687         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
7688         with ia64-hp-*vms*.
7689         * config.host (ia64-hp-*vms*): New target.
7690         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
7691         with ia64-hp-*vms*.
7693 2009-08-08  Richard Guenther  <rguenther@suse.de>
7695         PR tree-optimization/40991
7696         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
7698 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
7700         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
7701         mode check.  Do truncations in an integer mode.
7702         (force_to_mode): Handle subregs for all mode types.  Only do
7703         arithmetic simplifications on integer modes.
7705 2009-08-07  Richard Guenther  <rguenther@suse.de>
7707         PR tree-optimization/40999
7708         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
7709         (maybe_fold_reference): Lookup constant initializers.
7710         (fold_gimple_assign): Likewise.
7712 2009-08-07  Richard Guenther  <rguenther@suse.de>
7714         * tree-ssa.c (useless_type_conversion_p_1): Only for types
7715         that require structural equality defer to the langhook.
7717 2009-08-07  Martin Jambor  <mjambor@suse.cz>
7719         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
7720         comments.
7721         (struct ipa_pass_through_data): New type.
7722         (struct ipa_ancestor_jf_data): New type.
7723         (union jump_func_value): Removed field formal_id, added fields
7724         pass_through and ancestor.
7725         (struct ipa_param_call_note): Changed type of formal_id to int from
7726         unsigned.
7727         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
7728         operations jump functions and ancestor jump functions.
7729         (compute_complex_pass_through): New function.
7730         (compute_scalar_jump_functions): Call compute_complex_pass_through,
7731         reflect changes in the jump function strucutre.
7732         (update_jump_functions_after_inlining): Ignore complex pass-through
7733         and ancestor jump functions.
7734         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
7735         polynomial pass-through with operation jump functions.
7737 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
7739         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
7740         fde->dw_fde_begin as begin label instead of hot/cold label.
7741         Use LLSDAC label instead of LLSDA for second section lsda.
7742         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
7743         label instead of LLSDA if it is true.
7744         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
7745         callers.
7746         * except.c (add_call_site, dw2_size_of_call_site_table): Add
7747         SECTION argument.  Use it as index into crtl->eh.call_site_record
7748         array.
7749         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
7750         use it to determine how to print table entries instead of using
7751         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
7752         label instead of normal begin label as base.
7753         (sjlj_assign_call_site_values): Adjust add_call_site caller.
7754         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
7755         ensure no EH range spans between sections and that landing pads
7756         are always in the corresponding section.
7757         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
7758         for crtl->eh.call_site_record being an array rather than scalar.
7759         (output_one_function_exception_table): New function, copied
7760         from output_function_exception_table.  Adjust
7761         dw2_size_of_call_site_table, dw2_output_call_site_table
7762         callers.  For SECOND section use *C suffixed labels.
7763         (output_function_exception_table): Call
7764         output_one_function_exception_table and, when doing hot/cold
7765         partitioning, also another time for the second section.
7766         * opts.c: Include except.h.
7767         (decode_options): Allow -freorder-blocks-and-partition with
7768         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
7769         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
7770         * function.h (struct rtl_eh): Change call_site_record from
7771         scalar into array of 2 elements.
7773 2009-08-07  Martin Jambor  <mjambor@suse.cz>
7775         * ipa-prop.c (count_formal_params_1): New function.
7776         (ipa_get_vector_of_formal_parms): New function.
7777         (get_vector_of_formal_parm_types): New function.
7778         (ipa_modify_formal_parameters): New function.
7779         (ipa_modify_call_arguments): New function.
7780         (index_in_adjustments_multiple_times_p): New function.
7781         (ipa_combine_adjustments): New function.
7782         (ipa_dump_param_adjustments): New function.
7783         * ipa-prop.h (struct ipa_parm_adjustment): New type.
7784         (ipa_get_vector_of_formal_parms): Declare.
7785         (ipa_modify_formal_parameters): Declare.
7786         (ipa_modify_call_arguments): Declare.
7787         (ipa_combine_adjustments): Declare.
7788         (ipa_dump_param_adjustments): Declare.
7789         (build_ref_for_offset): Declare.
7790         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
7791         * tree-sra.c: Include ipa-prop.c.
7792         (build_ref_for_offset): Make public.
7794 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
7796         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
7798 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
7800         * gcc/doc/extend.texi (__builtin_extract_return_address)
7801         (__builtin_frob_return_address): Document.
7803 2009-08-06  Paul Brook  <paul@codesourcery.com>
7805         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
7806         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
7807         implementation on ARMv6-M.
7809 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
7811         * doc/extend.texi (pcs): Document new attribute for ARM.
7813 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
7815         * arm.c (pcs_attribute_args): Comment out unsupported attribute
7816         variants.
7818 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
7820         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
7821         warning ().
7823 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
7825         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
7827 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
7829         Merge ARM/hard_vfp_branch to trunk.
7831         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
7833         * arm.c (libcall_eq): New function.
7834         (libcall_hash): New function.
7835         (add_libcall): New function.
7836         (arm_libcall_uses_aapcs_base): New function.
7837         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
7838         libcalls using the base PCS.
7839         (arm_init_cumulative_args): Likewise.
7841         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
7843         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
7844         Use base ABI for conversion libfuncs between HFmode and SFmode.
7846         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
7848         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
7849         V4SImode as representatives of all 64-bit and 128-bit vector
7850         types.  Allow vector types without vector modes.
7851         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
7852         without vector modes like BLKmode.
7853         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
7854         BLKmode.  Avoid unsupported vector modes or TImode moves for
7855         non-TARGET_NEON.
7856         (aapcs_vfp_allocate_return_reg): Likewise.
7857         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
7858         V8QImode if TARGET_NEON || TARGET_IWMMXT.
7860         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
7862         * config/arm/arm.c (arm_handle_pcs_attribute): New.
7863         (arm_get_pcs_model): Pass attribute arguments to
7864         arm_pcs_from_attribute.
7865         (arm_init_cumulative_args): Use base AAPCS for conversions from
7866         floating-point types to DImode.
7867         (arm_attribute_table): Add pcs attribute.
7868         (arm_handle_pcs_attribute): New.
7869         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
7870         conversions from floating-point types to DImode, also declare them
7871         to use base AAPCS and declare functions they call to use base
7872         AAPCS and their RTABI names.
7874         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
7876         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
7877         -mfloat-abi=hard not being supported for VFP.
7879         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
7881         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
7882         SYMBOL_REF to hard_libcall_value.
7884         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
7885             Richard Earnshaw  <rearnsha@arm.com>
7887         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
7888         has been put on the stack, all remaining co-processory arguments for
7889         that co-processor also go on the stack.
7891         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
7893         * config/arm/arm.c (arm_return_in_memory): Handle returning
7894         vectors of suitable size in registers also for AAPCS case.
7896         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
7898         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
7900         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
7902         ARM Hard-VFP calling convention
7903         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
7904         * target.h (gcc_target): Add libcall_value to table of call hooks.
7905         * targhooks.h (default_libcall_value): Default implementation.
7906         * targhooks.c (default_libcall_value): Likewise.
7907         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
7908         * optabs.c (expand_unop): Use it.
7909         * expr.h (hard_libcall_value): Pass the function RTX through.
7910         * calls.c (emit_library_call_value_1): Update call to
7911         hard_libcall_value.
7912         * explow.c (hard_libcall_value): Use new target hook.
7913         * testsuite/lib/target-supports.exp
7914         (check_effective_target_arm_hard_vfp_ok): New hook.
7915         (check_effective_target_arm_neon_ok): Improve test for neon
7916         availability.
7917         * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
7918         * config/arm/arm.c: Include cgraph.h
7919         (TARGET_FUNCTION_VALUE): Override default hook.
7920         (arm_pcs_default): New variable.
7921         (arm_override_options): Don't fault hard calling convention with VFP.
7922         Add support for AAPCS variants.
7923         (arm_function_value): Make static.  Handle AAPCS variants.
7924         (arm_libcall_value): New function.
7925         (arm_apply_result_size): Handle VFP registers in results.
7926         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
7927         conventions.
7928         (pcs_attribute_args): New variable.
7929         (arm_pcs_from_attribute): New function.
7930         (arm_get_pcs_model): New function.
7931         (aapcs_vfp_cum_init): New function.
7932         (aapcs_vfp_sub_candidate): New function.
7933         (aapcs_vfp_is_return_candidate): New function.
7934         (aapcs_vfp_is_call_candidate): New function.
7935         (aapcs_vfp_allocate): New function.
7936         (aapcs_vfp_allocate_return_reg): New function.
7937         (aapcs_vfp_advance): New function.
7938         (aapcs_cp_arg_layout): New variable.
7939         (aapcs_select_call_coproc): New function.
7940         (aapcs_select_return_coproc): New function.
7941         (aapcs_allocate_return_reg): New function.
7942         (aapcs_libcall_value): New function.
7943         (aapcs_layout_arg): New function.
7944         (arm_init_cumulative_args): Initialize AAPCS args data.
7945         (arm_function_arg): Handle AAPCS variants using new interface.
7946         (arm_arg_parital_bytes): Likewise.
7947         (arm_function_arg_advance): New function.
7948         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
7949         calling conventions.
7950         (arm_setup_incoming_varargs): Handle new AAPCS args data.
7951         * arm.h (NUM_VFP_ARG_REGS): Define.
7952         (LIBCALL_VALUE): Update.
7953         (FUNCTION_VALUE): Delete.
7954         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
7955         (arm_pcs): New enum.
7956         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
7957         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
7958         (FUNCTION_ARG_REGNO_P): Add VFP regs.
7959         * arm-protos.h (arm_function_arg_advance): Add.
7960         (aapcs_libcall_value): Add.
7961         (arm_function_value): Delete.
7963 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
7964             H.J. Lu  <hongjiu.lu@intel.com>
7966         PR target/40957
7967         * config/i386/i386.c (standard_sse_mode_p): Remove.
7968         (standard_sse_constant_p): Return 2 for integer mode
7969         vector_all_ones_operand when SSE2 is enabled.
7970         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
7971         (ix86_expand_vector_move): Do not check for negative values from
7972         standard_sse_constant_p.
7974 2009-08-06  Richard Guenther  <rguenther@suse.de>
7976         * tree-ssa.c (useless_type_conversion_p_1): Make function and
7977         array type comparisons frontend independent.
7978         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
7979         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
7980         out array reference lower bound and element size operands.
7981         (ao_ref_init_from_vn_reference): Properly compute the offset
7982         for ARRAY_RANGE_REF.
7983         (vn_reference_fold_indirect): Fill out array reference lower
7984         bound and element size operands.
7985         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
7986         a non gimple valued reference operand which can happen for
7987         array reference lower bound or element size.
7988         (create_component_ref_by_pieces_1): Properly generate the
7989         element size operand for array references.
7991 2009-08-06  Richard Guenther  <rguenther@suse.de>
7993         PR tree-optimization/40964
7994         * tree.c (iterative_hash_host_wide_int): Export.
7995         * tree.h (iterative_hash_host_wide_int): Declare.
7996         * tree-ssa-structalias.c (heapvar_map): New struct.
7997         (heapvar_map_eq): New function.
7998         (heapvar_map_hash): Likewise.
7999         (heapvar_lookup): Adjust.
8000         (heapvar_insert): Likewise.
8001         (make_constraint_from_heapvar): Allow multiple heap variables
8002         per decl at different offsets.
8003         (init_alias_heapvars): Adjust.
8005 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
8007         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
8008         * mips_output_sync_loop (mips_output_sync_loop): Only emit
8009         trailing sync if TARGET_SYNC_AFTER_SC.
8011 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
8013         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
8014         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
8015         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
8016         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
8017         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
8018         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
8019         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
8020         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
8021         test_and_set_12): Rewrite calls to mips_output_sync_loop.
8022         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
8023         the prototype declaration match the definition.
8024         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
8025         instructions explicitly.  Add barrier_before and operands
8026         parameters.
8027         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
8028         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
8029         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
8030         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
8031         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
8032         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
8034 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
8036         * tree-ssa-alias.c: Fix intervals to use [) syntax.
8038 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
8039             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
8041         PR target/40906
8042         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
8043         source operand.
8045 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
8047         PR rtl-optimization/40924
8048         * dse.c (canon_address): Before calling cselib_expand_value_rtx
8049         make sure canon_rtx (mem_address) isn't simpler than
8050         canon_rtx (expanded_mem_address).
8052 2009-08-05  Li Feng  <nemokingdom@gmail.com>
8054         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
8055         for each poly_bb_p.
8056         (build_scop_drs): Build alias set for each SCoP.
8058 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
8060         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
8061         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
8062         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
8063         (MIPS_ARCH_FLOAT_SPEC): Likewise.
8064         (BASE_DRIVER_SELF_SPECS): Likewise.
8066 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
8068         * tree-ssa-alias.c: Fix some comment typos.
8070 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
8072         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
8073         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
8075 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
8077         PR c/39902
8078         * simplify-rtx.c (simplify_binary_operation_1): Disable
8079         simplifications for decimal float operations.
8081 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
8083         PR middle-end/40943
8084         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
8085         operand of INDIRECT_REF.
8087 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
8089         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
8090         constants referencing TLS symbols.
8092 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
8094         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
8095         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
8097 2009-08-03  Richard Guenther  <rguenther@suse.de>
8099         * tree.c (make_vector_type): Build a main variant first,
8100         get the canonical one and then build the variant.
8101         * tree-ssa.c (useless_type_conversion_p_1): Handle
8102         fixed-point types.
8103         (useless_type_conversion_p): Conversions to pointers to
8104         incomplete record types are useless.
8106 2009-08-03  Richard Guenther  <rguenther@suse.de>
8108         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
8109         file will be created.
8110         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
8111         * toplev.c (compile_file): Adjust comment.
8113 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
8115         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
8116         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
8117         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8118         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8119         (sh_promote_function_mode): Fix typo.
8121 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
8123         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
8125 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8127         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
8128         declaration arguments.
8130 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
8132         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
8133         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
8134         (ix86_split_ashl): Ditto.
8135         (ix86_expand_vector_init_one_nonzero): Ditto.
8136         (ix86_expand_vector_set): Ditto.
8137         (ix86_expand_reduc_v4sf): Ditto.
8139 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
8141         * explow.c (promote_function_mode): Remove assert.
8142         * config/sh/sh.c (sh_promote_function_mode): Declare.
8144 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8146         * config/pa/pa.c (pa_promote_function_mode): Declare.
8147         Change to static.  Fix promote_mode call.
8149         * gthr-dce.h (CONST_CAST2): Define if not defined.
8150         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
8152         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
8154 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
8156         * expr.c (store_constructor): Use promote_decl_mode.  Remove
8157         now write-only variable unsignedp.
8158         (expand_expr_real_1): Use promote_decl_mode.
8159         * expr.h (promote_function_mode, promote_decl_mode): New.
8160         (promote_mode): Remove last argument.
8161         * function.c (assign_temp): Drop last argument of promote_mode.
8162         (assign_parm_find_data_types): Use promote_function_mode.
8163         (assign_parm_setup_reg): Likewise.
8164         (expand_function_end): Use promote_function_mode.
8165         * calls.c (initialize_argument_information): Use promote_function_mode.
8166         (precompute_arguments): Use promote_mode instead of checking if
8167         only PROMOTE_FUNCTION_MODE is defined.
8168         (expand_call): When making sibcall decisions, use promote_function_mode.
8169         Below, remove an if for targetm.calls.promote_function_return and
8170         and use promote_function_mode.
8171         (emit_library_call_value_1): Use promote_function_mode, fix bug
8172         where promote_mode was passed FOR_CALL == 0 for a return value in an
8173         assertion.
8174         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
8175         * explow.c (promote_function_mode, promote_decl_mode): New.
8176         (promote_mode): Keep only the FOR_CALL == 0 case.
8177         * combine.c (setup_incoming_promotion): Remove test of
8178         promote_function_args.  Use promote_function_mode.
8179         * stmt.c (expand_value_return): Use promote_decl_mode.
8180         (expand_decl): Use promote_decl_mode.
8182         * expr.c (store_constructor): Use promote_decl_mode.  Remove
8183         now write-only variable unsignedp.
8184         (expand_expr_real_1): Use promote_decl_mode.
8185         * expr.h (promote_function_mode, promote_decl_mode): New.
8186         (promote_mode): Remove last argument.
8187         * function.c (assign_temp): Drop last argument of promote_mode.
8188         (assign_parm_find_data_types): Use promote_function_mode.
8189         (assign_parm_setup_reg): Likewise.
8190         (expand_function_end): Use promote_function_mode.
8191         * calls.c (initialize_argument_information): Use promote_function_mode.
8192         (precompute_arguments): Use promote_mode instead of checking if
8193         only PROMOTE_FUNCTION_MODE is defined.
8194         (expand_call): When making sibcall decisions, use promote_function_mode.
8195         Below, remove an if for targetm.calls.promote_function_return and
8196         and use promote_function_mode.
8197         (emit_library_call_value_1): Use promote_function_mode, fix bug
8198         where promote_mode was passed FOR_CALL == 0 for a return value in an
8199         assertion.
8200         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
8201         * explow.c (promote_function_mode, promote_decl_mode): New.
8202         (promote_mode): Keep only the FOR_CALL == 0 case.
8203         * combine.c (setup_incoming_promotion): Remove test of
8204         promote_function_args.  Use promote_function_mode.
8205         * stmt.c (expand_value_return): Use promote_decl_mode.
8206         (expand_decl): Use promote_decl_mode.
8208         * explow.c (promote_function_mode): Just call the target hook.
8209         * targhooks.c (default_promote_function_mode,
8210         default_promote_function_mode_always_promote): New.
8211         * targhooks.h (default_promote_function_mode,
8212         default_promote_function_mode_always_promote): Declare.
8213         * target.h (promote_function_args, promote_function_return): Remove.
8214         (promote_function_mode): New.
8215         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
8216         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8217         (TARGET_PROMOTE_FUNCTION_MODE): New.
8218         (TARGET_CALLS): Adjust.
8219         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
8220         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
8222         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
8223         * config/s390/s390.c (s390_promote_function_mode): ... here,
8224         with pointer handling.
8225         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8226         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8228         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
8229         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
8230         with pointer handling.
8231         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8232         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8234         * config/sh/sh-protos.h (sh_promote_function_mode): New.
8235         * config/sh/sh.c (sh_promote_function_mode): New.
8236         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8237         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8239         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
8240         * config/cris/cris.c (cris_promote_function_mode): ... here.
8241         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8242         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8244         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
8245         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
8246         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8247         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8249         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
8250         * config/arm/arm.c (arm_promote_function_mode): ... here, without
8251         complex type handling.
8252         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8253         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8255         * config/pa/pa.c (pa_promote_function_mode): New.
8256         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8257         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8259         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
8260         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8261         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
8262         * config/xtensa/xtensa.c: Likewise.
8263         * config/stormy16/stormy16.c: Likewise.
8264         * config/iq2000/iq2000.c: Likewise.
8265         * config/rs6000/rs6000.c: Likewise.
8266         * config/picochip/picochip.c: Likewise.
8267         * config/arc/arc.c: Likewise.
8268         * config/mcore/mcore.c: Likewise.
8269         * config/score/score.c: Likewise.
8270         * config/mips/mips.c: Likewise.
8271         * config/bfin/bfin.c: Likewise.
8272         * config/ia64/ia64.c: Likewise (disabled though).
8274         * config/frv/frv.h: Remove pointless remark.
8276         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
8277         TARGET_PROMOTE_FUNCTION_ARGS,
8278         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
8279         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
8281 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
8283         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
8284         -floop-parallelize-all.
8285         * toplev.c (process_options): Rename flag_graphite_force_parallel to
8286         flag_loop_parallelize_all.
8287         * tree-ssa-loop.c (gate_graphite_transforms): Same.
8288         * graphite.c (graphite_transform_loops): Same.
8289         * common.opt: Same.
8290         * graphite-poly.c (apply_poly_transforms): Same.
8292 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
8294         PR tree-optimization/40914
8295         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
8296         if set, then check the delta field of the PMF record.
8297         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
8298         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
8299         call is stored in the delta.
8301 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
8303         * config/mips/mips.md (*clear_upper32_dext): New pattern.
8305 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
8307         * config/i386/bsd.h (ASM_BYTE): New define.
8308         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
8309         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
8310         .byte.  Use fputs or putc instead of fprintf where appropriate.
8311         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
8312         fputs or putc instead of fprintf where appropriate.
8313         * config/i386/i386elf.h: Ditto.
8314         * config/i386/sysv4.h: Ditto.
8316         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
8317         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
8318         (*tls_global_dynamic_64): Ditto.
8320 2009-07-31  Christian Bruel  <christian.bruel@st.com>
8322         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
8324 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8326         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
8327         Remove dead code for MINUS.
8329 2009-07-31  Anthony Green  <green@moxielogic.com>
8331         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
8332         $r12 in prologue.
8333         (moxie_expand_epilogue): Ditto for epilogue.
8334         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
8335         incoming arguments.
8336         (moxie_function_arg): Ditto.
8337         (moxie_pass_by_reference): Ditto.
8338         (moxie_arg_partial_bytes): Ditto.
8339         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
8340         (FUNCTION_ARG_ADVANCE) Ditto.
8341         (REG_PARM_STACK_SPACE) Ditto.
8342         (FUNCTION_ARG_REGNO_P) Dito.
8344         * config.gcc: Add moxie linux config support.
8345         * gcc/config/moxie/uclinux.h: New file.
8347 2009-07-31  DJ Delorie  <dj@redhat.com>
8349         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
8350         (UNSPECV_SP_SWITCH_E): New.
8351         (sp_switch_1): Change to an unspec.
8352         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
8353         replace $r15.
8354         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
8355         reference the new stack's address
8357 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8359         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
8360         graphite-clast-to-gimple.o, graphite-dependences.o,
8361         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
8362         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
8363         (graphite-blocking.o,
8364         graphite-clast-to-gimple.o, graphite-dependences.o,
8365         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
8366         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
8367         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
8368         * cfgloop.h (struct loop): Add can_be_parallel field.
8369         * common.opt (fgraphite-identity): Moved up.
8370         (fgraphite-force-parallel): New flag.
8371         * graphite.c: Rewrite.
8372         * graphite.h: Rewrite.
8373         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
8374         after Graphite.
8375         * toplev.c (graphite_out_file): New file descriptor.
8376         (graphite_in_file): New.
8377         (process_options): flag_graphite_force_parallel cannot be used without
8378         Graphite.
8379         * tree-ssa-loop.c: Include toplev.h.
8380         (gate_graphite_transforms): Enable flag_graphite for
8381         flag_graphite_force_parallel.
8383 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8385         * ChangeLog.graphite: New.
8386         * graphite-blocking.c: New.
8387         * graphite-clast-to-gimple.c: New.
8388         * graphite-clast-to-gimple.h: New.
8389         * graphite-dependences.c: New.
8390         * graphite-dependences.h: New.
8391         * graphite-interchange.c: New.
8392         * graphite-poly.c: New.
8393         * graphite-poly.h: New.
8394         * graphite-ppl.c: New.
8395         * graphite-ppl.h: New.
8396         * graphite-scop-detection.c: New.
8397         * graphite-scop-detection.h: New.
8398         * graphite-sese-to-poly.c: New.
8399         * graphite-sese-to-poly.h: New.
8400         * sese.c: New.
8401         * sese.h: New.
8403 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8405         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
8406         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
8408 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8410         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
8411         (scev_is_linear_expression): Return false if the evolution is not
8412         affine multivariate.
8414 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8416         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
8417         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
8419 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8421         * tree-data-ref.c (debug_data_references): New.
8422         (debug_data_reference): New.
8423         * tree-data-ref.h (debug_data_references): Declared.
8424         (debug_data_reference): Declared.
8426 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8428         * tree-data-ref.c (stmt_simple_memref_p: Removed.
8429         * tree-data-ref.h (scop_p): Removed.
8430         (struct data_reference): Remove field scop.
8431         (DR_SCOP): Removed.
8432         (stmt_simple_memref_p): Removed.
8434 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8436         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
8437         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
8438         basic block empty.
8440 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8442         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
8444 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8446         * doc/invoke.texi (-fgraphite-identity): Documented.
8448 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8450         * tree-scalar-evolution.c: Fix comment.
8451         (instantiate_scev_1): Return unknow from scev instantiation if the
8452         result is not above instantiate_below.
8454 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8456         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
8457         static anymore.  Instantiate the symbols that may have been introduced
8458         by chrec_apply.
8459         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
8460         Declared.
8462 2009-07-30  DJ Delorie  <dj@redhat.com>
8464         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
8465         .vliw directive to VLIW sections.
8467 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8469         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
8470         New variables.
8471         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
8472         (AUTOHEADER): New variable.
8473         ($(srcdir)/cstamp-h.in): Use it.
8475 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
8476             Pat Haugen  <pthaugen@us.ibm.com>
8477             Revital Eres <ERES@il.ibm.com>
8479         * config/rs6000/vector.md (VEC_F): Add VSX support.
8480         (VEC_A): Ditto.
8481         (VEC_N): Ditto.
8482         (mov<mode>): Ditto.
8483         (vector_load_<mode>): Ditto.
8484         (vector_store_<mode>): Ditto.
8485         (vector GPR move split): Ditto.
8486         (vec_reload_and_plus_<mptrsize>): Ditto.
8487         (vec_reload_and_reg_<mptrsize>): Ditto.
8488         (add<mode>3): Ditto.
8489         (sub<mode>3): Ditto.
8490         (mul<mode>3): Ditto.
8491         (neg<mode>2): Ditto.
8492         (abs<mode>2): Ditto.
8493         (smin<mode>3): Ditto.
8494         (smax<mode>3): Ditto.
8495         (vector_eq<mode>): Ditto.
8496         (vector_gt<mode>): Ditto.
8497         (vector_ge<mode>): Ditto.
8498         (vector_gtu<mode>): Ditto.
8499         (vector_select_<mode>_uns): Ditto.
8500         (vector_eq_<mode>_p): Ditto.
8501         (vector_gt_<mode>_p): Ditto.
8502         (vector_ge_<mode>_p): Ditto.
8503         (vector_gtu_<mode>_p): Ditto.
8504         (cr6_test_for_zero): Ditto.
8505         (cr6_test_for_zero_reverse): Ditto.
8506         (cr6_test_for_lt): Ditto.
8507         (cr6_test_for_lt_reverse): Ditto.
8508         (xor<mode>3): Ditto.
8509         (ior<mode>3): Ditto.
8510         (and<mode>3): Ditto.
8511         (one_cmpl<mode>2): Ditto.
8512         (nor<mode>2): Ditto.
8513         (andc<mode>2): Ditto.
8514         (float<VEC_int<mode>2): Ditto.
8515         (unsigned_float<VEC_int><mode>2): Ditto.
8516         (fix_trunc<mode><VEC_int>2): Ditto.
8517         (fixuns_trunc<mode><VEC_int>2): Ditto.
8518         (vec_init<mode>):
8519         (vec_set<mode>): Ditto.
8520         (vec_extract<mode>): Ditto.
8521         (vec_interleave_highv4sf): Ditto.
8522         (vec_interleave_lowv4sf): Ditto.
8523         (vec_realign_load_<mode>): Ditto.
8524         (vec_shl_<mode>): Ditto.
8525         (vec_shr_<mode>): Ditto.
8526         (div<mode>3): New patterns for VSX.
8527         (vec_interleave_highv2df): Ditto.
8528         (vec_interleave_lowv2df): Ditto.
8529         (vec_pack_trunc_v2df): Ditto.
8530         (vec_pack_sfix_trunc_v2df): Ditto.
8531         (vec_pack_ufix_trunc_v2df): Ditto.
8532         (vec_unpacks_hi_v4sf): Ditto.
8533         (vec_unpacks_lo_v4sf): Ditto.
8534         (vec_unpacks_float_hi_v4si): Ditto.
8535         (vec_unpacks_float_lo_v4si): Ditto.
8536         (vec_unpacku_float_hi_v4si): Ditto.
8537         (vec_unpacku_float_lo_v4si): Ditto.
8538         (movmisalign<mode>): Ditto.
8539         (vector_ceil<mode>2): New patterns for vectorizing math library.
8540         (vector_floor<mode>2): Ditto.
8541         (vector_btrunc<mode>2): Ditto.
8542         (vector_copysign<mode>3): Ditto.
8544         * config/rs6000/predicates.md (easy_vector_constant_msb): New
8545         predicate for setting the high bit in each word, used for copysign.
8547         * config/rs6000/ppc-asm.h (f19): Whitespace.
8548         (f32-f63): Define if VSX.
8549         (v0-v31): Define if Altivec.
8550         (vs0-vs63): Define if VSX.
8552         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
8554         * config/rs6000/power7.md: New file, provide tuning parameters for
8555         -mcpu=power7.
8557         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
8558         (rs6000_cpu_cpp_builtins): Ditto.
8559         (altivec_overloaded_builtins): Ditto.
8560         (altivec_resolve_overloaded_builtin): Ditto.
8562         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
8563         debug switch to disable vectorizing simple math builtin
8564         functions.
8566         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
8567         Vectorize simple math builtin functions.
8568         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
8569         hook to vectorize math builtins.
8570         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
8571         (rs6000_builtin_conversion): Add VSX/power7 support.
8572         (rs6000_builtin_vec_perm): Ditto.
8573         (vsplits_constant): Add support for loading up a vector constant
8574         with just the high bit set in each part.
8575         (rs6000_expand_vector_init): Add VSX/power7 support.
8576         (rs6000_expand_vector_set): Ditto.
8577         (rs6000_expand_vector_extract): Ditto.
8578         (rs6000_emit_move): Ditto.
8579         (bdesc_3arg): Ditto.
8580         (bdesc_2arg): Ditto.
8581         (bdesc_1arg): Ditto.
8582         (rs6000_expand_ternop_builtin): Ditto.
8583         (altivec_expand_builtin): Ditto.
8584         (rs6000_expand_unop_builtin): Ditto.
8585         (rs6000_init_builtins): Ditto.
8586         (altivec_init_builtins): Ditto.
8587         (builtin_function_type): Ditto.
8588         (rs6000_common_init_builtins): Ditto.
8589         (rs6000_handle_altivec_attribute); Ditto.
8590         (rs6000_mangle_type): Ditto.
8591         (rs6000_vector_mode_supported_p): Ditto.
8592         (rs6000_mode_dependent_address): Altivec addresses with AND -16
8593         are mode dependent.
8595         * config/rs6000/vsx.md: New file for VSX support.
8597         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
8598         identifing values with just the most significant bit set.
8599         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
8600         vectorized builtins.
8602         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
8603         (UNSPEC_VRFIM): Delete.
8604         (splitter for loading up vector with most significant bit): New
8605         splitter for vectorizing copysign.
8606         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
8607         vectorizing simple math functions.
8608         (altivec_vrfip): Add support for vectorizing simple math functions.
8609         (altivec_vrfim): Ditto.
8610         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
8612         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
8613         (power7.md, vsx.md): Include for power7 support.
8614         (copysigndf3): Use VSX instructions if -mvsx.
8615         (negdf2_fpr): Ditto.
8616         (absdf2_fpr): Ditto.
8617         (nabsdf2_fpr): Ditto.
8618         (adddf3_fpr): Ditto.
8619         (subdf3_fpr): Ditto.
8620         (muldf3_fpr): Ditto.
8621         (divdf3_fpr): Ditto.
8622         (fix_truncdfdi2_fpr): Ditto.
8623         (cmpdf_internal1): Ditto.
8624         (fred, fred_fpr): Convert into expander/insn to add VSX support.
8625         (btruncdf2, btruncdf2_fpr): Ditto.
8626         (ceildf2, ceildf2_fpr): Ditto.
8627         (floordf2, floordf2_fpr): Ditto.
8628         (floatdidf2, floatdidf2_fpr): Ditto.
8629         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
8630         (fmsubdf4_fpr): Ditto.
8631         (fnmadddf4_fpr_1): Ditto.
8632         (fnmadddf4_fpr_2): Ditto.
8633         (fnmsubdf4_fpr_1): Ditto.
8634         (fnmsubdf4_fpr_2): Ditto.
8635         (fixuns_truncdfdi2): Add expander for VSX support.
8636         (fix_truncdfdi2): Ditto.
8637         (fix_truncdfsi2): Ditto.
8638         (ftruncdf2): Ditto.
8639         (btruncsf2): Whitespace.
8640         (movdf_hardfloat32): Add support for VSX registers.
8641         (movdf_softfloat32): Ditto.
8642         (movdf_hardfloat64): Ditto.
8643         (movdf_hardfloat64_mfpgpr): Ditto.
8644         (movdf_softfloat64): Ditto.
8645         (movti splitters): Add check for vector registers supporting
8646         TImode in the future.
8647         (bpermd): Add power7 bpermd instruction.
8649         * config/rs6000/altivec.h (vec_div): Define if VSX.
8650         (vec_mul): Ditto.
8651         (vec_msub): Ditto.
8652         (vec_nmadd): Ditto.
8653         (vec_nearbyint): Ditto.
8654         (vec_rint): Ditto.
8655         (vec_sqrt): Ditto.
8656         (all predicates): Use the generic builtin function, and not the V4SF
8657         specific function so that the predicates will work with VSX's V2DF.
8658         (vec_all_*): Ditto.
8659         (vec_any_*): Ditto.
8661         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
8662         Document new VSX functions and types.
8664         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
8665         switches.
8667         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
8668         "wa", and "j" constraints.  Modify "v" to talk about Altivec
8669         instead of just vector.
8671 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
8673         PR debug/26475
8674         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
8675         location for phi arguments.
8676         (rewrite_update_phi_arguments): Find locations for reaching defs.
8677         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
8678         Add location to add_phi_arg calls.
8679         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
8680         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
8681         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
8682         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
8683         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
8684         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
8685         * tree-phinodes.c (make_phi_node): Initialize location.
8686         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
8687         (add_phi_arg): Add location parameter.
8688         (remove_phi_arg_num): Move location when moving phi argument.
8689         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
8690         location.
8691         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
8692         slpeel_update_phi_nodes_for_guard1,
8693         slpeel_update_phi_nodes_for_guard2,
8694         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
8695         vect_loop_versioning): Set locations.
8696         * tree-parloops.c (create_phi_for_local_result,
8697         transform_to_exit_first_loop, create_parallel_loop): Add locations.
8698         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
8699         * tree-vect-loop.c (get_initial_def_for_induction,
8700         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
8701         locations.
8702         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
8703         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
8704         (gimple_phi_arg_set_location): New.  Set locus.
8705         (gimple_phi_arg_has_location): New.  Check for locus.
8706         (redirect_edge_var_map_location): New.  Return locus from var_map.
8707         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
8708         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
8709         combining PHI arguments.
8710         (cond_store_replacement): Set location.
8711         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
8712         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
8713         scop_add_exit_phis_edge): Add locations.
8714         * tree-cfgcleanup.c (remove_forwarder_block,
8715         remove_forwarder_block_with_phi): Add locations.
8716         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
8717         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
8718         locations.
8719         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
8720         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
8721         flush_pending_stmts): Add source location.
8722         * lambda-code.c (perfect_nestify): Maintain location stack with argument
8723         stack to preserve locations.
8724         * tree-vect-stmts.c (vectorizable_load): Add location.
8725         * tree-inline.c (copy_phis_for_bb): Copy locus.
8726         (setup_one_parameter): Add call locus to inlined parameter stmts.
8727         (initialize_inlined_parameters): Pass in call location as parameter
8728         assignment locus.
8729         (tree_function_versioning): Pass location to setup_one_parameter.
8730         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
8731         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
8732         copy and edge lists.
8733         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
8734         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
8735         locus parameter and override the stmt default if provided.
8736         (new_elim_graph, clear_elim_graph, delete_elim_graph,
8737         elim_graph_add_edge, elim_graph_remove_succ_edge,
8738         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
8739         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
8740         eliminate_phi):  Add locus info in elimination graph for each edge and
8741         value copy.
8742         (insert_backedge_copies): Copy locus if present.
8743         * tree-flow.h (struct _edge_var_map): Add locus field.
8744         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
8745         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
8746         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
8747         locations.
8748         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
8750 2009-07-30  Martin Jambor  <mjambor@suse.cz>
8752         PR tree-optimization/40570
8753         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
8754         use inlining loops.
8756 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
8758         * ssa-loop-manip.c: Include langhooks.h.
8759         (rewrite_phi_with_iv): New.
8760         (rewrite_all_phi_nodes_with_iv): New.
8761         (canonicalize_loop_ivs): Move here from tree-parloops.c.
8762         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
8763         * tree-parloops.c (loop_parallel_p): Move out all conditions
8764         except dependency check.
8765         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
8766         (gen_parallel_loop): Call canonicalize_loop_ivs without
8767         reduction_list argument.
8768         (build_new_reduction): New.
8769         (gather_scalar_reductions): New.
8770         (try_get_loop_niter): New.
8771         (try_create_reduction_list): New.
8772         (parallleize_loops): Change the parallel conditions check.
8773         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
8774         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
8776 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
8778         * opt-functions.awk (opt_args): Allow argument to be enclosed in
8779         curly braces.
8780         * doc/options.texi (Option properties):  Mention new quoting syntax.
8782 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
8784         * config/alpha/alpha.c (alpha_start_function):
8785         Handle VMS_DEBUG_MAIN_POINTER
8786         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
8787         * doc/invoke.texi: Document -mdebug-main switch.
8789 2009-07-29  Richard Henderson  <rth@redhat.com>
8791         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
8792         (cgraph_create_edge_including_clones): Likewise.
8793         * tree-inline.c (copy_bb): Operate on the correct edges
8794         when updating the callgraph.
8796 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
8798         * config/alpha/vms-cc.c: Deleted.
8799         * config/alpha/vms-ld.c: Deleted.
8800         * config/alpha/t-vms64: Moved to config/vms
8801         * config/alpha/vms-crt0-64.c: Moved to config/vms
8802         * config/alpha/vms-crt0.c: Moved to config/vms
8803         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
8804         * config/alpha/vms-psxcrt0.c: Moved to config/vms
8805         * config/alpha/xm-vms.h: Moved to config/vms
8806         * config/alpha/x-vms: Moved to config/vms
8807         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
8808         config/vms/t-vms.
8809         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
8810         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
8811         (version): Set.
8812         * config/vms/t-vms64: Moved here from config/alpha
8813         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
8814         (argc,argv,envp): Enforce 32bit malloc'ing.
8815         * config/vms/vms-psxcrt0-64.c: Likewise.
8816         * config/vms/vms-crt0.c: Moved here from config/alpha.
8817         * config/vms/vms-psxcrt0.c: Likewise.
8818         * config/vms/vms-crtl-64.h: New file.
8819         * config/vms/vms-crtl.h: New file.
8820         * config/vms/vms.opt: New file.
8821         * config/vms/xm-vms64.h: New file.
8822         * config/vms/xm-vms.h: Moved here from config/alpha.
8823         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
8824         Set.
8825         * config/vms/x-vms: Moved here from config/alpha.
8826         (version, VMS_EXTRA_PARTS): Moved to t-vms.
8827         (vms-ld.o, vms-cc.o): Removed.
8828         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
8830 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
8832         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
8833         correct stack (obvious VMS fix).
8835 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
8837         * dwarf2out.c (output_file_names): Output VMS style file name, size,
8838         date, version info if VMS_DEBUGGING_INFO defined.
8839         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
8840         size, date calculating code moved here.
8842 2009-07-29  Paul Brook  <paul@codesourcery.com>
8844         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
8845         do_push/do_pop.
8847 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
8849         PR target/40577
8850         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
8851         to DImode when generating insq_le insn.
8853 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
8855         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
8856         New macro set for VMS_DEBUGGGING_INFO.
8857         (AT_string_form): Use it.
8859 2009-07-28  DJ Delorie  <dj@redhat.com>
8861         * config/mep/mep.c (vtext_section): New.
8862         (vftext_section): New.
8863         (ftext_section): New.
8864         (mep_select_section): Add support for functions.
8865         (mep_unique_section): Likewise.
8866         (mep_asm_init_sections): Likewise.
8867         (mep_encode_section_info): Remove it from here.
8869         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
8871 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
8873         * tree.h (TREE_DEPRECATED): Document it is used for types too.
8874         (TYPE_VECTOR_OPAQUE): Use default_def_flag
8876 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
8878         * dwarf2out.c (output_file_names): Test new macro
8879         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
8880         (add_comp_dir_attribute): Likewise.
8882 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
8884         * config/i386/mingw-w64.h (LINK_SPEC): Add
8885         separating space between commands.
8887 2009-07-28  Jan Hubicka  <jh@suse.cz>
8889         PR tree-optimization/40759
8890         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
8891         for renaming.
8893 2009-07-27  DJ Delorie  <dj@redhat.com>
8895         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
8896         types are dword-aligned.
8897         (mep_expand_va_start): Likewise.
8899 2009-07-27  Olivier Hainque  <hainque@adacore.com>
8900             Douglas B Rupp  <rupp@gnat.com>
8902         * convert.c (convert_to_pointer): Don't assume the target
8903         pointer type is POINTER_SIZE long. Fetch its precision instead.
8905 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
8907         * system.h (fopen): Undefine if macro.
8909 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
8911         * dwarf2out.c (output_cfi_p): Removed.
8912         (output_cfis): New function.
8913         (output_fde): New function, split from output_call_frame_info.
8914         (output_call_frame_info): Use it.
8915         (dwarf2out_switch_text_section): Use output_cfis.
8917 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
8919         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
8920         TARGET_BI_ARCH is specified without enabling SJLJ.
8921         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
8922         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
8924 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
8926         * arm.md (negdi2): Use DImode if forcing a value into a register.
8928 2009-07-26  Ira Rosen  <irar@il.ibm.com>
8930         PR tree-optimization/40801
8931         * tree-vect-stmts.c (vectorizable_call): Get previous copy
8932         of vector operand from the previous copy of vector statement.
8933         Pass the correct definition type value to
8934         vect_get_vec_def_for_stmt_copy().
8936 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8938         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
8939         const char ** conversion.
8941 2009-07-25 David Daney <ddaney@caviumnetworks.com>
8943         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
8944         fancy_abort() if !ENABLE_ASSERT_CHECKING.
8945         (gcc_unreachable): Invoke __builtin_unreachable() if
8946         !ENABLE_ASSERT_CHECKING.
8948 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
8950         PR rtl-optimization/40445
8951         * emit-rtl.c (next_nonnote_insn_bb): New function.
8952         * rtl.h (next_nonnote_insn_bb): Declare new function.
8953         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
8954         with no successors that is the successor of the ENTRY_BLOCK.
8955         Continue from the top after removing an empty fallthrough block.
8956         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
8957         of next_nonnote_insn.
8959 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
8961         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
8963 2009-07-25  Martin Jambor  <mjambor@suse.cz>
8965         * c-common.c (c_common_attribute_table): New element for noclone.
8966         (handle_noclone_attribute): New function. Forward-declare.
8967         * tree-inline.c (tree_versionable_function_p): Check for noclone
8968         attribute.
8969         * doc/extend.texi (Labels as Values): Document need for noclone.
8970         (Function Attributes): Document noclone attribute.
8972 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
8974         PR rtl-optimization/34999
8975         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
8976         and dw_fde_switched_cold_to_hot fields.
8977         (output_cfi_p): New function.
8978         (output_call_frame_info): If fde->dw_fde_switched_sections,
8979         output 2 FDEs instead of one with corrupted header.
8980         (dwarf2out_do_cfi_startproc): New function.
8981         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
8982         and fde->dw_fde_switched_cold_to_hot.
8983         (dwarf2out_switch_text_section): Compute
8984         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
8985         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
8986         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
8987         Otherwise, compute fde->dw_fde_switch_cfi.
8989 2009-07-24  Cary Coutant  <ccoutant@google.com>
8991         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
8993 2009-07-24  Cary Coutant  <ccoutant@google.com>
8995         * cfghooks.c (split_block): Copy discriminator to new block.
8996         * tree-cfg.c (assign_discriminator): Check location of last
8997         instruction in block as well as first.
8999 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
9001         * config/i386/linux.c: Use fputs or putc instead of fprintf
9002         where appropriate.
9003         * config/i386/gas.h: Ditto.
9004         * config/i386/x86-64.h: Ditto.
9005         * config/i386/att.h: Ditto.
9007 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9009         * expmed.c (emit_store_flag): Use a recursive call to optimize the
9010         xor case.
9012 2009-07-24  Martin Jambor  <mjambor@suse.cz>
9014         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
9015         (ipa_push_func_to_list_1): Declare.
9016         (ipa_push_func_to_list): New function.
9018         * ipa-prop.c (ipa_push_func_to_list_1): New function.
9019         (ipa_init_func_list): Call ipa_push_func_to_list_1.
9020         (ipa_push_func_to_list): Removed.
9021         (ipa_pop_func_from_list): Clear node_enqueued flag.
9023 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
9025         * config/s390/s390.c (override_options): Default
9026         max-unrolled-insns to 100 for z10 tuning.
9028 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
9030         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
9031         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
9032         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
9033         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
9034         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
9035         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
9036         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
9038 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
9040         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
9041         use default set in mingw32.h header.
9042         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
9043         64-bit /mingw/include path.
9044         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
9045         path.
9047 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
9049         PR rtl-optimization/40209
9050         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
9052 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
9054         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
9055         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
9056         with the rest of string where appropriate.  Use fputs or putc
9057         instead of fprintf where appropriate.
9059 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
9060             Pat Haugen  <pthaugen@us.ibm.com>
9061             Revital Eres <ERES@il.ibm.com>
9063         * config/rs6000/vector.md: New file.  Move most of the vector
9064         expander support here from altivec.md to allow for the VSX vector
9065         unit in the future.  Add support for secondary_reload patterns.
9066         Rewrite the patterns for vector comparison, and vector comparison
9067         predicate instructions so that the RTL expresses the desired
9068         behavior, instead of using unspec.
9070         * config/rs6000/constraints.md ("f" constraint): Use
9071         rs6000_constraints to hold the precalculated register class.
9072         ("d" constraint): Ditto.
9073         ("wd" constraint): New constraint for VSX.
9074         ("wf" constraint): Ditto.
9075         ("ws" constraint): Ditto.
9076         ("wa" constraint): Ditto.
9077         ("wZ" constraint): Ditto.
9078         ("j" constraint): Ditto.
9080         * config/rs6000/predicates.md (vsx_register_operand): New
9081         predicate for VSX.
9082         (vfloat_operand): New predicate for vector.md.
9083         (vint_operand): Ditto.
9084         (vlogical_operand): Ditto.
9085         (easy_fp_constant): If VSX, 0.0 is an easy constant.
9086         (easy_vector_constant): Add VSX support.
9087         (altivec_indexed_or_indirect_operand): New predicate for
9088         recognizing Altivec style memory references with AND -16.
9090         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
9091         for vector secondary reload support.
9092         (rs6000_vector_reg_class): Delete, replacing it with
9093         rs6000_constraints.
9094         (rs6000_vsx_reg_class): Ditto.
9095         (rs6000_constraints): New array to hold the register classes of
9096         each of the register constraints that can vary at runtime.
9097         (builtin_mode_to_type): New static array for builtin function type
9098         creation.
9099         (builtin_hash_table): New static hash table for builtin function
9100         type creation.
9101         (TARGET_SECONDARY_RELOAD): Define target hook.
9102         (TARGET_IRA_COVER_CLASSES): Ditto.
9103         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
9104         registers are 128 bits if VSX memory reference instructions are used.
9105         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
9106         unit is being used.
9107         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
9108         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
9109         Print several of the scheduling related parameters.
9110         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
9111         rs6000_constraints instead of rs6000_vector_reg_class.  Move
9112         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
9113         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
9114         Altivec.  Add VSX support.  Setup for secondary reload support on
9115         Altivec/VSX registers.
9116         (rs6000_override_options): Make power7 set the scheduling groups
9117         like the power5.  Add support for new debug switches to override
9118         the scheduling defaults.  Temporarily disable -mcpu=power7 from
9119         setting -mvsx.  Add support for debug switches -malways-hint,
9120         -msched-groups, and -malign-branch-targets.
9121         (rs6000_buitlin_conversion): Add support for returning unsigned
9122         vector conversion functions to fix regressions due to stricter
9123         type checking.
9124         (rs6000_builtin_mul_widen_even): Ditto.
9125         (rs6000_builtin_mul_widen_odd): Ditto.
9126         (rs6000_builtin_vec_perm): Ditto.
9127         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
9128         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
9129         to zero a register.
9130         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
9131         generated upstream.
9132         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
9133         VSX types for bit operations.  Changes to accomidate vector.md.
9134         (bdesc_2arg): Ditto.
9135         (bdesc_1arg): Ditto.
9136         (struct builtin_description_predicates): Rewrite predicate
9137         handling so that RTL describes the operation, instead of passing
9138         the instruction to be used as a string argument.
9139         (bdesc_altivec_preds): Ditto.
9140         (altivec_expand_predicate_builtin): Ditto.
9141         (altivec_expand_builtin): Ditto.
9142         (rs6000_expand_ternop_builtin): Use a switch instead of an if
9143         statement for vsldoi support.
9144         (altivec_expand_ld_builtin): Change to use new names from vector.md.
9145         (altivec_expand_st_builtin): Ditto.
9146         (paired_expand_builtin): Whitespace changes.
9147         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
9148         builtin_mode_to_type table for secondary reload.  Call
9149         builtin_function_type to build random builtin functions.
9150         (altivec_init_builtins): Change to use builtin_function_type to
9151         create builtin function types dynamically as we need them.
9152         (builtin_hash_function): New support for hashing the tree types
9153         for builtin function as we need it, rather than trying to build
9154         all of the trees that we need.  Add initial preliminary VSX support.
9155         (builtin_function_type): Ditto.
9156         (builtin_function_eq): Ditto.
9157         (builtin_hash_struct): Ditto.
9158         (rs6000_init_builtins): Ditto.
9159         (rs6000_common_init_builtins): Ditto.
9160         (altivec_init_builtins): Ditto.
9161         (rs6000_common_init_builtins): Ditto.
9162         (enum reload_reg_type): New enum for simplifing reg classes.
9163         (rs6000_reload_register_type): Simplify register classes into GPR,
9164         Vector, and other registers.  Altivec and VSX addresses in reload.
9165         (rs6000_secondary_reload_inner): Ditto.
9166         (rs6000_ira_cover_classes): New target hook, that returns the
9167         appropriate cover classes, based on -mvsx being used or not.
9168         (rs6000_secondary_reload_class): Add VSX support.
9169         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
9170         (get_vsel_insn): Ditto.
9171         (rs6000_emit_vector_compare): Rewrite vector conditional support
9172         so that where we can, we use RTL operators, instead of blindly use
9173         UNSPEC.
9174         (rs6000_emit_vector_select): Ditto.
9175         (rs6000_emit_vector_cond_expr): Ditto.
9176         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
9177         (create_TOC_reference): Add -mdebug=addr support.
9178         (emit_frame_save): VSX loads/stores need register indexed addressing.
9180         * config/rs6000/rs6000.md: Include vector.md.
9182         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
9184         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9185         support for V2DI, V2DF in logical, permute, select operations.
9187         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
9188         switch for vsx/power7.
9189         (-mvsx-scalar-memory): Ditto.
9190         (-mvsx-align-128): Ditto.
9191         (-mallow-movmisalign): Ditto.
9192         (-mallow-df-permute): Ditto.
9193         (-msched-groups): Ditto.
9194         (-malways-hint): Ditto.
9195         (-malign-branch-targets): Ditto.
9197         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
9198         hook instead.
9199         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
9200         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
9201         (rs6000_vector_reg_class): Delete.
9202         (rs6000_vsx_reg_class): Ditto.
9203         (enum rs6000_reg_class_enum): New enum for the constraints that
9204         vary based on target switches.
9205         (rs6000_constraints): New array to hold the register class for all
9206         of the register constraints that vary based on the switches used.
9207         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
9208         (enum rs6000_builtins): Add unsigned varients for the builtin
9209         declarations returned by target hooks for expanding multiplies,
9210         select, and permute operations.  Add VSX builtins.
9211         (enum rs6000_builtin_type_index): Add entries for VSX.
9212         (V2DI_type_node): Ditto.
9213         (V2DF_type_node): Ditto.
9214         (unsigned_V2DI_type_node): Ditto.
9215         (bool_long_type_node): Ditto.
9216         (intDI_type_internal_node): Ditto.
9217         (uintDI_type_internal_node): Ditto.
9218         (double_type_internal_node): Ditto.
9220         * config/rs6000/altivec.md (whole file): Move all expanders to
9221         vector.md from altivec.md.  Rename insn matching functions to be
9222         altivec_foo.
9223         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
9224         (altivec_vcmp*): Ditto.
9225         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
9226         (VM): New iterator for moves that includes the VSX types.
9227         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
9228         (altivec_vperm_<mode>_uns): New, for unsigned types.
9229         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
9230         (altivec_eq<mode>): Ditto.
9231         (altivec_gt<mode>): Ditto.
9232         (altivec_gtu<mode>): Ditto.
9233         (altivec_eqv4sf): Ditto.
9234         (altivec_gev4sf): Ditto.
9235         (altivec_gtv4sf): Ditto.
9236         (altivec_vcmpbfp_p): Ditto.
9238 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
9240         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
9241         unsigned HWI.
9243 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
9245         PR target/40832
9246         * config/i386/i386.c (output_387_ffreep): Rewrite to use
9247         ASM_SHORT instead of .word.
9248         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
9249         instead of .word in asm template.
9251 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
9253         PR target/37488
9254         * ira-lives.c (bb_has_abnormal_call_pred): New function.
9255         (process_bb_node_lives): Use it.
9257         * ira.c (setup_cover_and_important_classes): Don't setup
9258         ira_important_class_nums.  Add cover classes to the end of
9259         important classes.
9260         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
9261         New.
9262         (find_reg_class_closure): Use reorder_important_classes.
9264         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
9266         * config/i386/i386.c (i386_ira_cover_classes): New function.
9267         (TARGET_IRA_COVER_CLASSES): Redefine.
9269         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
9270         importance of order of cover classes in the array.
9272 2009-07-22  Diego Novillo  <dnovillo@google.com>
9274         * tree-pass.h (TDF_EH): Define.
9275         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
9276         contains TDF_EH, print the EH region number holding GS.
9277         * tree-dump.c (dump_options): Add "eh".
9278         * doc/invoke.texi: Document it.
9280 2009-07-22  Doug Kwan  <dougkwan@google.com>
9282         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
9284 2009-07-22  Michael Matz  <matz@suse.de>
9286         PR tree-optimization/35229
9287         PR tree-optimization/39300
9289         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
9290         (inhibit_phi_insertion): New function.
9291         (insert_into_preds_of_block): Call it for REFERENCEs.
9292         (init_pre): Initialize and finalize scalar evolutions.
9293         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
9295 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
9297         * config/i386/predicates.md (zero_extended_scalar_load_operand):
9298         Use CONST_VECTOR_NUNITS to determine number of elements.
9300 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
9302         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
9303         (U, W): Constraints are now deprecated and will be removed if we
9304         run out of letters.
9305         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
9306         the file.
9307         ("prefetch"): Add the stcmh instruction for prefetching.
9308         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
9309         changes.
9310         (s390_short_displacement): Return always true if compiling for
9311         machines not providing the long displacement facility.
9312         (s390_mem_constraint): Support the new constraint letter Z.
9313         (s390_check_qrst_address): New function.
9315 2009-07-21  DJ Delorie  <dj@redhat.com>
9317         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
9318         alone too.
9320 2009-07-21  Jason Merrill  <jason@redhat.com>
9322         * c-common.c (max_tinst_depth): Increase default to 1024.
9324 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
9326         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
9327         (vec_unpacku_float_lo_v4si): Ditto.
9329 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
9331         PR target/40811
9332         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
9333         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
9334         (builtin_description): Add __builtin_ia32_cvtudq2ps.
9335         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
9337 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
9339         PR tree-optimization/40813
9340         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
9341         it.
9343 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
9345         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
9346         with a NOP_EXPR if needed.
9348 2009-07-21  Paul Brook <paul@codesourcery.com>
9350         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
9351         Terminate debug dump with newline.
9353 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9355         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
9356         Cast "1" to unsigned HOST_WIDE_INT.
9357         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
9358         deposit length to the maximum length - lsb.  Extend length if
9359         HOST_BITS_PER_WIDE_INT is 32.
9361 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
9363         * cgraph.h (constant_pool_htab): New function.
9364         (constant_descriptor_tree): Move from varasm.c.
9365         * varasm.c (constant_pool_htab): New function.
9366         (constant_descriptor_tree): Move to cgraph.h.
9368 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
9370         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
9372 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
9374         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
9375         $(VARRAY_H).
9377 2009-07-20  Xinliang David Li  <davidxl@google.com>
9379         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
9381 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9383         * config/mips/mips.md (move_type): Add arith.
9384         (type): Handle arith.
9385         (zero_extendsidi2): Rename this into ...
9386         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
9387         (zero_extendsidi2): New expander.
9388         (*zero_extendsidi2_dext): New pattern.
9390 2009-07-20  Nick Clifton  <nickc@redhat.com>
9392         * config.gcc (mips64-*-*): Add definition of tm_defines in order
9393         to set MIPS_ABI_DEFAULT.
9394         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
9396 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
9398         * tree-object-size.c (addr_object_size): Handle unions with
9399         array in it as last field of structs in __bos (, 1) as __bos (, 0).
9401         PR tree-optimization/40792
9402         * tree.c (build_function_type_skip_args): Remove bogus assert.
9404 2009-07-20  Jan Hubicka  <jh@suse.cz>
9405             Martin Jambor  <mjambor@suse.cz>
9407         * cgraph.h (combined_args_to_skip): New field.
9408         * cgraph.c (cgraph_create_virtual_clone): Properly handle
9409         combined_args_to_skip and args_to_skip.
9410         * tree-inline.c (update_clone_info): New function.
9411         (tree_function_versioning): Call update_clone_info.
9412         * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
9413         functions.
9414         (cgraph_materialize_all_clones): More extensive dumping, working
9415         with combined_args_to_skip rather than args_to_skip.
9417 2009-07-20  Ira Rosen  <irar@il.ibm.com>
9419         * tree-vectorizer.h (vectorizable_condition): Add parameters.
9420         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
9421         (get_initial_def_for_reduction): Likewise.
9422         (vectorizable_reduction): Skip the check of first operand in case
9423         of COND_EXPR. Add check that it is outer loop vectorization if
9424         nested cycle was detected. Call vectorizable_condition() for
9425         COND_EXPR. If reduction epilogue cannot be created do not fail for
9426         nested cycles (if it is not double reduction). Assert that there
9427         is only one type in the loop in case of COND_EXPR. Call
9428         vectorizable_condition() to vectorize COND_EXPR.
9429         * tree-vect-stmts.c (vectorizable_condition): Update comment.
9430         Add parameters. Allow nested cycles if called from
9431         vectorizable_reduction(). Use reduction vector variable if provided.
9432         (vect_analyze_stmt): Call vectorizable_reduction() before
9433         vectorizable_condition().
9434         (vect_transform_stmt): Update call to vectorizable_condition().
9436 2009-07-20  Christian Bruel  <christian.bruel@st.com>
9438         * config/sh/sh.opt (-mfmovd): Resurrect and document.
9439         * doc/invoke.texi (-mfmovd): Likewise.
9440         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
9442 2009-07-20  Jan Hubicka  <jh@suse.cz>
9444         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
9445         when handling SSA name.
9447 2009-07-19  Jan Hubicka  <jh@suse.cz>
9449         PR tree-optimization/40676
9450         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
9451         virtual PHIs in empty BBs.
9453 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
9455         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
9456         re-expanded the compound use gen_lowpart instead to convert to the
9457         desired mode.
9459 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
9461         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
9462         OUTER_CONST arguments.
9463         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
9464         the new wider mode will be masked off.
9465         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
9467 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
9469         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
9470         high-order bits are zero.
9472 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
9474         * combine.c (simplify_shift_const_1): Split code to determine
9475         shift_mode into ...
9476         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
9477         new bits shifted in are identical to the old sign bit.
9479 2009-07-18  Richard Guenther  <rguenther@suse.de>
9481         PR c/40787
9482         * gimplify.c (gimplify_call_expr): Reject code using results from
9483         functions returning void.
9485 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
9487         * doc/md.texi: Document the new PowerPC "es" constraint.
9488         Document that "m" can include automodified addresses on this target,
9489         and explain how %U must be used.  Extend the "Q" and "Z" documentation
9490         to suggest "es" as well as "m".
9491         * config/rs6000/constraints.md (es): New memory constraint.
9492         (Q, Z): Update strings to match new documentation.
9494 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
9496         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
9497         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
9498         * config/rs6000/predicates.md (volatile_mem_operand): Use
9499         offsettable_nonstrict_memref_p.
9500         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
9501         (*floatunssidf2_internal): Likewise.
9502         (*fix_truncdfsi2_internal): Likewise.
9503         (*fix_trunctfsi2_internal): Likewise.
9505 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
9507         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
9508         atmega32u2 devices.
9509         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
9511 2009-07-17  Richard Guenther  <rguenther@suse.de>
9513         PR c/40401
9514         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
9515         (pass_warn_unused_result): Likewise.
9516         (TODO_set_props): Remove.
9517         * omp-low.c (diagnose_omp_structured_block_errors): Change to
9518         run as a pass.
9519         (pass_diagnose_omp_blocks): Define.
9520         * c-decl.c (pop_file_scope): Do not finalize the CU here.
9521         (c_gimple_diagnostics_recursively): Remove.
9522         (finish_function): Do not call it.
9523         (c_write_global_declarations): Continue after errors.
9524         Finalize the CU here.
9525         * c-gimplify.c (c_genericize): Do not gimplify here.
9526         * c-common.c (c_warn_unused_result): Move ...
9527         * tree-cfg.c (do_warn_unused_result): ... here.
9528         (run_warn_unused_result): New function.
9529         (gate_warn_unused_result): New function.
9530         (pass_warn_unused_result): New pass.
9531         * c-common.h (c_warn_unused_result): Remove.
9532         * flags.h (flag_warn_unused_result): Declare.
9533         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
9534         * opts.c (flag_warn_unused_result): Initialize to false.
9535         * toplev.c (compile_file): Add comment.
9536         * omp-low.c (create_omp_child_function): Do not register
9537         the function with the frontend.
9538         (diagnose_omp_structured_block_errors): Prepare to be
9539         called as optimization pass.
9540         (gate_diagnose_omp_blocks): New function.
9541         (pass_diagnose_omp_blocks): New pass.
9542         * cgraph.h (cgraph_optimize): Remove.
9543         (cgraph_analyze_function): Likewise.
9544         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
9545         * cgraphunit.c (cgraph_lower_function): Lower nested functions
9546         before their parents here.
9547         (cgraph_finalize_function): Not here.
9548         (cgraph_analyze_function): Gimplify functions here.
9549         (cgraph_finalize_compilation_unit): Continue after errors.
9550         Optimize the callgraph from here.
9551         (cgraph_optimize): Make static.
9552         * langhooks.c (write_global_declarations): Finalize the CU.
9553         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
9554         (gimplify_function_tree): Assert we gimplify only once.
9555         Set PROP_gimple_any property.
9556         * tree-nested.c (gimplify_all_functions): New function.
9557         (lower_nested_functions): Gimplify all nested functions.
9558         * gimple.h (diagnose_omp_structured_block_errors): Remove.
9559         * passes.c (init_optimization_passes): Add pass_warn_unused_result
9560         and pass_diagnose_omp_blocks after gimplification.  Do not
9561         set TODO_set_props on all_lowering_passes.
9562         (execute_one_pass): Do not handle TODO_set_props.
9563         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
9564         (gimplify.o): Add tree-pass.h dependency.
9565         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
9566         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
9567         (unsave_r): Likewise.
9568         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
9569         temporary variable.
9571 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
9573         * doc/service.texi (Service): Restore previously removed link,
9574         which isn't broken after all.
9576 2009-07-17  Richard Guenther  <rguenther@suse.de>
9578         PR tree-optimization/40321
9579         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
9580         PHI nodes to the maximal set.
9581         (make_values_for_phi): Add PHI arguments to the maximal set.
9582         (execute_pre): Dump PHI_GEN and the maximal set.
9584 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
9586         PR c++/40780
9587         * gimplify.c (gimplify_conversion): Don't change non-conversions into
9588         VIEW_CONVERT_EXPR.
9590 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
9592         * doc/extend.texi (Nested Functions): Replace broken link with
9593         textual reference.
9594         * doc/service.texi (Service): Remove broken link.
9596 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
9598         PR bootstrap/40781
9599         * builtins.c (expand_builtin_memcmp): Use loc instead of
9600         EXPR_LOCATION (exp).
9601         (expand_builtin_strncmp): Likewise.
9603 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
9604             Manuel López-Ibáñez  <manu@gcc.gnu.org>
9606         PR 40435
9607         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
9608         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
9609         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
9610         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
9611         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
9612         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
9613         tree-inline.c, c-common.c, c-common.h, gimple.c,
9614         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
9615         convert.c: Add location argument to fold_{unary,binary,ternary},
9616         fold_build[123], build_call_expr, build_size_arg,
9617         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
9618         fold_build1_initializer, fold_build2_initializer,
9619         fold_build3_initializer, fold_build_call_array,
9620         fold_build_call_array_initializer, fold_single_bit_test,
9621         omit_one_operand, omit_two_operands, invert_truthvalue,
9622         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
9623         combine_comparisons, fold_builtin_*, fold_call_expr,
9624         build_range_check, maybe_fold_offset_to_address, round_up,
9625         round_down.
9627 2009-07-16  Jason Merrill  <jason@redhat.com>
9629         PR libstdc++/37907
9630         * c-common.c (c_common_reswords): Add __is_standard_layout
9631         and __is_trivial.
9632         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
9633         * doc/implement-cxx.texi: New.
9634         * doc/gcc.texi: Include it.
9636 2009-07-16  DJ Delorie  <dj@redhat.com>
9638         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
9639         compares that may be indirectly affected by previous instructions.
9641 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9643         * builtins.c (do_mpc_arg2): New.
9644         (fold_builtin_2): Fold builtin cpow.
9645         * real.h (HAVE_mpc_pow): New.
9647 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
9649         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
9650         comparison to skip unprofitable schedule
9652 2009-07-16  Simon Baldwin  <simonb@google.com>
9654         * gcc.c (option_map): New flag -no-canonical-prefixes.
9655         * (display_help): Print help text for new flag.
9656         * (process_command): Move options translation and language specifics
9657         and handle new flag early.  Use it to set a function pointer to a
9658         prefix builder.  Replace make_relative_prefix calls with calls to
9659         the function pointed to.  Ignore new flag in regular options handling.
9660         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
9662 2009-07-15  DJ Delorie  <dj@redhat.com>
9664         * config/mep/mep.md (sibcall_internal): Change register to avoid
9665         argument registers.
9666         (sibcall_value_internal): Likewise.
9668 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
9670         PR rtl-optimization/40710
9671         * resource.c (mark_target_live_regs): Reset DF problem to LR.
9673 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
9675         * config/mips/mips.md (*extenddi_truncate<mode>,
9676         *extendsi_truncate<mode>): Change type attribute to move_type
9677         with shift_shift.  Split out code handling exts from here ...
9678         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
9679         pattern.
9680         (*extendhi_truncateqi): Change type attribute to move_type with
9681         shift_shift.  Split out code handling exts from here ...
9682         (*extendhi_truncateqi_exts): ... to this new pattern.
9684 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
9686         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
9687         instead of "and" with inverted sign bit mask value.  Use
9688         "nonimmediate_operand" for operand 1 and operand 2 predicate.
9689         Allocate registers only for operand 4 and operand 5.
9691 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
9693         PR middle-end/40747
9694         * fold-const.c (fold_cond_expr_with_comparison): When folding
9695         < and <= to MIN, make sure the MIN uses the same type as the
9696         comparison's operands.
9698 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
9700         * arm.md (ior_xor): New code iterator.
9701         (split for ior/xor with shift and zero-extend): New split pattern.
9702         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
9704 2009-07-15  Richard Guenther  <rguenther@suse.de>
9706         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
9707         offset member.
9709 2009-07-15  Richard Guenther  <rguenther@suse.de>
9711         PR middle-end/40753
9712         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
9714 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9716         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
9717         handle 2.6.30 kernel.
9719 2009-07-15  DJ Delorie  <dj@redhat.com>
9721         * config/mep/mep.md (sibcall_internal): Change register to allow
9722         for 24-bit addresses.
9723         (sibcall_value_internal): Likewise.
9725 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
9727         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
9728         that are enabled/disabled by the flags introduced by a previous patch.
9730 2009-07-14  DJ Delorie  <dj@redhat.com>
9732         * config/mep/mep.md (sibcall_internal): Include non-toggling
9733         non-jmp case.
9734         (sibcall_value_internal): Likewise.
9736 2009-07-14  Taras Glek  <tglek@mozilla.com>
9737             Rafael Espindola  <espindola@google.com>
9739         * doc/sourcebuild.texi: Document install-plugin target.
9740         * configure.ac: Added install-plugin target to language makefiles.
9741         * configure: Regenerate.
9742         * Makefile.in: (install-plugin): Install more headers,
9743         depend on lang.install-plugin.
9745 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9747         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
9748         translation.
9750 2009-07-14  DJ Delorie  <dj@redhat.com>
9752         * config/mep/mep.c (mep_vliw_jmp_match): New function.
9753         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
9754         * config/mep/mep.md (sibcall_internal): Change test from
9755         mep_vliw_mode_match to mep_vliw_jmp_match.
9756         (sibcall_value_internal): Likewise.
9758 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
9760         * config/i386/sse.md (copysign<mode>3): New expander.
9761         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
9762         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
9763         Use ix86_build_const_vector.
9764         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
9765         IX86_BUILTIN_CPYSGNPD.
9766         (builtin_description): Add __builtin_ia32_copysignps and
9767         __builtin_ia32_copysignpd.
9768         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
9769         and BUILT_IN_COPYSIGNF.
9771 2009-07-13  Jason Merrill  <jason@redhat.com>
9773         * builtins.c (can_trust_pointer_alignment): New fn.
9774         (get_pointer_alignment): Factor it out from here.
9775         * tree.h: Declare it.
9777 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
9779         * config/rs6000/predicates.md (offsettable_mem_operand): Test
9780         RTX_AUTOINC class.
9782 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
9784         PR debug/40705
9785         PR c++/403057
9786         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
9788 2009-07-14  Richard Guenther  <rguenther@suse.de>
9789             Andrey Belevantsev <abel@ispras.ru>
9791         PR middle-end/40745
9792         * cfgexpand.c (partition_stack_vars): Do not bother to update
9793         alias information when not optimizing.
9795 2009-07-14  Richard Guenther  <rguenther@suse.de>
9796             Andrey Belevantsev <abel@ispras.ru>
9798         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
9799         (pt_solution_set): Likewise.
9800         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
9801         * tree-ssa-structalias.c (pt_solution_set): New function.
9802         * final.c (rest_of_clean_state): Free SSA data structures.
9803         * print-rtl.c (print_decl_name): Remove.
9804         (print_mem_expr): Implement in terms of print_generic_expr.
9805         * alias.c (ao_ref_from_mem): New function.
9806         (rtx_refs_may_alias_p): Likewise.
9807         (true_dependence): Query alias-export info.
9808         (canon_true_dependence): Likewise.
9809         (write_dependence_p): Likewise.
9810         * tree-dfa.c (get_ref_base_and_extent): For void types leave
9811         size unknown.
9812         * emit-rtl.c (component_ref_for_mem_expr): Remove.
9813         (mem_expr_equal_p): Use operand_equal_p.
9814         (set_mem_attributes_minus_bitpos): Do not use
9815         component_ref_for_mem_expr.
9816         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
9817         (update_alias_info_with_stack_vars): Likewise.
9818         (partition_stack_vars): Call update_alias_info_with_stack_vars.
9819         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
9820         explicitly nor clear stmt operands.
9821         Free the decl-to-pointer map.
9822         * tree-optimize.c (execute_free_datastructures): Do not free
9823         SSA data structures here.
9824         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
9825         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
9826         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
9827         dependencies.
9828         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
9830 2009-07-13  DJ Delorie  <dj@redhat.com>
9832         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
9833         unrolling at the right iteration count.
9835         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
9836         calculations.
9838 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
9840         * haifa-sched.c (rank_for_schedule): Introduced flags to
9841         enable/disable individual scheduling heuristics.
9842         * common.opt: Introduced flags to enable/disable individual
9843         heuristics in the scheduler.
9844         * doc/invoke.texi: Introduced flags to enable/disable individual
9845         heuristics in the scheduler.
9847 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
9849         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
9850         config/i386/mingw-tls.c.
9851         * config/i386/mingw-tls.c: Removed.
9853 2009-07-13  Ira Rosen  <irar@il.ibm.com>
9855         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
9856         checks access only relevant statements.
9857         (vectorizable_reduction): Likewise.
9859 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
9861         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
9862         just for 32-bit case.
9864 2009-07-12  Jan Hubicka  <jh@suse.cz>
9866         PR tree-optimization/40585
9867         * except.c (expand_resx_expr): When there already is resume
9868         instruction, produce linked list.
9869         (build_post_landing_pads): Assert that resume is empty.
9870         (connect_post_landing_pads): Handle resume lists.
9871         (dump_eh_tree): Dump resume list.
9873 2009-07-12  Ira Rosen  <irar@il.ibm.com>
9875         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
9876         with additional argument.
9877         * tree-vectorizer.h (enum vect_def_type): Add
9878         vect_double_reduction_def.
9879         (vect_is_simple_reduction): Add argument.
9880         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
9881         indentation.
9882         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
9883         vect_is_simple_reduction with additional argument.
9884         (vect_analyze_loop_operations): Handle exit phi nodes in case of
9885         double reduction.
9886         (reduction_code_for_scalar_code): Handle additional codes by
9887         returning ERROR_MARK for them. Fix comment and indentation.
9888         (vect_is_simple_reduction): Fix comment, add argument to specify
9889         double reduction. Detect double reduction.
9890         (get_initial_def_for_induction): Fix indentation.
9891         (get_initial_def_for_reduction): Fix comment and indentation.
9892         Handle double reduction. Create initial definitions that do not
9893         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
9894         (vect_create_epilog_for_reduction): Fix comment, add argument to
9895         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
9896         epilogue result extraction. Create double reduction phi node and
9897         replace relevant uses.
9898         (vectorizable_reduction): Call vect_is_simple_reduction with
9899         additional argument. Fix indentation. Update epilogue code treatment
9900         according to the changes in reduction_code_for_scalar_code. Check
9901         for double reduction. Call vect_create_epilog_for_reduction with
9902         additional argument.
9903         * tree-vect-stmts.c (process_use): Handle double reduction, update
9904         documentation.
9905         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
9906         (vect_get_vec_def_for_operand): Likewise.
9908 2009-07-12  Danny Smith  <dansmister@gmail.com>
9910         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
9911         dllexport if !TREE_PUBLIC.
9912         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
9914 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
9916         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
9917         (avr_extra_arch_macro) Remove declatation.
9918         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
9919         (avr_extra_arch_macro) Declare as static.
9920         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
9922 2009-07-11  Jan Hubicka  <jh@suse.cz>
9924         PR middle-end/48388
9925         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
9927 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
9929         PR debug/40713
9930         * dwarf2out.c (dw_fde_struct): Add in_std_section and
9931         cold_in_std_section bits.
9932         (dwarf2out_begin_prologue): Initialize them.
9933         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
9934         if already covered by text_section or cold_text_section range.
9936         PR rtl-optimization/40667
9937         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
9938         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
9939         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
9940         * config/i386/i386.c (ix86_minimum_alignment): New function.
9941         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
9942         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
9943         * emit-rtl.c (gen_reg_rtx): Likewise.
9944         * function.c (assign_parms): Likewise.  If nominal_type needs
9945         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
9946         rather than passed_type's alignment.
9948         PR target/40668
9949         * function.c (assign_parm_setup_stack): Adjust
9950         MEM_OFFSET (data->stack_parm) if promoted_mode is different
9951         from nominal_mode on big endian.
9953 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
9955         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
9957 2009-07-10  DJ Delorie  <dj@redhat.com>
9959         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
9961 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
9963         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
9964         attribute.
9965         (thumb2_cbnz): Likewise.
9967 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
9969         PR target/39079
9970         * config.gcc (supported_defaults): Add synci.
9971         (with_synci): Add validation.
9972         (all_defaults): Add synci.
9973         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
9974         ISA_HAS_SYNCI.
9975         (synci): Same.
9976         * config/mips/mips.opt (msynci): New option.
9977         * config/mips/mips.c (mips_override_options): Warn on use of
9978         -msynci for targets that do now support it.
9979         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
9980         msynci.
9981         * gcc/doc/invoke.texi (-msynci): Document the new option.
9982         * doc/install.texi (--with-synci): Document the new option.
9984 2009-07-10  Richard Guenther  <rguenther@suse.de>
9986         PR tree-optimization/40496
9987         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
9988         the PHI result with a compatible type.
9990 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9992         PR 25509
9993         PR 40614
9994         * c.opt (Wunused-result): New.
9995         * doc/invoke.texi: Document it.
9996         * c-common.c (c_warn_unused_result): Use it.
9998 2009-07-09  DJ Delorie  <dj@redhat.com>
10000         * targhooks.c (default_target_can_inline_p): Rename from
10001         default_target_option_can_inline_p.
10002         * targhooks.h (default_target_can_inline_p): Likewise.
10003         * target-def.h (TARGET_CAN_INLINE_P): Rename from
10004         TARGET_OPTION_CAN_INLINE_P.
10005         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
10006         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
10007         (mep_target_can_inline_p): Rename from
10008         mep_target_option_can_inline_p.
10010         PR target/40626
10011         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
10012         registers used to pass vectors.
10014         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
10016 2009-07-09  Tom Tromey  <tromey@redhat.com>
10018         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
10019         * config/mmix/mmix.c: Include dwarf2.h.
10020         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
10021         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
10022         * config/sh/sh.c: Include dwarf2.h.
10023         * config/i386/i386.c: Include dwarf2.h.
10024         * Makefile.in (DWARF2_H): Remove 'elf'.
10025         * except.c: Include dwarf2.h.
10026         * unwind-dw2.c: Include dwarf2.h.
10027         * dwarf2out.c: Include dwarf2.h.
10028         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
10029         * unwind-dw2-fde.c: Include dwarf2.h.
10030         * dwarf2asm.c: Include dwarf2.h.
10032 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
10034         * haifa-sched.c (insn_finishes_cycle_p): New static function.
10035         (max_issue): Use it.
10036         * sched-int.h (struct sched_info: insn_finishes_block_p): New
10037         scheduler hook.
10038         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
10039         (region_sched_info): Update.
10040         * sched-ebb.c (ebb_sched_info): Update.
10041         * modulo-sched.c (sms_sched_info): Update.
10042         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
10044 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
10046         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
10048 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
10050         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
10052 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
10054         PR middle-end/40692
10055         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
10056         arg1 with arg01 if arg1 is already INTEGER_CST.
10058 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
10060         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
10061         Transform (and (truncate)) into (truncate (and)).
10063 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
10065         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
10066         creating LHS paradoxical subregs.  Fix surrounding returns to
10067         use NULL_RTX rather than 0.
10069 2009-07-08  DJ Delorie  <dj@redhat.com>
10071         * config/mep/mep.c: (mep_option_can_inline_p): New.
10072         (TARGET_OPTION_CAN_INLINE_P): Define.
10074 2009-07-08  Mark Wielaard  <mjw@redhat.com>
10076         PR debug/40659
10077         * dwarf2out.c (add_data_member_location_attribute): When we have
10078         only a constant offset don't emit a new location description using
10079         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
10080         dwarf_version > 2.
10082 2009-07-08  Richard Henderson  <rth@redhat.com>
10084         PR target/38900
10085         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
10086         (enum reg_class): Add CLOBBERED_REGS.
10087         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
10088         * config/i386/i386.c (ix86_conditional_register_usage): Moved
10089         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
10090         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
10091         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
10092         force 64-bit sibcalls into R11.
10093         * config/i386/constraints.md (U): New constraint.
10094         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
10095         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
10096         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
10098 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
10100         * basic-block.h (dump_regset, debug_regset): Remove duplicate
10101         prototypes.
10102         * c-objc-common.h (c_initialize_diagnostics): Ditto.
10103         * ebitmap.h (dump_ebitmap): Ditto.
10104         * optabs.h (optab_libfunc): Ditto.
10105         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
10106         * tree-flow.h (vect_can_force_dr_alignment_p,
10107         get_vectype_for_scalar_type): Ditto.
10108         (vectorize_loops): Move prototype to ...
10109         * tree-vectorizer.h: ... here. Also, adjust comment.
10110         (vect_set_verbosity_level): Remove duplicate prototype.
10111         * tree-ssa-loop.c: Include tree-vectorizer.h.
10112         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
10114 2009-07-08  Nick Clifton  <nickc@redhat.com>
10116         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
10117         forward slash.
10119 2009-07-08  DJ Delorie  <dj@redhat.com>
10121         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
10122         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
10123         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
10124         written to.
10125         * config/mep/intrinsics.md: Regenerated.
10126         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
10127         registers when asm() or calls are detected.
10129 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10131         PR c++/31246
10132         * gimplify.c (gimplify_expr): Propagate no_warning flag when
10133         gimplifying.
10134         * gimple (gimple_build_call_from_tree): Likewise.
10135         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
10136         no_warning flag before warning.
10138 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10140         * tree.c (set_expr_locus): Remove.
10141         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
10142         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
10143         EXPR_LOCATION.
10144         * gimplify.c (internal_get_tmp_var): Likewise.
10145         (gimplify_call_expr): Likewise.
10146         (gimplify_one_sizepos): Likewise.
10148 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
10150         PR debug/40666
10151         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
10152         to variables for debugging purposes.
10154 2009-06-23  Mark Loeser  <mark@halcy0n.com>
10156         PR build/40010
10157         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
10159 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10161         * pretty-print.c (pp_base_format): Remove %J.
10162         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10163         gcc_cxxdiag_char_table): Likewise.
10164         (init_dynamic_diag_info): Likewise.
10166 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10168         * pretty-print.c (pp_base_format): Remove %H.
10169         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10170         gcc_cxxdiag_char_table): Likewise.
10171         (init_dynamic_diag_info): Likewise.
10172         * config/mep/mep.c (mep_select_section): Likewise.
10174 2009-07-07  Duncan Sands  <baldrick@free.fr>
10176         * final.c (pass_clean_state): Give the pass a name.
10177         * passes.c (pass_rest_of_compilation): Likewise.
10178         * tree-optimize.c (pass_all_optimizations): Likewise.
10180 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
10182         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
10183         an extra 'decl' for error_at.
10185 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
10187         PR middle-end/40669
10188         * tree-tailcall.c (adjust_return_value_with_ops,
10189         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
10190         if it has complex or vector type.
10192 2009-07-07  Olivier Hainque  <hainque@adacore.com>
10194         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
10195         pthread symbols.
10197 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
10199         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
10201 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10203         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
10204         * c-decl.c: Likewise.
10205         * function.c: Likewise.
10206         * varasm.c: Likewise.
10207         * tree-ssa.c: Likewise.
10208         * c-common.c: Likewise.
10209         * tree-cfg.c: Likewise.
10210         * config/spu/spu.c: Likewise.
10211         * config/ia64/ia64.c: Likewise.
10212         * config/v850/v850.c: Likewise.
10214 2009-07-06  DJ Delorie  <dj@redhat.com>
10216         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
10217         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
10218         unspecified accesses to control registers.
10219         * config/mep/intrinsics.md: Regenerate.
10220         * config/mep/intrinsics.h: Regenerate.
10221         * config/mep/mep-intrin.h: Regenerate.
10223 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10225         * c-lex.c: Replace %H by an explicit location. Update all calls.
10226         * c-common.c: Likewise.
10227         * c-decl.c: Likewise.
10228         * c-typeck.c: Likewise.
10229         * fold-const.c: Likewise.
10230         * gimplify.c: Likewise.
10231         * stmt.c: Likewise.
10232         * tree-cfg.c: Likewise.
10233         * tree-ssa-loop-niter.c: Likewise.
10234         * tree-vrp.c: Likewise.
10235         * value-prof.c: Likewise.
10237 2009-07-06  Diego Novillo  <dnovillo@google.com>
10239         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
10240         if it has one.  Handle cases where VAR does not have an
10241         annotation or cfun is NULL.
10243 2009-07-06  Diego Novillo  <dnovillo@google.com>
10245         * tree.c: Include debug.h.
10246         (initialize_tree_contains_struct): New.
10247         (init_ttree): Call it.
10248         (tree_node_structure_for_code): Factor out of ...
10249         (tree_node_structure): ... here.
10250         * treestruct.def (TS_PHI_NODE): Remove.
10251         (TS_GIMPLE_STATEMENT): Remove.
10253 2009-07-06  Diego Novillo  <dnovillo@google.com>
10255         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
10256         (debug_tree_chain): Handle cycles.
10258 2009-07-06  Nick Clifton  <nickc@redhat.com>
10259             DJ Delorie  <dj@redhat.com>
10261         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
10262         __FMOVD_ENABLED__ is defined.
10263         * config/sh/sh.h
10264         (TARGET_FMOVD): Provide a default definition.
10265         (MASK_FMOVD): Likewise.
10266         (TARGET_CPU_CPP_BUILTINS): Define
10267         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
10268         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
10269         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
10270         (split for DF load from memory into register): Also handle
10271         MEMs which consist of REG+DISP addressing.
10272         (split for DF store from register to memory): Likewise.
10273         (movsf_ie): Always use single fp_mode.
10274         * config/sh/sh.c (sh_override_options): Do not automatically
10275         enable TARGET_MOVD for the SH2A when supporting doubles - leave
10276         that to the -mfmovd command line switch.
10277         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
10278         (fldi_ok): Always allow.
10279         * config/sh/sh.opt (mfmovd): Remove this switch.
10280         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
10282 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
10283             Kaz Kojima  <kkojima@gcc.gnu.org>
10285         PR rtl-optimization/30807
10286         * postreload.c (reload_combine): For every new use of REG_SUM,
10287         record the use of BASE.
10289 2009-07-06  Jan Hubicka  <jh@suse.cz>
10291         * params.def: Revert my accidental commit at 2009-06-30.
10293 2009-07-04  Ian Lance Taylor  <iant@google.com>
10295         PR target/40636
10296         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
10297         EXPORTED_CONST.
10298         (mingw_format_attribute_overrides): Likewise.
10300 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
10302         PR debug/40596
10303         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
10304         don't check cfa.reg.  Instead of cfa.indirect use
10305         fde && fde->drap_reg != INVALID_REGNUM test.
10307 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
10309         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
10311 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
10313         PR target/40587
10314         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
10316 2009-07-03  Richard Guenther  <rguenther@suse.de>
10318         PR tree-optimization/40640
10319         * tree-switch-conversion.c (build_arrays): Perform arithmetic
10320         in original type.
10322 2009-07-03  Jan Hubicka  <jh@suse.cz>
10324         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
10325         for size, reduce amount of inlining.
10327 2009-07-03  Richard Guenther  <rguenther@suse.de>
10329         PR middle-end/34163
10330         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
10331         if t +- x is known to not overflow and the conversion widens the
10332         operation.
10333         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
10335 2009-07-03  Jan Hubicka  <jh@suse.cz>
10337         * ipa-pure-const.c (analyze): Update loop optimizer init.
10338         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
10339         try_remove_empty_loop, remove_empty_loops): Remove.
10340         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
10341         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
10342         to mark regular loops as neccesary.
10343         (degenerate_phi_p): New function.
10344         (propagate_necessity, remove_dead_phis): Use it.
10345         (forward_edge_to_pdom): Likewise.
10346         (eliminate_unnecessary_stmts): Take care to remove uses of results of
10347         virtual PHI nodes that became unreachable.
10348         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
10349         * tree-flow.h (remove_empty_loops): Remove.
10350         * passes.c (init_optimization_passes): Remove.
10352 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
10354         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
10355         can_create_pseudo_p.
10356         (*fix_trunc<mode>_i387_1): Ditto.
10357         (*floathi<mode>2_1): Ditto.
10358         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
10359         (*fistdi2_1): Ditto.
10360         (*fist<mode>2_1): Ditto.
10361         (frndintxf2_floor): Ditto.
10362         (*fist<mode>2_floor_1): Ditto.
10363         (frndintxf2_ceil): Ditto.
10364         (*fist<mode>2_ceil_1): Ditto.
10365         (frndintxf2_trunc): Ditto.
10366         (frndintxf2_mask_pm): Ditto.
10367         (fxam<mode>2_i387_with_temp): Ditto.
10368         * config/i386/sse.md (mulv16qi3): Ditto.
10369         (*sse2_mulv4si3): Ditto.
10370         (mulv2di3): Ditto.
10371         (sse4_2_pcmpestr): Ditto.
10372         (sse4_2_pcmpistr): Ditto.
10374 2009-07-03  Jan Hubicka  <jh@suse.cz>
10376         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
10377         (mark_stmt_necessary): Set it.
10378         (mark_operand_necessary): Set it.
10379         (mark_control_dependent_edges_necessary): Set it.
10380         (mark_virtual_phi_result_for_renaming): New function.
10381         (get_live_post_dom): New function.
10382         (forward_edge_to_pdom): New function.
10383         (remove_dead_stmt): Fix handling of control dependences.
10384         (tree_dce_init): Init new bitmap.
10385         (tree_dce_done): Free it.
10387 2009-07-02  Richard Guenther  <rguenther@suse.de>
10389         PR bootstrap/40617
10390         * tree-ssa-structalias.c (new_var_info): Initialize
10391         is_restrict_var.
10393 2009-07-02  Jan Hubicka  <jh@suse.cz>
10395         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
10396         local.
10398 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
10400         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
10401         instead of recomputing it.  Adjust calls.
10402         (emit_store_flag): Adjust recursive calls.
10404 2009-07-02  Richard Guenther  <rguenther@suse.de>
10406         * tree-ssa-live.c (remove_unused_locals): Do not remove
10407         heap variables.
10408         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
10409         of DECL_EXTERNAL for HEAP variables.
10410         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
10411         HEAP variables.  Do not adjust RESTRICT vars.
10412         (find_what_var_points_to): Nobody cares if something
10413         points to READONLY.
10415 2009-07-02  Ben Elliston  <bje@au.ibm.com>
10417         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
10418         pc_low and pc_high declarations to the top of the function.
10420 2009-07-01  DJ Delorie  <dj@redhat.com>
10422         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
10423         registers as fixed.
10424         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
10425         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
10426         unspecified accesses to control registers.
10427         * config/mep/intrinsics.md: Regenerate.
10428         * config/mep/intrinsics.h: Regenerate.
10429         * config/mep/mep-intrin.h: Regenerate.
10431 2009-07-01  Anthony Green  <green@moxielogic.com>
10433         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
10434         instruction when possible.
10435         (moxie_expand_prologue): Ditto.  Also, save an instruction and
10436         some complexity by popping off of $r12 instead of $sp.
10437         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
10438         operands.
10440 2009-07-01  Richard Henderson  <rth@redhat.com>
10442         PR bootstrap/40347
10443         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
10444         contained no insns, reposition note before last insn.
10446 2009-07-01  Richard Henderson  <rth@redhat.com>
10448         PR debug/40431
10449         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
10450         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
10452 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
10454         PR bootstrap/40558
10455         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
10456         darwin9 for printing reg addresses with %y.
10458 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
10460         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
10461         truncation from operands in binary operations.
10463 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
10465         Revert:
10466         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
10467         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
10468         subreg of op0 to the original op0.
10470         * expmed.c (store_bit_field_1): Use a temporary as the destination
10471         instead of a paradoxical subreg when we need to truncate the result.
10473 2009-07-01  DJ Delorie  <dj@redhat.com>
10475         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
10476         names to VLIW variants.
10477         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
10478         * config/mep/intrinsics.md: Regenerate.
10479         * config/mep/intrinsics.h: Regenerate.
10480         * config/mep/mep-intrin.h: Regenerate.
10482 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
10484         PR debug/40462
10485         * jump.c (returnjump_p): Revert last patch.
10486         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
10488 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10490         PR target/40575
10491         * pa.md (casesi32p): Use jump table label to determine the offset
10492         of the jump table.
10493         (casesi64p): Likewise.
10495         * pa.c (forward_branch_p): Return bool type.  Use instruction
10496         addresses when available.  Assert that INSN has a jump label.
10497         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
10498         have a jump label.
10500 2009-07-01  Richard Guenther  <rguenther@suse.de>
10502         PR tree-optimization/19831
10503         * tree-ssa-dce.c (propagate_necessity): Calls to functions
10504         that only act as barriers do not make any previous stores necessary.
10505         * tree-ssa-structalias.c (handle_lhs_call): Delay making
10506         HEAP variables global, do not add a constraint from nonlocal.
10507         (find_func_aliases): Handle escapes through return statements.
10508         (compute_points_to_sets): Make escaped HEAP variables global.
10510 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
10512         PR bootstrap/40597
10513         * expmed.c (emit_store_flag): Perform a conversion if necessary,
10514         after reducing a DImode cstore to SImode.
10516 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
10518         * expr.c (expand_expr_real_1): Reinstate fallthrough to
10519         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
10521 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
10523         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
10524         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
10525         to 0.
10526         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
10527         and umod_optab if TARGET_BSD_DIVMOD.
10528         * config/vax/lib1funcs.asm: New file.
10529         * config/vax/t-linux: New file.
10530         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
10532 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
10534         PR c++/40566
10535         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
10536         to type arguments that have void type.
10538         PR debug/40573
10539         * dwarf2out.c (gen_formal_parameter_die): Call
10540         equate_decl_number_to_die if node is different from origin.
10542 2009-06-30  Anthony Green  <green@moxielogic.com>
10544         Clean up moxie port for --enable-build-with-cxx.
10545         * config/moxie/moxie.c (moxie_function_value): First two
10546         parameters are const_tree, not tree.
10547         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
10548         (REG_CLASS_NAMES): Ditto.
10549         (REGNO_REG_CLASS): Ditto.
10550         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
10551         (moxie_function_value): Fix constyness of arguments.
10553 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
10555         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
10556         finalize_size_functions before further processing.
10557         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
10558         (variable_size): Call self_referential_size on size expressions
10559         that contain a PLACEHOLDER_EXPR.
10560         (size_functions): New static variable.
10561         (copy_self_referential_tree_r): New static function.
10562         (self_referential_size): Likewise.
10563         (finalize_size_functions): New global function.
10564         * tree.c: Include tree-inline.h.
10565         (push_without_duplicates): New static function.
10566         (find_placeholder_in_expr): New global function.
10567         (substitute_in_expr) <tcc_declaration>: Return the replacement object
10568         on equality.
10569         <tcc_expression>: Likewise.
10570         <tcc_vl_exp>: If the replacement object is a constant, try to inline
10571         the call in the expression.
10572         * tree.h (finalize_size_functions): Declare.
10573         (find_placeholder_in_expr): Likewise.
10574         (FIND_PLACEHOLDER_IN_EXPR): New macro.
10575         (substitute_placeholder_in_expr): Update comment.
10576         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
10577         is true.
10578         (copy_tree_body_r): Likewise.
10579         (copy_tree_body): New static function.
10580         (maybe_inline_call_in_expr): New global function.
10581         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
10582         (maybe_inline_call_in_expr): Declare.
10583         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
10584         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
10585         GIMPLE_H.
10587 2009-06-30  Richard Guenther  <rguenther@suse.de>
10589         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
10590         continue walking.
10591         (propagate_necessity): Do not mark reaching defs of stores
10592         as necessary.
10594 2009-06-30  Jan Hubicka  <jh@suse.cz>
10596         * cfgloopanal.c (check_irred): Move into ...
10597         (mark_irreducible_loops): ... here; return true if ireducible
10598         loops was found.
10599         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
10600         (analyze_function): Try to prove loop finiteness.
10601         * cfgloop.h (mark_irreducible_loops): Update prototype.
10602         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
10604 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
10606         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
10608 2009-06-30  Ira Rosen  <irar@il.ibm.com>
10610         PR tree-optimization/40542
10611         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
10612         types.
10614 2009-06-30  Martin Jambor  <mjambor@suse.cz>
10616         PR tree-optimization/40582
10617         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
10618         than useless_type_conversion_p.
10619         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
10620         proper place.
10622 2009-06-30  Martin Jambor  <mjambor@suse.cz>
10624         PR middle-end/40554
10625         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
10627 2009-06-30  Richard Guenther  <rguenther@suse.de>
10629         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
10630         use ao_ref references.
10631         (walk_aliased_vdefs): Likewise.
10632         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
10633         * tree-ssa-dce.c (struct ref_data): Remove.
10634         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
10635         (mark_aliased_reaching_defs_necessary): Adjust.
10636         (mark_all_reaching_defs_necessary_1): Likewise.
10638 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
10640         PR boostrap/40597
10641         * expmed.c (emit_cstore): New name of emit_store_flag_1.
10642         (emit_store_flag_1): Extract from emit_store_flag, adjust
10643         calls to (what now is) emit_cstore.
10644         (emit_store_flag): Call emit_store_flag_1 and also use it
10645         for what used to be recursive calls.
10647 2009-06-30  Wei Guozhi  <carrot@google.com>
10649         PR/40416
10650         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
10651         if the target bb post dominates from bb.
10652         * config/i386/i386.c (memory_address_length): Check existence of base
10653         register before using it.
10655 2009-06-30  Nick Clifton  <nickc@redhat.com>
10656             DJ Delorie  <dj@redhat.com>
10658         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
10659         __FMOVD_ENABLED__ is defined.
10660         * config/sh/sh.h
10661         (TARGET_FMOVD): Provide a default definition.
10662         (MASK_FMOVD): Likewise.
10663         (TARGET_CPU_CPP_BUILTINS): Define
10664         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
10665         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
10666         two fmov instructions depending upon whether TARGET_FMOVD is
10667         enabled.
10668         (split for DF load from memory into register): Also handle
10669         MEMs which consist of REG+DISP addressing.
10670         (split for DF store from register to memory): Likewise.
10671         * config/sh/sh.opt (mfmovd): Remove this switch.
10672         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
10673         * config/sh/sh.c (sh_override_options): Do not automatically
10674         enable TARGET_MOVD for the SH2A when supporting doubles - leave
10675         that to the -mfmovd command line switch.
10677         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
10678         the SH4 and SH4A.
10679         (fldi_ok): Always allow.
10680         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
10682 2009-06-29  DJ Delorie  <dj@redhat.com>
10684         * doc/install.texi (mep-x-elf): Correct chip's full name.
10686 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
10688         * doc/extend.texi: Fix typo.
10690 2009-06-29  Tom Tromey  <tromey@redhat.com>
10692         * dwarf2.h: Remove.
10693         * Makefile.in (DWARF2_H): New variable.
10694         (except.o): Use it.
10695         (dwarf2out.o): Likewise.
10696         (dwarf2asm.o): Likewise.
10697         * config/i386/t-i386: Use DWARF2_H.
10698         * except.c: Include elf/dwarf2.h.
10699         * unwind-dw2.c: Include elf/dwarf2.h.
10700         * dwarf2out.c: Include elf/dwarf2.h.
10701         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
10702         <dtprel>: New field.
10703         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
10704         (size_of_loc_descr): Likewise.
10705         (output_loc_operands_raw): Likewise.
10706         (output_loc_operands): Handle new dtprel field.
10707         (loc_checksum): Update.
10708         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
10709         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
10710         * unwind-dw2-fde.c: Include elf/dwarf2.h.
10711         * dwarf2asm.c: Include elf/dwarf2.h.
10712         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
10713         * config/mmix/mmix.c: Include elf/dwarf2.h.
10714         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
10715         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
10716         * config/sh/sh.c: Include elf/dwarf2.h.
10717         * config/i386/i386.c: Include elf/dwarf2.h.
10719 2009-06-29  DJ Delorie  <dj@redhat.com>
10721         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
10723         * doc/extend.texi: Add MeP attributes and pragmas.
10724         * doc/invoke.text: Add MeP Options.
10725         * doc/contrib.texi: Add MeP contribution.
10726         * doc/md.texi: Add MeP constraints.
10727         * doc/install.texi: Add MeP target.
10729 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
10731         * target.h (struct gcc_target): Add frame_pointer_required field.
10732         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
10733         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
10734         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
10735         hook.
10736         * reload1.c (update_eliminables): (Ditto.).
10737         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
10738         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
10739         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
10741         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
10743         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
10744         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
10745         (arm_frame_pointer_required): New function.
10747         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
10748         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10749         (avr_frame_pointer_required_p): Declare as static.
10750         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
10752         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
10753         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
10754         (bfin_frame_pointer_required): Make as static, change return type
10755         to bool.
10756         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
10758         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
10759         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10760         (cris_frame_pointer_required): New function.
10762         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
10764         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
10765         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10766         (fr30_frame_pointer_required): New function.
10768         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
10769         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
10770         (frv_frame_pointer_required): Make as static, change return type
10771         to bool.
10772         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
10774         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
10775         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10776         (ix86_frame_pointer_required): Make as static, change return type to
10777         bool.
10778         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
10780         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
10781         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10783         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
10785         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
10787         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
10789         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
10790         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10791         (mips_frame_pointer_required): Make as static.
10792         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
10794         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
10795         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10796         (mmix_frame_pointer_required): Mew function.
10798         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
10799         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10801         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
10803         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
10805         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
10807         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
10808         (CAN_ELIMINATE): Redefine.
10809         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10810         (sparc_frame_pointer_required): New function.
10811         (sparc_can_eliminate): New function.
10812         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
10814         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
10815         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
10817         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
10818         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
10819         (xtensa_frame_pointer_required): Make as static, change return type
10820         to bool.
10821         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
10822         Remove.
10824 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
10826         * doc/plugins.texi: Document PLUGIN_START_UNIT.
10827         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
10828         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
10829         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
10830         (register_callback): Handle PLUGIN_START_UNIT.
10831         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
10833 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
10835         * tree.c (process_call_operands): Propagate TREE_READONLY from the
10836         operands.
10837         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
10838         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
10840 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
10842         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
10843         move cost.
10845 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
10847         * doc/extend.texi (Additional Floating Types): __float128 is also
10848         supported on i386 targets.
10850 2009-06-29  Richard Guenther  <rguenther@suse.de>
10852         PR middle-end/14187
10853         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
10854         flag.
10855         (pt_solutions_same_restrict_base): Declare.
10856         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
10857         flag.
10858         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
10859         (make_constraint_from, make_copy_constraint): Move earlier.
10860         (make_constraint_from_heapvar): New function.
10861         (make_constraint_from_restrict): Likewise.
10862         (handle_lhs_call): Use it.
10863         (find_func_aliases): Use it to track conversions to restrict
10864         qualified pointers.
10865         (struct fieldoff): Add only_restrict_pointers flag.
10866         (push_fields_onto_fieldstack): Initialize it.
10867         (create_variable_info_for): Track global restrict qualified pointers.
10868         (intra_create_variable_infos): Use make_constraint_from_heapvar.
10869         Track restrict qualified pointer arguments.
10870         (set_uids_in_ptset): Use varinfo is_global_var flag.
10871         (find_what_var_points_to): Set the vars_contains_restrict flag.
10872         Always create the points-to solution for sets including restrict tags.
10873         (pt_solutions_same_restrict_base): New function.
10874         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
10875         qualified pointers use pt_solutions_same_restrict_base as
10876         additional source for disambiguation.
10878 2009-06-29  Richard Guenther  <rguenther@suse.de>
10880         PR middle-end/38212
10881         * alias.c (find_base_decl): Remove.
10882         (get_deref_alias_set_1): Remove restrict handling.
10883         * c-common.c (c_apply_type_quals_to_decl): Do not set
10884         DECL_POINTER_ALIAS_SET.
10885         * gimplify.c (find_single_pointer_decl_1): Remove.
10886         (find_single_pointer_decl): Likewise.
10887         (internal_get_tmp_var): Remove restrict handling.
10888         (gimple_regimplify_operands): Likewise.
10889         * omp-low.c (expand_omp_atomic_pipeline): Do not set
10890         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
10891         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
10892         * tree.c (restrict_base_for_decl): Remove.
10893         (init_ttree): Do not allocate it.
10894         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
10895         LABEL_DECL_UID for label decls.
10896         (copy_node_stat): Do not copy restrict information.
10897         (decl_restrict_base_lookup): Remove.
10898         (decl_restrict_base_insert): Likewise.
10899         (print_restrict_base_statistics): Likewise.
10900         (dump_tree_statistics): Do not call print_restrict_base_statistics.
10901         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
10902         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
10903         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
10904         (LABEL_DECL_UID): Adjust.
10905         (DECL_BASED_ON_RESTRICT_P): Remove.
10906         (DECL_GET_RESTRICT_BASE): Likewise.
10907         (SET_DECL_RESTRICT_BASE): Likewise.
10908         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
10910         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
10911         instead of DECL_POINTER_ALIAS_SET.
10912         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
10913         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
10914         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
10916 2009-06-29  Richard Guenther  <rguenther@suse.de>
10918         PR tree-optimization/40579
10919         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
10920         the IL to simplify has constants that overflowed.
10922 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
10924         PR tree-optimization/40550
10925         * tree-vect-generic.c (expand_vector_operations_1): Compute in
10926         vector_compute_type only when the size of vector_compute_type is
10927         less than the size of type.
10929 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
10931         * fold-const.c (contains_label_1): Fix comments.
10932         (contains_label_p): Do not walk trees multiple time.
10934 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
10936         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
10937         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
10938         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
10939         ix86_fp_comparison_operator.
10940         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
10941         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
10942         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
10943         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
10944         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
10945         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
10946         (related splits): Change predicate to ix86_fp_comparison_operator.
10947         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
10948         instead of ix86_fp_comparison_codes.
10949         (ix86_trivial_fp_comparison_operator,
10950         ix86_fp_comparison_operator): New.
10951         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
10952         (ix86_expand_compare): Eliminate last two parameters.
10953         (ix86_fp_jump_nontrivial_p): Kill.
10954         * config/i386/i386.c (put_condition_code): Eliminate call to
10955         ix86_fp_comparison_codes and subsequent assertion.
10956         (ix86_fp_comparison_codes): Eliminate.
10957         (ix86_fp_swap_condition): New.
10958         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
10959         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
10960         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
10961         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
10962         and ix86_fp_swap_condition.
10963         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
10964         Use ix86_fp_comparison_strategy.
10965         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
10966         (ix86_fp_jump_nontrivial_p): Eliminate.
10967         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
10968         call to ix86_expand_compare.
10969         (ix86_split_fp_branch, ix86_expand_setcc,
10970         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
10971         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
10973 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
10975         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
10976         related to jump_clobbers.
10977         * config/arm/arm.md (conds): Remove jump_clob case.
10978         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
10979         splits): Change comparison_operator to arm_comparison_operator.
10980         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
10981         Eliminate.
10983 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
10985         * dojump.c (do_compare_rtx_and_jump): Try swapping the
10986         condition for floating point modes.
10987         * expmed.c (emit_store_flag_1): Move here a bigger part
10988         of emit_store_flag.
10989         (emit_store_flag): Try swapping the condition for floating point
10990         modes.
10991         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
10993 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
10995         * expr.c (expand_expr_real_1): Just use do_store_flag.
10996         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
10997         emit_store_flag_force.
10998         * expmed.c (emit_store_flag_force): Copy here trick
10999         previously in expand_expr_real_1.  Try reversing the comparison.
11000         (emit_store_flag_1): Work if target is NULL.
11001         (emit_store_flag): Work if target is NULL, using the result mode
11002         from the comparison.  Use split_comparison, restructure final part
11003         to simplify conditionals.
11005 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
11007         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
11008         * dojump.c (do_jump): Change handling of floating-point
11009         ops to use just do_compare_and_jump.
11010         (split_comparison): New.
11011         (do_compare_rtx_and_jump): Add here logic coming previously
11012         in do_jump, using split_comparison.
11014 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
11016         PR target/40489
11017         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
11019 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11021         * tree-ssa-alias.c: Fix unintentional commit.
11023 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11025         * passes.c (execute_one_pass): Fix unintentional commit.
11027 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11029         * df-problems.c (df_set_seen, df_unset_seen): Delete.
11030         (df_rd_local_compute, df_md_local_compute): Inline them.
11032         (df_md_scratch): New.
11033         (df_md_alloc, df_md_free): Allocate/free it.
11034         (df_md_local_compute): Only include live registers in init.
11035         (df_md_transfer_function): Prune the in-set computed by
11036         the confluence function, and the gen-set too.
11038 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11040         PR rtl-optimization/26854
11041         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
11042         * df-problems.c (df_rd_add_problem): Fix comment.
11043         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
11044         df_md_simulate_artificial_defs_at_top,
11045         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
11046         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
11047         df_md_transfer_function, df_md_init, df_md_confluence_0,
11048         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
11049         problem_MD, df_md_add_problem): New.
11050         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
11051         df_md_get_bb_info): New.
11052         (DF_LAST_PROBLEM_PLUS1): Adjust.
11054         * Makefile.in (fwprop.o): Include domwalk.h.
11055         * fwprop.c: Include domwalk.h.
11056         (reg_defs, reg_defs_stack): New.
11057         (bitmap_only_bit_between): Remove.
11058         (process_defs): New.
11059         (process_uses): Use reg_defs and local_md instead of
11060         bitmap_only_bit_between and local_rd.
11061         (single_def_use_enter_block): New, from build_single_def_use_links.
11062         (single_def_use_leave_block): New.
11063         (build_single_def_use_links): Remove code moved to
11064         single_def_use_enter_block, invoke domwalk.
11065         (use_killed_between): Adjust comment.
11067 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11069         * bitmap.h (bitmap_ior_and_into): New.
11070         * bitmap.c (bitmap_ior_and_into): New.
11072 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11074         * domwalk.h (struct dom_walk_data): Remove all callbacks except
11075         before_dom_children_before_stmts and after_dom_children_after_stmts.
11076         Rename the two remaining callbacks to just before_dom_children and
11077         after_dom_children. Remove other GIMPLE statement walking bits.
11078         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
11079         * graphite.c: Do not include domwalk.h.
11080         * tree-into-ssa.c (interesting_blocks): New global.
11081         (struct mark_def_sites_global_data): Remove it and names_to_rename.
11082         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
11083         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
11084         now that they're not domwalk callbacks.
11085         (rewrite_initialize_block): Rename to...
11086         (rewrite_enter_block): ... this, place after called functions.  Test
11087         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
11088         (rewrite_finalize_block): Rename to...
11089         (rewrite_leave_block): ... this, place after called functions.
11090         (rewrite_update_init_block): Rename to...
11091         (rewrite_update_enter_block): ... this, place after called functions.
11092         Test interesting_blocks, call rewrite_update_stmt and
11093         rewrite_update_phi_arguments.
11094         (rewrite_update_fini_block): Rename to...
11095         (rewrite_leave_block): ... this, place after called functions.
11096         (rewrite_blocks): Remove last argument, simplify initialization of
11097         walk_data.
11098         (mark_def_sites_initialize_block): Rename to...
11099         (mark_def_sites_block): ... this, call mark_def_sites.
11100         (mark_def_sites_blocks): Remove argument, simplify initialization of
11101         walk_data.
11102         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
11103         (update_ssa): Likewise.
11104         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
11105         callback.
11106         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
11107         (dom_opt_initialize_block): Rename to...
11108         (dom_opt_enter_block): ... this, place after called functions.  Walk
11109         statements here, inline propagate_to_outgoing_edges.
11110         (dom_opt_finalize_block): Rename to...
11111         (dom_opt_leave_block): ... this, place after called functions.
11112         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
11113         domwalk callback.
11114         (dse_enter_block, dse_record_phi): New.
11115         (dse_record_phis): Delete.
11116         (dse_finalize_block): Rename to...
11117         (dse_leave_block): ... this.
11118         (tree_ssa_dse): Simplify initialization of walk_data.
11119         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
11120         Adjust initialization of walk_data.
11121         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
11122         * tree-ssa-loop-phiopt.c (get_non_trapping):
11123         Adjust initialization of walk_data.
11124         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
11125         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
11126         it's not a domwalk callback.
11127         (uncprop_initialize_block): Rename to...
11128         (dse_enter_block): ... this, call uncprop_into_successor_phis.
11129         (dse_finalize_block): Rename to...
11130         (dse_leave_block): ... this.
11131         (tree_ssa_uncprop): Simplify initialization of walk_data.
11132         * Makefile.in: Adjust dependencies.
11134 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
11136         * arm.md (casesi): Fix test for Thumb1.
11137         (thumb1_casesi_internal_pic): Likewise.
11138         (thumb1_casesi_dispatch): Likewise.
11140 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
11142         * config/arm/arm-cores.def: Added core cortex-m0.
11143         * config/arm/arm-tune.md: Regenerated.
11144         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
11146 2009-06-26  DJ Delorie  <dj@redhat.com>
11148         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
11150         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
11151         the scheduler doesn't tag jump insns.
11153 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
11155         * c-decl.c (merge_decls): Re-indent.
11157 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
11159         PR c/39902
11160         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
11161         Special-case decimal float constants.
11163 2009-06-26  Richard Henderson  <rth@redhat.com>
11165         * function.h (struct function): Add cannot_be_copied_reason,
11166         and cannot_be_copied_set.
11167         * tree-inline.c (has_label_address_in_static_1): Rename from
11168         inline_forbidden_p_2; don't set inline_forbidden_reason here.
11169         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
11170         don't set inline_forbidden_reason.
11171         (copy_forbidden): New function, split out of inline_forbidden_p.
11172         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
11173         (inline_forbidden_p): Use copy_forbidden.
11174         (tree_versionable_function_p): Likewise.
11175         (inlinable_function_p): Merge into tree_inlinable_function_p.
11176         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
11177         * ipa-cp.c (ipcp_versionable_function_p): New function.
11178         (ipcp_cloning_candidate_p): Use it.
11179         (ipcp_node_modifiable_p): Likewise.
11181 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
11183         * builtins.c (expand_builtin_alloca): Handle builtin alloca
11184         that is marked not to be inlined. Remove flag_mudflap use.
11185         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
11186         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
11188 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
11190         PR bootstrap/40338
11191         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
11192         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
11194 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
11196         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
11197         shared libgcc.
11198         (__mingwthr_remove_key_dtor): Likewise.
11200 2009-06-26  Richard Guenther  <rguenther@suse.de>
11202         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
11204 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
11206         PR middle-end/40525
11207         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
11208         try the non-cond_exec path also.
11210 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11212         PR target/40468
11213         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
11214         (output_cbranch): Use new functions.
11215         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
11216         Likewise.
11218 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
11219             Pat Haugen  <pthaugen@us.ibm.com>
11220             Revital Eres <ERES@il.ibm.com>
11222         * config/rs6000/rs6000.c (print_operand): Correct lossage message
11223         for %c error.  Add %x support to print VSX registers as a unified
11224         register set, instead of separate float and altivec registers.
11225         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
11226         %y case, and add support for VSX pre-modify addresses.
11227         (output_toc): Add assert for CONST containing an integer constant
11228         in the PLUS case.
11229         (rs6000_adjust_cost): Add POWER7 support.
11230         (insn_must_be_first_in_group): Ditto.
11231         (insn_must_be_last_in_group): Ditto.
11232         (rs6000_emit_popcount): Ditto.
11233         (rs6000_vector_mode_supported_p): Ditto.
11235         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
11236         Change some of the functions called by macros to being called
11237         through a pointer, so debug functions can be inserted if
11238         -mdebug=addr or -mdebug=cost.
11239         (rs6000_preferred_reload_class_ptr): Ditto.
11240         (rs6000_secondary_reload_class_ptr): Ditto.
11241         (rs6000_secondary_memory_needed_ptr): Ditto.
11242         (rs6000_cannot_change_mode_class_ptr): Ditto.
11243         (rs6000_secondary_reload_inner): Ditto.
11244         (rs6000_legitimize_reload_address): Ditto.
11245         (rs6000_legitimize_reload_address_ptr): Ditto.
11246         (rs6000_mode_dependent_address): Ditto.
11247         (rs6000_mode_dependent_address_ptr): Ditto.
11249         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
11250         function to return true if the mode allows reg + integer
11251         addresses.
11252         (virtual_stack_registers_memory_p): New function to return true if
11253         the address refers to a virtual stack register.
11254         (rs6000_legitimate_offset_address_p): Move code to say whether a
11255         mode supports reg+int addressing to reg_offset_addressing_ok_p and
11256         call it.
11257         (rs6000_legitimate_address_p): Add checks for modes that only can
11258         do reg+reg addressing.  Start adding VSX support.
11259         (rs6000_legitimize_reload_address): Ditto.
11260         (rs6000_legitimize_address): Ditto.
11261         (rs6000_debug_legitimate_address_p): New debug functions for
11262         -mdebug=addr and -mdebug=cost.
11263         (rs6000_debug_rtx_costs): Ditto.
11264         (rs6000_debug_address_costs): Ditto.
11265         (rs6000_debug_adjust_cost): Ditto.
11266         (rs6000_debug_legitimize_address): Ditto.
11267         (rs6000_legitimize_reload_address_ptr): Point to call normal
11268         function or debug function.  Make functions called via pointer
11269         static.
11270         (rs6000_mode_dependent_address_ptr): Ditto.
11271         (rs6000_secondary_reload_class_ptr): Ditto.
11272         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
11273         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
11274         into a friendlier error.
11275         (rs6000_init_builtins): Add initial VSX support.
11276         (rs6000_adjust_cost): Fix some spacing issues.
11278         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
11279         (REG_CLASS_NAMES): Ditto.
11280         (REG_CLASS_CONTENTS): Ditto.
11281         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
11282         pointer, to add -mdebug=addr support.
11283         (CANNOT_CHANGE_MODE_CLASS): Ditto.
11284         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
11285         -mdebug=addr support.
11286         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
11287         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
11288         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
11290         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
11291         16-bit values.
11292         (bswapsi*): Set attribute types for load/store.  Add combiner
11293         patterns to eliminate zero extend on 64-bit.
11294         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
11295         stdbrx if the hardware supports those instructions.
11297 2009-06-25  Ian Lance Taylor  <iant@google.com>
11299         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
11300         (Link Options): Document -static-libstdc++.
11302 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11304         PR target/38731
11305         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
11306         DATA_ALIGNMENT instead.
11308 2009-06-25  Richard Guenther  <rguenther@suse.de>
11310         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
11311         indirect references against the callused/escaped solutions.
11312         (call_may_clobber_ref_p_1): Likewise.
11314 2009-06-25  Martin Jambor  <mjambor@suse.cz>
11316         PR tree-optimization/40493
11317         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
11318         (enum unscalarized_data_handling): New type.
11319         (handle_unscalarized_data_in_subtree): Return what has been done.
11320         (load_assign_lhs_subreplacements): Handle left flushes differently.
11321         (sra_modify_assign): Use unscalarized_data_handling, simplified
11322         condition determining whether to remove the statement.
11324 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
11326         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
11327         excerpt - @ should be doubled for texinfo.
11329 2009-06-24  Ian Lance Taylor  <iant@google.com>
11331         * config/arc/arc.c: Include "df.h".
11332         (arc_attribute_table): Make static.  Move higher in file.
11333         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
11334         (output_shift): Initialize n later to avoid warning.
11335         * config/arm/arm.c (arm_attribute_table): Make static.  Move
11336         higher in file.
11337         * config/avr/avr.c (avr_attribute_table): Make static.  Move
11338         higher in file.
11339         (reg_class_tab): Change array type from int to enum reg_class.
11340         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
11341         LABEL_REF.
11342         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
11343         (lshrhi3_out): Likewise.
11344         (class_likely_spilled_p): Change return type to bool.
11345         (avr_rtx_costs): Use local code variable with enum type.
11346         * config/avr/avr.md (movmemhi): Use add_reg_note.
11347         (andhi3, andsi3): Don't use AS2 with "and".
11348         (iorhi3, iorsi3): Don't use AS2 with "or".
11349         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
11350         * config/crx/crx.c: Include "df.h".
11351         (crx_attribute_table): Make static.
11352         * config/m32r/m32r.c: Include "df.h".
11353         (m32r_attribute_table): Make static.  Move higher in file.
11354         (pop): Use add_reg_note.
11355         (block_move_call): Change 0 to LCT_NORMAL in function call.
11356         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
11357         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
11358         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
11359         declare, not just when TREE_CODE is defined.
11360         * config/m68hc11/m68hc11.c: Include "expr.h".
11361         (m68hc11_attribute_table): Make static.  Move higher in file.
11362         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
11363         function call.
11364         (m68hc11_register_indirect_p): Likewise.
11365         (m68hc11_function_arg_padding): Change return type to enum
11366         direction.
11367         (emit_move_after_reload): Use add_reg_note.
11368         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
11369         (m68hc11_split_logical): Likewise.
11370         (m68hc11_rtx_costs): Add local code_and outer_code variables with
11371         enum type.
11372         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
11373         to VOIDmode in function call.
11374         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
11375         tree is defined.
11376         (m68hc11_split_logical): Update declaration.
11377         (m68hc11_function_arg_padding): Update declaration.
11378         * config/mcore/mcore.c (regno_reg_class): Change form array of int
11379         to array of enum reg_class.
11380         (mcore_attribute_table): Make static.  Move higher in file.
11381         (mcore_rtx_costs): Add cast to enum type.
11382         * config/mcore/mcore.h (regno_reg_class): Update declaration.
11383         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
11384         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
11385         in file.
11386         * config/sh/predicates.md (trapping_target_operand): Rename and to
11387         and_expr.
11388         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
11389         higher in file.
11390         * config/spu/spu.c (spu_attribute_table): Make static.  Move
11391         higher in file.
11392         * config/v850/v850.c (v850_attribute_table): Make static.  Move
11393         higher in file.
11394         (v850_rtx_costs): Use local code with enum type.
11395         (expand_epilogue): Add cast.
11396         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
11398 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
11400         PR target/40515
11401         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
11402         -m2a-single-only and -m2a-nofpu.
11403         * config/sh/sh.opt: Document m2a generates FPU code.
11405 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
11407         * defaults.h (CAN_ELIMINATE): Provide default.
11408         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
11409         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
11410         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
11411         * config/spu/spu.h (CAN_ELIMINATE): Delete.
11412         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
11413         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
11414         * config/cris/cris.h (CAN_ELIMINATE): Delete.
11415         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
11416         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
11417         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
11419 2009-06-24  DJ Delorie  <dj@redhat.com>
11421         * mep-ext-cop.cpu: Fix copyright notice.
11422         * mep-default: Fix copyright notice.
11423         * mep-core: Fix copyright notice.
11424         * mep: Fix copyright notice.
11425         * mep-ivc2: Fix copyright notice.
11426         * mep-c5: Fix copyright notice.
11428 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
11430         * doc/contrib.texi (Contributors):
11432 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
11434         PR middle-end/40501
11435         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
11436         src and dst operands if necessary.
11438 2009-06-23  DJ Delorie  <dj@redhat.com>
11440         Add MeP port.
11441         * config.gcc: Add mep support.
11442         * recog.c: Resurrect validate_replace_rtx_subexp().
11443         * recog.h: Likewise.
11444         * config/mep/: Add new port:
11445         * config/mep/constraints.md: New file.
11446         * config/mep/default.h: New file.
11447         * config/mep/intrinsics.h: New file.
11448         * config/mep/intrinsics.md: New file.
11449         * config/mep/ivc2-template.h: New file.
11450         * config/mep/mep-c5.cpu: New file.
11451         * config/mep/mep-core.cpu: New file.
11452         * config/mep/mep-default.cpu: New file.
11453         * config/mep/mep-ext-cop.cpu: New file.
11454         * config/mep/mep-intrin.h: New file.
11455         * config/mep/mep-ivc2.cpu: New file.
11456         * config/mep/mep-lib1.asm: New file.
11457         * config/mep/mep-lib2.c: New file.
11458         * config/mep/mep-pragma.c: New file.
11459         * config/mep/mep-protos.h: New file.
11460         * config/mep/mep-tramp.c: New file.
11461         * config/mep/mep.c: New file.
11462         * config/mep/mep.cpu: New file.
11463         * config/mep/mep.h: New file.
11464         * config/mep/mep.md: New file.
11465         * config/mep/mep.opt: New file.
11466         * config/mep/predicates.md: New file.
11467         * config/mep/t-mep: New file.
11469 2009-06-23  Ian Lance Taylor  <iant@google.com>
11471         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
11472         from loose_warn into c_loose_warn and from strict_warn into
11473         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
11474         --enable-build-with-cxx.  Set and substitute
11475         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
11476         * Makefile.in (CXXFLAGS): New variable.
11477         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
11478         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
11479         the default is the same as $(STRICT_WARN).
11480         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
11481         (CXX): New variable.
11482         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
11483         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
11484         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
11485         (HOST_LIBS): New variable.
11486         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
11487         (ALL_CXXFLAGS): New variable.
11488         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
11489         * doc/install.texi (Configuration): Document
11490         --enable-build-with-cxx, --with-stage1-ldflags,
11491         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
11492         * configure: Rebuild.
11494 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11496         * config/arm/arm.c (arm_override_options): Fix braces and formatting
11497         from previous commit.
11499 2009-06-23  Ian Lance Taylor  <iant@google.com>
11501         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
11503 2009-06-23  Ian Lance Taylor  <iant@google.com>
11505         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
11506         with ATTRIBUTE_UNUSED.
11508 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11509             Pat Haugen  <pthaugen@us.ibm.com>
11510             Revital Eres  <eres@il.ibm.com>
11512         * config.in (HAVE_AS_POPCNTD): Add default definition.
11513         (HAVE_AS_LWSYNC): Ditto.
11515         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
11516         release number.
11517         (gcc_cv_as_powerpc_cmpb): Ditto.
11518         (gcc_cv_as_powerpc_dfp): Ditto.
11519         (gcc_cv_as_powerpc_vsx): Ditto.
11520         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
11521         supporting the popcntd/lwsync instructions.
11522         (gcc_cv_as_powerpc_lwsync): Ditto.
11523         * configure: Regenerate.
11525         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
11526         -mcpu=native and -mcpu=power7.
11527         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
11529         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
11530         a variable instead of a mask to reduce the number of mask bits.
11531         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
11532         (-mbit-word): Ditto.
11533         (-mregnames): Ditto.
11534         * config/rs6000/rs6000.opt (-mupdate): Ditto.
11535         (-mfused-madd): Ditto.
11537         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
11538         2.06 instructions.
11539         (-mvsx): New switch for VSX instructions.
11540         (-misel): Move from a variable to a mask to allow it to be set by
11541         -mcpu=.
11543         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
11544         function declaration to an array declaration.
11545         (rs6000_hard_regno_nregs): New external array declaration.
11547         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
11548         files included by rs6000.md.
11550         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
11551         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
11553         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
11554         a target mask.
11555         (rs6000_debug_reg): New -mdebug= variables.
11556         (rs6000_debug_addr): Ditto.
11557         (rs6000_debug_cost): Ditto.
11558         (rs6000_pmode): New variable to hold Pmode.
11559         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
11560         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
11561         calculated at compiler start.
11562         (rs6000_hard_regno_nregs): Change function to an array which holds
11563         HARD_REGNO_NREGS calculated at compiler start.
11564         (rs6000_explicit_options): Delete isel field.
11565         (rs6000_vector_unit): New array to hold which vector unit
11566         supports arithmetic options for a given type.
11567         (rs6000_vector_mem): New array to hold which vector unit supports
11568         memory reference operations for a given type.
11569         (rs6000_vector_align): New array to given the alignment of each
11570         vector type.
11571         (power7_cost): New basic costs for power7.
11572         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
11573         (rs6000_hard_regno_nregs_internal): New function, moved from
11574         HARD_REGNO_NREGS, to calculate the number of registers each hard
11575         register takes for each type.
11576         (rs6000_debug_reg_print): New function for -mdebug=reg support.
11577         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
11578         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
11579         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
11580         unit information here so it is calculated once at compiler startup
11581         time.
11582         (rs6000_override_options): Make -misel a target mask.  Add more
11583         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
11584         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
11585         -mdebug=cost.
11586         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
11587         (rs6000_handle_option): Move -misel from variable to target mask.
11588         (rs6000_builtin_mask_for_load): Add VSX support.
11589         (rs6000_conditional_register_usage): Ditto.
11590         (USE_ALTIVEC_FOR_ARG_P): Ditto.
11591         (function_arg_boundary): Ditto.
11592         (rs6000_expand_builtin): Ditto.
11593         (def_builtin): Make abort message a little friendlier.
11594         (rs6000_emit_int_cmove): Add support for 64-bit isel.
11596         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
11597         assembler support the popcntd instruction instead of a vsx
11598         instruction to enable power7 support.
11599         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
11600         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
11601         option to the assembler if -mcpu=native.
11602         (ASM_CPU_NATIVE_SPEC): Ditto.
11603         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
11604         ISA 2.06 features.
11605         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
11606         the lwsync instruction.
11607         (enum processor_type): Add PROCESSOR_POWER7.
11608         (rs6000_debug_reg): New -mdebug= options.
11609         (rs6000_debug_addr): Ditto.
11610         (rs6000_debug_cost): Ditto.
11611         (rs6000_isel): Delete.
11612         (enum rs6000_vector): New enum to say what vector unit we have.
11613         (VECTOR_UNIT_*): New macros to say which vector unit has
11614         arithmetic operations for a given type.
11615         (VECTOR_MEM_*): New macros to say which vector unit has memory
11616         operations for a given type.
11617         (TARGET_LDBRX): Whether the machine supports the ldbrx
11618         instruction.
11619         (TARGET_ISEL): Delete, -misel moved to be a mask.
11620         (TARGET_ISEL64): New macro for 64-bit isel support.
11621         (UNITS_PER_VSX_WORD): New macro.
11622         (POINTER_SIZE): Move to be an external variable, rather than
11623         calculating whether we are generating 32 ot 64-bit code.
11624         (Pmode): Ditto.
11625         (STACK_BOUNDARY): Add VSX support.
11626         (LOCAL_ALIGNMENT): Ditto.
11627         (SLOW_UNALIGNED_ACCESS): Ditto.
11628         (VSX_REGNO_P): New macro for VSX support.
11629         (VFLOAT_REGNO_P): Ditto.
11630         (VINT_REGNO_P): Ditto.
11631         (VLOGICAL_REGNO_P): Ditto.
11632         (VSX_VECTOR_MODE): Ditto.
11633         (VSX_SCALAR_MODE): Ditto.
11634         (VSX_MODE): Ditto.
11635         (VSX_MOVE_MODE): Ditto.
11636         (VSX_REG_CLASS_P): Ditto.
11637         (HARD_REGNO_NREGS): Instead of calling a function, use an array
11638         lookup.
11639         (UNITS_PER_SIMD_WORD): Add VSX support.
11640         (MODES_TIEABLE_P): Ditto.
11641         (STARTING_FRAME_OFFSET): Ditto.
11642         (STACK_DYNAMIC_OFFSET): Ditto.
11643         (EPILOGUE_USES): Ditto.
11644         (REGNO_REG_CLASS): Move to array lookup.
11645         (CLASS_MAX_NREGS): Ditto.
11646         (rs6000_vector_reg_class): Add declaration.
11647         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
11648         overlap with the floating point and Altivec registers.
11650         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
11652         * config/rs6000/driver-rs6000.c (asm_names): New static array to
11653         give the appropriate asm switches if -mcpu=native.
11654         (host_detect_local_cpu): Add support for "asm".
11655         (host_detect_local_cpu): Follow GNU code guidelines for name.
11657         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
11658         -mbit-word to a variable instead of being a target mask.
11660         * config/rs6000/sync.md (lwsync): If the assembler supports it,
11661         emit the lwsync instruction instead of emitting the instruction as
11662         an integer constant.
11664         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
11665         fixuns_trundfsi2, move expander into rs6000.md.
11667         * config/rs6000/rs6000.md (cpu): Add power7.
11668         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
11669         (logical predicate patterns): Change the single instruction
11670         primitives that set CR0 to be fast_compare instead of compare.
11671         (norsi*): Ditto.
11672         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
11673         (popcntddi2): Ditto.
11674         (popcount<mode>): Ditto.
11675         (floating multiply/add insns): Name the floating point
11676         multiply/add insns.
11677         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
11678         (isel_unsigned_<mode>): Ditto.
11679         (fixuns_trundfsi2): Move expander here from spe.md.
11680         (smindi3): Define if we have -misel on 64-bit systems.
11681         (smaxdi3): Ditto.
11682         (umindi3): Ditto.
11683         (umaxdi3): Ditto.
11685 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
11687         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
11688         extra_objs.
11689         * config/avr/avr.c (avr_current_device): New variable.
11690         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
11691         (avr_arch, mcu_type_s): Move to avr.h.
11692         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
11693         default_data_section_start fields.
11694         (avr_arch): Moved from avr.c.
11695         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
11696         library_name fields.
11697         (avr_current_device, avr_mcu_types, avr_arch_types,
11698         avr_device_to_arch, avr_device_to_data_start,
11699         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
11700         (EXTRA_SPEC_FUNCTIONS): Define.
11701         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
11702         options mapping. Use device_to_arch and device_to_data_start insted.
11703         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
11704         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
11705         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
11706         * config/avr/driver-avr.c: New file.
11707         * config/avr/avr-devices.c: New file.
11709 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
11711         * var-tracking.c (unshare_variable): Force initialized to
11712         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
11713         (set_variable_part): Likewise.
11714         (struct variable_union_info): Remove pos_src field.
11715         (vui_vec, vui_allocated): New variables.
11716         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
11717         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
11718         == 1 use a simpler sorting algorithm.  Compute pos field right
11719         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
11720         Avoid quadratic comparison if !flag_var_tracking_uninit.
11721         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
11722         unshare_variable unconditionally.
11723         (dataflow_set_different_2): Removed.
11724         (dataflow_set_different): Don't traverse second hash table.
11725         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
11726         unconditionally to var_reg_set or var_mem_set.
11727         (emit_notes_in_bb): Likewise.
11728         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
11729         unshare_variable.
11730         (emit_note_insn_var_location): Don't set initialized to
11731         VAR_INIT_STATUS_INITIALIZED early.
11732         (vt_finalize): Free vui_vec if needed, clear vui_vec and
11733         vui_allocated.
11734         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
11736         * tree-object-size.c (addr_object_size): Instead of checking
11737         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
11738         are no FIELD_DECLs following it.
11740 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
11742         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
11743         order to match bswaps with signed source operands.
11745 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11747         * sdbout.c (sdbout_one_type): Fix braces in switch.
11749 2009-06-23  Richard Guenther  <rguenther@suse.de>
11751         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
11752         member.
11753         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
11754         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
11755         var_callused, callused_tree, var_storedanything, storedanything_tree,
11756         var_integer, integer_tree): Remove global variables.
11757         (new_var_info): Do not pass new id, append the new var to the
11758         global variable vector.
11759         (do_ds_constraint): Use is_global_var member of the variable-info.
11760         (new_scalar_tmp_constraint_exp): Adjust.
11761         (create_function_info_for): Likewise.
11762         (create_variable_info_for): Likewise.
11763         (find_what_var_points_to): Remove dead code.
11764         (init_base_vars): Simplify.
11765         (compute_points_to_sets): Adjust.
11767 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
11769         * combine.c (try_combine): Dump information about the insns we're
11770         combining.
11772 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
11774         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
11775         check when calling force_to_mode on TRUNCATE's operand.
11777 2009-06-22  Ian Lance Taylor  <iant@google.com>
11779         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
11781 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
11783         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
11785 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11787         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
11788         override library linkage flags such as -static-libgcc or
11789         -shared-libgcc.
11791 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
11793         * config/m68k/m68k-devices.def: Add line for MCF5221x.
11795 2009-06-22  Ian Lance Taylor  <iant@google.com>
11797         * config/linux.opt: Put mglibc ahead of muclibc.
11799         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
11800         for duplicate decls.
11802 2009-06-22  Matthias Klose  <doko@ubuntu.com>
11804         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
11806 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
11808         PR objc/28050
11809         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
11810         instead of NULL if a parser error occurs.
11812 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11814         * dwarf2out.c (dwarf2_debug_hooks): Initialize
11815         non-DWARF2_DEBUGGING_INFO version.
11817 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
11819         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
11820         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
11822         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
11823         (LIBGCC2_TF_CEXT): Define.
11824         (TF_SIZE): Define.
11826 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11828         PR target/40463
11829         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
11831 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11833         * config/arm/arm.c (arm_override_options): Disable
11834         -mcaller-super-interworking and -mcallee-super-interworking.
11835         * doc/invoke.texi (ARM Options): Document this.
11837 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
11839         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
11840         * config/arm/constraints.md (j): New constraint for movw operands.
11841         (N): Remove thumb2 meaning.
11842         * config/arm/arm.md (*arm_movw): Delete.
11843         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
11844         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
11845         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
11847 2009-06-22  Martin Jambor  <mjambor@suse.cz>
11849         PR tree-optimization/40492
11850         * tree-sra.c (sra_modify_assign): Pass zero offsets to
11851         build_ref_for_offset.
11853 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
11855         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
11856         JUMP_TABLE_DATA_P predicates where applicable.
11857         * auto-inc-dec.c: Ditto.
11858         * builtins.c: Ditto.
11859         * caller-save.c: Ditto.
11860         * calls.c: Ditto.
11861         * cfgcleanup.c: Ditto.
11862         * cfglayout.c: Ditto.
11863         * cfgrtl.c: Ditto.
11864         * combine.c: Ditto.
11865         * combine-stack-adj.c: Ditto.
11866         * cse.c: Ditto.
11867         * cselib.c: Ditto.
11868         * dbxout.c: Ditto.
11869         * df-scan.c: Ditto.
11870         * dse.c: Ditto.
11871         * dwarf2asm.c: Ditto.
11872         * dwarf2out.c: Ditto.
11873         * emit-rtl.c: Ditto.
11874         * except.c: Ditto.
11875         * explow.c: Ditto.
11876         * expmed.c: Ditto.
11877         * expr.c: Ditto.
11878         * final.c: Ditto.
11879         * function.c: Ditto.
11880         * fwprop.c: Ditto.
11881         * gcse.c: Ditto.
11882         * genpreds.c: Ditto.
11883         * genrecog.c: Ditto.
11884         * ifcvt.c: Ditto.
11885         * ira-costs.c: Ditto.
11886         * ira-lives.c: Ditto.
11887         * jump.c: Ditto.
11888         * loop-iv.c: Ditto.
11889         * lower-subreg.c: Ditto.
11890         * modulo-sched.c: Ditto.
11891         * optabs.c: Ditto.
11892         * postreload.c: Ditto.
11893         * print-rtl.c: Ditto.
11894         * recog.c: Ditto.
11895         * reginfo.c: Ditto.
11896         * regmove.c: Ditto.
11897         * reload1.c: Ditto.
11898         * reload.c: Ditto.
11899         * reorg.c: Ditto.
11900         * rtlanal.c: Ditto.
11901         * rtl.c: Ditto.
11902         * sched-vis.c: Ditto.
11903         * sdbout.c: Ditto.
11904         * sel-sched-ir.c: Ditto.
11905         * simplify-rtx.c: Ditto.
11906         * targhooks.c: Ditto.
11907         * var-tracking.c: Ditto.
11908         * vmsdbgout.c: Ditto.
11910 2009-06-22  Matthias Klose  <doko@ubuntu.com>
11912         * Makefile.in (install-plugin): Always use DESTDIR.
11914 2009-06-22  Olivier Hainque  <hainque@adacore.com>
11916         * config/pa/pa.c (output_call): Don't optimize post call jumps
11917         into return address adjustments if the call may throw.
11919 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
11921         * arm.c (thumb1_output_casesi): New function.
11922         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
11923         optimizing for size or PIC.
11924         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
11925         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
11926         (casesi): Handle Thumb-1 when optimizing for size or PIC.
11927         (thumb1_casesi_internal_pic): New expand rule.
11928         (thumb1_casesi_dispatch): New pattern.
11929         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
11930         thumb-1 mode.
11931         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
11932         in the text seciton when PIC or optimizing for size.
11933         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
11934         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
11935         preservation properties of code.
11936         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
11937         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
11938         (__gnu_thumb1_case_si): New function.
11939         * t-arm (LIB1ASMSRC): Define here.
11940         (LIB1ASMFUNCS): Add some common functions.
11941         * t-arm-elf (LIB1ASMSRC): Delete.
11942         (LIB1ASMFUNCS): Append to existing set.
11943         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
11944         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
11945         * t-symbian (LIB1ASMFUNCS): Likewise.
11946         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
11947         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
11949 2009-06-21  Richard Guenther  <rguenther@suse.de>
11951         PR tree-optimization/38729
11952         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
11953         to loops with a single exit if -fno-expensive-optimizations.
11955 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
11957         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
11958         (dataflow_set): Change vars type from htab_t to shared_hash.
11959         (shared_hash_pool, empty_shared_hash): New variables.
11960         (vars_clear): Removed.
11961         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
11962         shared_hash_find_slot_unshare, shared_hash_find_slot,
11963         shared_hash_find_slot_noinsert, shared_hash_find): New
11964         static inlines.
11965         (shared_hash_unshare, shared_hash_destroy): New functions.
11966         (unshare_variable): Unshare set->vars if shared, use
11967         shared_hash_htab.
11968         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
11969         (get_init_value, find_src_set_src, dump_dataflow_set,
11970         clobber_variable_part, emit_notes_for_differences): Use
11971         shared_hash_htab.
11972         (dataflow_set_init): Remove second argument, set vars to
11973         empty_shared_hash instead of creating a new htab.
11974         (dataflow_set_clear): Call shared_hash_destroy and set vars
11975         to empty_shared_hash instead of calling vars_clear.
11976         (dataflow_set_copy): Don't call vars_copy, instead just share
11977         the src htab with dst.
11978         (variable_union): Use shared_hash_*, use initially NO_INSERT
11979         lookup if set->vars is shared.  Don't keep slot cleared before
11980         calling unshare_variable.  Unshare set->vars if needed.
11981         Even ->refcount == 1 vars must be unshared if set->vars is shared
11982         and var needs to be modified.
11983         (variable_canonicalize): New function.
11984         (dataflow_set_union): If dst->vars is empty, just share src->vars
11985         with dst->vars and traverse with variable_canonicalize to canonicalize
11986         and unshare what is needed.
11987         (dataflow_set_different): If old_set and new_set use the same shared
11988         htab, they aren't different.  If number of htab elements is different,
11989         htabs are different.  Use shared_hash_*.
11990         (dataflow_set_destroy): Call shared_hash_destroy instead of
11991         htab_delete.
11992         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
11993         second argument to dataflow_set_init.
11994         (vt_initialize): Likewise.  Initialize shared_hash_pool and
11995         empty_shared_hash, move bb in/out initialization afterwards.
11996         Use variable_htab_free instead of NULL as changed_variables del hook.
11997         (variable_was_changed): Change type of second argument to pointer to
11998         dataflow_set.  When inserting var into changed_variables, bump
11999         refcount.  Unshare set->vars if set is shared htab and slot needs to
12000         be cleared.
12001         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
12002         lookup if set->vars is shared.  Unshare set->vars if needed.
12003         Even ->refcount == 1 vars must be unshared if set->vars is shared
12004         and var needs to be modified.  Adjust variable_was_changed caller.
12005         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
12006         vars must be unshared if set->vars is shared and var needs to be
12007         modified.  Adjust variable_was_changed caller.
12008         (emit_note_insn_var_location): Don't pool_free var.
12009         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
12010         instead of 1.
12011         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
12012         free_alloc_pool on shared_hash_pool.
12014 2009-06-20  Anthony Green  <green@moxielogic.com>
12016         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
12017         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
12019 2009-06-20  Richard Guenther  <rguenther@suse.de>
12021         * tree-ssa-structalias.c (find_func_aliases): For memset use
12022         a constraint from NULL if we memset to zero.
12023         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
12024         we explicitly handle that do not read from memory.
12025         (call_may_clobber_ref_p_1): Properly handle builtins that may
12026         set errno.
12028 2009-06-20  Richard Guenther  <rguenther@suse.de>
12030         PR tree-optimization/40495
12031         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
12032         (new_scalar_tmp_constraint_exp): New function.
12033         (process_constraint): Do not create temporary decls.
12034         (process_all_all_constraints): Likewise.
12035         (handle_const_call): Likewise.
12036         (create_function_info_for): Do not set decl.
12038 2009-06-19  Ian Lance Taylor  <iant@google.com>
12040         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
12041         (rs6000_attribute_table): Make static; move before use.
12043 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
12045         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
12046         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
12047         Propagate the TREE_READONLY flag without overwriting it.
12048         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
12049         Propagate the TREE_READONLY flag onto the result.
12050         (process_call_operands): Move around.  Use correct constant value.
12052 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12054         PR target/40482
12055         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
12056         * config/arm/arm.md: Likewise.
12058 2009-06-19  Ian Lance Taylor  <iant@google.com>
12060         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
12061         to GIMPLE_ERROR_MARK.
12063         * c-typeck.c (build_conditional_expr): Add op1_original_type and
12064         op2_original_type parameters.  Warn about using different enum types.
12065         * c-parser.c (c_parser_conditional_expression): Pass original
12066         types to build_conditional_expr.
12067         * c-tree.h (build_conditional_expr): Update declaration.
12069 2009-06-19  Ian Lance Taylor  <iant@google.com>
12071         * config/i386/i386.c (ix86_function_specific_save): Test that
12072         fields match values, rather than testing the values are in a
12073         certain range.
12075 2009-06-19  Richard Guenther  <rguenther@suse.de>
12077         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
12078         ADDR_EXPR pointers.
12079         (ptr_derefs_may_alias_p): Likewise.
12080         (ptr_deref_may_alias_ref_p_1): New function.
12081         (ptr_deref_may_alias_ref_p): Likewise.
12082         (ref_maybe_used_by_call_p_1): Handle builtins that are not
12083         covered by looking at the ESCAPED solution.
12084         (call_may_clobber_ref_p_1): Likewise.
12085         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
12086         Handle NULL_TREE offset.  Do not produce redundant constraints.
12087         (process_all_all_constraints): New helper function.
12088         (do_structure_copy): Use it.
12089         (handle_lhs_call): Likewise.
12090         (find_func_aliases): Handle some builtins with pointer arguments
12091         and/or return values explicitly.
12093 2009-06-19  Ian Lance Taylor  <iant@google.com>
12095         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
12097 2009-06-19  Ian Lance Taylor  <iant@google.com>
12099         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
12101 2009-06-19  Ian Lance Taylor  <iant@google.com>
12103         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
12104         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
12105         version.
12107         * c-decl.c (finish_decl): If -Wc++-compat, warn about
12108         uninitialized const.
12110 2009-06-19  Ian Lance Taylor  <iant@google.com>
12112         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
12113         all uses.
12115         * c-decl.c (in_struct, struct_types): Remove.
12116         (struct c_binding): Add in_struct field.
12117         (c_binding_ptr): Define type, along with VEC.
12118         (struct c_struct_parse_info): Define.
12119         (struct_parse_info): New static variable.
12120         (bind): Initialize in_struct field.
12121         (start_struct): Remove enclosing_in_struct and
12122         enclosing_struct_types parameters.  Add
12123         enclosing_struct_parse_info parameter.  Change all callers.  Set
12124         struct_parse_info rather than in_struct and struct_types.
12125         (grokfield): If -Wc++-compat and there is a symbol binding for the
12126         field name, set the in_struct flag and push it on the
12127         struct_parse_info->fields vector.
12128         (warn_cxx_compat_finish_struct): New static function.
12129         (finish_struct): Remove enclosing_in_struct and
12130         enclosing_struct_types parameters.  Add
12131         enclosing_struct_parse_info parameter.  Change all callers.  Don't
12132         set C_TYPE_DEFINED_IN_STRUCT here.  Call
12133         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
12134         parameter.  Only push on struct_types if warn_cxx_compat.
12135         (finish_enum): Only push on struct_types if warn_cxx_compat.
12136         (declspecs_add_type): Add loc parameter.  Change all callers.
12137         Change all error calls to error_at.  Pass loc, not input_location,
12138         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
12139         defined in a struct.  If -Wc++-compat and parsing a struct, record
12140         that a typedef name was used.
12141         * c-parser.c (c_parser_declspecs): Get location to pass to
12142         declspecs_add_type.
12143         (c_parser_struct_or_union_specifier): Update calls to start_struct
12144         and finish_struct.
12145         * c-tree.h (struct c_struct_parse_info): Declare.
12146         (finish_struct, start_struct): Update declarations.
12147         (declspecs_add_type): Update declaration.
12149 2009-06-19  Ian Lance Taylor  <iant@google.com>
12151         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
12152         variable with an anonymous type.
12154 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
12156         * see.c: Remove for real.
12158 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
12160         * optabs.h (enum optab_index): Add new OTI_significand.
12161         (significand_optab): Define corresponding macro.
12162         * optabs.c (init_optabs): Initialize significand_optab.
12163         * genopinit.c (optabs): Implement significand_optab using
12164         significand?f2 patterns.
12165         * builtins.c (expand_builtin_mathfn): Handle
12166         BUILT_IN_SIGNIFICAND{,F,L}.
12167         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
12168         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
12170         * config/i386/i386.md (significandxf2, significand<mode>2): New
12171         expanders to implement significandf, significand and significandl
12172         built-ins as inline x87 intrinsics.
12174 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
12176         * config/avr/avr.c (avr_override_options): Remove setting value of
12177         PARAM_INLINE_CALL_COST.
12179 2009-06-18  Richard Henderson  <rth@redhat.com>
12181         PR 40488
12182         * tree-pass.h (TDF_ASMNAME): New.
12183         * tree-dump.c (dump_options): Add asmname.
12184         * doc/invoke.texi: Document it.
12186         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
12187         (dump_decl_name): ...here.
12188         (dump_function_name): New flags arg; mind TDF_ASMNAME.
12189         (dump_generic_node): Update dump_function_name calls.
12190         (print_call_name): New flags arg; update all dump calls.
12191         * diagnostic.h (print_call_name): Update.
12192         * gimple-pretty-print.c (dump_gimple_call): Update.
12194 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
12196         PR target/40470
12197         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
12199 2009-06-18  Diego Novillo  <dnovillo@google.com>
12201         * doc/plugins.texi: Document plugin_is_GPL_compatible.
12202         * plugin.c (str_license): Declare.
12203         (try_init_one_plugin): Assert that the symbol
12204         'plugin_is_GPL_compatible' exists.
12206 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
12208         * see.c: Remove.
12209         * Makefile.in (OBJS-common): Remove see.o.
12210         (see.o): Remove.
12211         * common.opt (fsee): Mark as preserved for backward compatibility.
12212         * opts.c (common_handle_option): Add OPT_fsee to the backward
12213         compatibility section.
12214         * passes.c (init_optimization_passes, pass_see): Remove pass.
12215         * timevar.def (TV_SEE): Remove.
12216         * tree-pass.h (pass_see): Remove declaration.
12217         * doc/invoke.texi (-fsee): Remove documentation.
12219 2009-06-18  Martin Jambor  <mjambor@suse.cz>
12221         * tree-sra.c: Include statistics.h
12222         (sra_stats): New variable.
12223         (sra_initialize): Clear sra_stats.
12224         (create_access_replacement): Increment sra_stats.replacements.
12225         (get_access_replacement): Do not return twice.
12226         (analyze_all_variable_accesses): Increment statistics counter by the
12227         number of scalarized aggregates.
12228         (generate_subtree_copies): Increment sra_stats.subtree_copies.
12229         (sra_modify_expr): Increment sra_stats.exprs.
12230         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
12231         (sra_modify_assign): Increment sra_stats.exprs,
12232         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
12233         (perform_intra_sra): Update statistics counters.
12234         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
12236 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
12238         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
12239         (arm_scalar_mode_supported_p): New function.
12241 2009-06-18  Paul Brook  <paul@codesourcery.com>
12242             Sandra Loosemore  <sandra@codesourcery.com>
12244         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
12245         (__extendhfsf2, __truncsfhf2): Define.
12246         * config/arm/fp16.c: New file.
12247         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
12248         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
12250 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
12252         * doc/extend.texi (Half-Precision): New section.
12253         * doc/invoke.texi (Option Summary): List -mfp16-format.
12254         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
12255         * config/arm/arm.opt (mfp16-format=): New.
12256         * config/arm/arm.c: Include intl.h.
12257         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
12258         (TARGET_INVALID_RETURN_TYPE): Redefine.
12259         (TARGET_PROMOTED_TYPE): Redefine.
12260         (TARGET_CONVERT_TO_TYPE): Redefine.
12261         (arm_fp16_format): Define.
12262         (all_fpus): Add entry for neon-fp16.
12263         (fp_model_for_fpu): Likewise.
12264         (struct fp16_format): Declare.
12265         (all_fp16_formats): Define.
12266         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
12267         functions.
12268         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
12269         and no ldrh.
12270         (arm_legitimate_index_p): Treat HFmode like HImode.
12271         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
12272         (coproc_secondary_reload_class): Special-case HFmode.
12273         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
12274         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
12275         (arm_init_fp16_builtins): New.
12276         (arm_init_builtins): Call it.
12277         (arm_invalid_parameter_type): New.
12278         (arm_invalid_return_type): New.
12279         (arm_promoted_type): New.
12280         (arm_convert_to_type).
12281         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
12282         format.
12283         (arm_emit_fp16_const): New function.
12284         (arm_mangle_type): Mangle __fp16 as "Dh".
12285         * config/arm/arm.h (TARGET_VFPD32): Make it know about
12286         FPUTYPE_NEON_FP16.
12287         (TARGET_NEON_FP16): New.
12288         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
12289         (enum fputype): Add FPUTYPE_NEON_FP16.
12290         (enum arm_fp16_format_type): Declare.
12291         (arm_fp16_format): Declare.
12292         (LARGEST_EXPONENT_IS_NORMAL): Define.
12293         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
12294         * config/arm/arm-modes.def (HFmode): Define.
12295         * config/arm/vfp.md: (*movhf_vfp): New.
12296         (extendhfsf2): New.
12297         (truncsfhf2): New.
12298         * config/arm/arm.md: (fpu): Add neon_fp16.
12299         (floatsihf2, floatdihf2): New.
12300         (fix_trunchfsi2, fix_trunchfdi2): New.
12301         (truncdfhf2): New.
12302         (extendhfdf2): New.
12303         (movhf): New.
12304         (*arm32_movhf): New.
12305         (*thumb1_movhf): New.
12306         (consttable_2): Add check for HFmode constants.
12307         (consttable_4): Handle HFmode constants.
12309 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
12311         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
12313 2009-06-17  Olivier Hainque  <hainque@adacore.com>
12315         * collect2.c (main): Use CONST_CAST2 to perform char ** to
12316         const char ** conversion in AIX specific section.
12318 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
12320         * config/i386/i386.c (ix86_special_builtin_type): Remove
12321         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
12322         (bdesc_special_args): Updated.
12323         (ix86_init_mmx_sse_builtins): Likewise.
12324         (ix86_expand_special_args_builtin): Likewise.
12326 2009-06-17  Richard Henderson  <rth@redhat.com>
12328         * tree-pretty-print.c (maybe_dump_asm_name): New.
12329         (dump_decl_name): Use it.
12330         (PRINT_FUNCTION_NAME): Merge into...
12331         (dump_function_name): ... here.  Use maybe_dump_asm_name.
12333 2009-06-17  Cary Coutant  <ccoutant@google.com>
12335         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
12336         Change caller.
12337         * debug.c (struct gcc_debug_hooks): Change placeholder for
12338         source_line hook.
12339         (debug_nothing_int_charstar_int): Replaced by...
12340         (debug_nothing_int_charstar_int_bool): ...this.
12341         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
12342         source_line prototype.
12343         (debug_nothing_int_charstar_int): Replaced by...
12344         (debug_nothing_int_charstar_int_bool): ...this.
12345         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
12346         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
12347         Output is_stmt operand when necessary.
12348         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
12349         (notice_source_line): Add is_stmt parameter.
12350         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
12351         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
12352         Change callers.
12353         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
12354         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
12356 2009-06-17  Ian Lance Taylor  <iant@google.com>
12358         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
12359         Change all uses.
12360         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
12361         call uses.
12363 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
12365         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
12366         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
12367         tree_strip_sign_nop_conversions and
12368         tree_ssa_strip_useless_type_conversions rather than stripping
12369         the operations here.
12370         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
12371         Declare them.
12372         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
12373         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
12374         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
12375         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
12376         functions.
12378 2009-06-17  Michael Eager  <eager@eagercon.com>
12380         * config/rs6000/constraints.md (register_constraint "d"): New.
12381         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
12382         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
12383         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
12384         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
12385         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
12386         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
12387         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
12388         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
12389         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
12390         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
12391         __fctiwz): Same.
12392         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
12393         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
12394         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
12395         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
12396         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
12397         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
12398         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
12399         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
12400         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
12401         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
12402         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
12403         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
12404         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
12405         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
12407 2009-06-16  Ian Lance Taylor  <iant@google.com>
12409         * profile.c (total_num_never_executed): Don't define.
12410         (compute_branch_probabilities): Don't count or print
12411         num_never_executed.
12412         (init_branch_prob): Don't set total_num_never_executed.
12413         (end_branch_prob): Don't print total_num_never_executed.
12415 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
12417         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
12419 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
12421         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
12422         (nabstd2_fpr): Same.
12424 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
12426         * expr.c (expand_assignment): Change complex type check.
12428 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
12430         * doc/plugins.texi (Building GCC plugins): Added new section.
12432 2009-06-17  Ian Lance Taylor  <iant@google.com>
12434         * c-pch.c (get_ident): Don't set size of templ array.
12435         (pch_init): Don't set size of partial_pch array.
12437         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
12438         string constant to intialize an array whose size is the length of
12439         the string.
12441 2009-06-17  Richard Guenther  <rguenther@suse.de>
12443         PR tree-optimization/40389
12444         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
12445         to addressable types.
12446         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
12448 2009-06-17  Richard Guenther  <rguenther@suse.de>
12450         PR middle-end/40460
12451         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
12452         if there is no evolution of left in the loop bail out.
12453         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
12454         chrec_fold_multiply.
12456 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
12457             Janis Johnson  <janis187@us.ibm.com>
12459         PR target/39254
12460         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
12461         for the symbol ref of a constant that is the source of a move
12462         - nor for any other not-obvious-label-ref constants.
12464 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
12466         * plugin.c (position_pass): Skip newly inserted pass during list
12467         traversal to avoid repeated insertion.
12469 2009-06-16  Ian Lance Taylor  <iant@google.com>
12471         * vec.h (VEC_stack_alloc): Define different version if
12472         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
12473         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
12474         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
12475         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
12477 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
12479         * config.gcc (extra_headers): Add ia32intrin.h for x86.
12481         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
12482         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
12483         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
12484         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
12485         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
12486         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
12487         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
12488         (bdesc_special_args): Add __builtin_ia32_rdtsc and
12489         __builtin_ia32_rdtscp.
12490         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
12491         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
12492         and __builtin_ia32_rorhi.
12493         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
12494         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
12495         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
12496         (ix86_expand_args_builtin): Likewise.
12497         (ix86_expand_special_args_builtin): Likewise.
12499         * config/i386/i386.md (UNSPECV_RDTSCP): New.
12500         (UNSPECV_RDTSC): Likewise.
12501         (UNSPECV_RDPMC): Likewise.
12502         (*bsr): Renamed to ...
12503         (bsr): This
12504         (*bsr_rex64): Renamed to ...
12505         (bsr_rex64): This.
12506         (rdpmc): New.
12507         (*rdpmc): Likewise.
12508         (*rdpmc_rex64): Likewise.
12509         (rdtsc): Likewise.
12510         (*rdtsc): Likewise.
12511         (*rdtsc_rex64): Likewise.
12512         (rdtscp): Likewise.
12513         (*rdtscp): Likewise.
12514         (*rdtscp_rex64): Likewise.
12516         * config/i386/ia32intrin.h: New.
12518         * config/i386/x86intrin.h: Include <ia32intrin.h>.
12520 2009-06-16  Ian Lance Taylor  <iant@google.com>
12522         * ira-build.c (copy_info_to_removed_store_destinations):
12523         Initialize parent_a.
12525 2009-06-16  Ian Lance Taylor  <iant@google.com>
12527         * c-decl.c (grokdeclarator): Change size_varies to bool.
12529 2009-06-16  Ian Lance Taylor  <iant@google.com>
12531         * sel-sched.c: Make forward declarations of move_op_hooks and
12532         fur_hooks explicitly extern.
12534 2009-06-16  Ian Lance Taylor  <iant@google.com>
12536         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
12537         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
12539 2009-06-16  Ian Lance Taylor  <iant@google.com>
12541         * resource.c (mark_referenced_resources): Change
12542         include_delayed_effects parameter to bool.  Change all callers.
12543         (mark_end_of_function_resources): Likewise.
12544         * reorg.c (insn_references_resource_p): Likewise.
12545         (insn_sets_resource_p): Likewise.
12546         * resource.h (mark_referenced_resources): Update declaration.
12547         (mark_end_of_function_resources): Update declaration.
12549 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
12551         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
12553 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
12555         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
12556         GCC can bootstrap on AIX with GNU Binutils 2.20.
12558 2009-06-16  Ian Lance Taylor  <iant@google.com>
12560         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
12562 2009-06-16  Ian Lance Taylor  <iant@google.com>
12564         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
12565         inline, not extern inline.
12566         (exact_log2): Likewise.
12567         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
12568         test CLZ_HWI.
12569         (exact_log2): Likewise, but don't test CTZ_HWI.
12571 2009-06-16  Ian Lance Taylor  <iant@google.com>
12573         * bitmap.c (bitmap_clear): Don't declare as inline.
12574         * gimple.c (gimplify_assign): Likewise.
12575         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
12576         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
12577         (sched_scan_info): Remove duplicate definition.
12579 2009-06-16  Ian Lance Taylor  <iant@google.com>
12581         * c-common.c (skip_evaluation): Don't define.
12582         (c_inhibit_evaluation_warnings): Define global variable.
12583         (overflow_warning): Check c_inhibit_evaluation_warnings rather
12584         than skip_evaluation.
12585         (convert_and_check, warn_for_div_by_zero): Likewise.
12586         * c-common.h (skip_evaluation): Don't declare.
12587         (c_inhibit_evaluation_warnings): Declare.
12588         * c-parser.c (c_parser_typeof_specifier): Set
12589         c_inhibit_evaluation_warnings rather than skip_evaluation.
12590         (c_parser_conditional_expression): Likewise.
12591         (c_parser_binary_expression): Likewise.
12592         (c_parser_sizeof_expression): Likewise.
12593         (c_parser_alignof_expression): Likewise.
12594         * c-typeck.c (build_indirect_ref): Check
12595         c_inhibit_evaluation_warnings rather than skip_evaluation.
12596         (build_conditional_expr, build_binary_op): Likewise.
12598 2009-06-16  Richard Guenther  <rguenther@suse.de>
12600         * tree-ssa-alias.c (is_escape_site): Remove.
12601         * tree-ssa-alias.h (enum escape_type): Remove.
12602         (is_escape_site): Likewise.
12603         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
12604         via casts and asms without deferring to is_escape_site.
12606 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
12608         PR middle-end/40446
12609         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
12610         use gen_lowpart if op0 has complex mode.
12612 2009-06-16  Richard Guenther  <rguenther@suse.de>
12614         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
12615         variables add them to ESCAPED.
12616         (find_func_aliases): Do not make all indirectly stored values escaped.
12618 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
12620         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
12621         make_decl_one_only.
12623 2009-06-16  Martin Jambor  <mjambor@suse.cz>
12625         PR tree-optimization/40432
12626         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
12627         check whether we need to force gimple register operand.
12629 2009-06-16  Martin Jambor  <mjambor@suse.cz>
12631         PR tree-optimization/40413
12632         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
12633         build_ref_for_offset.
12634         (propagate_subacesses_accross_link): Fix a typo in a comment.
12636 2009-06-16  Ira Rosen  <irar@il.ibm.com>
12638         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
12639         with additional parameter.
12640         * tree-vectorizer.h (enum vect_def_type): Add new value
12641         vect_nested_cycle.
12642         (enum vect_relevant): Add comments.
12643         (vect_is_simple_reduction): Add new argument.
12644         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
12645         Detect nested cycles.
12646         (vect_is_simple_reduction): Update documentation, add an argument to
12647         distinguish inner-loop reduction from nested cycle, detect nested
12648         cycles, fix printings and indentation, don't swap operands in case
12649         of nested cycle.
12650         (get_initial_def_for_reduction): Handle subtraction.
12651         (vect_create_epilog_for_reduction): Add new argument to specify
12652         reduction variable.
12653         (vect_finalize_reduction): Handle subtraction, fix comments.
12654         (vectorizable_reduction): Handle nested cycles. In case of nested
12655         cycle keep track of the reduction variable position. Call
12656         vect_is_simple_reduction with additional parameter. Use original
12657         statement code in reduction epilogue for nested cycle. Call
12658         vect_create_epilog_for_reduction with additional parameter.
12659         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
12660         inner-loop vectorization.
12661         (vect_recog_widen_sum_pattern): Likewise.
12662         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
12663         and reductions.
12664         (vect_mark_stmts_to_be_vectorized): Likewise.
12665         (vect_get_vec_def_for_operand): Handle nested cycles.
12667 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12669         * doc/invoke.texi (Debugging Options): Fix option index entries
12670         for -fdump-statistics, -frandom-seed add entries for
12671         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
12672         (FRV Options): Fix entries for -mTLS, -mtls.
12673         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
12674         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
12675         (M68hc1x Options): Fix @itemx for -mnominmax.
12676         (MCore Options): Fix entry for -mno-lsim.
12677         (MMIX Options): Fix entry for -mabi=mmixware.
12678         (PDP-11 Options): Fix entry for -mbcopy-builtin.
12680 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
12682         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
12683         Mention the plugin mode of gengtype.
12684         * doc/gty.texi (Source Files Containing Type Information): Likewise.
12685         * gengtype.c: Updated copyright.
12686         (plugin_files, nb_plugin_files) Added new static variables.
12687         (measure_input_list) Care about plugin_files.
12688         (write_rtx_next): Added early return in plugin mode.
12689         (create_file): Updated copyright year in generated file. Added
12690         asserts.
12691         (oprintf): Added early return if NULL outf.
12692         (get_output_file_with_visibility): Care of plugin_files.
12693         (get_output_file_name): May return null.
12694         (write_local): Added early return.
12695         (put_mangled_filename): Ditto.
12696         (finish_root_table): Added check for base_files.
12697         (write_roots): Care about null when plugins.
12698         (main): Added plugin mode.
12700 2009-06-15  Ian Lance Taylor  <iant@google.com>
12702         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
12703         * gcov.c (read_count_file): Add braces around variables declared
12704         before label.
12706         * c.opt (Wjump-misses-init): New warning.
12707         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
12708         -Wall and -Wc++-compat if not already set.
12709         (c_common_post_options): Clear warn_jump_misses_init if it was not
12710         set.
12711         * c-decl.c (struct c_binding): Change type field to a union with
12712         new label field.  Make it the first field in the struct.  Update
12713         references to type to use u.type instead.
12714         (struct c_spot_bindings): Define.
12715         (struct c_goto_bindings): Define.
12716         (c_goto_bindings_p): Define, along with VECs.
12717         (struct c_label_vars): Define.
12718         (struct c_scope): Add has_label_bindings field.
12719         (bind_label, set_spot_bindings): New static functions.
12720         (decl_jump_unsafe, update_spot_bindings): New static functions.
12721         (update_label_decls): New static function.
12722         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
12723         Update binding u.label field to shadowed field.
12724         (c_binding_start_stmt_expr): New function.
12725         (c_binding_end_stmt_expr): New function.
12726         (pushdecl): Don't call c_begin_vm_scope.
12727         (make_label): Add defining and p_label_vars parameters.  Change
12728         all callers.
12729         (lookup_label): Correct test for whether a label has not yet been
12730         defined.  Call bind_label rather than bind.
12731         (warn_about_goto): New static function.
12732         (lookup_label_for_goto): New function.
12733         (declare_label): Call bind_label rather than bind.
12734         (check_earlier_gotos): New static function.
12735         (define_label): Don't give errors about jumping into statement
12736         expressions or scopes of variably modified types.  Call
12737         set_spot_bindings and check_earlier_gotos.  Call bind_label
12738         instead of bind.  Don't set label_context_stack_se or
12739         label_context_stack_vm.
12740         (c_get_switch_bindings): New function.
12741         (c_release_switch_bindings): New function.
12742         (c_check_switch_jump_warnings): New function.
12743         (start_function): Don't set label_context_stack_se or
12744         label_context_stack_vm.
12745         (finish_function): Likewise.
12746         * c-typeck.c (label_context_stack_se): Don't define.
12747         (label_context_stack_vm): Don't define.
12748         (c_finish_goto_label): Call lookup_label_for_goto rather than
12749         lookup_label.  Don't give errors about jumping into a statement
12750         expression or the scope of a variably modified type.  Don't set
12751         label_context_stack_se or label_context_stack_vm.
12752         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
12753         fields.  Add bindings field.
12754         (c_start_case): Don't set deleted fields.  Set bindings field.
12755         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
12756         or blocked_vm.  Call c_check_switch_jump_warnings.
12757         (c_finish_case): Don't test blocked_stmt_expr field.  Call
12758         c_release_switch_bindings.
12759         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
12760         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
12761         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
12762         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
12763         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
12764         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
12765         (c_begin_vm_scope, c_end_vm_scope): Don't define.
12766         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
12767         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
12768         (C_DECL_UNJUMPABLE_VM): Don't define.
12769         (C_DECL_UNDEFINABLE_VM): Don't define.
12770         (struct c_label_list): Don't define.
12771         (struct c_label_context_se): Don't define.
12772         (struct c_label_context_vm): Don't define.
12773         (struct c_spot_bindings): Declare.
12774         (c_bindings_start_stmt_expr): Declare.
12775         (c_bindings_end_stmt_expr): Declare.
12776         (lookup_label_for_goto): Declare.
12777         (c_get_switch_bindings, c_release_switch_bindings): Declare.
12778         (c_check_switch_jump_warnings): Declare.
12779         (label_context_stack_se, label_context_stack_vm): Don't declare.
12780         (c_finish_goto_label): Update declaration.
12781         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
12782         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
12783         (Warning Options): Document -Wjump-misses-init.
12785 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
12787         * tree-object-size.c (addr_object_size): Fix a pasto in the last
12788         change.
12790 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
12792         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
12794 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
12796         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
12798 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
12800         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
12802 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
12804         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
12805         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
12806         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
12807         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
12808         * dwarf2asm.c (dw2_force_const_mem): Update call to
12809         make_decl_one_only.
12810         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
12811         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
12812         * langhooks.c (lhd_comdat_group): Remove.
12813         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
12814         * tree.h (DECL_COMDAT_GROUP): New.
12815         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
12816         (tree_decl_with_vis): Add comdat_group. Remove one_only.
12817         (make_decl_one_only): Change signature.
12818         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
12819         make_decl_one_only.
12820         (make_decl_one_only): Change signature.
12821         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
12823 2009-06-15  Richard Guenther  <rguenther@suse.de>
12825         PR middle-end/40439
12826         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
12828 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12830         * tree-ssa-math-opts.c: Remove extra divide.
12832 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12834         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
12836 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12838         * passes.c: Add bswap pass.
12839         * tree-pass.h: Add pass_optimize_bswap declaration.
12840         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
12841         Include rtl.h, expr.h and optabs.h for optab_handler check.
12842         (struct symbolic_number, pass_optimize_bswap): New definition.
12843         (do_shift_rotate, verify_symbolic_number_p): New functions.
12844         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
12845         (gate_optimize_bswap): New function.
12846         * tree.c (widest_int_cst_value): New function.
12847         * tree.h (widest_int_cst_value): Prototype added.
12849 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
12851         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
12852         REG_EQUAL/REG_EQUIV notes.
12854 2009-06-14  Richard Guenther  <rguenther@suse.de>
12856         PR middle-end/40389
12857         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
12858         has its address taken if NRV was applied and it is addressable.
12859         * tree-ssa-structalias.c (get_constraint_for_address_of): New
12860         function split out from ...
12861         (get_constraint_for_1): ... here.
12862         (handle_rhs_call): Use it to mark the return slot escaped if
12863         it is addressable and NRV was applied.
12865 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
12867         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
12868         Change first argument type to location_t.
12869         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
12870         Do not set input_location.
12871         Use loc instead of input_location throughout.
12873 2009-06-13  Richard Guenther  <rguenther@suse.de>
12875         PR tree-optimization/40421
12876         * tree-predcom.c (should_unroll_loop_p): Remove.
12877         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
12879 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
12881         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12882         Add location argument.
12884 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
12886         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
12887         build_decl.
12888         * config/s390/s390.c (s390_build_builtin_va_list): Same.
12889         (s390_gimplify_va_arg): Pass location to create_artificial_label.
12890         * config/spu/spu-protos.h: Add location to
12891         spu_resolve_overloaded_builtin.
12892         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
12893         spu_build_builtin_va_list.
12894         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
12895         argument.  Pass location to build_function_call_vec.
12896         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
12897         build_decl.
12898         (emit_fpu_switch): Same.
12899         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
12900         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
12901         to build_decl and create_artificial_label.
12902         (xtensa_gimplify_va_arg_expr): Same.
12903         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
12904         (xstormy16_gimplify_va_arg_expr): Same.
12905         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
12906         * config/arm/arm.c (arm_build_builtin_va_list): Same.
12907         * config/mips/mips.c (mips_build_builtin_va_list): Same.
12908         (mips16_build_function_stub): Same.
12909         (mips16_build_call_stub): Same.
12911 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
12913         PR target/40327
12914         * arm/constraints.md (Pa, Pb): New constraints.
12915         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
12916         split pattern to deal with them.
12918 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
12920         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
12921         fix index entry for -Xpreprocessor.
12923 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
12925         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12926         Add location argument to build_decl call.
12927         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
12928         (rs6000_init_builtins): Same.
12929         (spe_init_builtins): Same.
12930         (rs6000_gimplify_va_arg): Add location argument to
12931         create_artificial_label call.
12933 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
12935         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
12936         * combine-stack-adj.c (pass_stack_adjustments): Use it.
12937         * Makefile.in: Fix GGC dependency for gcse.o.
12939 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
12941         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
12942         * gimple-pretty-print.c (dump_gimple_stmt): Same.
12943         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
12944         created.
12945         * c-parser.c (c_parser_binary_expression): Use current column while
12946         building binary operations.
12947         * common.opt (fshow-column): Enable by default.
12948         * tree-vrp.c (check_array_ref): Use warning_at.
12949         (check_array_bounds): Use location from call back if expr has no
12950         location.
12951         * tree.h: Add location argument to maybe_fold_*.
12952         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
12953         (maybe_fold_offset_to_array_ref): Add location argument and use it.
12954         (maybe_fold_offset_to_component_ref): Same.
12955         (maybe_fold_offset_to_reference): Same.
12956         (maybe_fold_offset_to_address): Same.
12957         (maybe_fold_stmt_indirect): Same.
12958         (maybe_fold_stmt_addition): Same.
12959         (fold_stmt_r): Pass location to maybe_fold_*.
12960         (fold_gimple_assign): Same.
12961         * c-tree.h: Add location argument to finish_decl,
12962         default_function_array_conversion, store_init_value.
12963         * c-decl.c (define_label): Use error_at.
12964         (c_make_fname_decl): Pass location to finish_decl.
12965         (finish_decl): New location argument.
12966         (build_compound_literal): Pass location to store_init_value.
12967         (grokdeclarator): Pass location to finish_decl.
12968         (grokfield): Same.
12969         * c-typeck.c (array_to_pointer_conversion): New location argument.
12970         (function_to_pointer_conversion): Same.
12971         (default_function_array_conversion): Same.
12972         (parser_build_unary_op): Pass location to overflow_warning.
12973         (parser_build_binary_op): Same.  Use warning_at.
12974         (build_unary_op): Pass location to array_to_pointer_conversion.
12975         (build_c_cast): Pass location to digest_init.
12976         (build_modify_expr): New location argument.
12977         (convert_for_assignment): Same.
12978         (store_init_value): Same.
12979         (digest_init): Same.
12980         (output_init_element): Pass location to digest_init and
12981         array_to_pointer_conversion.
12982         (c_finish_return): Pass location to convert_for_assignment.
12983         * gimplify.c (gimplify_conversion): Pass location to
12984         maybe_fold_offset_to_address.
12985         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
12986         to maybe_fold_stmt_addition.
12987         * c-omp.c (c_finish_omp_atomic): Pass new location to
12988         build_modify_expr.
12989         (c_finish_omp_for): Same.
12990         * c-common.c (overflow_warning): New argument.
12991         * c-common.h: New argument to build_modify_expr, overflow_warning.
12992         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
12993         finish_decl.
12994         (c_parser_initializer): Pass location to
12995         default_function_array_conversion.
12996         (c_parser_initelt): Same.
12997         (c_parser_initval): Same.
12998         (c_parser_asm_operands): Same.
12999         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
13000         (c_parser_conditional_expression): Same.
13001         (c_parser_binary_expression): Add location info to stack.  Use it.
13002         (c_parser_unary_expression): Pass location to
13003         default_function_array_conversion, parser_build_unary_op,
13004         build_indirect_ref, c_parser_postfix_expression_after_primary.
13005         (c_parser_postfix_expression_after_primary): New location argument.
13006         Use it.
13007         (c_parser_expression_conv): Pass location to
13008         default_function_array_conversion.
13009         (c_parser_expr_list): Same.
13010         (c_parser_omp_atomic): Same.
13011         (c_parser_omp_for_loop): Same.
13012         * c-tree.h: (struct c_declarator): Add comment to id_loc.
13013         (build_array_declarator): New argument.
13014         * c-decl.c (build_array_declarator): Add location argument.
13015         (grokdeclarator): Set id_loc for cdk_array.
13016         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
13017         build_array_declarator.
13018         * tree.c (build_omp_clause): Add location argument.
13019         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
13020         (OMP_CLAUSE_LOCATION): New macro.
13021         (struct tree_omp_clause): Add location field.
13022         (build_omp_clause): Add argument.
13023         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
13024         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
13025         build_omp_clause.
13026         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
13027         (cp_parser_omp_clause_collapse): Same.
13028         (cp_parser_omp_clause_default): Same.
13029         (cp_parser_omp_clause_if): Same.
13030         (cp_parser_omp_clause_nowait): Same.
13031         (cp_parser_omp_clause_num_threads): Same.
13032         (cp_parser_omp_clause_ordered): Same.
13033         (cp_parser_omp_clause_schedule): Same.
13034         (cp_parser_omp_clause_untied): Same.
13035         (cp_parser_omp_for_loop): Same.
13036         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
13037         * c-tree.h (c_start_case): Add location argument.
13038         (c_process_expr_stmt): Same.
13039         (c_finish_goto_*): Same.
13040         * tree-parloops.c (initialize_reductions): Pass location to
13041         build_omp_clause.
13042         (create_parallel_loop): Same.
13043         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
13044         (gfc_trans_omp_reduction_list): Same.
13045         (gfc_trans_omp_clauses): Same.
13046         (gfc_trans_omp_do): Same.
13047         * c-typeck.c (c_finish_goto_label): Same.
13048         (c_finish_goto_ptr): New location argument.
13049         (c_start_case): Same.
13050         (emit_side_effect_warnings): Same.
13051         (c_process_expr_stmt): Same.
13052         (c_finish_stmt_expr): Same.
13053         (c_finish_omp_clauses): Use error_at instead of error.
13054         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
13055         build_omp_clause.
13056         * c-omp.c (c_split_parallel_clauses): New location argument.
13057         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
13058         to build_omp_clause.
13059         (convert_local_reference_stmt): Same.
13060         (convert_gimple_call): Same.
13061         * c-common.h (c_split_parallel_clauses): New argument.
13062         * c-parser.c (c_parser_statement_after_labels): Pass location to
13063         c_finish_goto_label.
13064         (c_parser_switch_statement): Pass location to c_start_case.
13065         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
13066         and c_process_expr_stmt.
13067         (c_parser_omp_variable_list): Add location argument.
13068         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
13069         (c_parser_omp_clause_default): Same.
13070         (c_parser_omp_clause_if): Same.
13071         (c_parser_omp_clause_num_threads): Same.
13072         (-c_parser_omp_clause_ordered): Same.
13073         (c_parser_omp_clause_reduction): Pass location to
13074         c_parser_omp_variable_list.
13075         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
13076         (c_parser_omp_clause_untied): Same.
13077         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
13078         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
13080         * c-tree.h (check_for_loop_decls, undeclared_variable,
13081         build_component_ref, build_array_ref, build_external_ref,
13082         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
13083         build_conditional_expr, build_compound_expr, c_cast_expr,
13084         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
13085         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
13086         argument.
13087         * c-semantics.c (build_stmt): Same.
13088         (build_case_label): Same.
13089         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
13090         (undeclared_variable): New argument.
13091         (make_label): Same.
13092         (lookup_label): Pass location on down.
13093         (define_label): Same.
13094         (finish_decl): Same.
13095         (build_compound_literal): Same.
13096         (finish_struct): Same.
13097         (finish_function): Do not set location here.
13098         (check_for_loop_decls): New argument.
13099         * tree.c (save_expr): Set location.
13100         (build_empty_stmt): New argument.
13101         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
13102         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
13103         * builtins.c (gimplify_va_arg_expr): Use locations.
13104         (expand_builtin_sync_operation): Same.
13105         * c-typeck.c (build_component_ref): New argument.
13106         (build_array_ref): Same.
13107         (build_external_ref): Same.
13108         (c_expr_sizeof_expr): Same.
13109         (c_expr_sizeof_type): Same.
13110         (parser_build_unary_op): Same.
13111         (build_conditional_expr): Same.
13112         (build_compound_expr): Pass location on down.
13113         (build_compound_expr): New argument.
13114         (build_c_cast): Same.
13115         (c_cast_expr): Same.
13116         (build_asm_expr): Same.
13117         (c_finish_return): Same.
13118         (c_process_expr_stmt): Pass location on down.
13119         (c_finish_stmt_expr): New argument.
13120         (push_clenaup): Same.
13121         (c_finish_omp_parallel): Same.
13122         (c_finish_omp_task): Same.
13123         * gimplify.c (gimplify_call_expr): Pass location on down.
13124         * c-omp.c (c_finish_omp_master): New argument.
13125         (c_finish_omp_critical): Same.
13126         (c_finish_omp_ordered): Same.
13127         (c_finish_omp_barrier): Same.
13128         (-c_finish_omp_taskwait): Same.
13129         (c_finish_omp_atomic): Same.
13130         (c_finish_omp_flush): Same.
13131         * tree-inline.c (copy_tree_body_r): Pass location on down.
13132         (inline_forbidden_p): Remove use of input_location.
13133         * c-gimplify.c (c_build_bind_expr): New argument.
13134         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
13135         (c_sizeof_or_alignof_type): New argument.
13136         (c_alignof_expr): Same.
13137         (build_va_arg): Same.
13138         (c_add_case_label): Same.
13139         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
13140         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
13141         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
13142         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
13143         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
13144         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
13145         New argument.
13146         * stub-objc.c (objc_build_selector_expr): Same.
13147         (objc_build_throw_stmt): Same.
13148         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
13149         (c_parser_initelt): Same.
13150         (c_parser_compound_statement): Same.
13151         (c_parser_compound_statement_nostart): Same.
13152         (c_parser_label): Same.
13153         (c_parser_statement_after_labels): Same.
13154         (c_parser_if_body): Same.
13155         (c_parser_else_body): Same.
13156         (c_parser_if_statement): Same.
13157         (c_parser_switch_statement): Same.
13158         (c_parser_while_statement): Same.
13159         (c_parser_do_statement): Same.
13160         (c_parser_for_statement): Same.
13161         (c_parser_asm_statement): Same.
13162         (c_parser_conditional_expression): Same.
13163         (c_parser_binary_expression): Same.
13164         (c_parser_cast_expression): Same.
13165         (c_parser_unary_expression): Same.
13166         (c_parser_sizeof_expression): Same.
13167         (c_parser_alignof_expression): Same.
13168         (c_parser_postfix_expression): Same.
13169         (c_parser_expression): Same.
13170         (c_parser_objc_receiver): Same.
13171         (c_parser_omp_variable_list): Same.
13172         (c_parser_omp_structured_block): Same.
13173         (c_parser_omp_atomic): New argument.
13174         (c_parser_omp_barrier): Same.
13175         (c_parser_omp_critical): Same.
13176         (c_parser_omp_flush): Pass location on down.
13177         (c_parser_omp_for_loop): New argument.
13178         (c_parser_omp_for): Same.
13179         (c_parser_omp_master): Same.
13180         (c_parser_omp_ordered): Same.
13181         (c_parser_omp_sections_scope): Same.
13182         (c_parser_omp_sections): Same.
13183         (c_parser_omp_parallel): Same.
13184         (c_parser_omp_single): Same.
13185         (c_parser_omp_task): Same.
13186         (c_parser_omp_taskwait): Pass location on down.
13187         (c_parser_omp_construct): Same.
13188         (c_parser_omp_threadprivate): Same.
13189         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
13190         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
13191         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
13192         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
13193         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
13194         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
13195         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
13196         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
13197         config/i386/i386.c, stmt.c:
13198         Add location argument to the following function definitions and/or
13199         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
13200         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
13201         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
13202         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
13203         do_case, c_finish_bc_stmt, build_compound_literal,
13204         build_function_call.
13205         * c-decl.c (build_compound_literal): Add location argument.
13206         Make all diagnostic calls use location.
13207         (start_struct): Same.
13208         (finish_struct): Same.
13209         (start_enum): Same.
13210         (build_enumerator): Same.
13211         (start_function): Same.
13212         (grokdeclarator): Make all diagnostic calls use location.
13213         (store_parm_decls_oldstyle): Same.
13214         * c-typeck.c (build_function_call): Add location argument.
13215         Make all diagnostic calls use location.
13216         (do_case): Same.
13217         (c_finish_bc_stmt): Same.
13218         * tree-nested.c (get_trampoline_type): Add argument.
13219         Pass location to build_decl.
13220         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
13221         * rtl.h (RTL_LOCATION): New.
13222         * c-common.c (c_add_case_label): Add location argument.
13223         Make all diagnostic calls use location.
13224         * c-common.h: Add location argument to make_fname_decl, do_case,
13225         c_add_case_label, build_function_call, resolve_overloaded_builtin.
13226         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
13227         Set it appropriately for every case.  Pass enum_loc to start_enum
13228         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
13229         parser_xref_tag.
13230         (c_parser_struct_or_union_specifier): Save location.  Use it for
13231         start_struct, finish_struct, and parser_xref_tag.
13233 2009-06-12  Ian Lance Taylor  <iant@google.com>
13235         * fold-const.c (fold_unary): Rename local variable and to and_expr.
13237         * c-opts.c (c_common_handle_option): For -Wc++-compat set
13238         cpp_opts->warn_cxx_operator_names.
13240 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13242         PR tree-opt/38865
13243         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
13244         is returns NULL and OP is a VCE, look through the VCE.
13246 2009-06-12  Ian Lance Taylor  <iant@google.com>
13248         PR bootstrap/40430
13249         * collect2.c (main): Use CONST_CAST2 in code inside #if
13250         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
13252 2009-06-12  Joey Ye  <joey.ye@intel.com>
13254         PR middle-end/39146
13255         * cfgexpand.c (get_decl_align_unit): Update
13256         max_used_stack_slot_alignment with align instead of
13257         stack_alignment_needed.
13259         * function.c (assign_stack_local_1): Update
13260         max_used_stack_slot_alignment with alignment_in_bits instead
13261         of stack_alignment_needed.
13262         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
13263         here.
13265 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
13267         * dwarf2out.c (last_var_location_insn): New variable.
13268         (dwarf2out_end_epilogue): Clear last_var_location_insn.
13269         (dwarf2out_var_location): Don't record anything after last real
13270         insn.  Only change labels if there were any real instructions
13271         in between last note and this one, or if changed sections.
13273 2009-06-11  Richard Henderson  <rth@redhat.com>
13275         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
13276         note when storing the frame pointer in a register.
13277         (FRP): Don't redefine to nothing for epilogue.
13278         (alpha_expand_epilogue): Mark register and sp restores.
13279         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
13281         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
13282         when gen_lowpart is needed.
13284 2009-06-11  Richard Henderson  <rth@redhat.com>
13286         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
13288         * dwarf2out.c (need_data_align_sf_opcode): New.
13289         (div_data_align): Move earlier.
13290         (def_cfa_1, reg_save): Use it.
13292 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
13294         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
13295         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
13296         (ix86_handle_option): Handle OPT_mcrc32.
13297         (ix86_target_string): Add -mcrc32.
13298         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
13300         * config/i386/i386.h (TARGET_CRC32): New.
13302         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
13303         (sse4_2_crc32di): Likewise.
13305         * config/i386/i386.opt (mcrc32): New.
13307         * doc/invoke.texi: Document -mcrc32.
13309 2009-06-11  Richard Henderson  <rth@redhat.com>
13311         * common.opt (gdwarf-): Accept a version number.
13312         * doc/invoke.texi (gdwarf-): Update docs.
13313         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
13314         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
13315         version level, and record it.
13317         * dwarf2.h (DW_CIE_VERSION): Remove.
13318         * dwarf2out.c (DWARF_VERSION): Remove.
13319         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
13320         (output_call_frame_info): Use CIE version 3 for dwarf3,
13321         or if the return register column is out of range for version 1.
13322         (dwarf_stack_op_name): Add all dwarf3 values.
13323         (DEBUG_PUBTYPES_SECTION): New.
13324         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
13325         encoding change for dwarf3.
13326         (output_die) [dw_val_class_die_ref]: Likewise.
13327         (output_compilation_unit_header): Emit correct version for dwarf3.
13328         (output_line_info): Likewise.
13329         (output_pubnames): Update for DWARF_VERSION removal.
13330         (output_aranges): Likewise.
13331         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
13332         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
13333         (dwarf2out_finish): Likewise.
13335 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
13337         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
13338         in r148403.
13340 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
13342         PR c/39252
13343         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
13344         * builtins.c (expand_builtin_unreachable): New function.
13345         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
13346         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
13347         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
13348         successors.
13349         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
13350         searching for missing barriers.
13352 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13354         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
13355         when -fprofile-generate* was passed.
13356         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
13358 2009-06-11  Anthony Green  <green@moxielogic.com>
13360         * config/moxie/moxie.md: Define length attribute for all instructions.
13361         (rCC): Define.
13362         (*b<cond:code>): Support limited branch ranges for new PC-relative
13363         branch instructions.
13364         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
13366 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
13368         * config/i386/i386.c (min_insn_size): Use get_attr_length
13369         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
13370         For __asm return 0.
13372         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
13373         instead of emit_insn_before.
13375 2009-06-10  Ian Lance Taylor  <iant@google.com>
13377         PR bootstrap/40408
13378         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
13379         GIMPLE_SWITCH.
13381 2009-06-10  Revital Eres  <eres@il.ibm.com>
13383         * passes.c (init_optimization_passes): Reschedule
13384         predictive-commoning pass before complete unroll pass.
13386 2009-06-10  Martin Jambor  <mjambor@suse.cz>
13388         * cgraph.c (cgraph_node_can_be_local_p): New function.
13389         (cgraph_make_node_local): New function.
13390         * cgraph.h (cgraph_node_can_be_local_p): Declare.
13391         (cgraph_make_node_local): Declare.
13393 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
13395         * tree.h (tree_base): Add packed_flag and user_align fields.
13396         Decrease size of spare field.
13397         (TYPE_USER_ALIGN): Use user_align from tree_base.
13398         (DECL_USER_ALIGN): Likewise.
13399         (TYPE_PACKED): Use packed_flag from tree_base.
13400         (DECL_PACKED): Likewise.
13401         (tree_type): Delete packed_flag and user_align fields.  Widen
13402         precision field.  Widen mode field and shuffle fields to align
13403         mode on an 8-bit boundary.
13404         (tree_decl_common): Delete decl_flag_1 and user_align fields.
13405         Renumber decl_flag_* fields.  Fix comments.  Widen
13406         decl_common_unused field.
13407         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
13408         (DECL_EXTERNAL): Likewise.
13409         (DECL_BIT_FIELD): Likewise.
13410         (DECL_NONADDRESSABLE_P): Likewise.
13411         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
13412         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
13414 2009-06-10  Ian Lance Taylor  <iant@google.com>
13416         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
13417         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
13418         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
13419         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
13420         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
13421         DEF_VEC_ALLOC_FUNC_P.
13422         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
13423         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
13424         DEF_VEC_ALLOC_FUNC_O.
13425         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
13426         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
13427         DEF_VEC_ALLOC_FUNC_I.
13428         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
13429         (vec_stack_p_reserve_exact_1): Declare.
13430         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
13431         (vec_stack_free): Declare.
13432         (VEC_stack_alloc): Define.
13433         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
13434         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
13435         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
13436         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
13437         for void_p.
13438         (stack_vecs): New static variable.
13439         (vec_stack_p_reserve_exact_1): New function.
13440         (vec_stack_o_reserve_1): New static function.
13441         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
13442         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
13443         (vec_stack_free): New function.
13444         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
13445         (VEC_df_ref_stack_alloc): Define.
13446         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
13447         DEF_VEC_ALLOC_P_STACK.
13448         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
13449         (struct df_collection_rec): Change _vec fields to VEC.  Remove
13450         _use fields.
13451         (df_free_collection_rec): Adjust for new fields.
13452         (df_insn_rescan): Use new df_collection_rec fields.
13453         (df_notes_rescan, df_canonize_collection_rec): Likewise.
13454         (df_ref_create_structure, df_ref_record): Likewise.
13455         (df_get_conditional_uses, df_get_call_refs): Likewise.
13456         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
13457         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
13458         (df_record_exit_block_uses, df_bb_verify): Likewise.
13459         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
13460         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
13461         Remove count parameter.  Change return type to void.  Change all
13462         callers.
13463         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
13464         Remove count parameter.  Change return type to void.  Change all
13465         callers.
13466         (df_install_refs): Change old_vec parameter to VEC.  Remove count
13467         parameter.  Change all callers.
13468         (df_install_mws): Change old_vec parameter to VEC.  Remove count
13469         parameter.  Change all callers.
13470         (df_refs_verify): Change new_rec parameter to VEC.  Change call
13471         callers.
13472         (df_mws_verify): Likewise.
13474 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
13476         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
13478 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
13480         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
13482 2009-06-10  Anthony Green  <green@moxielogic.com>
13484         * config/moxie/crti.asm: New file.
13485         * config/moxie/crtn.asm: New file.
13486         * config/moxie/moxie.c: New file.
13487         * config/moxie/moxie.h: New file.
13488         * config/moxie/sfp-machine.h: New file.
13489         * config/moxie/moxie-protos.h: New file.
13490         * config/moxie/t-moxie: Created.
13491         * config/moxie/t-moxie-softfp: Created.
13492         * config/moxie/moxie.md: Created.
13493         * config/moxie/constraints.md: Created.
13494         * config.gcc: Add moxie support.
13495         * doc/md.texi (Machine Constraints): Add moxie constraints.
13496         * doc/contrib.texi (Contributors): Mention moxie port.
13497         * doc/install.texi (Specific): Mention the moxie port.
13499 2009-06-09  Ian Lance Taylor  <iant@google.com>
13501         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
13502         compiling with C++.
13503         * optabs.c (optab_table): Only use designated initializers if
13504         HAVE_DESIGNATED_INITIALIZERS is defined.
13505         (convert_optab_table): Likewise.
13506         (init_optabs): Always call init_insn_codes if
13507         HAVE_DESIGNATED_INITIALIZERS is not defined.
13509 2009-06-09  Ian Lance Taylor  <iant@google.com>
13511         * targhooks.c (default_builtin_vectorized_function): Change fn
13512         parameter to unsigned int.
13513         (default_builtin_vectorized_conversion): Change code parameter to
13514         unsigned int.
13515         (default_builtin_reciprocal): Change fn parameter to unsigned int.
13516         * targhooks.h: Update declarations.
13517         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
13518         parameter to unsigned int.
13520         * c-typeck.c (comptypes_check_enum_int): New static function.
13521         (comptypes_internal): Add enum_and_int_p parameter.  Change all
13522         callers.
13523         (comp_target_types): Add location parameter.  Change all callers.
13524         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
13525         Change all callers.
13526         (function_types_compatible_p, type_lists_compatible_p): Likewise.
13527         (build_conditional_expr): Add colon_loc parameter.  Change all
13528         callers.
13529         (convert_for_assignment): Add location parameter.  Change all callers.
13530         * c-parser.c (c_parser_conditional_expression): Pass location of
13531         colon to build_conditional_expr.
13532         * c-tree.h (build_conditional_expr): Update declaration.
13534 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
13536         * graphite.c: Revert previous patch.
13538 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
13540         PR bootstrap/40103
13541         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
13543 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
13545         * tree-ssa-loop-prefetch.c
13546         (loop_prefetch_arrays): Fixed a portability problem in printf format
13547         string.
13549 2009-06-09  Martin Jambor  <mjambor@suse.cz>
13551         PR tree-optimization/40351
13552         * tree-sra.c (propagate_subacesses_accross_link): Check that a
13553         refrence to a potential artifical subaccess can be constructed.
13555 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
13557         * config/sh/sh-protos.h (sh_optimization_options): Declare.
13558         (sh_override_options): Likewise.
13559         * config/sh/sh.c: Include params.h.
13560         (sh_optimization_options): New.
13561         (sh_override_options): Likewise.
13562         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
13563         (OVERRIDE_OPTIONS): Use sh_override_options.
13565 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
13567         * dwarf2out.c (emit_cfa_remember): New variable.
13568         (add_fde_cfi): If emit_cfa_remember, recurse to add
13569         DW_CFA_remember_state first.
13570         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
13571         instead just set emit_cfa_remember.
13573 2009-06-08  Jan Hubicka  <jh@suse.cz>
13575         PR debug/40126
13576         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
13578 2009-06-08  Jan Hubicka  <jh@suse.cz>
13580         PR middle-end/39834
13581         * cgraphunit.c (save_inline_function_body): Do not copy transform
13582         hooks for saved inline bodies.
13583         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
13584         for given function.
13586 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
13588         * jump.c (returnjump_p): Handle delayed branches.  Add missing
13589         function comment.
13591 2009-06-08  Jan Hubicka  <jh@suse.cz>
13593         PR middle-end/40102
13594         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
13595         original node might've been modified.
13596         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
13598 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
13600         * tree-object-size.c (addr_object_size): Add OSI argument.
13601         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
13602         (compute_builtin_object_size, expr_object_size): Adjust callers.
13603         (plus_stmt_object_size): Call addr_object_size instead of
13604         compute_builtin_object_size.
13606 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
13607             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
13609         * tree-ssa-loop-prefetch.c
13610         (gather_memory_references): Introduced a counter for the number of
13611         memory references.
13612         (anything_to_prefetch_p): Introduced a counter for the number of
13613         prefetches.
13614         (is_loop_prefetching_profitable): New function with a cost model
13615         for prefetching.
13616         (loop_prefetch_arrays): Use the new cost model to determine if
13617         prefetching is profitable.
13618         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
13619         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
13620         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
13621         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
13622         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
13623         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
13625 2009-06-08  Michael Matz  <matz@suse.de>
13627         PR debug/40012
13628         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
13629         partitions use the same.
13630         (expand_one_var): Deal with DECL_RTL sometimes begin set also
13631         for basevars of SSA_NAMEs.
13632         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
13633         to not expand them twice.
13634         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
13635         multiple places.
13637 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
13639         * common.opt (fcompare-debug=, fcompare-debug-second): New.
13640         (fdump-final-insns=, gtoggle): New.
13641         * doc/invoke.texi: Document them.
13642         * final.c (rest_of_clean_state): Dump final insn stream.
13643         * gcc.c (invoke_as): Hook in -fcompare-debug.
13644         (static_spec_functions): Add compare-debug-dump-opt,
13645         compare-debug-self-opt and compare-debug-auxbase-opt.
13646         (compare_debug, compare_debug_second, compare_debug_opt): New.
13647         (switches_debug_check, n_switches_debug_check): New.
13648         (debug_auxbase_opt, debug_check_temp_file): New.
13649         (process_command): Handle -fno-compare-debug, -fcompare-debug and
13650         -fcompare-debug=*.
13651         (do_self_spec): Handle arguments after switches.
13652         (do_spec_1): Add .gk extension to temp file basenames for compare.
13653         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
13654         (cc1_options): Use it instead of normal auxbase computation for
13655         the second compare-debug compilation.
13656         (compare_files): New.
13657         (main): Set up and implement compare debug mode.
13658         (compare_debug_dump_opt_spec_function): New.
13659         (compare_debug_self_opt_spec_function): New.
13660         (compare_debug_auxbase_opt_spec_function): New.
13661         * toplev.c (process_options): Handle flag_gtoggle,
13662         flag_dump_final_insns.
13663         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
13664         during -fcompare-debug-second compilation.
13666 2009-06-07  Ian Lance Taylor  <iant@google.com>
13668         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
13669         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
13671         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
13672         with no default node.  Change warning with %H to warning_at.
13673         Don't clear warn_switch around case checking.
13674         * doc/invoke.texi (Warning Options): Clarify distinction between
13675         -Wswitch and -Wswitch-enum.
13677 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13679         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
13681 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13683         * gbl-ctors.h: Add header guard.
13685 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13687         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
13688         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
13689         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
13690         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
13691         prototypes for removed functions.
13692         (expressions_equal_p): Move to ...
13693         * tree-ssa-sccvn.h: ... here and ...
13694         * matrix-reorg.c: ... adjust includes.
13696 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13698         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
13700 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13702         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
13703         (finish_function): Remove erroneous whitespace.
13705 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13707         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
13708         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
13710 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13712         * errors.c (internal_error): Commentary typo fix.
13713         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
13714         * tree-ssa-pre.c: Ditto.
13716 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13718         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
13719         them is supposed to hold actual statements.
13721 2009-06-06  Ian Lance Taylor  <iant@google.com>
13723         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
13724         empty statements can now have attributes.
13726 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
13728         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
13729         * config/mips/mips.md: Ditto.
13731 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
13733         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
13734         _RELOCATABLE.
13735         (__eabi_uconvert): Likewise.
13737 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
13739         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
13740         CFI_* definitions with IN_GCC.
13742 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
13744         * xcoffout.h (xcoffout_source_line): Update prototype.
13746 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13748         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
13749         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
13751 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
13753         PR middle-end/40340
13754         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
13755         inlined_function_outer_scope_p blocks for artificial inlines
13756         even at -g0/-g1.
13757         * tree.c (tree_nonartificial_location): Rewrite using
13758         block_nonartificial_location.
13760 2009-06-05  Revital Eres  <eres@il.ibm.com>
13761             Leehod Baruch  <leehod@il.ibm.com>
13763         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
13764         (expand_expr_real_1): Remove comment.
13765         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
13766         Vectorize misaligned access when the target supports it.
13767         (vect_supportable_dr_alignment): Check for unaligned access support.
13768         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
13769         and remove asset.
13771 2009-06-05  Julian Brown  <julian@codesourcery.com>
13773         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
13774         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
13776 2009-06-05  Richard Guenther  <rguenther@suse.de>
13778         PR bootstrap/40350
13779         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
13780         as possibly unused.
13782 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
13784         * config/s390/s390.c (global_not_special_regno_p): New static inline.
13785         (save_gprs): Don't tell unwinder when a global register is saved.
13786         (s390_emit_epilogue): Emit needed epilogue unwind info.
13788 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
13790         * dwarf2out.c (deferred_asm_name): New.
13791         (add_name_and_src_coords_attributes): Defer creation of
13792         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
13793         computed yet.
13794         (move_linkage_attr): New.
13795         (dwarf2out_finish): Revisit deferrals and emit attributes at the
13796         right place.
13798 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
13800         * tree-nested.c (finalize_nesting_tree_1): Declare the
13801         frame_decl in the binding tree.
13803 2009-06-04  Cary Coutant  <ccoutant@google.com>
13805         * basic-block.h (struct basic_block_def): Add discriminator field.
13806         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
13807         callers.
13808         * debug.c (do_nothing_debug_hooks): Add additional entry.
13809         (debug_nothing_int_charstar_int): New function.
13810         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
13811         (debug_nothing_int_charstar_int): New declaration.
13812         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
13813         discriminator value in .loc directive.
13814         * final.c (last_discriminator): New variable.
13815         (discriminator): New variable.
13816         (final_start_function): Initialize above variables, pass current
13817         discriminator to debug hook.
13818         (notice_source_line): Check for discriminator change.
13819         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
13820         * sdbout.c (sdbout_source_line): New parameter.
13821         * tree-cfg.c (struct locus_discrim_map): New structure type.
13822         (discriminator_per_locus): New hash table.
13823         (build_gimple_cfg): Allocate and free discriminator hash table.
13824         (make_edges): Call assign_discriminator.
13825         (locus_map_hash): New function.
13826         (locus_map_eq): New function.
13827         (next_discriminator_for_locus): New function.
13828         (same_line_p): New function.
13829         (assign_discriminator): New function.
13830         (make_cond_expr_edges): Call assign_discriminator.
13831         (make_gimple_switch_edges): Likewise.
13832         (first_non_label_stmt): New function.
13833         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
13834         all callers.
13835         * xcoffout.c (xcoffout_source_line): Add new parameter.
13837         * configure.ac (gcc_cv_as_discriminator): New configury check for
13838         gas support for discriminator.
13839         * configure: Regenerate.
13840         * config.in: Regenerate.
13842 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13844         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
13845         val after checking for integers.
13847 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
13849         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
13850         X64_REGPARM_MAX.
13851         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
13852         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
13853         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
13854         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
13855         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
13856         X64_SSE_REGPARM_MAX.
13857         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
13858         X64_SSE_REGPARM_MAX.
13860 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
13862         * gcc.c (report_times_to_file): New.
13863         (execute): Implement it.
13864         (process_command): Support -time=.
13865         * doc/invoke.texi: Document it.
13867 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
13869         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
13870         that have value exprs.
13872 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
13874         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
13875         declarations for constants until...
13876         (dw2_output_indirect_constant_1): ... this point.
13878 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
13880         PR target/10242
13881         * arm.md (arm_addsi3): Don't try to split an add with an
13882         eliminable register until after reload has completed.
13884 2009-06-03  Ian Lance Taylor  <iant@google.com>
13886         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
13887         * genattrtab.c (write_length_unit_log): Likewise.
13888         * genchecksum.c (dosum): Likewise.
13889         * gengtype.c (write_rtx_next): Likewise.
13890         (finish_root_table, write_roots): Likewise.
13891         * gimple.c (gimple_ops_offset_): Likewise.
13892         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
13893         * config/arc/arc.c (arc_attribute_table): Likewise.
13894         * config/arm/arm.c (arm_attribute_table): Likewise.
13895         * config/avr/avr.c (avr_attribute_table): Likewise.
13896         * config/crx/crx.c (crx_attribute_table): Likewise.
13897         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
13898         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
13899         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
13900         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
13901         * config/sh/sh.c (sh_attribute_table): Likewise.
13902         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
13903         * config/spu/spu.c (spu_attribute_table): Likewise.
13904         * config/v850/v850.c (v850_attribute_table): Likewise.
13906         * config/alpha/alpha.c (vms_attribute_table): Make static.
13907         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
13908         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
13909         * config/mips/mips.c (mips_attribute_table): Likewise.
13911         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
13912         $(SYSTEM_H).
13913         (cc1-checksum.o): Likewise.
13915 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
13917         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
13919 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
13921         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
13922         insn if it is changing sp.  Use gen_add3_insn instead of
13923         conditionally gen_addsi3 and gen_adddi3.
13924         (offset_below_red_zone_p): New static inline function.
13925         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
13926         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
13927         * config/rs6000/ppc-asm.h: Include auto-host.h.
13928         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
13929         CFI_RESTORE): Define.
13930         * config/rs6000/crtresxgpr.asm: Add unwind info.
13931         * config/rs6000/crtresxfpr.asm: Likewise.
13932         * config/rs6000/crtresgpr.asm: Likewise.
13933         * config/rs6000/crtresfpr.asm: Likewise.
13934         * config/rs6000/crtsavgpr.asm: Likewise.
13935         * config/rs6000/crtsavfpr.asm: Likewise.
13937         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
13938         argument of DWARF2_FRAME_REG_OUT macros.
13940 2009-06-03  Julian Brown  <julian@codesourcery.com>
13942         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
13943         words or less (including TImode) in core registers.
13945 2009-06-03  Richard Guenther  <rguenther@suse.de>
13947         PR middle-end/40328
13948         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
13950 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
13952         * statistics.c (statistics_counter_event): Do not record event
13953         in pass dump if its number == -1.
13954         (curr_statistics_hash): Add assert that we never get passes
13955         with static number == -1.
13957 2009-06-03  Richard Guenther  <rguenther@suse.de>
13958             Andrey Belevantsev  <abel@ispras.ru>
13960         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
13961         non-BLKmode arrays addressable.
13963 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
13965         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
13966         * config/m68k/m68k.h: ... here.
13968 2009-06-03  Martin Jambor  <mjambor@suse.cz>
13970         PR tree-optimization/40323
13971         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
13972         assignment.
13974 2009-06-03  Richard Guenther  <rguenther@suse.de>
13976         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
13977         consistently.
13979 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
13981         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
13982         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
13983         JUMP_TABLE_DATA_P where applicable.
13984         * config/sh/sh.c: Ditto.
13985         * config/sh/sh.h: Ditto.
13986         * config/sh/sh.md: Ditto.
13987         * config/sh/symbian.c: Ditto.
13989 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
13991         * config/i386/driver-i386.c (describe_cache): Optimize
13992         concatenation of strings.  Use snprintf instead of sprintf.
13993         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
13994         target when not compiling with GCC.
13996 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
13998         * config/sh/sh.c: Revert last change.
13999         (sh_expand_epilogue): Emit a blockage insn before the frame
14000         pointer adjustment unconditionally.
14002 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
14004         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
14005         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
14006         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
14007         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
14008         to COLLECT_GCC_OPTIONS.
14010 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
14012         * collect2.c (target_system_root): New variable.
14013         (main): Handle --sysroot=.
14014         (ignore_library): Strip the sysroot from the library path.
14016 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
14018         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
14019         (collect2.o): Depend on collect2-aix.h.
14020         (collect2-aix.o): New rule.
14021         * collect2-aix.h: New file.
14022         * collect2-aix.c: Likewise.
14023         * collect2.c: Include collect2-aix.h.  Don't undefine
14024         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
14025         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
14026         Use TARGET_AIX_VERSION instead of _AIX51.
14027         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
14028         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
14029         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
14030         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
14031         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
14033 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
14035         * collect2.c (ignore_library): Avoid premature post-increment
14036         and null deference.
14038 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
14040         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
14041         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
14042         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
14043         CROSS_DIRECTORY_STRUCTURE too.
14044         (LINK_LIBG_SPEC): Likewise.
14045         (LIB_SPEC): Add %R to sysroot paths.
14046         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
14047         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
14048         * config/rs6000/aix51.h: As for aix43.h.
14049         * config/rs6000/aix52.h: Likewise.
14050         * config/rs6000/aix53.h: Likewise.
14051         * config/rs6000/aix61.h: Likewise.
14052         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
14053         to the beginning of sysroot paths.
14055 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14057         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
14058         INSN_LISTs that are out of the REG_NOTE range.
14060 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14062         * loop-unroll.c (struct iv_to_split): Add pointer to next.
14063         (struct var_to_expand): Likewise.
14064         (struct opt_info): Add head and tail for linked lists of the above.
14065         (analyze_insn_to_expand_var): Initialize next.
14066         (analyze_iv_to_split_insn): Likewise.
14067         (analyze_insns_in_loop): Create linked lists.
14068         (allocate_basic_variable): Simplify for use without hash table.
14069         (insert_var_expansion_initialization): Likewise, make it type-safer.
14070         (combine_var_copies_in_loop_exit): Likewise.
14071         (apply_opt_in_copies): Walk lists rather than hash tables.
14072         (release_var_copies): Simplified and inlined by hand into...
14073         (free_opt_info): ... this function.
14075 2009-06-02  Richard Guenther  <rguenther@suse.de>
14077         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
14078         for field decls.
14080 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14082         * cfgexpand.c (gimple_expand_cfg): Discard the source location
14083         only for builtins that are not overridden.
14085 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14087         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
14088         label string.
14090 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14092         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
14094 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14096         * combine.c (move_deaths): Compare LUIDs within the same BB only.
14098 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14100         * common.opt (fdump-unnumbered-links): New.
14101         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
14102         * print-rtl.c (flag_dump_unnumbered_links): New.
14103         (print_rtx): Test it.
14105 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
14107         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
14108         push/pop multiple to 8-byte alignment.
14110 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
14112         * config/i386/i386.c (queued_cfa_restores): New static variable.
14113         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
14114         functions.
14115         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
14116         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
14117         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
14118         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
14119         note unconditionally.
14120         (ix86_emit_restore_regs_using_mov): Likewise.
14121         (ix86_emit_restore_sse_regs_using_mov): Likewise.
14122         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
14123         it through to ix86_emit_restore_reg_using_pop.
14124         (ix86_emit_leave): Add RED_OFFSET argument.  Call
14125         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
14126         instead of adding REG_CFA_OFFSET note unconditionally.
14127         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
14128         the above functions.  Call ix86_add_queued_cfa_restore_notes when
14129         needed.
14131         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
14132         force output of the label even for dwarf2out_do_cfi_asm.
14133         (add_fde_cfi): If -g2 and above and cfi might change CFA,
14134         force creation of CFI label and chain DW_CFA_set_loc jumping to it
14135         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
14136         caller.
14137         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
14138         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
14139         dwarf2out_cfi_label callers.
14140         * tree.h (dwarf2out_cfi_label): Adjust prototype.
14141         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
14142         Adjust dwarf2out_cfi_label callers.
14143         * config/vax/vax.c (vax_output_function_prologue): Likewise.
14145         * config/i386/i386.h (struct machine_cfa_state,
14146         struct machine_function): Guard with ifndef USED_FOR_TARGET
14147         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
14149         PR other/40024
14150         * emutls.c (__emutls_get_address): Change arr->size to mean number
14151         of allocated arr->data entries instead of # of slots + 1.
14153         PR middle-end/40316
14154         * recog.c (peep2_reinit_state): New function.
14155         (peephole2_init_state): Use it at the end of a basic block and also
14156         when seeing a RTX_FRAME_RELATED_P insn.
14158 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
14160         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
14161         fixuns_truncrfdi2): New.
14162         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
14163         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
14164         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
14165         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
14166         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
14167         *recip_approx): Remove.
14168         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
14169         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
14170         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
14171         move to div.md.
14172         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
14173         setf_exp_rf): New.
14175 2009-06-01  Ian Lance Taylor  <iant@google.com>
14177         * attribs.c (register_attribute): Use CONST_CAST.
14178         * collect2.c (main): Use CONST_CAST2.
14179         (scan_prog_file): Likewise.
14180         * gcc.c (process_command, main): Likewise.
14181         * toplev.c (toplev_main): Likewise.
14183         * c-typeck.c (handle_warn_cast_qual): New static function,
14184         partially broken out of build_c_cast.
14185         (build_c_cast): Call handle_warn_cast_qual.
14186         * doc/invoke.texi (Warning Options): Document new effect of
14187         -Wcast-qual.
14189 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
14191         * diagnostic.c (diagnostic_build_prefix): Always print columns.
14192         (diagnostic_report_current_module): Print columns.
14193         * common.opt (flag_show_column): Enable by default.
14195 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
14197         * alias.c (find_base_term): Check for NULL term before returning.
14199 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
14201         Revert due to PR40320:
14202         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
14203         * calls.c (emit_library_call_value_1): Don't force_operand for move
14204         and push insns.
14206 2009-06-01  Olivier Hainque  <hainque@adacore.com>
14207             Eric Botcazou  <ebotcazou@adacore.com>
14209         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
14210         to be processed as a bitfield for constructor output purposes.
14211         * output.h (initializer_constant_valid_for_bitfield_p): Declare
14212         new function.
14213         * varasm.c (oc_local_state): New type, output_constructor
14214         local state to support communication with helpers.
14215         (oc_outer_state): New type, output_constructor outer state of
14216         relevance in recursive calls.
14217         (output_constructor_array_range): New output_constructor helper,
14218         extracted code for an array range element.
14219         (output_constructor_regular_field): New output_constructor helper,
14220         extracted code for an element that is not a bitfield.
14221         (output_constructor_bitfield): New output_constructor helper,
14222         extracted code for a bitfield element.  Accept an OUTER state
14223         argument for recursive processing.  Recurse on record or array
14224         CONSTRUCTOR values, possibly past noop conversions.
14225         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
14226         VALUE is a valid constant-valued expression for use in a static
14227         bit-field initializer.
14228         (output_constructor): Rework to use helpers.  Accept and honor an
14229         OUTER state argument for recursive calls.  Return total size.  Be
14230         prepared for nested constructors initializing bitfields.
14231         (output_constant): Feed OUTER in calls to output_constructor.
14233 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
14235         * calls.c (emit_library_call_value_1): Don't force_operand for move
14236         and push insns.
14238 2009-06-01  Nick Clifton  <nickc@redhat.com>
14240         * doc/invoke.texi (IA-64 Options): Fix typo.
14242 2009-06-01  Ira Rosen  <irar@il.ibm.com>
14244         PR tree-optimization/39129
14245         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
14246         printed message.
14247         (vect_do_peeling_for_loop_bound): Use
14248         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
14249         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
14250         (vect_loop_versioning): Likewise.
14251         (vect_create_cond_for_alias_checks): Fix indentation.
14252         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
14253         macros.
14254         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
14255         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
14256         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
14257         "control flow in loop".
14258         (vect_estimate_min_profitable_iters): Use
14259         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
14260         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
14261         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
14262         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
14263         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
14264         statement belongs to a group of strided accesses with the exact code
14265         check.
14266         (vectorizable_load): Likewise.
14267         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
14268         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
14270 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
14272         * config/freebsd-stdint.h: New file.
14273         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
14274         Add freebsd-stdint.h to tm_file.
14276 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
14278         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
14279         (thumb2_extendhidi2): Likewise.
14281 2009-05-31  Ian Lance Taylor  <iant@google.com>
14283         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
14285 2009-05-31  Ian Lance Taylor  <iant@google.com>
14287         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
14288         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
14289         (ipa-reference.o): Depend upon gt-ipa-reference.h.
14291 2009-05-31  Jason Merrill  <jason@redhat.com>
14293         * tree-pretty-print.c (print_call_name): Take the callee, not the
14294         call itself.  Make non-static.  Use dump_function_name for functions.
14295         (dump_generic_node): Adjust.
14296         * diagnostic.h: Declare print_call_name.
14297         * gimple-pretty-print.c (dump_gimple_call): Use it.
14299 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
14301         * config/sh/sh.md (ashldi3_std): New define_expand.
14302         (ashldi3): Use it.
14304 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
14306         PR target/40313
14307         * config/sh/sh.c: Include debug.h.
14308         (sh_expand_epilogue): Emit a blockage insn before the frame
14309         pointer adjustment also when dwarf2out_do_frame returns true.
14311 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
14313         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
14314         (thumb2_extendqidi2): New pattern.
14316 2009-05-31  Ira Rosen  <irar@il.ibm.com>
14318         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
14319         mark phis for renaming.
14320         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
14321         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
14322         Call mark_sym_for_renaming.
14323         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
14324         * tree-vect-loop.c (vect_transform_loop): Remove
14325         vect_memsyms_to_rename initialization and a call to
14326         mark_set_for_renaming.
14328 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
14330         PR middle-end/40304
14331         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
14332         frame related even if !set_cfa && style < 0.
14334 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
14336         * config/i386/mingw-tls.c: New file.
14337         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
14338         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
14339         defining _WIN32 but not __CYGWIN__.
14341 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14343         * configure.ac: Add MPC support.
14345         * config.in, configure: Regenerate.
14347 2009-05-29  Richard Henderson  <rth@redhat.com>
14349         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
14350         NOTE_INSN_BASIC_BLOCK.
14351         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
14352         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
14353         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
14354         to be deleted.
14355         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
14356         add in_use field.
14357         (add_cfi): Disable check redefining cfa away from drap.
14358         (lookup_cfa_1): Add remember argument; handle remember/restore.
14359         (lookup_cfa): Pass remember argument.
14360         (cfa_remember): New.
14361         (compute_barrier_args_size_1): Remove sibcall check.
14362         (dwarf2out_frame_debug_def_cfa): New.
14363         (dwarf2out_frame_debug_adjust_cfa): New.
14364         (dwarf2out_frame_debug_cfa_offset): New.
14365         (dwarf2out_frame_debug_cfa_register): New.
14366         (dwarf2out_frame_debug_cfa_restore): New.
14367         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
14368         (dwarf2out_begin_epilogue): New.
14369         (dwarf2out_frame_debug_restore_state): New.
14370         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
14371         DW_CFA_restore_state.
14372         (output_cfi_directive): Likewise.
14373         (convert_cfa_to_fb_loc_list): Likewise.
14374         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
14375         * dwarf2out.h: Update.
14376         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
14377         (copy_insn_1): Early out for null.
14378         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
14379         and dwarf2out_frame_debug_restore_state.
14380         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
14381         (prologue_insn_hash, epilogue_insn_hash): New.
14382         (free_after_compilation): Adjust freeing accordingly.
14383         (record_insns): Create hash table if needed; push insns into
14384         hash instead of array.
14385         (maybe_copy_epilogue_insn): New.
14386         (contains): Search hash table instead of array.
14387         (sibcall_epilogue_contains): Remove.
14388         (thread_prologue_and_epilogue_insns): Split eh_return insns
14389         and mark them as epilogues.
14390         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
14391         scanning in terms of basic blocks.
14392         * insn-notes.def (CFA_RESTORE_STATE): New.
14393         * jump.c (returnjump_p_1): Accept EH_RETURN.
14394         (eh_returnjump_p_1, eh_returnjump_p): New.
14395         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
14396         CFA_REGISTER, CFA_RESTORE): New.
14397         * rtl.def (EH_RETURN): New.
14398         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
14400         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
14401         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
14403         * config/i386/i386.c (gen_push): Update cfa state.
14404         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
14405         add a CFA_ADJUST_CFA note.
14406         (ix86_dwarf_handle_frame_unspec): Remove.
14407         (ix86_expand_prologue): Update cfa state.
14408         (ix86_emit_restore_reg_using_pop): New.
14409         (ix86_emit_restore_regs_using_pop): New.
14410         (ix86_emit_leave): New.
14411         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
14412         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
14413         * config/i386/i386.h (struct machine_cfa_state): New.
14414         (ix86_cfa_state): New.
14415         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
14416         (eh_return_internal): Merge from eh_return_<mode>,
14417         use eh_return rtx, split w/ epilogue.
14419 2009-05-29  Ian Lance Taylor  <iant@google.com>
14421         * builtins.c (validate_gimple_arglist): Don't use va_arg with
14422         enum type.
14423         * calls.c (emit_library_call_value_1): Likewise.
14425         * c-typeck.c (c_build_va_arg): New function.
14426         * c-tree.h (c_build_va_arg): Declare.
14427         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
14428         instead of build_va_arg.
14430 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
14432         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
14433         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
14434         (ptr_difference_cost): Use affine combinations to compute it.
14435         (difference_cost): Likewise.
14436         (get_computation_cost_at): Compute more accurate cost for addresses
14437         if the ratio is a multiplier allowed in addresses.
14438         For non-addresses, consider that an additional offset or symbol is
14439         added only once.
14441 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
14443         * config/i386/i386.c (ix86_decompose_address): Avoid useless
14444         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
14446         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
14447         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
14448         (prefix_rex): For UNIT_MMX don't imply the prefix by default
14449         if MODE_DI.
14450         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
14451         to 1 for TYPE_SSE{IADD1,CVT1}.
14452         (prefix_vex_imm8): Removed.
14453         (length_vex): Only pass 1 as second argument to
14454         ix86_attr_length_vex_default if prefix_extra is 0.
14455         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
14456         (length): For prefix vex computation use length_immediate
14457         attribute instead of prefix_vex_imm8.
14458         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
14459         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
14460         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
14461         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
14462         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
14463         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
14464         a space in between the operands.
14465         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
14466         if one operand is 0xff and the other one si, di, bp or sp.
14467         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
14468         other one si, di, bp or sp.
14469         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
14470         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
14471         type and mode attributes.
14472         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
14473         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
14474         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
14475         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
14476         prefix_data16 attribute iff MODE_DF.
14477         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
14478         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
14479         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
14480         constm128_operand in length_immediate computation.
14481         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
14482         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
14483         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
14484         length_immediate attribute to 1.
14485         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
14486         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
14487         for certain alternatives.
14488         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
14489         prefix_data16 attribute if MODE_V1DF.
14490         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
14491         length_immediate to 1.
14492         (set_got_rex64, set_rip_rex64): Remove length attribute, set
14493         length_address to 4, set mode attribute to MODE_DI.
14494         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
14495         (fxam<mode>2_i387): Set length attribute to 4.
14496         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
14497         *prefetch_3dnow_rex): Override length_address attribute.
14498         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
14499         attributes.
14500         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
14501         (constm128_operand): Removed.
14502         * config/i386/i386.c (memory_address_length): For
14503         disp && !index && !base in 64-bit mode account for SIB byte if
14504         print_operand_address can't optimize disp32 into disp32(%rip)
14505         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
14506         for fs: or gs: segment.
14507         (ix86_attr_length_immediate_default): When checking if shortform
14508         is possible, truncate immediate to the length of the non-shortened
14509         immediate.
14510         (ix86_attr_length_address_default): Ignore MEM_P operands
14511         with X constraint.
14512         (ix86_attr_length_vex_default): Only check for DImode on
14513         GENERAL_REG_P operands.
14514         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
14515         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
14516         (sse_cvttps2pi): Clear prefix_rep attribute.
14517         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
14518         attribute.
14519         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
14520         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
14521         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
14522         iff operand 2 is const_int_operand.
14523         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
14524         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
14525         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
14526         instead of vex.
14527         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
14528         prefix_data16.
14529         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
14530         prefix_data16 attribute for movlpd and movhpd instructions.
14531         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
14532         length_immediate for shufpd instruction.
14533         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
14534         (avx_cmpp<avxmodesuffixf2c><mode>3,
14535         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
14536         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
14537         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
14538         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
14539         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
14540         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
14541         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
14542         prefix_data16 attribute for the first alternative to 1.
14543         (*avx_loadlps): Override length_immediate for the first alternative.
14544         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
14545         attributes for second alternative.
14546         (*vec_concatv2sf_sse4_1): Override length_immediate and
14547         prefix_data16 attributes for second alternative.
14548         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
14549         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
14550         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
14551         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
14552         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
14553         prefix_data16 and length_immediate to 1.
14554         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
14555         to 1.
14556         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
14557         prefix_extra attribute for variants that don't have 0f prefix alone.
14558         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
14559         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
14560         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
14561         *sse4_1_pextrd): Set length_immediate to 1.
14562         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
14563         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
14564         to 1.
14565         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
14566         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
14567         length_immediate to 1 for second alternative.
14568         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
14569         prefix_extra and length_immediate attributes for the first
14570         alternative.
14571         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
14572         first alternative.
14573         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
14574         to 1 for the first and third alternative.
14575         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
14576         alternative.
14577         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
14578         attribute.
14579         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
14580         attribute to 0.
14581         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
14582         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
14583         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
14584         *avx_psign<mode>3): Set prefix_extra attribute to 1.
14585         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
14586         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
14587         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
14588         ssse3_psign<mode>3): Override prefix_rex attribute.
14589         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
14590         (ssse3_palignrti): Override length_immediate to 1.
14591         (ssse3_palignrdi): Override length_immediate to 1, override
14592         prefix_rex attribute.
14593         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
14594         (sse4a_extrqi): Override length_immediate to 2.
14595         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
14596         (sse4a_insertq): Override prefix_data16 to 0.
14597         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
14598         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
14599         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
14600         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
14601         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
14602         and length_immediate to 1.
14603         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
14604         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
14605         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
14606         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
14607         and length_immediate to 1.
14608         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
14609         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
14610         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
14611         avx_ptest256): Override prefix_extra to 1.
14612         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
14613         Override prefix_data16 and length_immediate to 1.
14614         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
14615         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
14616         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
14617         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
14618         prefix_data16 to 0 and prefix_extra to 2.
14619         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
14620         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
14621         attribute.
14622         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
14623         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
14624         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
14625         and prefix_extra to 2.
14626         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
14627         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
14628         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
14629         avx_vpermilvar<mode>3,
14630         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
14631         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
14632         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
14633         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
14634         Override prefix_extra to 1.
14635         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
14636         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
14637         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
14638         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
14639         prefix_extra and length_immediate to 1.
14640         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
14641         modrm to 0.
14642         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
14643         to 1 for the first alternative.
14644         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
14645         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
14646         cases.
14647         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
14648         *movv2sf_internal_avx, *movv2sf_internal): Override
14649         prefix_rep attribute for certain alternatives.
14650         (*mov<mode>_internal): Override prefix_rep or prefix_data16
14651         attributes for certain alternatives.
14652         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
14653         attributes for certain alternatives.
14654         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
14655         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
14656         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
14657         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
14658         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
14659         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
14660         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
14661         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
14662         length_immediate to 1 if operand 2 is const_int_operand.
14663         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
14664         *vec_extractv2si_1): Set length_immediate attribute to 1.
14665         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
14666         using old 3DNOW insn rather than SSE/3DNOW_A.
14667         (mmx_emms, mmx_femms): Clear modrm attribute.
14669 2009-05-29  Martin Jambor  <mjambor@suse.cz>
14671         * tree-sra.c:  New implementation of SRA.
14673         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
14674         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
14675         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
14676         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
14677         (SRA_MAX_STRUCTURE_COUNT): Removed.
14678         (SRA_FIELD_STRUCTURE_RATIO): Removed.
14679         * doc/invoke.texi (sra-max-structure-size): Removed.
14680         (sra-field-structure-ratio): Removed.
14682 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
14684         PR middle-end/40291
14685         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
14686         before expansion.
14688 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
14690         PR rtl-optimization/40101
14691         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
14692         seqno.  Adjust comment.
14693         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
14694         inserting bookkeeping before a jump, the jump is not scheduled.
14695         When no positive seqno found, provide a value.  Add comment.
14697 2009-05-29  Richard Guenther  <rguenther@suse.de>
14699         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
14700         short-cutting on the first component.
14702 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
14704         PR middle-end/39958
14705         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
14706         for trees other than decls/types.
14708 2009-05-29  Richard Guenther  <rguenther@suse.de>
14710         * tree-ssa-operands.c (get_expr_operands): Do not handle
14711         INDIRECT_REFs in the handled-component case.  Remove
14712         unused get_ref_base_and_extent case.
14713         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
14714         tree_low_cst and host_integerp where possible.
14715         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
14716         codes for equivalence.
14717         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
14719 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
14721         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
14722         to tmake_file for i[34567]86-*-cygwin*.
14724 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
14726         PR target/40017
14727         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
14728         (altivec_categorize_keyword, init_vector_keywords,
14729         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
14730         similar to bool.
14732 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
14734         * tree.c (handle_dll_attribute): Check if node is
14735         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
14737 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
14739         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
14740         component.
14741         (thumb2_zero_extendqidi2): Likewise.
14743 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
14745         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
14746         instead of gen_movrt.
14747         * config/sh/sh.md (movrt): Remove.
14749 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
14751         * doc/invoke.texi (IA-64 Options):
14752         Add -msdata, -mfused-madd, -mno-inline-float-divide,
14753         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
14754         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
14755         -msched-prefer-non-control-spec-insns,
14756         -msched-stop-bits-after-every-cycle,
14757         -msched-count-spec-in-critical-path,
14758         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
14759         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
14760         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
14761         and -msched-spec-verbose.
14763 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
14765         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
14766         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
14767         error if used.
14768         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
14770 2009-05-28  Richard Guenther  <rguenther@suse.de>
14772         * tree-ssa-alias.c (ao_ref_init): New function.
14773         (ao_ref_base): Likewise.
14774         (ao_ref_base_alias_set): Likewise.
14775         (ao_ref_alias_set): Likewise.
14776         (refs_may_alias_p_1): Change signature.
14777         (refs_may_alias_p): Adjust.
14778         (refs_anti_dependent_p): Likewise.
14779         (refs_output_dependent_p): Likewise.
14780         (call_may_clobber_ref_p_1): Change signature.
14781         (call_may_clobber_ref_p): Adjust.
14782         (stmt_may_clobber_ref_p_1): New function split out from ...
14783         (stmt_may_clobber_ref_p): ... here.
14784         (maybe_skip_until): Adjust signature.
14785         (get_continuation_for_phi): Likewise.
14786         (walk_non_aliased_vuses): Likewise.
14787         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
14788         (ao_ref_init): Declare.
14789         (ao_ref_base): Likewise.
14790         (ao_ref_alias_set): Likewise.
14791         (stmt_may_clobber_ref_p_1): Likewise.
14792         (walk_non_aliased_vuses): Adjust.
14793         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
14794         (get_ref_from_reference_ops): remove.
14795         (vn_reference_lookup_2): Adjust signature.
14796         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
14797         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
14798         (vn_reference_lookup): Adjust.
14799         (vn_reference_insert): Likewise.
14800         (vn_reference_insert_pieces): Adjust signature.
14801         (visit_reference_op_call): Adjust.
14802         * tree-ssa-pre.c (get_expr_type): Simplify.
14803         (phi_translate_1): Adjust.
14804         (compute_avail): Likewise.
14805         (translate_vuse_through_block): Do not re-build trees.
14806         (value_dies_in_block_x): Likewise.
14807         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
14808         fields.
14809         (vn_reference_lookup_pieces): Adjust declaration.
14810         (vn_reference_insert_pieces): Likewise.
14812 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
14814         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
14815         with checking disabled.
14817 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
14819         PR target/37216
14821         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
14822         macro definition for support of three-operand format aligned
14823         .comm directive in assembler on cygwin/pe/mingw target OS.
14824         * configure:  Regenerate.
14825         * config.h:  Regenerate.
14827         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
14828         aligned form of .comm directive if -mpe-aligned-commons is in effect.
14829         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
14831         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
14832         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
14834 2009-05-28  Ira Rosen  <irar@il.ibm.com>
14836         PR tree-optimization/40254
14837         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
14838         in analysis of basic blocks.
14840 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
14842         PR middle-end/33699
14843         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
14844         * target-def.h (TARGET_CONST_ANCHOR): New macro.
14845         (TARGET_INITIALIZER): Use it.
14846         * cse.c (CHEAPER): Move it up to the other macros.
14847         (insert): Rename this ...
14848         (insert_with_costs): ... to this.  Add cost parameters.  Update
14849         function comment.
14850         (insert): New function.  Call insert_with_costs.
14851         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
14852         find_reg_offset_for_const, try_const_anchors): New functions.
14853         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
14854         when using a const-anchor.  Call insert_const_anchors.
14855         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
14856         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
14858 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
14860         * tree-inline.c (remap_decls): Enable nonlocalized variables
14861         when not optimizing.
14863 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
14865         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
14866         Simplify other tests involving optimize.
14868 2009-05-27  Tom Tromey  <tromey@redhat.com>
14870         * unwind-dw2.c (_Unwind_DebugHook): New function.
14871         (uw_install_context): Call _Unwind_DebugHook.
14873 2009-05-27  Tom Tromey  <tromey@redhat.com>
14875         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
14877 2009-05-27  Ian Lance Taylor  <iant@google.com>
14879         * Makefile.in (LINKER, LINKER_FLAGS): Define.
14880         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
14881         (ALL_LINKERFLAGS): Define.
14882         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
14883         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
14884         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
14885         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
14886         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
14887         $(LINKER_FOR_BUILD).
14888         (build/gcov-iov$(build_exeext)): Likewise.
14890 2009-05-27  Julian Brown  <julian@codesourcery.com>
14892         * gcse.c (target.h): Include.
14893         (can_assign_to_reg_without_clobbers_p): Check that the target allows
14894         copy of argument to a pseudo register.
14896 2009-05-27  Diego Novillo  <dnovillo@google.com>
14898         * tree-ssa-live.c (dump_scope_block): Document arguments.
14899         (dump_scope_blocks): Document.
14900         (debug_scope_blocks): New.
14901         * tree-flow.h (debug_scope_blocks): Declare.
14903 2009-05-21  Denis Chertykov  <denisc@overta.ru>
14905         * doc/contrib.texi (Contributors): Add myself to the list.
14907 2009-05-27  Olivier Hainque  <hainque@adacore.com>
14909         * expr.c (target_align): New function.  Alignment the TARGET of an
14910         assignment may be assume to have.
14911         (highest_pow2_factor_for_target): Use it instead of relying on
14912         immediate tree attributes of TARGET, not necessarily honored when
14913         intermediate bitfields are involved.
14915 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
14917         PR target/40266
14918         * config/i386/driver-i386.c (host_detect_local_cpu): Support
14919         AVX, SSE4, AES, PCLMUL and POPCNT.
14921 2009-05-27  Diego Novillo  <dnovillo@google.com>
14923         * tree-pretty-print.c (dump_location): New.
14924         (dump_generic_node): Call it.
14925         Factor code to handle BLOCK nodes ...
14926         (dump_block_node): ... here.
14928 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
14930         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
14931         with it.
14932         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
14933         included.
14934         * gcc-plugin.h: Include config.h and system.h.
14935         (IN_GCC): Define if not defined.
14937 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
14939         PR middle-end/40249
14940         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
14941         with -fno-inline.
14943 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
14945         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
14946         applicable.
14947         * config/m32r/m32r.h: Ditto.
14948         * config/m32r/m32r.md: Ditto.
14949         * config/m32r/predicates.md: Ditto.
14951 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
14953         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
14955 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
14957         * doc/plugins.texi
14958         (Loading plugins): typo.
14959         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
14960         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
14961         (Interacting with the GCC Garbage Collector): Added new section.
14962         (Giving information about a plugin): Added new section for
14963         PLUGIN_INFO.
14964         * ggc.h (ggc_register_root_tab): Added declaration.
14965         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
14966         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
14967         (register_callback): Improved comment in declaration.
14968         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
14969         (extra_root_vec) Added static variable for dynamic roots registration.
14970         (ggc_register_root_tab) Added new routine.
14971         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
14972         PLUGIN_GGC_MARKING event.
14973         * ggc-zone.c: Include plugin.h.
14974         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
14975         * ggc-page.c: Include plugin.h.
14976         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
14977         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
14978         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
14979         (register_callback): check lack of callbacks for
14980         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
14981         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
14982         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
14983         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
14984         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
14985         dependency on plugin.h.
14986         (plugin.o): Added dependency on ggc.h...
14988 2009-05-26  Richard Guenther  <rguenther@suse.de>
14990         PR middle-end/40248
14991         Revert
14992         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
14993         with mismatched comparison modes.
14995         * expr.c (expand_expr_real_1): Expand the operand of a
14996         VIEW_CONVERT_EXPR in its natural mode.
14998 2009-05-26  Ian Lance Taylor  <iant@google.com>
15000         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
15001         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
15002         (ALL_COMPILERFLAGS): Define.
15003         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
15004         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15005         (collect2$(exeext), collect2.o): Likewise.
15006         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
15007         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
15008         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
15009         (libbackend.o, intl.o, cppdefault.o): Likewise.
15010         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15011         (build/%.o): Use $(COMPILER_FOR_BUILD).
15012         (build/gen%$(build_exeext)): Likewise.
15013         (build/gcov-iov$(build_exeext)): LIkewise.
15014         * config/t-darwin (darwin.o): Use $(COMPILER).
15015         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
15016         * config/t-sol2 (sol2-c.o): Likewise.
15017         (sol2.o): Likewise.
15018         * config/t-vxworks (vxworks.o): Likewise.
15019         * config/x-darwin (host-darwin.o): Likewise.
15020         * config/x-hpux (host-hpux.o): Likewise.
15021         * config/x-linux (host-linux.o): Likewise.
15022         * config/x-solaris (host-solaris.o): Likewise.
15023         * config/alpha/x-alpha (driver-alpha.o): Likewise.
15024         * config/arm/t-arm (arm-c.o): Likewise.
15025         * config/arm/t-pe (pe.o): Likewise.
15026         * config/arm/t-wince-pe (pe.o): Likewise.
15027         * config/i386/t-cygming (winnt.o): Likewise.
15028         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
15029         * config/i386/t-cygwin (cygwin1.o): Likewise.
15030         (cygwin2.o): Likewise.
15031         * config/i386/t-i386 (i386-c.o): Likewise.
15032         * config/i386/t-interix (winnt.o): Likewise.
15033         * config/i386/t-netware (netware.o): Likewise.
15034         * config/i386/t-nwld (nwld.o): Likewise.
15035         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
15036         * config/i386/x-i386 (driver-i386.o): Likewise.
15037         * config/i386/x-cygwin (host-cygwin.o): Likewise.
15038         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
15039         * config/ia64/t-ia64 (ia64-c.o): Likewise.
15040         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
15041         * config/mips/x-native (driver-native.o): Likewise.
15042         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
15043         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
15044         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
15045         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
15046         * config/score/t-score-elf (score7.o): Likewise.
15047         (score3.o): Likewise.
15048         * config/sh/t-sh (sh-c.o): Likewise.
15049         * config/sh/t-symbian (sh-c.o): Likewise.
15050         (symbian.o): Likewise.
15051         * config/spu/t-spu-elf (spu-c.o): Likewise.
15052         * config/v850/t-v850 (v850-c.o): Likewise.
15053         * config/v850/t-v850e (v850-c.o): Likewise.
15055 2009-05-26  Richard Guenther  <rguenther@suse.de>
15057         PR tree-optimization/40122
15058         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
15059         VECTOR_CSTs if possible.
15060         (fold_gimple_assign): Likewise.
15062 2009-05-26  Richard Guenther  <rguenther@suse.de>
15064         PR middle-end/40252
15065         * fold-const.c (fold_binary): Use the correct types for building
15066         rotates.
15068 2009-05-26  Richard Guenther  <rguenther@suse.de>
15070         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
15071         redundant calls to merge_alias_info.
15072         (bump_vector_ptr): Likewise.
15073         * tree-ssa-copy.c (merge_alias_info): Remove.
15074         (replace_exp_1): Remove call to merge_alias_info.
15075         (propagate_tree_value): Likewise.
15076         (fini_copy_prop): Propagate points-to info.
15077         * tree-flow.h (merge_alias_info): Remove.
15079 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
15081         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
15083 2009-05-25  Jan Hubicka  <jh@suse.cz>
15085         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
15086         * cgraph.h (struct inline_summary): New filed self_wize,
15087         size_inlining_benefit, self_time and time_inlining_benefit.
15088         (struct cgraph_global_info): Replace insns by time ans size fields.
15089         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
15090         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
15091         (ipcp_update_callgraph): Do not touch function bodies.
15092         * ipa-inline.c: Include except.h
15093         (MAX_TIME): New constant.
15094         (overall_insns): Remove.
15095         (leaf_node_p): New.
15096         (overall_size, max_benefit): New static variables.
15097         (cgraph_estimate_time_after_inlining): New function.
15098         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
15099         (cgraph_clone_inlined_nodes): Update size.
15100         (cgraph_mark_inline_edge): Update size.
15101         (cgraph_estimate_growth): Use size info.
15102         (cgraph_check_inline_limits): Check size.
15103         (cgraph_default_inline_p): Likewise.
15104         (cgraph_edge_badness): Compute badness based on benefit and size cost.
15105         (cgraph_decide_recursive_inlining): Check size.
15106         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
15107         and times.
15108         (cgraph_decide_inlining): Likewise.
15109         (cgraph_decide_inlining_incrementally): Likewise; honor
15110         PARAM_EARLY_INLINING_INSNS.
15111         (likely_eliminated_by_inlining_p): New predicate.
15112         (estimate_function_body_sizes): New function.
15113         (compute_inline_parameters): Use it.
15114         * except.c (must_not_throw_labels): New function.
15115         * except.h (must_not_throw_labels): Declare.
15116         * tree-inline.c (init_inline_once): Kill inlining_weigths
15117         * tree-ssa-structalias.c: Avoid uninitialized warning.
15118         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
15119         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
15120         (PARAM_INLINE_CALL_COST): Remove.
15121         (PARAM_EARLY_INLINING_INSNS): New.
15123 2009-05-25  Richard Guenther  <rguenther@suse.de>
15125         PR tree-optimization/36327
15126         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
15127         callback for reference translation or lookup at the point of may-defs.
15128         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
15129         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
15130         for union COMPONENT_REFs.
15131         (vn_reference_lookup_3): New callback.  Lookup from memset
15132         and CONSTRUCTOR assignment, translate through struct copies.
15133         (vn_reference_lookup_pieces): Make sure to not free the
15134         passed operands array.  Adjust walk_non_aliased_vuses call.
15135         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
15136         make sure we do not leak memory.
15138 2009-05-25  Richard Guenther  <rguenther@suse.de>
15140         * tree-ssa-alias.h (dump_points_to_solution): Declare.
15141         * tree-inline.c (expand_call_inline): Reset the escaped and
15142         callused solutions.
15143         * tree-ssa-structalias.c (pass_build_ealias): New.
15144         * tree-pass.h (pass_build_ealias): Declare.
15145         * passes.c (init_optimization_passes): Add PTA during
15146         early optimizations.
15147         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
15148         and CALLUSED solutions.
15149         (dump_points_to_solution): New function, split out from ...
15150         (dump_points_to_info_for): ... here.
15151         * tree-parloops.c (parallelize_loops): Reset the escaped and
15152         callused solutions.
15154 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15156         PR bootstrap/40027
15157         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
15158         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
15160 2009-05-25  Ira Rosen  <irar@il.ibm.com>
15162         PR tree-optimization/40238
15163         * tree-vect-stmts.c (vect_init_vector): Insert initialization
15164         statements after basic block's labels.
15165         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
15166         to free the allocated memory.
15168 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
15170         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
15171         return address with a USE.
15173 2009-05-24  Richard Guenther  <rguenther@suse.de>
15175         PR middle-end/40233
15176         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
15177         array type from the main variant of the inner type.
15179 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15181         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
15182         definition to bool (from int) to un-break build.
15183         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
15185 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
15187         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
15188         discard_stmt_changes): Delete.
15189         * tree-ssa-operands.c (scb_stack): Delete.
15190         (init_ssa_operands): Do not initialize it.
15191         (fini_ssa_operands): Do not free it.
15192         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
15194         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
15195         update_stmt, remove the others.  Fix comments.
15196         * tree-dfa.c (optimize_stack_restore): Likewise.
15197         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
15198         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
15199         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
15200         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
15201         Likewise.
15202         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
15203         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
15204         (dom_opt_finalize_block): Likewise, adjusting access to
15205         stmts_to_rescan.
15206         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
15207         (stmts_to_rescan): Change item type to gimple.
15208         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
15210 2009-05-24  Ira Rosen  <irar@il.ibm.com>
15212         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
15213         * tree-pass.h (pass_slp_vectorize): New pass.
15214         * params.h (SLP_MAX_INSNS_IN_BB): Define.
15215         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
15216         * tree-vectorizer.c (timevar.h): Include.
15217         (user_vect_verbosity_level): Declare.
15218         (vect_location): Fix comment.
15219         (vect_set_verbosity_level): Update user_vect_verbosity_level
15220         instead of vect_verbosity_level.
15221         (vect_set_dump_settings): Add an argument. Ignore user defined
15222         verbosity if dump flags require higher level of verbosity. Print to
15223         stderr only for loop vectorization.
15224         (vectorize_loops): Update call to vect_set_dump_settings.
15225         (execute_vect_slp): New function.
15226         (gate_vect_slp): Likewise.
15227         (struct gimple_opt_pass pass_slp_vectorize): New.
15228         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
15229         access its members.
15230         (vec_info_for_bb): New function.
15231         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
15232         (VECTORIZATION_ENABLED): New macro.
15233         (SLP_ENABLED, SLP_DISABLED): Likewise.
15234         (vect_is_simple_use): Add bb_vec_info argument.
15235         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
15236         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
15237         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
15238         vect_schedule_slp, vect_analyze_slp): Likewise.
15239         (vect_analyze_stmt): Add slp_tree argument.
15240         (find_bb_location): Declare.
15241         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
15242         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
15243         (vect_analyze_loop_operations, vect_analyze_loop,
15244         get_initial_def_for_induction, vect_create_epilog_for_reduction,
15245         vect_finalize_reduction, vectorizable_reduction,
15246         vectorizable_live_operation, vect_transform_loop): Likewise.
15247         * tree-data-ref.c (dr_analyze_innermost): Update comment,
15248         skip evolution analysis if analyzing a basic block.
15249         (dr_analyze_indices): Likewise.
15250         (initialize_data_dependence_relation): Skip the test whether the
15251         object is invariant for basic blocks.
15252         (compute_all_dependences): Skip dependence analysis for data
15253         references in basic blocks.
15254         (find_data_references_in_stmt): Don't fail in case of invariant
15255         access in basic block.
15256         (find_data_references_in_bb): New function.
15257         (find_data_references_in_loop): Move code to
15258         find_data_references_in_bb and add a call to it.
15259         (compute_data_dependences_for_bb): New function.
15260         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
15261         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
15262         that STEP is 0.
15263         (vect_analyze_data_ref_dependence): Check for interleaving in case of
15264         unknown dependence in basic block and fail in case of dependence in
15265         basic block.
15266         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
15267         dependence instances from either loop or basic block vectorization
15268         info.
15269         (vect_compute_data_ref_alignment): Check if it is loop vectorization
15270         before calling nested_in_vect_loop_p.
15271         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
15272         dependence instances from either loop or basic block vectorization
15273         info.
15274         (vect_verify_datarefs_alignment): Likewise.
15275         (vect_enhance_data_refs_alignment): Adjust function calls.
15276         (vect_analyze_data_refs_alignment): Likewise.
15277         (vect_analyze_group_access): Fix printing. Skip different checks if
15278         DR_STEP is 0. Keep strided stores either in loop or basic block
15279         vectorization data structure. Fix indentation.
15280         (vect_analyze_data_ref_access): Fix comments, allow zero step in
15281         basic blocks.
15282         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
15283         dependence instances from either loop or basic block vectorization
15284         info.
15285         (vect_analyze_data_refs): Update comment. Call
15286         compute_data_dependences_for_bb to analyze basic blocks.
15287         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
15288         case of loop vectorization. In case of basic block vectorization use
15289         data-ref itself as a base.
15290         (vect_create_data_ref_ptr): In case of basic block vectorization:
15291         don't advance the pointer, add new statements before the current
15292         statement.  Adjust function calls.
15293         (vect_supportable_dr_alignment): Support only aligned accesses in
15294         basic block vectorization.
15295         * common.opt (ftree-slp-vectorize): New flag.
15296         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
15297         (vect_pattern_recog_1): Likewise.
15298         * tree-vect-stmts.c (process_use): Likewise.
15299         (vect_init_vector): Add new statements in the beginning of the basic
15300         block in case of basic block SLP.
15301         (vect_get_vec_def_for_operand): Adjust function calls.
15302         (vect_finish_stmt_generation): Likewise.
15303         (vectorizable_call): Add assert that it is loop vectorization, adjust
15304         function calls.
15305         (vectorizable_conversion, vectorizable_assignment): Likewise.
15306         (vectorizable_operation): In case of basic block SLP, take
15307         vectorization factor from statement's type and skip the relevance
15308         check. Adjust function calls.
15309         (vectorizable_type_demotion): Add assert that it is loop
15310         vectorization, adjust function calls.
15311         (vectorizable_type_promotion): Likewise.
15312         (vectorizable_store): Check for outer loop only in case of loop
15313         vectorization. Adjust function calls. For basic blocks, skip the
15314         relevance check and don't advance pointers.
15315         (vectorizable_load): Likewise.
15316         (vectorizable_condition): Add assert that it is loop vectorization,
15317         adjust function calls.
15318         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
15319         that it is not reduction, get vector type, call only supported
15320         functions, skip loop specific parts.
15321         (vect_transform_stmt): Check for outer loop only in case of loop
15322         vectorization.
15323         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
15324         (vect_is_simple_use): Fix comment, add new argument, fix conditions
15325         for external definition.
15326         * passes.c (pass_slp_vectorize): New pass.
15327         * tree-vect-slp.c (find_bb_location): New function.
15328         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
15329         check for patterns only in loops.
15330         (vect_build_slp_tree): Add argument, adjust function calls, fail in
15331         case of multiple types in basic block SLP.
15332         (vect_mark_slp_stmts_relevant): New function.
15333         (vect_supported_load_permutation_p): Fix comment.
15334         (vect_analyze_slp_instance): Add argument. In case of basic block
15335         SLP, take vectorization factor from statement's type, check that
15336         unrolling factor is 1. Adjust function call. Save SLP instance in
15337         either loop or basic block vectorization structure. Return FALSE,
15338         if SLP failed.
15339         (vect_analyze_slp): Add argument. Get strided stores groups from
15340         either loop or basic block vectorization structure. Return FALSE
15341         if basic block SLP failed.
15342         (new_bb_vec_info): New function.
15343         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
15344         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
15345         (vect_schedule_slp): Add argument. Get SLP instances from either
15346         loop or basic block vectorization structure. Set vectorization factor
15347         to be 1 for basic block SLP.
15348         (vect_slp_transform_bb): New function.
15349         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
15351 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
15353         * final.c (shorten_branches): Do not align labels for jump tables.
15354         (final_scan_insn): Use JUMP_TABLE_DATA_P.
15356 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
15358         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
15359         Remove outdated reference to flow.c and fix nits.
15360         * doc/gccint.texi: Tweak RTL description.
15361         * doc/rtl.texi: Likewise.
15363 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
15365         * config/avr/avr.c: Change my email address.
15366         * config/avr/avr.h: Likewise.
15367         * config/avr/avr.md: Likewise.
15368         * config/avr/avr-protos.h: Likewise.
15369         * config/avr/libgcc.S: Likewise.
15371 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
15373         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
15374         (spu_split_load, spu_split_store): Change return type to int.
15375         (spu_split_convert): Declare.
15376         * config/spu/predicates.md (spu_mem_operand): Remove.
15377         (spu_mov_operand): Update.
15378         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
15379         * config/spu/spu.c (regno_aligned_for_load): Remove.
15380         (reg_aligned_for_addr, spu_expand_load): Define.
15381         (spu_expand_extv): Reimplement and handle MEM.
15382         (spu_expand_insv): Handle MEM.
15383         (spu_sched_reorder): Handle insn's with length 0.
15384         (spu_legitimate_address_p): Reimplement.
15385         (store_with_one_insn_p): Return TRUE for any mode with size
15386         larger than 16 bytes.
15387         (address_needs_split): Define.
15388         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
15389         operands.
15390         (spu_convert_move): Define.
15391         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
15392         (spu_split_store): Change all MEM's to TImode.
15393         (spu_init_expanders): Preallocate registers that correspond to
15394         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
15395         mark_reg_pointer.
15396         (spu_split_convert): Define.
15397         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
15398         (_move<mode>, _movdi, _movti): Update predicate and condition.
15399         (load, store): Change to define_split.
15400         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
15401         extend<mode>ti2.
15402         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
15403         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
15404         define_insn_and_split of lshr<mode>3.
15405         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
15406         (<v>ashr<mode>3_imm): Define.
15407         (extv, extzv, insv): Allow MEM operands.
15408         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
15409         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
15410         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
15411         (_spu_convert2): Change to define_insn_and_split and remove the
15412         corresponding define_peephole2.
15413         (stack_protect_set, stack_protect_test, stack_protect_test_si):
15414         Change predicates to memory_operand.
15416 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
15418         * config/arm/thumb2.md: Add 16-bit multiply instructions.
15420 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
15422         PR tree-optimization/40219
15423         * tree.c (iterative_hash_expr): Make sure the builtin function is
15424         a normal builtin function and not a front end or back end builtin
15425         before indexing into the built_in_decls array.
15427 2009-05-22  Richard Guenther  <rguenther@suse.de>
15429         PR middle-end/38964
15430         * alias.c (write_dependence_p): Do not use TBAA for answering
15431         anti-dependence or output-dependence.
15432         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
15433         (emit_pointer_definition): Remove.
15434         (emit_alias_warning): Likewise.
15435         (find_what_var_points_to): Remove TBAA pruning code.
15436         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
15437         violations.
15438         (compute_points_to_sets): Remove code computing the set of
15439         dereferenced pointers.
15440         * tree-data-ref.c (dr_may_alias_p): Properly use the split
15441         oracle for querying anti and output dependencies.
15442         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
15443         if TBAA may be applied.
15444         (refs_anti_dependent_p): New function.
15445         (refs_output_dependent_p): Likewise.
15446         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
15447         (refs_output_dependent_p): Likewise.
15448         * doc/tree-ssa.texi (Memory model): New section.
15449         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
15450         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
15451         * cfgexpand.c (expand_gimple_basic_block): Do not handle
15452         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
15453         * expr.c (expand_expr_real_1): Likewise.
15454         * gimple-low.c (lower_stmt): Likewise.
15455         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
15456         (dump_gimple_cdt): Remove.
15457         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
15458         (gimple_size): Likewise.
15459         (walk_gimple_op): Likewise.
15460         (is_gimple_stmt): Likewise.
15461         (walk_stmt_load_store_addr_ops): Likewise.
15462         (gimple_build_cdt): Remove.
15463         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
15464         * gimple.h (gimple_cdt_new_type): Remove.
15465         (gimple_cdt_new_type_ptr): Likewise.
15466         (gimple_cdt_set_new_type): Likewise.
15467         (gimple_cdt_location): Likewise.
15468         (gimple_cdt_location_ptr): Likewise.
15469         (gimple_cdt_set_location): Likewise.
15470         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
15471         * tree-cfg.c (remove_useless_stmts_1): Do not handle
15472         GIMPLE_CHANGE_DYNAMIC_TYPE.
15473         (verify_types_in_gimple_stmt): Likewise.
15474         * tree-inline.c (estimate_num_insns): Likewise.
15475         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
15476         (copy_decl_to_var): Likewise.
15477         (copy_result_decl_to_var): Likewise.
15478         * tree-pretty-print.c (dump_generic_node): Do not handle
15479         CHANGE_DYNAMIC_TYPE_EXPR.
15480         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
15481         * tree-ssa-operands.c (get_expr_operands): Likewise.
15482         * tree-ssa-structalias.c (struct variable_info): Remove
15483         no_tbaa_pruning member.
15484         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
15485         (unify_nodes): Do not copy it.
15486         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
15487         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
15488         (set_uids_in_ptset): Do not check it.
15489         (find_what_var_points_to): Likewise.
15490         (compute_tbaa_pruning): Remove.
15491         (compute_points_to_sets): Do not call it.
15492         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
15493         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
15494         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
15495         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
15496         (DECL_NO_TBAA_P): Likewise.
15497         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
15498         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
15499         (expand_omp_atomic_pipeline): Do not set it.
15500         * print-tree.c (print_node): Do not dump it.
15501         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
15502         redundant check.
15504 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
15506         PR target/39856
15507         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
15508         for clobber.
15510 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
15512         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
15513         non-external.
15515 2009-05-22  Ben Elliston  <bje@au.ibm.com>
15517         * Makefile.in (bversion.h, s-bversion): New targets.
15518         (TOPLEV_H): Add bversion.h.
15519         * toplev.h: Include "bversion.h".
15520         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
15521         the __format__ attribute only if compiling with the same version
15522         of GCC as the sources (the "build version").
15524 2009-05-22  Ben Elliston  <bje@au.ibm.com>
15526         * c-format.c (handle_format_attribute): Fix comment typo.
15528 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
15530         PR target/37846
15531         * config/ia64/ia64.opt (mfused-madd): New.
15532         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
15533         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
15534         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
15535         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
15536         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
15537         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
15538         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
15539         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
15540         instruction if !TARGET_FUSED_MADD.
15541         (fpma, fpms): Remove colon from name.
15543 2009-05-22  Richard Guenther  <rguenther@suse.de>
15545         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
15546         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
15547         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
15548         TARGET_MEM_REF.
15549         (create_expression_by_pieces): Only convert if necessary.
15550         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
15551         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
15553 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
15555         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
15556         regular pattern from a template and rename it ...
15557         (*extzv_truncsi_exts): ... to this.
15559 2009-05-21  Richard Guenther  <rguenther@suse.de>
15561         * cgraph.h (struct cgraph_node): Remove inline_decl member.
15562         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
15563         (cgraph_default_inline_p): Likewise.
15564         (cgraph_decide_inlining_incrementally): Likewise.
15566 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
15567             Uros Bizjak  <ubizjak@gmail.com>
15569         * config/i386/cpuid.h (bit_MOVBE): New.
15571         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
15573         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
15574         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
15575         (ix86_handle_option): Handle OPT_mmovbe.
15576         (ix86_target_string): Add -mmovbe.
15577         (pta_flags): Add PTA_MOVBE.
15578         (processor_alias_table): Add PTA_MOVBE to "atom".
15579         (override_options): Handle PTA_MOVBE.
15581         * config/i386/i386.h (TARGET_MOVBE): New.
15583         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
15584         (*bswapsi_movbe): New.
15585         (*bswapdi_movbe): Likewise.
15586         (bswapdi2): Renamed to ...
15587         (*bswapdi_1): This.
15588         (bswapdi2): New expander.
15590         * config/i386/i386.opt (mmovbe): New.
15592         * doc/invoke.texi: Document -mmovbe.
15594 2009-05-21  Taras Glek  <tglek@mozilla.com>
15596         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
15597         * gcc-plugin.h (plugin_init): Updated signature.
15598         * gcc-plugin.h (plugin_name_args): Moved to this header.
15599         * doc/plugins.texi (plugin_init): Updated documention to reflect
15600         API change.
15601         * doc/plugins.texi (plugin_name_args): Added to documention.
15603 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
15605         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
15606         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
15608 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
15610         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
15611         JUMP_TABLE_DATA_P predicates where applicable.
15612         * config/i386/predicates.md: Ditto.
15613         * config/i386/sse.md: Ditto.
15615 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
15617         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
15618         operand2 -128 override length_immediate attribute to 1.
15619         * config/i386/predicates.md (constm128_operand): New predicate.
15621         * config/i386/i386.c (memory_address_length): Handle %r12
15622         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
15623         also check REGNO.
15624         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
15625         mode look through optional ZERO_EXTEND and SUBREG.
15626         * config/i386/i386.md (R12_REG): New define_constant.
15627         (prefix_data16): For sse unit set also for MODE_TI insns.
15628         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
15629         insns set if operand 1 is ext_QIreg_operand.
15630         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
15631         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
15632         immediate.
15633         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
15634         mode from MODE_DI to MODE_SI.
15635         (movdi_1_rex64): Override modrm and length_immediate attributes
15636         only for movabs (TYPE_IMOV, alternative 2).
15637         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
15638         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
15639         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
15640         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
15641         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
15642         prefix_rex attribute if DImode.
15643         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
15644         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
15645         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
15646         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
15647         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
15648         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
15649         Likewise.  For TYPE_IMOV clear length_immediate attribute.
15650         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
15651         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
15652         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
15653         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
15654         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
15655         or one operand TYPE_ISHIFT.
15656         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
15657         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
15658         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
15659         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
15660         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
15661         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
15662         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
15663         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
15664         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
15665         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
15666         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
15667         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
15668         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
15669         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
15670         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
15671         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
15672         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
15673         set mode attribute, don't override length attribute.
15674         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
15675         to 1.
15676         (return_internal_long): Set length attribute to 2 instead of 1.
15677         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
15678         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
15679         prefix_rex attribute.
15680         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
15681         New predicates.
15682         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
15684 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15686         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
15688 2009-05-20  Ian Lance Taylor  <iant@google.com>
15690         * tree.c (build_tree_list_vec_stat): New function.
15691         (ctor_to_vec): New function.
15692         (build_nt_call_vec): New function.
15693         (build_call_array): Change args to be a const pointer.
15694         (build_call_vec): New function.
15695         * tree.h (build_nt_call_vec): Declare.
15696         (build_tree_list_vec_stat): Declare.
15697         (build_tree_list_vec): Define.
15698         (build_call_array): Update declaration.
15699         (build_call_vec): Declare.
15700         (ctor_to_vec): Declare.
15701         * c-common.c (tree_vector_cache): New static variable.
15702         (make_tree_vector): New function.
15703         (release_tree_vector): New function.
15704         (make_tree_vector_single): New function.
15705         (make_tree_vector_copy): New function.
15706         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
15707         (make_tree_vector_single, make_tree_vector_copy): Declare.
15708         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
15709         (c_parser_expr_list): Don't manage cache here, instead call
15710         make_tree_vector.
15711         (c_parser_release_expr_list): Remove static function.
15712         (c_parser_vec_to_tree_list): Remove static function.
15713         (c_parser_attributes): Call build_tree_list_vec instead of
15714         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
15715         c_parser_release_expr_list.
15716         (c_parser_postfix_expression_after_primary): Likewise.
15717         (c_parser_objc_keywordexpr): Likewise.
15719 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
15721         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
15722         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
15723         TARGET_CONVERT_TO_TYPE.
15724         * hooks.c (hook_tree_const_tree_null): Define.
15725         * hooks.h (hook_tree_const_tree_null): Declare.
15726         * target.h (struct gcc_target):  Add invalid_parameter_type,
15727         invalid_return_type, promoted_type, and convert_to_type fields.
15728         * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
15729         (TARGET_INVALID_RETURN_TYPE): Define.
15730         (TARGET_PROMOTED_TYPE): Define.
15731         (TARGET_CONVERT_TO_TYPE): Define.
15732         (TARGET_INITIALIZER): Update for new fields.
15733         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
15734         (grokparms): Check targetm.invalid_parameter_type.
15735         * c-typeck.c (default_conversion): Check targetm.promoted_type.
15736         * c-convert.c (convert): Check targetm.convert_to_type.
15738 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
15740         * config/mips/mips.md (*extenddi_truncate<mode>,
15741         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
15742         defintions.
15743         (*extendhi_truncateqi): New define_insn_and_sptit.
15745 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
15747         PR middle-end/40204
15748         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
15749         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
15751 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
15753         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
15754         the operand of VIEW_CONVERT_EXPR.
15756 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
15758         * config/i386/driver-i386.c (host_detect_local_cpu): Check
15759         extended family and model for Intel processors.  Support Intel Atom.
15761 2009-05-20  Olivier Hainque  <hainque@adacore.com>
15763         * gstab.h (stab_code_type): Define, to be used instead of the
15764         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
15765         notice.
15766         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
15767         occurrences by stab_code_type.
15768         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
15770 2009-05-20  Martin Jambor  <mjambor@suse.cz>
15772         * tree-flow.h (insert_edge_copies_seq): Undeclare.
15773         (sra_insert_before): Likewise.
15774         (sra_insert_after): Likewise.
15775         (sra_init_cache): Likewise.
15776         (sra_type_can_be_decomposed_p): Likewise.
15777         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
15778         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
15779         (sra_insert_before): Likewise.
15780         (sra_insert_after): Likewise.
15781         (sra_init_cache): Likewise.
15782         (insert_edge_copies_seq): Made static and moved upwards.
15784         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
15785         case.
15787         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
15789         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
15790         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
15791         simple copies.
15793 2009-05-20  Richard Guenther  <rguenther@suse.de>
15795         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
15796         with mismatched comparison modes.
15798 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15800         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
15801         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
15802         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
15803         with shifts for Thumb2.
15804         (orsi_notsi): New for orn.
15805         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
15806         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
15807         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
15808         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
15809         Don't invert remainder for IOR.
15811 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
15813         PR tree-optimization/40087
15814         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
15815         number_of_iterations_ne): Rename never_infinite argument.
15816         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
15817         number_of_iterations_le): Handle pointer-type ivs when
15818         exit_must_be_taken is false.
15819         (number_of_iterations_cond):  Do not always assume that
15820         exit_must_be_taken if the control variable is a pointer.
15822 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15824         * c-typeck.c (build_binary_op): Allow % on integal vectors.
15825         * doc/extend.texi (Vector Extension): Document that % is allowed too.
15827 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15829         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
15830         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
15832 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15834         PR c/40172
15835         * c.opt (Wlogical-op): Disabled by default.
15836         * c-opt (c_common_post_options): Do not enable Wlogical-op with
15837         Wextra.
15838         * doc/invoke.texi (Wlogical-op): Likewise.
15840 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
15842         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
15843         into CASE_CONVERT.
15844         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
15845         Propagate the type of the first operand.
15846         <ASSERT_EXPR>: Simplify.
15847         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
15848         Rewrite using the RHS code as discriminant.
15849         <NOP_EXPR>: Turn into CASE_CONVERT.
15850         <PLUS_EXPR>: Propagate the type of the first operand.
15852 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
15854         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
15855         (ia64_dconst_0_375): New.
15856         * config/ia64/ia64.c (ia64_override_options): Remove
15857         -minline-sqrt-min-latency warning.
15858         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
15859         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
15860         * config/ia64/ia64.md (*sqrt_approx): Remove.
15861         (sqrtsf2): Remove #if 0.
15862         (sqrtsf2_internal_thr): Rewrite and move to div.md.
15863         (sqrtdf): Remove assert.
15864         (sqrtdf2_internal_thr): Rewrite and move to div.md.
15865         (sqrtxf2): Remove #if 0.
15866         (sqrtxf2_internal_thr): Rewrite and move to div.md.
15867         * div.md (sqrt_approx_rf): New.
15868         (sqrtsf2_internal_thr): New implementation.
15869         (sqrtsf2_internal_lat): New.
15870         (sqrtdf2_internal_thr: New implementation.
15871         (sqrtxf2_internal): New implementation.
15873 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
15874             Hans-Peter Nilsson  <hp@axis.com>
15876         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
15877         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
15878         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
15879         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
15880         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
15881         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
15882         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
15883         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
15884         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
15885         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
15886         * c-common.c: ...from here.
15888 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15890         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
15892 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15894         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
15896 2009-05-19  Ben Elliston  <bje@au.ibm.com>
15898         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
15899         assignments with memcpy calls.
15900         (add_fdes): Likewise.
15901         (binary_search_unencoded_fdes): Likewise.
15902         (linear_search_fdes): Eliminate type puns.
15904 2009-05-19  Richard Guenther  <rguenther@suse.de>
15906         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
15907         not falsely claim to have propagated into all uses.
15909 2009-05-19  Ben Elliston  <bje@au.ibm.com>
15911         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
15912         version to v3.0.
15914 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
15916         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
15917         * config/sh/sh.c (sh_legitimate_address_p): Make static.
15918         (TARGET_LEGITIMATE_ADDRESS_P): New.
15919         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15920         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
15922 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
15924         PR debug/40109
15925         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
15926         child of the containing namespace's DIE.
15928 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
15930         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
15931         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
15932         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
15933         extend patterns.
15935 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15937         PR target/39942
15938         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
15939         gen_align with gen_pad.
15940         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
15941         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
15943         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
15944         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
15946         * config/i386/i386.md (align): Renamed to ...
15947         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
15948         ASM_OUTPUT_MAX_SKIP_PAD.
15950 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
15952         * config.gcc: Fix variable syntax.
15954         PR target/39531
15955         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
15956         before calling exact_log2.
15957         (output_iorsi3): Likewise.
15958         (output_xorsi3): Likewise.
15960 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
15962         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
15963         for the none zero constant operand except for EQ and NE
15964         comprisons even when the first operand is R0.
15966 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
15968         * config/s390/2064.md: Remove trailing whitespaces.
15969         * config/s390/2084.md: Likewise.
15970         * config/s390/constraints.md: Likewise.
15971         * config/s390/fixdfdi.h: Likewise.
15972         * config/s390/libgcc-glibc.ver: Likewise.
15973         * config/s390/s390-modes.def: Likewise.
15974         * config/s390/s390-protos.h: Likewise.
15975         * config/s390/s390.c: Likewise.
15976         * config/s390/s390.h: Likewise.
15977         * config/s390/s390.md: Likewise.
15978         * config/s390/tpf-unwind.h: Likewise.
15980 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
15982         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
15984 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
15986         M68K TLS support.
15987         * configure.ac (m68k-*-*): Check if binutils support TLS.
15988         * configure: Regenerate.
15989         * config/m68k/predicates.md (symbolic_operand): Extend comment.
15990         * config/m68k/constraints.md (Cu): New constraint.
15991         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
15992         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
15993         (movsi): Handle TLS symbols.
15994         (addsi3_5200): Handle XTLS symbols, indent.
15995         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
15996         (m68k_tls_reference_p): Declare.
15997         (m68k_legitimize_address): Declare.
15998         (m68k_unwrap_symbol): Declare.
15999         * config/m68k/m68k.opt (mxtls): New option.
16000         * config/m68k/m68k.c (ggc.h): Include.
16001         (m68k_output_dwarf_dtprel): Implement hook.
16002         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
16003         (m68k_expand_prologue): Load GOT pointer when function needs it.
16004         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
16005         (m68k_legitimate_constant_address_p): Same.
16006         (m68k_decompose_address): Handle TLS references.
16007         (m68k_get_gp): New static function.
16008         (enum m68k_reloc): New contants.
16009         (TLS_RELOC_P): New macro.
16010         (m68k_wrap_symbol): New static function.
16011         (m68k_unwrap_symbol): New function.
16012         (m68k_final_prescan_insn_1): New static function.
16013         (m68k_final_prescan_insn): New function.
16014         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
16015         functions.
16016         (legitimize_pic_address): Handle TLS references..
16017         (m68k_tls_get_addr, m68k_get_tls_get_addr)
16018         (m68k_libcall_value_in_a0_p)
16019         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
16020         (m68k_call_m68k_read_tp): Helper variables and functions for ...
16021         (m68k_legitimize_tls_address): Handle TLS references.
16022         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
16023         New functions.
16024         (m68k_legitimize_address): Handle TLS symbols.
16025         (m68k_get_reloc_decoration): New static function.
16026         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
16027         UNSPEC_RELOC32.
16028         (m68k_output_dwarf_dtprel): Implement hook.
16029         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
16030         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
16031         m68k_call_* routines.
16032         (sched_attr_op_type): Handle TLS symbols.
16033         (gt-m68k.h): Include.
16034         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
16035         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
16037 2009-05-18  Martin Jambor  <mjambor@suse.cz>
16039         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
16040         (visit_store_addr_for_mod_analysis): New function.
16041         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
16042         (determine_cst_member_ptr): Use gimple_assign_single_p.
16043         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
16044         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
16045         operands.  Don't check number of operands of a NOP_EXPR.
16047 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
16049         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
16051 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16053         PR c/40172
16054         * c-common.c (warn_logical_operator): Don't warn if one of
16055         expression isn't always true or false.
16057 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
16059         * config/i386/biarch32.h: New file.
16060         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
16062 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
16064         * config/mips/mips.md (*zero_extend<mode>_trunchi,
16065         *zero_extend<mode>_truncqi): Merge these into ...
16066         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
16067         Name the pattern following this as *zero_extendhi_truncqi.
16069 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
16071         PR middle-end/39301
16072         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
16073         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
16074         (output_info): Make field HOST_WIDEST_INT.
16075         (print_statistics): Use HOST_WIDEST_INT_PRINT.
16076         (dump_bitmat_statistics): Same.
16078 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
16080         * config.gcc (use_gcc_stdint):  Set to wrap.
16081         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
16082         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
16083         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
16084         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
16085         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
16086         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
16087         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
16088         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
16090 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
16092         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
16093         tune_64.
16094         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
16095         Move definitions earlier.
16096         (OPT_ARCH64, OPT_ARCH32): Define.
16097         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
16098         and tune_64.
16100 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
16102         PR target/40153
16103         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
16104         implies.
16106 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
16108         * arm.md (movdi2): Copy non-reg values to DImode registers.
16110 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
16112         PR target/39942
16113         * final.c (label_to_max_skip): New function.
16114         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
16115         CODE_LABEL_NUMBER <= max_labelno.
16116         * output.h (label_to_max_skip): New prototype.
16117         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
16118         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
16119         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
16120         Handle CODE_LABELs with >= 16 byte alignment or with
16121         max_skip == (1 << align) - 1.
16122         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
16123         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
16125         PR target/39942
16126         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
16127         .p2align 3 if MAX_SKIP is smaller than 7.
16128         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
16130 2009-05-15  Ian Lance Taylor  <iant@google.com>
16132         * alias.c (struct alias_set_entry_d): Rename from struct
16133         alias_set_entry.  Change all uses.
16134         * except.c (struct call_site_record_d): Rename from struct
16135         call_site_record.  Change all uses.
16136         * except.h (struct eh_region_d): Rename from struct eh_region.
16137         Change all uses.
16138         * gcse.c (struct hash_table_d): Rename from struct hash_table.
16139         Change all uses.
16140         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
16141         ivtype_map_elt.  Change all uses.
16142         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
16143         Change all uses.
16144         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
16145         * graphite.h (struct name_tree_d): Rename from struct name_tree.
16146         Change all uses.
16147         (struct sese_d): Rename from struct sese.  Change all uses.
16148         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
16149         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
16150         * optabs.h (struct optab_d): Rename from struct optab.  Change all
16151         uses.
16152         (struct convert_optab_d): Rename from struct convert_optab.
16153         Change all uses.
16154         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
16155         ipa_opt_pass.  Change all uses.
16156         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
16157         all uses.
16159         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
16160         defined as a typedef.
16161         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
16162         defined as a tag.
16164 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16166         PR 16302
16167         * fold-const.c (make_range,build_range_check,merge_ranges): Move
16168         declaration to...
16169         (merge_ranges): Returns bool.
16170         * tree.h (make_range): .. to here.
16171         (build_range_check): Likewise.
16172         (merge_ranges): Likewise. Renamed from merge_ranges.
16173         * c-typeck.c (parser_build_binary_op): Update calls to
16174         warn_logical_operator.
16175         * c-common.c (warn_logical_operator): Add new warning.
16176         * c-common.h (warn_logical_operator): Update declaration.
16178 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16180         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
16182 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16184         * doc/install.texi: Document MPC requirements, flags etc.
16186         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
16187         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
16188         Evaluate constant arguments.
16189         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
16190         (fold_builtin_1): Likewise, also evaluate constant arguments.
16191         Remove superfluous break.
16192         (do_mpc_ckconv): New.
16193         * real.h: Include mpc.h.
16194         * toplev.c (print_version): Output MPC version info if available.
16196 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
16198         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
16200 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16202         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
16203         only once.
16205 2009-05-15  Jan Hubicka  <jh@suse.cz>
16207         * doc/invoke.texi (max-early-inliner-iterations): New flag.
16208         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
16209         (try_inline): Fix return value.
16210         (cgraph_decide_inlining_incrementally): Honor new value.
16211         (cgraph_early_inlining): Handle indirect inlining.
16212         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
16214 2009-05-15  Jan Hubicka  <jh@suse.cz>
16216         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
16217         * cgraphunit.c (cgraph_finalize_function): Set it.
16218         (cgraph_expand_function): Use it.
16220 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
16222         * real.c (encode_ieee_half): Define.
16223         (decode_ieee_half): Define.
16224         (ieee_half_format): Define.
16225         (arm_half_format): Define.
16226         * real.h (ieee_half_format): Declare.
16227         (arm_half_format): Declare.
16229 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
16231         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
16232         swapped, and reversed optabs exist before trying to use them.
16234 2009-05-15  Paul Brook  <paul@codesourcery.com>
16235             Sandra Loosemore  <sandra@codesourcery.com>
16237         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
16238         loads.  Allow PRE_DEC.
16239         (output_move_neon): Handle PRE_DEC.
16240         (arm_print_operand): Add 'A' for neon structure loads.
16241         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
16242         * config/arm/neon.md (neon_mov): Update comment.
16243         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
16244         calls.
16245         (Um): New constraint.
16247 2009-05-15  Jan Hubicka  <jh@suse.cz>
16249         Revert the following patch until testsuite fallout is fixed:
16250         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
16251         * cgraph.h (struct inline_summary): New filed self_wize,
16252         size_inlining_benefit, self_time and time_inlining_benefit.
16253         (struct cgraph_global_info): Replace insns by time ans size fields.
16254         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
16255         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
16256         (ipcp_update_callgraph): Do not touch function bodies.
16257         * ipa-inline.c: Include except.h
16258         (MAX_TIME): New constant.
16259         (overall_insns): Remove
16260         (overall_size, max_benefit): New static variables.
16261         (cgraph_estimate_time_after_inlining): New function.
16262         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
16263         (cgraph_clone_inlined_nodes): Update size.
16264         (cgraph_mark_inline_edge): Update size.
16265         (cgraph_estimate_growth): Use size info.
16266         (cgraph_check_inline_limits): Check size.
16267         (cgraph_default_inline_p): Likewise.
16268         (cgraph_edge_badness): Compute badness based on benefit and size cost.
16269         (cgraph_decide_recursive_inlining): Check size.
16270         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
16271         and times.
16272         (cgraph_decide_inlining): Likewise.
16273         (cgraph_decide_inlining_incrementally): Likewise; honor
16274         PARAM_EARLY_INLINING_INSNS.
16275         (likely_eliminated_by_inlining_p): New predicate.
16276         (estimate_function_body_sizes): New function.
16277         (compute_inline_parameters): Use it.
16278         * except.c (must_not_throw_labels): New function.
16279         * except.h (must_not_throw_labels): Declare.
16280         * tree-inline.c (init_inline_once): Kill inlining_weigths
16281         * tree-ssa-structalias.c: Avoid uninitialized warning.
16282         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
16283         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
16284         (PARAM_INLINE_CALL_COST): Remove.
16285         (PARAM_EARLY_INLINING_INSNS): New.
16287 2009-05-15  Richard Guenther  <rguenther@suse.de>
16289         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
16290         not TODO_update_ssa.
16292 2009-05-15  Richard Guenther  <rguenther@suse.de>
16294         PR tree-optimization/39999
16295         * gimple.h (gimple_expr_type): Use the expression type looking
16296         through useless conversions.
16297         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
16298         (vn_nary_op_insert_stmt): Likewise.
16299         (simplify_binary_expression): Likewise.
16301 2009-05-15  Richard Guenther  <rguenther@suse.de>
16303         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
16304         New options, enabled by default.
16305         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
16306         Document.
16307         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
16308         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
16309         * tree-ssa-structalias.c (gate_tree_pta): New function.
16310         (pass_build_alias): Use it.
16312 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
16314         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
16315         recurse on an invariant address if a conversion from a pointer
16316         type to a wider integer type is involved.
16318 2009-05-15  Jan Hubicka  <jh@suse.cz>
16320         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
16321         * cgraph.h (struct inline_summary): New filed self_wize,
16322         size_inlining_benefit, self_time and time_inlining_benefit.
16323         (struct cgraph_global_info): Replace insns by time ans size fields.
16324         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
16325         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
16326         (ipcp_update_callgraph): Do not touch function bodies.
16327         * ipa-inline.c: Include except.h
16328         (MAX_TIME): New constant.
16329         (overall_insns): Remove
16330         (overall_size, max_benefit): New static variables.
16331         (cgraph_estimate_time_after_inlining): New function.
16332         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
16333         (cgraph_clone_inlined_nodes): Update size.
16334         (cgraph_mark_inline_edge): Update size.
16335         (cgraph_estimate_growth): Use size info.
16336         (cgraph_check_inline_limits): Check size.
16337         (cgraph_default_inline_p): Likewise.
16338         (cgraph_edge_badness): Compute badness based on benefit and size cost.
16339         (cgraph_decide_recursive_inlining): Check size.
16340         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
16341         and times.
16342         (cgraph_decide_inlining): Likewise.
16343         (cgraph_decide_inlining_incrementally): Likewise; honor
16344         PARAM_EARLY_INLINING_INSNS.
16345         (likely_eliminated_by_inlining_p): New predicate.
16346         (estimate_function_body_sizes): New function.
16347         (compute_inline_parameters): Use it.
16348         * except.c (must_not_throw_labels): New function.
16349         * except.h (must_not_throw_labels): Declare.
16350         * tree-inline.c (init_inline_once): Kill inlining_weigths
16351         * tree-ssa-structalias.c: Avoid uninitialized warning.
16352         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
16353         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
16354         (PARAM_INLINE_CALL_COST): Remove.
16355         (PARAM_EARLY_INLINING_INSNS): New.
16356         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
16357         (inline-call-cost): Remove.
16358         (early-inlining-insns): New.
16360 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
16362         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
16363         for bounds.
16364         (print_int_cst_bounds_in_octal_p): Likewise.
16365         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
16366         with subtypes.
16367         * dwarf2out.c (base_type_die): Likewise.
16368         (is_subrange_type): Delete.
16369         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
16370         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
16371         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
16372         if the destination type is boolean.
16373         (build_range_check): Do not special-case subtypes.
16374         (fold_sign_changed_comparison): Likewise.
16375         (fold_unary): Likewise.
16376         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
16377         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
16378         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
16379         * tree.c (subrange_type_for_debug_p): New predicate based on the
16380         former is_subrange_type.
16381         * tree.h (subrange_type_for_debug_p): Declare.
16382         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
16383         (convert_affine_scev): Remove call to above function.
16384         (chrec_convert_aggressive): Likewise.
16385         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
16386         false for conversions involving subtypes.
16387         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
16388         (vrp_val_min): Likewise.
16389         (needs_overflow_infinity): Likewise.
16390         (extract_range_from_unary_expr): Likewise.
16392 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
16394         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
16395         * config/frv/frv.c: Likewise.
16396         * config/s390/s390.c: Likewise.
16397         * config/sparc/sparc.h: Likewise.
16398         * config/i386/i386.h: Likewise.
16399         * config/i386/i386.c: Likewise.
16400         * config/crx/crx.c: Likewise.
16401         * config/m68hc11/m68hc11.h: Likewise.
16402         * config/iq2000/iq2000.c: Likewise.
16403         * config/mn10300/mn10300.h: Likewise.
16404         * config/mn10300/mn10300.c: Likewise.
16405         * config/m68k/m68k.c: Likewise.
16406         * config/rs6000/rs6000.c: Likewise.
16407         * config/rs6000/xcoff.h: Likewise.
16408         * config/rs6000/linux64.h: Likewise.
16409         * config/rs6000/sysv4.h: Likewise.
16410         * config/score/score3.c: Likewise.
16411         * config/score/score7.c: Likewise.
16412         * config/score/score.c: Likewise.
16413         * config/arm/arm.md: Likewise.
16414         * config/mips/mips.c: Likewise.
16415         * config/mips/mips.md: Likewise.
16416         * config/bfin/bfin.h: Likewise.
16417         * config/pa/pa.c: Likewise.
16418         * config/pa/constraints.md: Likewise.
16420         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
16421         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
16422         * config/pdp11/pdp11.h: Use memory_address_p instead.
16424 2009-05-14  Ian Lance Taylor  <iant@google.com>
16426         * passes.c (finish_optimization_passes): Change i to int.
16427         * plugin.c (plugins_active_p): Change event to int.
16428         (dump_active_plugins): Likewise.
16429         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
16430         Add cast.
16431         * tree.c (tree_range_check_failed): Change c to unsigned int.
16432         (omp_clause_range_check_failed): Likewise.
16433         (build_common_builtin_nodes): Change mode to int.  Add cast.
16434         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
16435         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
16437         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
16438         ++ or -- with a variable of enum type.
16440 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
16442         PR driver/40144
16443         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
16445 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
16447         * store-motion.c: Do not include params.h
16448         * Makefile.in: Fix dependencies for various files.
16450 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
16452         * auto-inc-dec.c: Fix pass description, remove apparent
16453         accidental duplication.
16455 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
16457         PR middle-end/40147
16458         * ipa-utils.h (memory_identifier_string): Moved to ...
16459         * tree.h (memory_identifier_string): Here.  Add GTY(()).
16461 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
16463         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
16464         in the former documentation of...
16465         (GO_IF_LEGITIMATE_ADDRESS): ... this.
16466         * ira-conflicts.c (get_dup_num): Use address_operand.
16467         * targhooks.c (default_legitimate_address_p): New.
16468         * targhooks.h (default_legitimate_address_p): New.
16469         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
16470         Call hook.
16471         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
16472         * target.h (struct target): Add legitimate_address_p.
16473         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
16474         (TARGET_INITIALIZER): Include it.
16476         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16477         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
16478         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
16479         (TARGET_LEGITIMATE_ADDRESS_P): New.
16481         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16482         (REG_OK_STRICT_P): Delete.
16483         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
16484         (frv_legitimate_address_p_1): ... this.
16485         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
16486         (frv_legitimate_address_p_1): ... the renamed old
16487         frv_legitimate_address_p.
16488         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
16489         (TARGET_LEGITIMATE_ADDRESS_P): New.
16491         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16492         * config/s390/s390-protos.h (legitimate_address_p): Remove.
16493         * config/s390/s390.c (legitimate_address_p): Rename to...
16494         (s390_legitimate_address_p): ... this, make static.
16495         (legitimize_address): Adjust call.
16496         (TARGET_LEGITIMATE_ADDRESS_P): New.
16497         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
16499         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16500         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
16501         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
16502         (TARGET_LEGITIMATE_ADDRESS_P): New.
16504         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16505         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
16506         * config/spu/spu.c (spu_legitimate_address): Rename to...
16507         (spu_legitimate_address_p): ... this, make static.
16508         (TARGET_LEGITIMATE_ADDRESS_P): New.
16510         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16511         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
16512         * config/sparc/sparc.c (legitimate_address_p): Rename to...
16513         (sparc_legitimate_address_p): ... this, make static and return bool.
16514         (legitimize_address): Adjust call.
16515         (TARGET_LEGITIMATE_ADDRESS_P): New.
16517         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16518         * config/i386/i386-protos.h (legitimate_address_p): Remove.
16519         * config/i386/i386.c (legitimate_address_p): Rename to...
16520         (ix86_legitimate_address_p): ... this, make static.
16521         (constant_address_p): Move after it, adjust call.
16522         (TARGET_LEGITIMATE_ADDRESS_P): New.
16524         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16525         * config/avr/avr-protos.h (legitimate_address_p): Remove.
16526         * config/avr/avr.c (legitimate_address_p): Rename to...
16527         (avr_legitimate_address_p): ... this, make static.
16528         (legitimize_address): Adjust call.
16529         (TARGET_LEGITIMATE_ADDRESS_P): New.
16531         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16532         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
16533         * config/crx/crx.c (crx_legitimate_address_p): Make static.
16534         (TARGET_LEGITIMATE_ADDRESS_P): New.
16536         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16537         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
16538         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
16539         (TARGET_LEGITIMATE_ADDRESS_P): New.
16541         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16542         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
16543         Remove.
16544         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16545         Make static.
16546         (TARGET_LEGITIMATE_ADDRESS_P): New.
16548         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16549         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
16550         Remove.
16551         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
16552         Rename to...
16553         (m68hc11_legitimate_address_p): ... this, make static.
16554         (go_if_legitimate_address_internal): Rename to...
16555         (m68hc11_legitimate_address_p_1): ... this.
16556         (legitimize_address): Adjust call.
16557         (TARGET_LEGITIMATE_ADDRESS_P): New.
16559         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16560         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
16561         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
16562         (TARGET_LEGITIMATE_ADDRESS_P): New.
16564         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16565         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
16566         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
16567         (mn10300_legitimate_address_p): ... this, make static.
16568         (TARGET_LEGITIMATE_ADDRESS_P): New.
16570         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16571         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
16572         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
16573         (TARGET_LEGITIMATE_ADDRESS_P): New.
16575         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16576         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
16577         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
16578         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16579         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
16580         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
16581         (rs6000_legitimate_address_p): ... this, make static.
16582         (TARGET_LEGITIMATE_ADDRESS_P): New.
16583         (REG_MODE_OK_FOR_BASE_P): Delete.
16584         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
16586         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16587         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
16588         Delete.
16589         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
16590         static, adjust types.
16591         (TARGET_LEGITIMATE_ADDRESS_P): New.
16593         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16594         * config/score/score.c (score_address_p): Rename to...
16595         (score_legitimate_address_p): ... this.
16596         (TARGET_LEGITIMATE_ADDRESS_P): New.
16597         * config/score/score3.c (score3_address_p): Rename to...
16598         (score3_legitimate_address_p): ... this.
16599         * config/score/score7.c (score7_address_p): Rename to...
16600         (score7_legitimate_address_p): ... this.
16602         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
16603         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
16604         GO_IF_LEGITIMATE_ADDRESS): Delete.
16605         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
16606         thumb2_legitimate_address_p): Delete.
16607         (arm_legitimate_address_p): Rename to...
16608         (arm_legitimate_address_outer_p): ... this.
16609         * config/arm/constraints.md ("Uq"): Adjust call.
16610         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
16611         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
16612         to...
16613         (arm_legitimate_address_outer_p): ... this.
16614         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
16615         static.
16616         (TARGET_LEGITIMATE_ADDRESS_P): New.
16618         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16619         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
16620         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
16621         (TARGET_LEGITIMATE_ADDRESS_P): New.
16623         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16624         * config/vax/vax-protos.h (legitimate_address_p): Remove.
16625         * config/vax/vax.c (legitimate_address_p): Rename to...
16626         (vax_legitimate_address_p): ... this, make static.
16627         (TARGET_LEGITIMATE_ADDRESS_P): New.
16629         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16630         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
16631         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
16632         (TARGET_LEGITIMATE_ADDRESS_P): New.
16634         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16635         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
16636         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
16637         (mmix_legitimate_address_p): ... this, make static.
16638         (TARGET_LEGITIMATE_ADDRESS_P): New.
16640         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16641         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
16642         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
16643         (TARGET_LEGITIMATE_ADDRESS_P): New.
16645 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
16647         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
16648         of MODE_COMPLEX_INT.
16650 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16652         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
16653         LCT_NORMAL in function call.
16654         * mips-tdump.c (print_file_desc): Add cast to enum type.
16655         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
16656         (mark_stabs): Add casts to enum types.
16657         (parse_stabs_common): Add casts to enum types.
16659 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
16661         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
16662         Check for invalid values of LETTER.
16664 2009-05-13  Taras Glek  <tglek@mozilla.com>
16666         * attribs.c (register_attribute): moved out attribute registration
16667         into register_attribute.
16668         * doc/plugins.texi: Documented register_attribute and
16669         PLUGIN_ATTRIBUTES.
16670         * gcc-plugin.h: Added forward decl for register_attribute.
16671         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
16672         * plugin.c (register_callback, invoke_plugin_callbacks): Added
16673         PLUGIN_ATTRIBUTES boilerplate.
16675 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
16677         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
16678         values even in sentinel and empty entries.
16679         (ms_printf_flag_specs):  Likewise.
16680         (ms_scanf_flag_specs):  Likewise.
16681         (ms_strftime_flag_specs):  Likewise.
16682         (ms_print_char_table):  Likewise.
16683         (ms_scan_char_table):  Likewise.
16684         (ms_time_char_table):  Likewise.
16686 2009-05-13  Doug Kwan  <dougkwan@google.com>
16688         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
16690 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
16692         * config/mips/mips.md (store): Add attributes for QI and HI.
16693         Update comment.
16694         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
16695         (truncdi<mode>2): ... this new pattern.
16697 2009-05-13  Brad Hards  <bradh@kde.org>
16699         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
16701 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
16702             Ben Elliston <bje@au.ibm.com>
16704         PR middle-end/40035
16705         * dse.c (check_mem_read_rtx): Guard against width == -1.
16707 2009-05-13  Michael Matz  <matz@suse.de>
16709         PR middle-end/39976
16710         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
16711         (trivially_conflicts_p): New function.
16712         (insert_backedge_copies): Use it.
16714 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
16716         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
16717         (handle_stdc_pragma): Use new enum constant names.
16718         (handle_pragma_float_const_decimal64): Ditto.
16720 2009-05-13  Ian Lance Taylor  <iant@google.com>
16722         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
16723         tree.def.
16725 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
16727         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
16728         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
16729         multilibs.
16730         * config/m68k/m68k.h (FL_UCLINUX): Define.
16732 2009-05-13  Jan Hubicka  <jh@suse.cz>
16734         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
16736 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
16738         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
16739         unless -fschedule-insns is specified.
16741 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
16743         PR target/39561
16744         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
16745         TARGET_EXPAND_CBRANCHDI4.
16746         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
16747         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
16748         (cmpeqdi): Fix comment.
16750 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
16752         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
16753         (sh_legitimate_address_p): Likewise.
16754         * config/sh/sh.c (sh_legitimate_index_p): New.
16755         (sh_legitimate_address_p): Likewise.
16756         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
16757         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
16758         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
16759         (MAYBE_BASE_REGISTER_RTX_P): New macro.
16760         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
16761         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
16762         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
16763         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
16764         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
16766 2009-05-12  Jan Hubicka  <jh@suse.cz>
16768         * tree-inline.c (estimate_operator_cost): Add operands;
16769         when division happens by constant, it is cheap.
16770         (estimate_num_insns): Loads and stores are not having cost of 0;
16771         EH magic stuff is cheap; when computing runtime cost of switch,
16772         use log2 base of amount of its cases; builtin_expect has cost of 0;
16773         compute cost for moving return value of call.
16774         (init_inline_once): Initialize time_based flags.
16775         * tree-inline.h (eni_weights_d): Add time_based flag.
16777 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
16779         * df-core.c: Update head documentation.
16781 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
16783         PR bootstrap/40118
16784         * rs6000.c (rs6000_generate_compare): Use op1b instead of
16785         shadowing exisiting variable op1.
16787 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
16789         PR target/37179
16790         * config/i386/driver-i386.c (processor_signatures): New enum.
16791         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
16792         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
16793         processor signature to detect geode processor.
16795 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
16797         Revert:
16799         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
16801         * optabs.c (prepare_cmp_insn): Temporarily disable test that
16802         causes spurious differences between trunk and cond-optab branch.
16804 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
16806         * dojump.c (compare_from_rtx): Delete.
16807         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
16808         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
16809         if the comparison does not satisfy the predicate; test predicates for
16810         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
16811         further if one existing pattern fails.
16812         * expr.h (compare_from_rtx): Delete.
16813         (prepare_operand): Declare it.
16814         * optabs.c: Change "lib call" to "libcall" throughout.
16815         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
16816         HAVE_conditional_trap, emit_cmp_insn): Delete.
16817         (can_compare_p): Delete cmp_optab case.
16818         (prepare_float_lib_cmp): Return an rtx and a machine mode.
16819         Accept other parameters by value.
16820         (prepare_operand): Make non-static.
16821         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
16822         other parameters by value.  Try to widen operands here based on
16823         an optab_methods argument and looking at cbranch_optab.
16824         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
16825         loop.  Use cbranch_optab directly.
16826         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
16827         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
16828         assertion.
16829         (emit_conditional_move, emit_conditional_add): Inline what's needed
16830         of compare_from_rtx, using new prepare_cmp_insn for the rest.
16831         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
16832         with COMPARE.  Move cmov_optab and cstore_optab above
16833         with cbranch_optab, move cmp_optab down with ucmp_optab,
16834         remove tst_otpab.  Do not initialize trap_rtx.
16835         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
16836         for trap code.  Do not check HAVE_conditional_trap.  Use
16837         prepare_cmp_insn.  Accept no predicate for operand 3.
16838         * optabs.h (OTI_cmp): Mark as used only for libcalls.
16839         (OTI_ctrap, ctrap_optab): New.
16840         (tst_optab): Delete.
16841         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
16842         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
16843         with lookup of ctrap_optab.
16844         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
16845         Delete.
16846         (ctrap_optab): New.
16848         * combine.c (combine_simplify_rtx, simplify_set): Do not
16849         special case comparing against zero for cc0 machines.
16850         * simplify-rtx.c (simplify_binary_operation_1): Never remove
16851         COMPARE on cc0 machines.
16852         (simplify_relational_operation): Return a new expression when
16853         a COMPARE could be removed.
16854         * final.c (final_scan_insn): Compare cc_status values
16855         against LHS of a (compare FOO (const_int 0)) cc0 source.
16856         Also check if cc_status.value is the full compare.
16858         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
16859         (cstoreMM4): Document.
16860         (conditional_trap): Document ctrapMM4 instead.
16861         (sync_compare_and_swapMM): Refer to cbranchcc4.
16862         (Dependent Patterns): Eliminate obsolete information referring to
16863         the old jump optimization phase.
16864         (Canonicalization): Include cbranchcc4 case, omit canonicalization
16865         of compares with 0 on cc0 machines.
16866         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
16867         avoiding references to cc0.  Remove text about storing operands
16868         in cmpMM.
16869         * doc/tm.texi (Condition Codes): Include blurb on different
16870         condition code representations, separate into subsections for
16871         CC0, MODE_CC and conditional execution.
16873         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
16874         alpha_emit_setcc): Accept operands and a machine mode.
16875         * config/alpha/alpha.c (alpha_emit_conditional_branch):
16876         Get code/op0/op1 from operands, use machine mode argument
16877         instead of alpha_compare.fp_p.  Emit the branch here.
16878         (alpha_emit_setcc): Likewise, and return boolean.
16879         (alpha_emit_conditional_move): Likewise.  Assert that
16880         cmp_op_mode == cmp_mode, and simplify accordingly.
16881         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
16882         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
16883         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
16884         Delete.
16885         (stack probe test): Use cbranchdi4.
16886         * config/alpha/predicates.md (alpha_cbranch_operator): New.
16888         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
16889         * config/arc/arc.h (movsicc, movsfcc): Use it.
16890         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
16891         (cbranchsi4, cstoresi4): New.
16892         (cmpsi, bCC and sCC expanders): Remove.
16894         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
16895         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
16896         * config/arm/predicates.md (arm_comparison_operator): Only include
16897         floating-point operators if there is a hardware floating-point unit.
16898         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
16899         deferring to cbranch_cc and cstore_cc respectively.
16900         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
16901         cbranch_cc, cstore_cc): New.
16902         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
16903         arm_compare_op1.
16904         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
16906         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
16907         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
16908         as an argument.
16909         (adjust_insn_length): Adjust calls.
16910         (avr_reorg): Handle (compare (foo) (const_int 0)).
16911         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
16912         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
16913         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
16914         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
16915         (bCC): Remove.
16916         (cbranchqi4, cbranchhi4, cbranchsi4): New.
16917         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
16919         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
16920         (cbranchsi4, cstorebi4, cstoresi4): New.
16921         (movbisi): This insn is duplicate, split it to zero_extend.
16922         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
16923         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
16924         (bfin_optimize_loop): Use cbranch expander.
16925         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
16926         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
16927         (bfin_bimode_comparison_operator): ... this.
16928         (bfin_direct_comparison_operator): New.
16930         * config/cris/cris.c (cris_normal_notice_update_cc): Look
16931         inside (compare FOO (const_int 0)).
16932         (cris_rtx_costs): Handle ZERO_EXTRACT.
16933         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
16934         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
16935         (*tstdi_v32): Delete.
16936         (*cmpdi_non_v32): Add M alternative for operand 1.
16937         (cmpsi, cmp<mode>): Make private.
16938         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
16939         with COMPARE.
16940         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
16942         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
16943         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
16944         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
16945         (cc_reg_operand): New.
16946         (any_cond): Delete.
16947         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
16948         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
16949         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
16950         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
16951         crx_expand_scond): Delete.
16953         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
16954         (cbranchsi4): New.
16955         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
16956         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
16958         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
16959         cstoresi4, cstoresf4, cstoredf4): New.
16960         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
16961         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
16962         Receive the entire operands array.
16963         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
16964         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
16965         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
16966         Get test/op0/op1 from the operands array.
16967         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
16969         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
16970         (h8300_expand_store): New.
16971         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
16972         (const_int 0)).
16973         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
16974         (h8300_expand_store): New.
16975         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
16976         or do not try to produce (set (cc0) REG).
16977         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
16978         change a compare into a move to a scratch register.  Disable some
16979         peepholes when comparing with zero.
16980         (tstsi, tsthi, tstsi, cmpqi): Make private.
16981         (cmphi): Delete.
16982         (bCC, sCC): Delete.
16983         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
16984         cstoresi4): New.
16986         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
16987         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
16988         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
16989         (ix86_emit_i387_log1p): Use cbranchxf2.
16990         (ix86_expand_setcc): Return void.
16991         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
16992         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
16993         cmp<MODEF>, cmpcc): Remove.
16994         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
16995         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
16996         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
16997         (sCC and bCC expanders): Remove.
16998         (stack_protect_test): Use cbranchcc4.
17000         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
17001         Delete.
17002         (ia64_expand_compare): Accept three rtx by reference and return void.
17003         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
17004         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
17005         from *expr.  Update *expr with the BImode comparison to do.
17006         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
17007         cmptf, bCC, sCC, conditional_trap): Delete.
17008         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
17009         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
17010         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
17011         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
17012         * config/ia64/predicates.md (ia64_cbranch_operator): New.
17014         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
17015         type of last argument.
17016         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
17017         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
17018         use machine mode argument instead of branch_type.  Remove dead
17019         code for floating-point comparisons.
17020         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
17021         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
17022         Remove.
17023         (cbranchsi4, cstoresi4): New.
17024         * config/iq2000/predicates.md (reg_or_const_operand): New.
17026         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
17027         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
17028         (b<code>_op): Rewrite to...
17029         (bcc_op): ... this, using match_operator.
17030         (s<code>_op): Rewrite to...
17031         (scc_op): ... this, using match_operator.
17032         (s<code>_24_op): Rewrite to...
17033         (scc_op_24): ... this, using match_operator.
17034         (s<code>_<mode>): Rewrite to...
17035         (cstore<mode>4): ... this, using match_operator.
17036         (s<code>_<mode>_24): Rewrite to...
17037         (cstore<mode>4_24): ... this, using match_operator.
17038         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
17039         m32c_unpend_compare, m32c_expand_scc): Delete.
17040         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
17041         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
17042         (m32c_expand_movcc): Change NE to EQ if necessary.
17043         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
17045         * config/m32r/m32r-protos.h (gen_cond_store): New.
17046         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
17047         (gen_cond_store): New, from sCC patterns.
17048         (m32r_expand_block_move): Use cbranchsi4.
17049         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
17050         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
17051         (cbranchsi4, cstoresi4): New.
17053         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
17054         Delete.
17055         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
17056         (m68hc11_notice_update_cc): Look into a compare with 0.
17057         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
17058         Delete.
17059         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
17060         cmphi, cmpqi, bCC): Delete.
17061         (cbranchsi4, cbranchhi4, cbranchqi4): New.
17062         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
17063         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
17064         sets with COMPARE.
17066         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
17067         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
17068         * config/m68k/constraints.md (H): New.
17069         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
17070         the define_insn below.
17071         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
17072         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
17073         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
17074         patterns): Wrap RHS with COMPARE.
17075         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
17076         (*cmpdi_internal): Name this pattern.
17077         (cmpdi): Change to define_insn.
17078         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
17079         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
17080         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
17081         predicate.
17082         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
17083         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
17084         (conditional_trap): Change to...
17085         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
17086         (*conditional_trap): Use the ordered_comparison_operator and
17087         const1_operand predicates.
17088         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
17089         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
17090         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
17091         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
17093         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
17094         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
17095         (mcore_gen_compare): New.
17096         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
17097         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
17098         (mcore_gen_compare): ... this.
17099         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
17100         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
17101         (stack probe pattern): Use cbranchsi4.
17103         * config/mips/predicates.md (mips_cstore_operator): New.
17104         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
17105         * config/mips/mips.md (any_cond): Delete.
17106         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
17107         always succeed.
17108         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
17109         fixuns_truncsfdi2): Use cbranch patterns.
17110         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
17111         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
17112         Adjust call to mips_expand_conditional_branch.
17113         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
17114         cstore<GPR:mode>4.
17115         * config/mips/mips-protos.h (mips_expand_conditional_branch,
17116         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
17117         * config/mips/mips.c (cmp_operands): Delete.
17118         (mips_emit_compare): Get comparison operands from *op0/*op1.
17119         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
17120         that it succeeds.  Use op0/op1 instead of cmp_operands.
17121         (mips_expand_conditional_branch, mips_expand_conditional_move,
17122         mips_expand_conditional_trap): Likewise.
17123         (mips_block_move_loop): Use cbranch patterns.
17124         * config/mips/mips.h (cmp_operands): Delete.
17126         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
17127         (mmix_gen_compare_reg): Just return a register in the right CC mode.
17128         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
17129         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
17130         (*cmpcc_folded): Rename to...
17131         (*cmpdi_folded): this.
17132         (*cmpcc): Rename to...
17133         (*cmps): ... this.
17134         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
17135         (bCC): Remove.
17136         (cbranchdi4): New.
17137         (cbranchdf4): New.  Handle invalid comparisons here.
17138         * config/mmix/predicates.md (float_comparison_operator): New.
17140         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
17141         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
17142         * config/mn10300/mn10300.md (tst): Delete.
17143         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
17144         Name these patterns and wrap RHS in a compare.
17145         (*cmpsi): Make this pattern private.  Include tst.
17146         (*cmpsf): Make this pattern private.
17147         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
17148         (compare with zero peepholes): Likewise.
17149         (bCC): Remove.
17150         (cbranchsi4, cbranchsf4): New.
17151         (casesi): Use cbranchsi4.
17153         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
17154         hppa_branch_type): Delete.
17155         (return_addr_rtx): Use cbranchsi4.
17156         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
17157         Emit CCFPmode comparison here.
17158         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
17159         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
17160         hppa_branch_type): Delete.
17161         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
17162         (movsicc, movdicc): Remove references to hppa_compare_op0,
17163         hppa_compare_op1 and compare_from_rtx.
17164         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
17165         (casesi): Use cbranchsi4.
17167         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
17168         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
17169         * config/pdp11/pdp11.md (register_or_const0_operand): New.
17170         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
17171         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
17172         (bCC): Delete.
17173         (cbranchdf4, cbranchhi4, cbranchqi4): New.
17174         (*branch, *branch_inverted): New.
17176         * config/picochip/picochip.md (cbranchhi4): Use
17177         ordered_comparison_operator.
17178         (cmphi, bCC): Remove.
17180         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
17181         (trap_comparison_operator): Delete.
17182         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
17183         rs6000_emit_cbranch): Accept mode and operands.
17184         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
17185         rs6000_compare_fp_p): Delete.
17186         (rs6000_generate_compare): Accept mode and comparison.  Extract code
17187         and op0/op1 from there.  Replace references to rs6000_compare_op0
17188         and rs6000_compare_op1.
17189         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
17190         extract result from passed operands.
17191         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
17192         extract loc from passed operands.
17193         (rs6000_emit_cmove): Likewise.
17194         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
17195         rs6000_compare_fp_p): Delete.
17196         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
17197         (cbranch<GPR>4, cbranch<FP>4): New.
17198         (cstore<mode>4): New.  Consolidate here all choices about when to use
17199         portable or specialized sCC sequences.
17200         (stack_protect_test): Use cbranchsi4.
17201         (conditional_trap): Replace with ctrap<GPR>4.
17202         (conditional trap insn): Replace trap_comparison_operator with
17203         ordered_comparison_operator.
17205         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
17206         (s390_emit_prologue): Use ctrap.
17207         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
17208         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
17209         New predicates replacing...
17210         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
17211         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
17212         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
17213         (add<mode>cc): Do not use s390_compare_op0/op1.
17214         (s<code>): Change to...
17215         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
17216         (seq): Change to...
17217         (cstorecc4): ... this.  Handle EQ or NE equally.
17218         (*sne): Un-privatize for use in cstorecc4.
17219         (b<code>): Change to...
17220         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
17221         (conditional_trap): Replace with...
17222         (ctrap<GPR>4, ctrap<FP>4): ... these.
17223         (stack_protect): Use cbranchcc4.
17225         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
17226         * config/score/score-protos.h (score_gen_cmp): Delete.
17227         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
17228         (score_block_move-loop): Use cbranchsi4.
17229         * config/score/score.md (cbranchsi4): New.
17230         (cmpsi, bCC): Delete.
17231         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
17232         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
17233         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
17234         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
17235         * config/score/score3.h (score3_gen_cmp): Delete.
17236         * config/score/score7.h (score7_gen_cmp): Delete.
17238         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
17239         (sh_emit_scc_to_t): ... this.  Return void.
17240         (from_compare): Rename to...
17241         (sh_emit_compare_and_branch): ... this.
17242         (sh_emit_compare_and_set): New.
17243         (sh_expand_t_scc): Accept operands.
17244         * config/sh/predicates.md (sh_float_comparison_operator): New.
17245         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
17246         (prepare_scc_operands): Rename to...
17247         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
17248         arguments.
17249         (sh_emit_cheap_store_flag): New.
17250         (sh_emit_set_t_insn): New.
17251         (from_compare): Rename to...
17252         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
17253         handling of TARGET_SH2E floating point to avoid recursive call.
17254         Generate branch here.
17255         (sh_emit_compare_and_set): New.
17256         (sh_expand_t_scc): Get op0/op1 from arguments.
17257         (sh_emit_cheap_store_flag): New.
17258         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
17259         cases.
17260         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
17261         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
17262         (movsicc, movdicc): Do nothing when it recreated operands from
17263         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
17264         prepare_scc_operands (now sh_emit_scc_to_t).
17265         (udivdi3): Use cstoresi4.
17266         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
17267         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
17268         (cbranchint4_media, cbranchfp4_media): New.
17269         (casesi): Use cbranchdi4.
17270         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
17271         Delete.
17272         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
17273         (movnegt): Remove second operand.
17274         (cbranchsf4, cbranchdf4): New.
17275         (stack_protect): Use cbranchdi4/cbranchsi4.
17277         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
17278         (gen_compare_reg): Accept comparison, extract part of it to...
17279         (gen_compare_reg_1): ... this.
17280         (gen_compare_operator): Delete.
17281         (gen_v9_scc): Accept separate destination, comparison code and arms.
17282         Do not use sparc_compare_op0/sparc_compare_op1.
17283         (emit_scc_insn, emit_conditional_branch_insn): New.
17284         (emit_v9_brxx): Make static.  Remove useless assertion.
17285         (sparc_emit_float_lib_cmp): Return RTL instead of calling
17286         emit_cmp_insn.
17287         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
17288         * config/sparc/sparc-protos.h (gen_compare_reg,
17289         sparc_emit_float_lib_cmp): Adjust prototype.
17290         (emit_scc_insn, emit_conditional_branch_insn): New.
17291         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
17292         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
17293         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
17294         iterators to the top.
17295         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
17296         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
17297         snedi_special_trunc): Delete.
17298         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
17299         and snedi_special_trunc.
17300         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
17301         cbranchdi4, cbranch<F:mode>4): New.
17302         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
17303         here.  Use gen_compare_reg instead of gen_compare_operator.
17304         (conditional_trap): Replace with...
17305         (ctrapsi4, ctrapdi4): ... this.
17306         (stack_protect_test): Use cbranchcc4.
17308         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
17309         argument to rtx.
17310         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
17311         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
17312         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
17313         from operands[0] or operands[3] depending on is_set.
17314         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
17315         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
17316         cmpdf, bCC), sCC: Remove.
17317         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
17318         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
17319         cstoredf4): New.
17320         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
17321         spu_emit_branch_or_set.
17323         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
17324         Add two arguments.
17325         * config/stormy16/stormy16.h (xstormy16_compare_op0,
17326         xstormy16_compare_op1): Delete.
17327         * config/stormy16/stormy16.c (xstormy16_compare_op0,
17328         xstormy16_compare_op1): Delete.
17329         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
17330         Adjust calls.
17331         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
17332         (cmphi, cmpsi, bCC): Remove.
17334         * config/v850/v850.md (tstsi, cmpsi): Fold into...
17335         (*cmpsi): ... this one.
17336         (cbranchsi4, cstoresi4): New.
17337         (bCC expanders): Delete.
17338         (sCC insns): Fold into...
17339         (*setcc): ... this one.
17340         (casesi): Do not use gen_cmpsi and gen_bgtu.
17341         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
17342         (movsicc): Simplify.
17343         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
17345         * config/vax/vax-protos.h (cond_name): New.
17346         (vax_output_conditional_branch): Remove.
17347         * config/vax/vax.c (cond_name): New.
17348         (vax_output_conditional_branch): Remove.
17349         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
17350         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
17351         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
17352         (bit<VAXint>): Wrap source with (compare).
17353         (b<code> and following unnamed pattern): Rename to *branch and
17354         *branch_reversed.  Change macroization to match_operator.
17355         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
17357         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
17358         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
17359         Change last argument to machine_mode.
17360         (xtensa_expand_scc): Add machine_mode argument.
17361         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
17362         (gen_conditional_move, xtensa_expand_conditional_branch,
17363         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
17364         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
17365         Adjust operand numbers.
17366         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
17367         Delete.
17368         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
17369         (cmpsi, cmpsf, b<code>, s<code>): Delete.
17370         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
17372 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17374         * optabs.c (prepare_cmp_insn): Temporarily disable test that
17375         causes spurious differences between trunk and cond-optab branch.
17377 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
17379         PR target/37137
17380         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
17382 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
17384         * tree.c (iterative_hash_pointer): Delete.
17385         (iterative_hash_expr): Short-circuit handling of NULL pointer.
17386         Hash UIDs and versions of SSA names.  Don't special-case built-in
17387         function declarations.
17389 2009-05-11  Ian Lance Taylor  <iant@google.com>
17391         PR bootstrap/40103
17392         * graphite.c: Force -Wc++-compat to only be a warning before
17393         #including "cloog/cloog.h".
17395 2009-05-11  Martin Jambor  <mjambor@suse.cz>
17397         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
17399 2009-05-11  Jan Hubicka  <jh@suse.cz>
17401         * tree-ssa-loop-ivcanon.c: Include target.h
17402         (struct loop_size): new structure.
17403         (constant_after_peeling): New predicate.
17404         (tree_estimate_loop_size): New function.
17405         (estimated_unrolled_size): Rewrite for new estimates.
17406         (try_unroll_loop_completely): Use new estimates.
17407         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
17409 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17411         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
17412         libcpp interface change.
17413         (spu_macro_to_expand): Likewise.
17415 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
17417         PR tree-optimization/40026
17418         * gimplify.c (gimplify_init_constructor): Change initial conditional
17419         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
17420         optimize_compound_literals_in_ctor.
17422 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
17424         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
17425         New devices.
17426         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
17428 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
17430         * tree-vect-data-refs.c (vect_analyze_group_access): Use
17431         HOST_WIDE_INT for gap.
17433 2009-05-11  Ira Rosen  <irar@il.ibm.com>
17435         PR tree-optimization/40074
17436         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
17437         account in group size and step comparison.
17439 2009-05-11  Richard Guenther  <rguenther@suse.de>
17441         * passes.c (init_optimization_passes): Strip now incorrect comment.
17442         (execute_function_todo): Do not set PROP_alias.
17443         * tree-pass.h (PROP_alias): Remove.
17444         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
17445         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
17446         * tree-nrv.c (pass_return_slot): Likewise.
17447         * tree-object-size.c (pass_object_sizes): Likewise.
17448         * tree-ssa-dom.c (pass_dominator): Likewise.
17449         (pass_phi_only_cprop): Likewise.
17450         * tree-ssa-dse.c (pass_dse): Likewise.
17451         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
17452         (pass_cselim): Likewise.
17453         * tree-ssa-pre.c (pass_pre): Likewise.
17454         (pass_fre): Likewise.
17455         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
17456         * tree-ssa-sink.c (pass_sink_code): Likewise.
17457         * tree-stdarg.c (pass_stdarg): Likewise.
17458         * tree-tailcall.c (pass_tail_calls): Likewise.
17459         * tree-vrp.c (pass_vrp): Likewise.
17461 2009-05-10  Ian Lance Taylor  <iant@google.com>
17463         * basic-block.h (enum profile_status): Break out of struct
17464         control_flow_graph.
17465         * cgraph.h (struct inline_summary): Break out of struct
17466         cgraph_local_info.
17467         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
17468         of struct cgraph_order_sort.
17469         * combine.c (enum undo_kind): New enum, broken out of struct undo.
17470         * cse.c (struct branch_path): Break out of struct
17471         cse_basic_block_data.
17472         * except.h (enum eh_region_type): Break out of struct eh_region.
17473         * gcc.c (enum add_del): Break out of struct modify_target.
17474         * genrecog.c (enum decision_type): Break out of struct decision_test.
17475         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
17476         ggc_pch_data.
17477         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
17478         * regmove.c (enum match_use): New enum, broken out of struct match.
17479         * sched-int.h (enum post_call_group): New enum, broken out of
17480         struct deps.
17481         (struct deps_reg): Break out of struct deps.
17482         * target.h (struct asm_int_op): Break out of struct gcc_target.
17483         * tree-eh.c (struct goto_queue_node): Break out of struct
17484         leh_tf_state.
17485         * tree-inline.h (enum copy_body_cge_which): Break out of
17486         copy_body_data.
17487         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
17489         * c-decl.c (in_struct, struct_types): New static variables.
17490         (pushtag): Add loc parameter.  Change all callers.
17491         (lookup_tag): Add ploc parameter.  Change all callers.
17492         (check_compound_literal_type): New function.
17493         (parser_xref_tag): Add loc parameter.  Change all callers.  If
17494         -Wc++-compat, warn about struct/union/enum types defined within a
17495         struct or union.
17496         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
17497         and loc parameters.  Change all callers.  Change error calls to
17498         error_at, using loc.  For a redefinition, if the location of the
17499         original definition is known, report it.  Set in_struct and
17500         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
17501         (finish_struct): Add new parameters enclosing_in_struct and
17502         enclosing_struct_types.  Change all callers.  Set
17503         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
17504         in the struct.  If in a struct, add this struct to struct_types.
17505         (start_enum): Add loc parameter.  Change all callers.  Use
17506         error_at for errors, using loc.  For a redefinition, if the
17507         location of the original definition is known, report it.  If in a
17508         struct, add this enum type to struct_types.  If -Wc++-compat warn
17509         if in sizeof, typeof, or alignof.
17510         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
17511         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
17512         (c_parser_enum_specifier): Get enum location for start_enum.
17513         (c_parser_struct_or_union_specifier): Get struct location for
17514         start_struct.  Save in_struct and struct_types status between
17515         start_struct and finish_struct.
17516         (c_parser_cast_expression): Get location of cast.
17517         (c_parser_alignof_expression): Get location of type.
17518         (c_parser_postfix_expression): Likewise.
17519         (c_parser_postfix_expression_after_paren_type): Add type_loc
17520         parameter.  Change all callers.  Call check_compound_literal_type.
17521         Use type_loc for error about variable size type.
17522         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
17523         of an enum constant from an enum type defined in a struct or union.
17524         (c_cast_expr): Add loc parameter.  Change all callers.  If
17525         -Wc++-compat, warn about defining a type in a cast.
17526         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
17527         (start_enum, start_struct, finish_struct): Update declarations.
17528         (parser_xref_tag, c_cast_expr): Update declarations.
17529         (check_compound_literal_type): Declare.
17531 2009-05-11  Ben Elliston  <bje@au.ibm.com>
17533         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
17534         for recent libcpp interface change.
17535         (rs6000_macro_to_expand): Likewise.
17537 2009-05-10  Michael Matz  <matz@suse.de>
17539         PR target/40031
17540         * config/arm/arm.c (require_pic_register): Emit on entry edge,
17541         not at entry of function.
17543 2009-05-10  Richard Guenther  <rguenther@suse.de>
17545         PR tree-optimization/40081
17546         Revert
17547         * tree-sra.c (instantiate_element): Instantiate scalar replacements
17548         using the main variant of the element type.  Do not fiddle with
17549         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
17551         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
17552         structs with volatile fields.
17554 2009-05-10  Jan Hubicka  <jh@suse.cz>
17556         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
17557         (estimate_move_cost): Assert that it does not get called for
17558         VOID_TYPE_P.
17559         (estimate_num_insns): Skip VOID types in argument handling.
17560         (optimize_inline_calls): Delete unreachable blocks and verify that
17561         callgraph is valid.
17563 2009-05-10  Jan Hubicka  <jh@suse.cz>
17565         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
17566         * cgraph.c (cgraph_mark_address_taken_node): New function.
17567         (dump_cgraph_node): Dump new flag.
17568         * cgraph.h (struct cgraph_node): Add address_taken.
17569         (cgraph_mark_address_taken_node): New function.
17570         * ipa.c (cgraph_postorder): Prioritize functions with address taken
17571         since new direct calls can be born.
17573 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
17575         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
17576         tok->val.node.node.
17578 2009-05-10  Jan Hubicka  <jh@suse.cz>
17580         PR middle-end/40084
17581         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
17582         argument; rewrite.
17583         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
17584         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
17585         * tree-inline.c (copy_bb): Set frequency correctly.
17586         (fold_marked_statements): Update call to
17587         cgraph_update_edges_for_call_stmt.
17589 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
17591         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
17592         identifiers in diagnostics.
17593         * config/arm/arm.c (arm_handle_fndecl_attribute,
17594         arm_handle_isr_attribute): Likewise.
17595         * config/avr/avr.c (avr_handle_progmem_attribute,
17596         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
17597         * config/bfin/bfin.c (handle_int_attribute,
17598         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
17599         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
17600         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
17601         Likewise.
17602         * config/darwin.c (darwin_handle_kext_attribute,
17603         darwin_handle_weak_import_attribute): Likewise.
17604         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
17605         h8300_handle_eightbit_data_attribute,
17606         h8300_handle_tiny_data_attribute): Likewise.
17607         * config/i386/i386.c (ix86_handle_cconv_attribute,
17608         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
17609         * config/i386/winnt.c (ix86_handle_shared_attribute,
17610         ix86_handle_selectany_attribute): Likewise.
17611         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
17612         * config/m32c/m32c.c (function_vector_handler): Likewise.
17613         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
17614         m68hc11_handle_fntype_attribute): Likewise.
17615         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
17616         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
17617         * config/mips/mips.c (mips_insert_attributes,
17618         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
17619         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
17620         rs6000_handle_struct_attribute): Likewise.
17621         * config/sh/sh.c (sh_insert_attributes,
17622         sh_handle_resbank_handler_attribute,
17623         sh_handle_interrupt_handler_attribute,
17624         sh2a_handle_function_vector_handler_attribute,
17625         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
17626         Likewise.
17627         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
17628         * config/spu/spu.c (spu_handle_fndecl_attribute,
17629         spu_handle_vector_attribute): Likewise.
17630         * config/stormy16/stormy16.c
17631         (xstormy16_handle_interrupt_attribute): Likewise.
17632         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
17633         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
17635 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
17637         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
17638         (pp_translate_identifiers): New.
17639         (pp_identifier): Only conditionally translate identifier to locale
17640         character set.
17641         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
17642         (pp_base_tree_identifier): Only conditionally translate identifier
17643         to locale character set.
17644         * c-pretty-print.c (M_): Define.
17645         (pp_c_type_specifier, pp_c_primary_expression): Mark English
17646         fragments for conditional translation with M_.
17647         * tree-pretty-print.c (maybe_init_pretty_print): Disable
17648         identifier translation.
17650 2009-05-10  Richard Guenther  <rguenther@suse.de>
17652         PR tree-optimization/40081
17653         * tree-sra.c (instantiate_element): Instantiate scalar replacements
17654         using the main variant of the element type.  Do not fiddle with
17655         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
17657 2009-05-09  Jan Hubicka  <jh@suse.cz>
17659         PR middle-end/40080
17660         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
17661         indirect calls; verify cgraph afterwards.
17663 2009-05-09  Jan Hubicka  <jh@suse.cz>
17665         PR bootstrap/40082
17666         * ipa.c (update_inlined_to_pointer): New function.
17667         (cgraph_remove_unreachable_nodes): Use it.
17669 2009-05-09  Jan Hubicka  <jh@suse.cz>
17671         * tree-eh.c (struct leh_state): Remove prev_try.
17672         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
17673         not track prev_try.
17674         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
17675         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
17676         remove_eh_handler_and_replace, foreach_reachable_handler,
17677         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
17678         * except.h (struct eh_region): Remove eh_region_u_cleanup.
17679         (gen_eh_region_cleanup): Update prototype.
17681 2009-05-09  Jan Hubicka  <jh@suse.cz>
17683         PR middle-end/40043
17684         * except.c (copy_eh_region): Always set prev_try.
17685         (redirect_eh_edge_to_label): Find outer try.
17686         (foreach_reachable_handler): When looking for prev try
17687         handle case where previous try is not going to be taken.
17689 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
17691         PR tree-optimization/40049
17692         * tree-vect-stmts.c (vectorizable_operation): If the machine has
17693         only vector/vector shifts, convert the type of the constant to the
17694         appropriate type to avoid building incorrect trees, which
17695         eventually have problems with garbage collection.
17697 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
17699         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
17700         -1 for complex floating-point types if honoring signed zeros.
17702 2009-05-08  Jan Hubicka  <jh@suse.cz>
17704         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
17705         argument; handle correctly when profile is absent.
17706         (build_cgraph_edges): Update.
17707         (rebuild_cgraph_edges): Update.
17708         * cgraph.c: Do not include varray.h.
17709         (cgraph_set_call_stmt_including_clones): New function.
17710         (cgraph_create_edge_including_clones): Likewise
17711         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
17712         (cgraph_update_edges_for_call_stmt): Handle clones.
17713         (cgraph_remove_node): Handle clone tree.
17714         (cgraph_remove_node_and_inline_clones): New function.
17715         (dump_cgraph_node): Dump clone tree.
17716         (cgraph_clone_node): Handle clone tree.
17717         (clone_function_name): Bring here from tree-inline.c.
17718         (cgraph_create_virtual_clone): New function.
17719         * cgraph.h (ipa_replace_map): Move here from ipa.h.
17720         (cgraph_clone_info): New function.
17721         (strut cgraph_node): Add clone_info and new clone tree pointers.
17722         (cgraph_remove_node_and_inline_clones,
17723         cgraph_set_call_stmt_including_clones,
17724         cgraph_create_edge_including_clones,
17725         cgraph_create_virtual_clone): Declare.
17726         (cgraph_function_versioning): Use VEC argument.
17727         (compute_call_stmt_bb_frequency): Update prototype.
17728         (cgraph_materialize_all_clones): New function.
17729         * ipa-cp.c (ipcp_update_cloned_node): Remove.
17730         (ipcp_create_replace_map): Update to VECtors.
17731         (ipcp_update_callgraph): Use virtual clones.
17732         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
17733         (ipcp_update_profiling): Do not update local profiling.
17734         (ipcp_insert_stage): Use VECtors and virtual clones.
17735         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
17736         (clone_of_p): New function.
17737         (cgraph_preserve_function_body_p): Use clone tree.
17738         (cgraph_optimize): Materialize clones.
17739         (cgraph_function_versioning): Update for VECtors.
17740         (save_inline_function_body): Use clone tree.
17741         (cgraph_materialize_clone): New function.
17742         (cgraph_materialize_all_clones): Likewise.
17743         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
17744         * ipa.c: Include gimple.h.
17745         (cgraph_remove_unreachable_nodes): Use clone tree.
17746         * ipa-prop.c (ipa_note_param_call): Update call to
17747         compute_call_stmt_bb_frequencycall.
17748         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
17749         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
17750         (copy_bb): Handle updating of clone tree; add new edge when new call
17751         appears.
17752         (expand_call_inline): Be strict about every call having edge.
17753         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
17754         (delete_unreachable_blocks_update_callgraph): New function.
17755         (tree_function_versioning): Use VECtors; always remove unreachable
17756         blocks and fold conditionals.
17757         * tree-inline.h: Do not include varray.h.
17758         (tree_function_versioning): Remove.
17759         * Makefile.in (GTFILES): Remove tree-inline.c
17760         * passes.c (do_per_function): Do only functions having body.
17761         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
17762         tree.
17764 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
17765             Andrew Morrow  <acm@google.com>
17767         PR c/36892
17768         * c-common.c (c_common_attribute_table): Permit deprecated
17769         attribute to take an optional argument.
17770         (handle_deprecated_attribute): If the optional argument to
17771         __attribute__((deprecated)) is not a string ignore the attribute
17772         and emit a warning.
17774         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
17775         * c-typeck.c (build_component_ref): Likewise.
17776         (build_external_ref): Likewise.
17778         * toplev.c (warn_deprecated_use): Add an attribute argument.
17779         Emit the message associated with __attribute__((deprecated)).
17781         * toplev.h (warn_deprecated_use): Updated.
17783         * doc/extend.texi: Document new optional parameter to
17784         __attribute__((deprecated))
17786 2009-05-08  Michael Eager <eager@eagercon.com>
17788         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
17789         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
17791 2009-05-08  Richard Guenther  <rguenther@suse.de>
17793         PR tree-optimization/40062
17794         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
17795         Avoid exponential behavior.
17797 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
17799         PR rtl-optimization/33928
17800         PR 26854
17801         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
17802         process_uses, build_single_def_use_links): New.
17803         (update_df): Update use_def_ref.
17804         (forward_propagate_into): Use get_def_for_use instead of use-def
17805         chains.
17806         (fwprop_init): Call build_single_def_use_links and let it initialize
17807         dataflow.
17808         (fwprop_done): Free use_def_ref.
17809         (fwprop_addr): Eliminate duplicate call to df_set_flags.
17810         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
17811         df_rd_simulate_one_insn): New.
17812         (df_rd_bb_local_compute_process_def): Update head comment.
17813         (df_chain_create_bb): Use the new RD simulation functions.
17814         * df.h (df_rd_simulate_artificial_defs_at_top,
17815         df_rd_simulate_one_insn): New.
17816         * opts.c (decode_options): Enable fwprop at -O1.
17817         * doc/invoke.texi (-fforward-propagate): Document this.
17819 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
17821         PR c/24581
17822         * c-typeck.c (build_binary_op): Handle arithmetic between one real
17823         and one complex operand specially.
17824         * tree-complex.c (some_nonzerop): Do not identify a real value as
17825         zero if flag_signed_zeros.
17827 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
17829         PR rtl-optimization/33928
17830         * loop-invariant.c (record_use): Fix && vs. || mishap.
17832 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
17834         PR rtl-optimization/33928
17835         * loop-invariant.c (struct use): Add addr_use_p.
17836         (struct def): Add n_addr_uses.
17837         (struct invariant): Add cheap_address.
17838         (create_new_invariant): Set cheap_address.
17839         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
17840         (record_uses): Pass df_ref to record_use.
17841         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
17842         used only as such.
17844 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
17846         * config/sh/sh.c: Do not include c-pragma.h.
17848 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17850         * config/spu/spu.c: Remove include of c-common.h.
17852 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
17854         PR c/39037
17855         * c-common.h (mark_valid_location_for_stdc_pragma,
17856         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
17857         clear_float_const_decimal64, float_const_decimal64_p): New.
17858         * c.opt (Wunsuffixed-float-constants): New.
17859         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
17860         unsuffixed float constant, handle new warning.
17861         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
17862         * c-decl.c (c_scope): New flag float_const_decimal64.
17863         (set_float_const_decimal64, clear_float_const_decimal64,
17864         float_const_decimal64_p): New.
17865         (push_scope): Set new flag.
17866         * c-parser.c (c_parser_translation_unit): Mark when it's valid
17867         to use STDC pragmas.
17868         (c_parser_external_declaration): Ditto.
17869         (c_parser_compound_statement_nostart): Ditto.
17870         * c-pragma.c (valid_location_for_stdc_pragma,
17871         mark_valid_location_for_stdc_pragma,
17872         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
17873         handle_pragma_float_const_decimal64): New.
17874         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
17875         * cp/semantics.c (valid_location_for_stdc_pragma_p,
17876         set_float_const_decimal64, clear_float_const_decimal64,
17877         float_const_decimal64_p): New dummy functions.
17878         * doc/extend.texi (Decimal Float): Remove statement that the
17879         pragma, and suffix for double constants, are not supported.
17880         * doc/invoke.texi (Warning Options): List new option.
17881         (-Wunsuffixed-float-constants): New.
17883 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
17885         * config/i386/i386.c: Do not include c-common.h.
17887 2009-05-07  Mark Heffernan  <meheff@google.com>
17889         * doc/invoke.texi (Debugging Options): Document change of debugging
17890         dump location.
17891         * opts.c (decode_options): Make dump_base_name relative to
17892         aux_base_name directory.
17894 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
17896         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
17897         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
17899 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
17901         * Makefile.in (install-plugin): Simplify a bit.
17903 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
17905         * Makefile.in (OBJS-common): Add regcprop.o.
17906         (regcprop.o): New.
17907         * timevar.def (TV_CPROP_REGISTERS): New.
17908         * regrename.c (regrename_optimize): Return 0.
17909         (rest_of_handle_regrename): Delete.
17910         (pass_rename_registers): Point to regrename_optimize.
17911         (struct value_data_entry, struct value_data,
17912         kill_value_one_regno, kill_value_regno, kill_value,
17913         set_value_regno, init_value_data, kill_clobbered_value,
17914         kill_set_value, kill_autoinc_value, copy_value,
17915         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
17916         replace_oldest_value_reg, replace_oldest_value_addr,
17917         replace_oldest_value_mem, copyprop_hardreg_forward_1,
17918         debug_value_data, validate_value_data): Move...
17919         * regcprop.c: ... here.
17920         (rest_of_handle_cprop): Delete.
17921         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
17923 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
17925         PR middle-end/40057
17926         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
17927         GEN_INT for 1 << bitnum.
17928         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
17929         build_int_cst_type.
17931 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
17933         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
17934         Remove wrong description of "nand" operation.
17936 2009-05-06  Richard Guenther  <rguenther@suse.de>
17937             Adam Nemet  <anemet@caviumnetworks.com>
17939         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
17940         comment.  Add that if LHS is not a gimple register, then RHS1 has
17941         to be a single object (GIMPLE_SINGLE_RHS).
17943 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
17945         * expr.c (get_def_for_expr): Move it up in the file.
17946         (store_field): When expanding a bit-field store, look at the
17947         defining gimple stmt for the masking conversion.
17949 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
17951         PR middle-end/39986
17952         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
17953         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
17954         32-bit memcpy into long.
17956 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
17958         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
17959         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
17960         new_reg_loc_descr.
17961         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
17962         instead of appending DW_OP_deref*.
17964 2009-05-06  Michael Matz  <matz@suse.de>
17966         PR middle-end/40021
17967         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
17968         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
17970 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
17972         * Makefile.in (install-plugin): Fix srcdir handling.
17974 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
17976         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
17977         when processing for not_regs_needed bitmap.
17978         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
17979         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
17980         handling it for rhs.
17982 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
17984         * config/i386/i386.md (unnamed inc/dec peephole): Use
17985         optimize_insn_for_size_p instead of optimize_size.
17986         * config/i386/predicates.md (incdec_operand): Likewise.
17987         (aligned_operand): Likewise.
17988         * config/i386/sse.md (divv8sf3): Likewise.
17989         (sqrtv8sf2): Likewise.
17991 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
17993         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
17995         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
17997 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
17999         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
18000         ssemodesuffixf2c with avxmodesuffixf2c.
18002 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
18004         PR c/40032
18005         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
18007 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
18009         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
18010         (struct tree_base): Adjust spacing for 8 bit boundaries.
18011         (struct tree_decl_common): Add decl_by_reference_flag bit.
18012         (DECL_BY_REFERENCE): Adjust.
18013         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
18014         print DECL_BY_REFERENCE bit.
18015         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
18016         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
18017         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
18018         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
18019         unconditionally.
18021         PR middle-end/39666
18022         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
18023         range of the type, but default label is missing, add it with one
18024         of the existing labels instead of adding a new label for it.
18026 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
18028         * dwarf.h: Remove.
18030 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
18032         * Makefile.in (enable_plugin, plugin_includedir): New.
18033         (install): Depend on install-plugin.
18034         (PLUGIN_HEADERS): New.
18035         (install-plugin): New.
18036         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
18038 2009-05-05  Richard Guenther  <rguenther@suse.de>
18040         PR tree-optimization/40022
18041         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
18042         the only vuse.
18043         (phivn_valid_p): Fix tuplification error, simplify.
18044         (phiprop_insert_phi): Add dumps.
18045         (propagate_with_phi): Simplify.
18047 2009-05-05  Richard Guenther  <rguenther@suse.de>
18049         PR middle-end/40023
18050         * builtins.c (gimplify_va_arg_expr): Properly build the address.
18052 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
18054         * tree.h (strip_float_extensions): Remove duplicate declaration.
18055         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
18056         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
18057         block_ultimate_origin): Rearrange the declarations line to match the
18058         comment that indicates the .c file which the functions are defined.
18059         (dwarf2out_*, set_decl_rtl): Add comment.
18060         (get_base_address): Adjust comment.
18061         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
18062         declarations line and add comment.
18063         (is_builtin_name): Add blank after function name, for clarity.
18065 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
18067         * attribs.c (decl_attributes): Use %qE for identifiers in
18068         diagnostics.
18069         * cgraphunit.c (verify_cgraph_node): Translate function names to
18070         locale character set in diagnostics.
18071         * coverage.c (get_coverage_counts): Use %qE for identifiers in
18072         diagnostics.
18073         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
18074         Document that functions are named in UTF-8.
18075         * expr.c (expand_expr_real_1): Translate function names to locale
18076         character set in diagnostics.
18077         * gimplify.c (omp_notice_variable, omp_is_private,
18078         gimplify_scan_omp_clauses): Use %qE for identifiers in
18079         diagnostics.
18080         * langhooks.c (lhd_print_error_function): Translate function names
18081         to locale character set.
18082         * langhooks.h (decl_printable_name): Document that return value is
18083         in internal character set.
18084         * stmt.c: Include pretty-print.h
18085         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
18086         diagnostics.
18087         (resolve_operand_name_1): Translate named operand name to locale
18088         character set.
18089         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
18090         diagnostics.
18091         * toplev.c (announce_function): Translate function names to locale
18092         character set.
18093         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
18094         (default_tree_printer): Use pp_identifier or translate identifiers
18095         to locale character set.  Mark "<anonymous>" for translation.
18096         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
18097         for identifiers in diagnostics.
18098         * tree.c (handle_dll_attribute): Use %qE for identifiers in
18099         diagnostics.
18100         * varasm.c (output_constructor): Use %qE for identifiers in
18101         diagnostics.
18103 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
18105         * configure.ac: use ` ` instead of $()
18106         * configure: Regenerate.
18108 2009-05-05  Ben Elliston  <bje@au.ibm.com>
18110         * config/pa/linux-atomic.c: Eliminate conditional include of
18111         errno.h on non-LP64 systems to simplify build requirements.
18113 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
18115         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
18116         diagnostics.
18117         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
18118         and pass value to identifier_to_locale.
18119         (warn_variable_length_array): Make name a tree.
18120         (grokdeclarator): Separate diagnostic texts for named and unnamed
18121         declarators.  Use %qE for named declarators.
18122         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
18123         diagnostics.
18124         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
18125         identifiers in diagnostics.
18126         * c-typeck.c (push_member_name, start_init): Pass identifiers to
18127         identifier_to_locale.  Mark "anonymous" strings for translation.
18129 2009-05-04  Michael Eager <eager@eagercon.com>
18131         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
18132         address for DImode/DFmode only if double-precision FP regs.
18134 2009-05-04  Michael Eager <eager@eagercon.com>
18136         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
18137         TARGET_SINGLE_FLOAT check.
18139 2009-05-04  Michael Eager <eager@eagercon.com>
18141         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
18143 2009-05-04  Michael Eager <eager@eagercon.com>
18145         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
18146         * config/rs6000/t-xilinx: New
18148 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
18150         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
18151         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
18152         * gcc/explow.c (memory_address): Use target hook.
18153         * gcc/targhooks.c (default_legitimize_address): New.
18154         * gcc/targhooks.h (default_legitimize_address): New.
18155         * gcc/target.h (legitimize_address): New.
18156         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
18157         (TARGET_INITIALIZER): Include it.
18158         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
18160         * config/bfin/bfin-protos.h (legitimize_address): Remove.
18161         * config/bfin/bfin.c (legitimize_address): Remove.
18162         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
18163         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
18164         Remove.
18165         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
18166         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
18168         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
18169         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
18170         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
18171         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
18172         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
18173         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
18174         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
18175         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
18176         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
18177         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
18178         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
18179         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
18180         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
18181         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
18182         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
18183         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
18184         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
18185         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
18186         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
18187         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
18188         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
18189         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
18190         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
18192         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
18193         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
18194         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
18195         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
18196         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
18197         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
18198         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
18199         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
18200         (thumb_legitimize_address): Delete.
18201         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
18202         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
18203         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
18204         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
18205         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
18206         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
18207         Delete.
18208         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
18209         Delete.
18211         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
18212         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
18213         * config/m32r/m32r.c (m32r_legitimize_address): New.
18214         * config/m68k/m68k.c (m68k_legitimize_address): New.
18215         * config/score/score.c (score_legitimize_address): Standardize.
18216         * config/score/score3.c (score3_legitimize_address): Standardize.
18217         * config/score/score3.h (score3_legitimize_address): Adjust.
18218         * config/score/score7.c (score7_legitimize_address): Standardize.
18219         * config/score/score7.h (score7_legitimize_address): Adjust.
18220         * config/sh/sh.c (sh_legitimize_address): New.
18221         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
18223         * gcc/config/s390/s390.c (legitimize_address): Rename to...
18224         (s390_legitimize_address): ... this.
18225         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
18226         (sparc_legitimize_address): ... this.
18227         * gcc/config/i386/i386.c (legitimize_address): Rename to...
18228         (ix86_legitimize_address): ... this.
18229         * gcc/config/avr/avr.c (legitimize_address): Rename to...
18230         (avr_legitimize_address): ... this.
18231         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
18232         (mn10300_legitimize_address): ... this.
18233         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
18234         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
18235         (alpha_expand_mov): Adjust call.
18237         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
18238         * config/spu/spu.c (spu_legitimize_address): Likewise.
18239         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
18240         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
18242 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
18244         * intl.c (locale_encoding, locale_utf8): New.
18245         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
18246         * intl.h (locale_encoding, locale_utf8): Declare.
18247         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
18248         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
18249         New.
18250         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
18251         argument.
18252         (pp_tree_identifier): Define to call pp_base_tree_identifier.
18253         (pp_base_tree_identifier): Declare as function.
18254         (identifier_to_locale): Declare.
18255         * Makefile.in (pretty-print.o): Update dependencies.
18256         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
18258 2009-05-04  Richard Guenther  <rguenther@suse.de>
18260         PR middle-end/40015
18261         * builtins.c (fold_builtin_memory_op): Do not decay to element
18262         type if the size matches the whole array.
18264 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
18266         * expmed.c (synth_mult): When trying out a shift, pass the result
18267         of a signed shift.
18269 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
18271         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
18272         (shiftsub1_cost): New.
18273         (init_expmed): Compute shiftsub1_cost.
18274         (synth_mult): Optimize multiplications by constants of the form
18275         -(2^^m-1) for some constant positive integer m.
18277 2009-05-03  Richard Guenther  <rguenther@suse.de>
18279         PR c/39983
18280         * c-typeck.c (array_to_pointer_conversion): Do not built
18281         ADDR_EXPRs of arrays of pointer-to-element type.
18282         * c-gimplify.c (c_gimplify_expr): Revert change fixing
18283         up wrong ADDR_EXPRs after-the-fact.
18284         * c-common.c (strict_aliasing_warning): Strip pointer
18285         conversions for obtaining the original type.
18286         * builtins.c (fold_builtin_memset): Handle array types.
18287         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
18288         and array types
18290 2009-05-03  Richard Guenther  <rguenther@suse.de>
18292         PR middle-end/23329
18293         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
18294         Do not lose casts from array types with unknown extent to array
18295         types with known extent.
18296         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
18297         alias set compatibility.
18299 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18301         * flags.h (extra_warnings): Delete.
18302         * toplev.c (process_options): Handle Wuninitialized here.
18303         * opts.c (extra_warnings): Delete.
18304         (set_Wextra): Delete.
18305         (common_handle_option): -Wextra can be handled automatically.
18306         * c-opts.c (c_common_handle_option): Delete obsolete code.
18307         (c_common_post_options): Simplify comment.
18308         * common.opt (W): Add Var.
18309         (Wextra): Add Var.
18310         (Wuninitialized): Initialize to -1.
18312 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
18313             Richard Guenther  <rguenther@suse.de>
18315         * expr.c (get_def_for_expr): New function.
18316         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
18317         SSA rather than trees.
18318         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
18319         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
18321 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
18323         * c-common.c (reswords): Add _Imaginary.
18324         * c-common.c (enum rid): Add RID_IMAGINARY.
18326 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
18328         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
18329         Patch by Richard Guenther.
18331 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
18333         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
18334         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
18335         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
18336         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
18337         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
18338         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
18339         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
18340         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
18341         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
18342         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
18343         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
18344         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
18345         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
18346         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
18347         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
18348         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
18349         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
18350         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
18352 2009-05-02  Richard Guenther  <rguenther@suse.de>
18354         PR tree-optimization/39940
18355         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
18356         doing so.
18358 2009-05-02  Richard Guenther  <rguenther@suse.de>
18360         PR middle-end/40001
18361         * tree-ssa.c (execute_update_addresses_taken): Properly check
18362         if we can mark a variable DECL_GIMPLE_REG_P.
18363         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
18364         back to the end of the function.
18365         (is_gimple_reg_type): Remove complex type special casing.
18366         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
18367         if not optimizing.
18369 2009-05-02  Ben Elliston  <bje@au.ibm.com>
18371         * doc/collect2.texi (Collect2): Document search path behaviour
18372         when configured with --with-ld.
18374 2009-05-02  Jan Hubicka  <jh@suse.cz>
18376         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
18377         parameter; update callers.
18378         (coalesce_cost_edge): EH edges are costier because they needs
18379         splitting even if not critical and even more costier when there are
18380         multiple EH predecestors.
18382 2009-05-02  Jan Hubicka  <jh@suse.cz>
18384         * except.c (remove_eh_handler_and_replace): Handle updating after
18385         removing TRY blocks.
18387 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
18389         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
18391 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
18393         * varasm.c: Do not include c-pragma.h.
18394         * attribs.c: Do not incude c-common.h.
18396 2009-05-01  Michael Matz  <matz@suse.de>
18398         * calls.c (initialize_argument_information): Handle SSA names like
18399         decls with a non MEM_P DECL_RTL.
18401 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
18403         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
18404         * ipa-utils.c: Likewise.
18405         * ipa-type-escape.c: Likewise.
18406         * cgraphunit.c Do not include c-common.h.
18407         * ipa-pure-const.c: Likewise.
18408         * tree-if-conv.c: Likewise.
18409         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
18410         * ipa-struct-reorg.c: Likewise.
18411         * tree-nomudflap.c: Likewise.
18412         * tree-ssa-structalias.c: Likewise.
18414 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
18416         * store-motion.c: Many cleanups to make this pass a first-class
18417         citizen instead of an appendix to gcse load motion.  Add TODO list
18418         to make this pass faster/cleaner/better.
18420         (struct ls_expr): Post gcse.c-split cleanups.
18421         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
18422         "stores" field to "avail_stores".
18423         (pre_ldst_mems): Rename to store_motion_mems.
18424         (pre_ldst_table): Rename to store_motion_mems_table.
18425         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
18426         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
18427         (ldst_entry): Rename to st_expr_entry, update users.
18428         (free_ldst_entry): Rename to free_st_expr_entry, update users.
18429         (free_ldst_mems): Rename to free_store_motion_mems, update users.
18430         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
18431         update caller.
18432         (first_ls_expr): Rename to first_st_expr, update users.
18433         (next_ls_expr): Rename to next_st_expr, update users.
18434         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
18435         fields properly for store motion instead of names inherited from load
18436         motion in gcse.c.
18437         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
18438         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
18439         are done with it.
18441         (ae_kill): Rename to st_kill, update users.
18442         (ae_gen): Rename to st_avloc, update users.
18443         (transp): Rename to st_transp, update users.
18444         (pre_insert_map): Rename to st_insert_map, update users.
18445         (pre_delete_map): Rename to st_delete_map, update users.
18446         (insert_store, build_store_vectors, free_store_memory,
18447         one_store_motion_pass): Update for abovementioned changes.
18449         (gcse_subst_count, gcse_create_count): Remove.
18450         (one_store_motion_pass): New statistics counters "n_stores_deleted"
18451         and "n_stores_created", local variables.
18453         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
18454         use for_each_rtx.
18456         (regvec, compute_store_table_current_insn): Remove.
18457         (reg_set_info, reg_clear_last_set): Remove.
18458         (compute_store_table): Use DF caches instead of local dataflow
18459         solvers.
18461 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
18463         * c-objc-common.c (c_tree_printer): Print identifiers with
18464         pp_identifier, not pp_string.  Mark "({anonymous})" for
18465         translation.
18466         * c-pretty-print.c (pp_c_ws_string): New.
18467         (pp_c_cv_qualifier, pp_c_type_specifier,
18468         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
18469         pp_c_storage_class_specifier, pp_c_function_specifier,
18470         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
18471         pp_c_primary_expression, pp_c_postfix_expression,
18472         pp_c_unary_expression, pp_c_shift_expression,
18473         pp_c_relational_expression, pp_c_equality_expression,
18474         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
18475         use pp_string and pp_c_ws_string in place of pp_identifier and
18476         pp_c_identifier for non-identifiers.  Mark English strings for
18477         translation.
18478         * c-pretty-print.h (pp_c_ws_string): Declare.
18480 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
18481             Roland McGrath <roland@redhat.com>
18483         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
18484         (ENABLE_LD_BUILDID): New configuration option.
18485         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
18486         (LINK_BUILDID_SPEC): New macro.
18487         (init_spec): If defined, prepend it between LINK_EH_SPEC and
18488         link_spec.
18489         * doc/install.texi: Document --enable-linker-build-id option.
18490         * configure: Rebuild.
18491         * config.in: Rebuild.
18493 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
18495         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
18496         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
18497         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
18498         MIPS_GP_SAVE_AREA_SIZE.
18499         * config/mips/mips.c (struct mips_frame_info): Update comment
18500         before arg_pointer_offset and hard_frame_pointer_offset.
18501         (mips_compute_frame_info): Update diagram before function: to
18502         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
18503         indicate the position of frame_pointer_rtx with -fstack-protector and
18504         to show args_size.  Don't allocate cprestore area for leaf functions
18505         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
18506         cprestore_size.
18507         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
18509 2009-04-30  Michael Matz  <matz@suse.de>
18511         PR tree-optimization/39955
18512         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
18514 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
18516         * ira.c (setup_cover_and_important_classes):  Use safe macro
18517         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
18518         directly.
18519         * genpreds.c (write_tm_preds_h):  Output suitable definition of
18520         REG_CLASS_FOR_CONSTRAINT.
18522 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
18524         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
18525         instead of an int.
18526         * bitmap.c (bitmap_descriptor): Likewise.
18527         * ggc-common.c (loc_descriptor): Likewise.
18528         * varray.c (varray_descriptor): Likewise.
18529         * vec.c (vec_descriptor): Likewise.
18531 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
18533         * Makefile.in (dce.o): Add $(EXCEPT_H).
18534         * dce.c: Include except.h and delete redundant vector definitions.
18535         (deletable_insn_p): Return false for non-call insns that can throw
18536         if DF is running.
18538 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
18540         * gcse.c (ae_gen): Remove.
18541         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
18542         and make non-static function to make it available in store-motion.c.
18543         Update call sites with search-and-replace.
18544         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
18545         extract_mentioned_regs, extract_mentioned_regs_helper,
18546         find_moveable_store, compute_store_table, load_kills_store, find_loads,
18547         store_killed_in_insn, store_killed_after, store_killed_before,
18548         build_store_vectors, insert_insn_start_basic_block, insert-store,
18549         remove_reachable_equiv_notes, replace_store_insn, delete_store,
18550         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
18551         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
18552         * store-motion.c: ...new file.  Also copy data structures from gcse.c
18553         and clean up to remove parts not used by store motion.
18554         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
18555         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
18557 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18559         PR target/38571
18560         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
18561         when optimizing for size.
18563 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
18565         * gcse.c (gcse_constant_p): Fix typo in last change.
18567 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
18569         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
18571 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
18573         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
18575 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
18577         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
18578         CONST_HIGH_PART result.
18580 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
18582         * config/avr/avr.c (initial_elimination_offset): Rename to
18583         avr_initial_elimination_offset.
18584         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
18585         change return type to bool.
18586         (avr_can_eliminate): New function.
18587         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
18588         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
18589         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
18590         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
18591         avr_initial_elimination_offset.
18592         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
18593         (avr_initial_elimination_offset): Define.
18595 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
18596             Steven Bosscher  <steven@gcc.gnu.org>
18598         PR rtl-optimization/39938
18599         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
18600         * cfgrtl.c: Include insn-attr.h.
18601         (rest_of_pass_free_cfg): New function.
18602         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
18603         * resource.c (init_resource_info): Remove call to df_analyze.
18605 2009-04-29  Richard Guenther  <rguenther@suse.de>
18607         PR target/39943
18608         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
18609         allow conversion to signed integers.
18611 2009-04-29  Richard Guenther  <rguenther@suse.de>
18613         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
18614         shifts of floating point vectors if the shift amount is
18615         a constant multiple of the element size.
18617 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
18618             Michael Matz  <matz@suse.de>
18620         PR middle-end/39927
18621         PR bootstrap/39929
18622         * tree-outof-ssa.c (emit_partition_copy): New function.
18623         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
18624         insert_part_to_rtx_on_edge): Perform the partition base var
18625         copy using emit_partition_copy.
18626         (insert_value_copy_on_edge): Convert constants to the right mode.
18627         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
18628         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
18630 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
18632         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
18633         scan backwards to try to find a constant to initialize it.
18635         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
18636         insn before the loop_end instruction, don't look past labels.
18638 2009-04-29  Richard Guenther  <rguenther@suse.de>
18640         PR middle-end/39937
18641         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
18642         loose type conversions.
18643         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
18644         stmts only if there are no uses of its definition.
18646 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
18648         * config/bfin/bfin.h (splitting_loops): Declare.
18649         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
18650         Reorder bit definitions to be ascending.
18651         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
18652         * config/bfin/bfin.c (splitting_loops): New variable.
18653         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
18654         (struct loop_info): Remove members INIT and LOOP_INIT.
18655         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
18656         the LSETUP sequence.  Allow LC to be loaded from any register, but
18657         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
18658         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
18659         set to 1.
18660         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
18661         of reload_completed.
18663         From Jie Zhang:
18664         * config/bfin/bfin.md (movsi_insn): Refine constraints.
18666 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
18668         * Makefile.in (PLUGIN_VERSION_H): New.
18669         (OBJS-common): Remove plugin-version.o.
18670         (plugin.o): Depend on (PLUGIN_VERSION_H).
18671         (plugin-version.o): Remove.
18672         * configure: Regenerate
18673         * configure.ac: Create plugin-version.h.
18674         * gcc-plugin.h (plugin_gcc_version): Remove.
18675         (plugin_default_version_check): Change signature.
18676         * plugin-version.c: Remove.
18677         * plugin.c: Include plugin-version.h.
18678         (str_plugin_gcc_version_name): Remove.
18679         (try_init_one_plugin): Pass gcc version to plugin_init.
18680         (plugin_default_version_check): Both gcc and plugin versions are now
18681         arguments.
18683 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
18685         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
18686         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
18687         Remove special case testing for last insn of inner loops. Don't fail
18688         if the loop ends with a jump, emit an extra nop instead.
18690         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
18691         DREGS rather than comparing directly.  Remove code that tries to
18692         account for latencies.
18694 2009-04-29  Richard Guenther  <rguenther@suse.de>
18696         PR tree-optimization/39941
18697         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
18698         eliminating an indirect call.
18700 2009-04-29  Richard Guenther  <rguenther@suse.de>
18702         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
18703         parameter.  Allow invariants as base if !require_lvalue.
18704         (verify_gimple_assign_single): Adjust.
18706 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
18708         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
18709         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
18710         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
18711         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
18712         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
18713         a VEC_SELECT.
18714         * config/bfin/bfin.c (bfin_expand_builtin,
18715         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
18717 2009-04-28  Richard Guenther  <rguenther@suse.de>
18719         * tree-vect-loop.c (get_initial_def_for_induction): Use
18720         correct types for pointer increment.
18722 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18724         * toplev.c (print_version): Update GMP version string calculation.
18726 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
18728         PR rtl-optimization/39938
18729         * resource.c (init_resource_info): Add call to df_analyze.
18731 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
18733         * config/alpha/alpha.md (usegp): Cast the result of
18734         alpha_find_lo_sum_using_gp to enum attr_usegp.
18735         * config/alpha/alpha.c (override_options): Remove end-of-structure
18736         marker element from cpu_table.  Use array size of cpu_table to handle
18737         -mcpu and -mtune options.
18738         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
18740 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
18742         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
18743         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
18744         tune_32 and tune_64.
18745         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
18746         support on PowerPC.
18747         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
18748         * config/rs6000/option-defaults.h: ... here.  New file.
18749         (OPT_64, OPT_32): Define.
18750         (MASK_64BIT): Define to 0 if not already defined.
18751         (OPT_ARCH64, OPT_ARCH32): Define.
18752         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
18753         and tune_64.
18755 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18757         * config/arm/arm.c (arm_override_options): Emit error on using
18758         fpa with AAPCS.
18760 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
18762         PR rtl-optimization/39914
18763         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
18764         registers for allocnos created from user-defined variables only
18765         when not optimizing.
18767 2009-04-28  Richard Guenther  <rguenther@suse.de>
18769         PR middle-end/39937
18770         * fold-const.c (fold_binary): Use distribute_real_division only
18771         on float types.
18773 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
18775         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
18776         add hpux-stdint.h to tm_file.
18777         (hppa[12]*-*-hpux11*): Ditto.
18778         (ia64*-*-hpux*): Ditto.
18779         * config/hpux-stdint.h: New.
18780         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
18781         __STDC_EXT__ for all compiles.
18782         * config/pa/pa-hpux.h: Ditto.
18783         * config/pa/pa-hpux10.h: Ditto.
18784         * config/pa/pa-hpux11.h: Ditto.
18786 2009-04-28  Catherine Moore  <clm@codesourcery.com>
18788         * debug.h (set_name): Add comment.
18790 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
18792         PR target/39929
18793         * config/darwin.c (machopic_gen_offset): Check
18794         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
18795         * config/arm/arm.c (require_pic_register): Likewise.
18797 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
18799         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
18800         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
18801         m32c_promote_prototypes): Delete.
18803 2009-04-28  Michael Matz  <matz@suse.de>
18805         PR middle-end/39922
18806         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
18807         constants.
18809 2009-04-28  Richard Guenther  <rguenther@suse.de>
18811         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
18813 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18815         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
18816         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
18817         * config/arm/arm-tune.md: Regenerate.
18819 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
18821         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
18822         block if there are complex incoming edges.
18823         (sel_merge_blocks): Remove useless assert.
18824         (sel_redirect_edge_and_branch): Check that edge was redirected.
18825         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
18826         (sel_find_rgns): Delete declaration.
18827         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
18828         the region when it is not a preheader.
18830 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
18832         PR c/39323
18833         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
18835 2009-04-28  Richard Guenther  <rguenther@suse.de>
18837         * tree.h (SSA_NAME_VALUE): Remove.
18838         (struct tree_ssa_name): Remove value_handle member.
18839         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
18840         array for jump threading.
18841         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
18842         SSA_NAME_VALUEs.
18843         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
18844         * tree-flow.h (threadedge_initialize_values): Declare.
18845         (threadedge_finalize_values): Likewise.
18846         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
18847         (SSA_NAME_VALUE): Define.
18848         (threadedge_initialize_values): New function.
18849         (threadedge_finalize_values): Likewise.
18850         * tree-ssa-dom.c (ssa_name_values): New global variable.
18851         (SSA_NAME_VALUE): Define.
18852         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
18854 2009-04-28  Ira Rosen  <irar@il.ibm.com>
18856         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
18857         Use REPORT_VECTORIZED_LOCATIONS instead
18858         REPORT_VECTORIZED_LOOPS.
18859         * tree-vectorizer.c (vect_verbosity_level): Make static.
18860         (vect_loop_location): Rename to vect_location.
18861         (vect_set_verbosity_level): Update comment.
18862         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
18863         and vect_location.
18864         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
18865         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
18866         instead REPORT_UNVECTORIZED_LOOPS.
18867         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
18868         and vect_loop_def to vect_external_def and vect_internal_def.
18869         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
18870         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
18871         REPORT_UNVECTORIZED_LOCATIONS.
18872         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
18873         and vect_used_in_loop and to vect_unused_in_scope and
18874         vect_used_in_scope.
18875         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
18876         (vect_verbosity_level): Remove declaration.
18877         (vect_analyze_operations): Likewise.
18878         (vect_analyze_stmt): Declare.
18879         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
18880         REPORT_UNVECTORIZED_LOCATIONS.
18881         (vect_get_loop_niters): Fix indentation.
18882         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
18883         (vect_analyze_loop_operations): New function.
18884         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
18885         vect_analyze_operations.
18886         (vect_is_simple_reduction): Use new names.
18887         (vectorizable_live_operation, vect_transform_loop): Likewise.
18888         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
18889         to specify whether the data references can be a part of interleaving
18890         chain.
18891         (vect_analyze_data_ref_dependence): Use new names.
18892         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
18893         (vect_create_addr_base_for_vector_ref): Remove redundant code.
18894         * tree-vect-patterns.c (widened_name_p): Use new names.
18895         (vect_recog_dot_prod_pattern): Likewise.
18896         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
18897         (process_use, vect_mark_stmts_to_be_vectorized,
18898         vect_model_simple_cost, vect_model_store_cost,
18899         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
18900         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
18901         vectorizable_operation, vectorizable_type_demotion,
18902         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
18903         vectorizable_condition): Likewise.
18904         (vect_analyze_operations): Split into vect_analyze_loop_operations
18905         and ...
18906         (vect_analyze_stmt): ... new function.
18907         (new_stmt_vec_info): Use new names.
18908         (vect_is_simple_use): Use new names and fix comment.
18909         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
18910         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
18912 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
18914         PR target/39911
18915         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
18916         and integer modes for x87 operands.  Do not ICE for unsupported size,
18917         generate error instead.  Generate error for unsupported operand types.
18918         ['z']: Do not handle HImode memory operands specially.  Warning
18919         for floating-point operands.  Fallthru to 'Z' for unsupported operand
18920         types.  Do not ICE for unsupported size, generate error instead.
18921         (output_387_binary_op): Use %Z to output operands.
18922         (output_fp_compare): Ditto.
18923         (output_387_reg_move): Ditto.
18925 2009-04-28  Ben Elliston  <bje@au.ibm.com>
18927         PR c++/35652
18928         Revert:
18930         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18932         * builtins.c (c_strlen): Do not warn here.
18933         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
18934         * c-common.c (pointer_int_sum): Take an explicit location.
18935         Warn about offsets out of bounds.
18936         * c-common.h (pointer_int_sum): Adjust declaration.
18938 2009-04-27  Ian Lance Taylor  <iant@google.com>
18940         * collect2.c (is_ctor_dtor): Change type of ret field in struct
18941         names to symkind.
18942         * dce.c (run_fast_df_dce): Change type of old_flags to int.
18943         * df-core.c (df_set_flags): Change return type to int.  Change
18944         type of old_flags to int.
18945         (df_clear_flags): Likewise.
18946         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
18947         (df_get_conditional_uses): Likewise.
18948         * df.h (df_set_flags, df_clear_flags): Update declarations.
18949         * dwarf2out.c (struct indirect_string_node): Change type of form
18950         field to enum dwarf_form.
18951         (AT_string_form): Change return type to enum dwarf_form.
18952         * fixed-value.c (fixed_compare): Add cast to enum type.
18953         * fwprop.c (update_df): Change 0 to VOIDmode.
18954         * gensupport.c: Change 0 to UNKNOWN.
18955         * gimple.h (gimple_cond_code): Add cast to enum type.
18956         * haifa-sched.c (reemit_notes): Add cast to enum type.
18957         * hooks.c (hook_int_void_no_regs): Remove function.
18958         * hooks.h (hook_int_void_no_regs): Remove declaration.
18959         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
18960         * predict.c (combine_predictions_for_insn): Add casts to enum type.
18961         * real.c (real_arithmetic): Add cast to enum type.
18962         (real_compare): Likewise.
18963         * target.h (struct gcc_target): Change return type of
18964         branch_target_register_class to enum reg_class.
18965         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
18966         default_branch_target_register_class.
18967         * targhooks.c (default_branch_target_register_class): New function.
18968         * targhooks.h (default_branch_target_register_class): Declare.
18969         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
18970         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
18971         cast to int.
18972         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
18973         ERROR_MARK.
18974         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
18975         vect_uninitialized_def.  Change 0 to ERROR_MARK.
18976         * tree-vect-stmts.c (supportable_widening_operation): Don't
18977         initialize icode1 and icode2.
18978         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
18979         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
18980         and to STD_C89.
18981         (cmn_err_flag_specs): Change 0 to STD_C89.
18982         (cmn_err_char_table): Likewise.
18983         * config/arm/arm.c (get_arm_condition_code): Change type of code
18984         to enum arm_cond_code.
18985         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
18986         (IWMMXT_BUILTIN2): Likewise.
18987         (neon_builtin_type_bits): Don't define typedef.
18988         (neon_builtin_datum): Change type of bits field to int.
18989         (arm_expand_neon_args): Add cast to enum type.
18990         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
18991         TLS_MODEL_NONE.
18992         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
18993         casts to enum type.
18994         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
18995         MIPS_FP_COND_f.
18996         * config/mips/mips.md (jal_macro): Return enum constant.
18997         (single_insn): Likewise.
18998         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
18999         CODE_FOR_nothing.
19000         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19001         casts to enum type.
19002         * config/s390/s390.c (s390_tune_flags): Change type to int.
19003         (s390_arch_flags): Likewise.
19004         (s390_handle_arch_option): Change flags field of struct pta to int.
19005         * config/s390/s390.h (s390_tune_flags): Update declaration.
19006         (s390_arch_flags): Likewise.
19007         * config/sh/sh.c (prepare_move_operands): Compare
19008         tls_symbolic_operand result with enum constant.
19009         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
19010         (sh_expand_prologue): Add cast to enum type.
19011         (sh_expand_epilogue): Likewise.
19012         (tls_symbolic_operand): Change return type to enum tls_model.
19013         (fpscr_set_from_mem): Add cast to enum type.
19014         (legitimize_pic_address): Compare tls_symbolic_operand result with
19015         enum constant.
19016         (sh_target_reg_class): Change return type to enum reg_class.
19017         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
19018         PROCESSOR_xxx.
19019         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
19020         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
19021         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
19022         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
19023         (delayed_branch, tls_call_delay): Likewise.
19024         (eligible_for_sibcall_delay): Likewise.
19025         (eligible_for_return_delay): Likewise.
19026         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
19027         (spu_expand_builtin_1): Likewise.
19029         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
19030         for all types of conversions.
19031         (output_init_element): Issue -Wc++-compat warning if needed when
19032         initializing a bitfield with enum type.
19033         * c-parser.c (c_parser_expression): Set original_type to
19034         original_type of right hand operand of comma operator.
19036 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19038         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
19039         grammar nits.
19040         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
19041         * doc/cpp.texi (Standard Predefined Macros)
19042         (Implementation-defined behavior): Likewise.
19043         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
19044         * doc/gimple.texi (GIMPLE Exception Handling)
19045         (@code{GIMPLE_ASSIGN}): Likewise.
19046         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
19047         * doc/invoke.texi (Warning Options, Optimize Options)
19048         (AVR Options, Darwin Options): Likewise.
19049         (Optimize Options): Reformulate -fwhole-program description.
19050         * doc/loop.texi (Lambda): Likewise.
19051         * doc/md.texi (Output Template, Define Constraints)
19052         (Standard Names, Insn Splitting): Likewise.
19053         * doc/options.texi (Option properties): Likewise.
19054         * doc/passes.texi (Tree-SSA passes): Likewise.
19055         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
19056         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
19057         (File Names and DBX): Likewise.
19058         * doc/trouble.texi (Incompatibilities): Likewise.
19060 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
19062         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
19063         instruction is correct.
19065 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
19067         Allow non-constant arguments to conversion intrinsics.
19068         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
19069         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
19070         * spu.c (print_operand): Handle 'v' and 'w'.
19071         (exp2_immediate_p, spu_gen_exp2): Define.
19072         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
19073         spu_convtf_1): Update parameter descriptions.
19074         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
19075         * constraints.md ('v', 'w'): New.
19076         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
19077         Remove.
19078         (i2f, I2F): New define_mode_attr.
19079         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
19080         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
19081         fixuns_truncv4sfv4si2):  Update to use mode attribute.
19082         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
19083         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
19084         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
19085         patterns for combine.
19087 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
19089         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
19090         (cprop, hoist, pre, store_motion): New debug counters.
19091         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
19092         is not an RTL pass anymore.
19093         (pass_profiling): Remove extern decl for pass removed in 2005.
19094         (pass_gcse, pass_jump_bypass): Remove.
19095         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
19096         to 0 for clean state.
19097         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
19098         * cse.c (gate_handle_cse_after_global_opts,
19099         rest_of_handle_cse_after_global_opts): New functions.
19100         (pass_cse_after_global_opts): New pass, does local CSE.
19101         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
19102         (TV_CPROP): New timevar.
19103         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
19104         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
19105         (gcse_main, recompute_all_luids): Remove.
19106         (compute_hash_table_work): Call max_reg_num instead of reading
19107         max_gcse_regno.
19108         (cprop_jump): Don't set run_jump_opt_after_gcse.
19109         (constprop_register): Always allow to alter jumps.
19110         (cprop_insn): Likewise.
19111         (do_local_cprop): Likewise.
19112         (local_cprop_pass): Likewise.  Return non-zero if something changed.
19113         (cprop): Remove function, fold interesting bits into one_cprop_pass.
19114         (find_implicit_sets): Add note about missed optimization opportunity.
19115         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
19116         pass_rtl_cprop execute function.
19117         Don't bother tracking the pass number, each pass gets its own dumpfile
19118         now anyway.
19119         Always allow to alter jumpsand bypass jumps.
19120         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
19121         will just find no suitable set.
19122         (pre_edge_insert): Fix dumping, this function is for PRE only.
19123         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
19124         pass_rtl_pre execute function.
19125         (hoist_code): Return non-zero if something changed.  Keep track of
19126         substitutions and insertions for statistics gathering similar to PRE.
19127         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
19128         called from the pass_rtl_hoist execute function.  Show pass statistics.
19129         (compute_store_table): Use max_reg_num directly instead of using the
19130         formerly global max_gcse_regno.
19131         (build_store_vectors): Likewise.
19132         (replace_store_insn): Fix dumping.
19133         (store_motion): Rename to ...
19134         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
19135         pass, called from the pass_rtl_store_motion execute function.  Keep
19136         track of substitutions and insertions for statistics gathering similar
19137         to PRE.
19138         (bypass_jumps): Remove, fold interesting bits into ...
19139         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
19140         from the pass_rtl_cprop execute function.
19141         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
19142         pass_jump_bypass): Remove.
19143         (gate_handle_gcse, rest_of_handle_gcse): Remove.
19144         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
19145         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
19146         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
19147         (gate_rtl_store_motion, execute_rtl_store_motion,
19148         pass_rtl_store_motion): New.
19149         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
19150         make it clear that -fcse-skip-blocks is a no-op for backward compat.
19151         * passes.c (init_optimization_passes): Remove pass_gcse and
19152         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
19153         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
19154         instead of pass_jump_bypass.
19156 2009-04-27  Richard Guenther  <rguenther@suse.de>
19158         PR middle-end/39928
19159         * gimplify.c (gimplify_expr): If we are required to create
19160         a temporary make sure it ends up as register.
19162 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
19164         PR target/39903
19165         * config/i386/i386.c (construct_container): Don't call
19166         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
19167         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
19169 2009-04-27  Michael Matz  <matz@suse.de>
19171         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
19172         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
19173         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
19174         (dump_replaceable_exprs): Take a bitmap.
19175         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
19176         array.
19177         (expand_gimple_basic_block): Likewise.
19178         * tree-ssa-ter.c (struct temp_expr_table_d): Make
19179         replaceable_expressions member a bitmap.
19180         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
19181         (mark_replaceable): Likewise.
19182         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
19183         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
19185 2009-04-27  Richard Guenther  <rguenther@suse.de>
19187         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
19188         (verify_stmts): Dispatch to gimple/type verification code.
19189         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
19190         issue with call argument types.
19192 2009-04-27  Michael Matz  <matz@suse.de>
19194         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
19195         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
19196         to above.
19198 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
19199             Eric Botcazou  <ebotcazou@adacore.com>
19201         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
19202         a label's basic block.
19203         (mark_target_live_regs): Tidy and rework obsolete comments.
19204         Change back DF problem to LIVE.  If a label starts a basic block,
19205         assume that all registers that used to be live then still are.
19206         (init_resource_info): If a label starts a basic block, set its
19207         BLOCK_FOR_INSN accordingly.
19208         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
19210 2009-04-27  Richard Guenther  <rguenther@suse.de>
19212         * tree-flow-inline.h (function_ann): Remove.
19213         (get_function_ann): Likewise.
19214         * tree-dfa.c (create_function_ann): Remove.
19215         * tree-flow.h (struct static_var_ann_d): Remove.
19216         (struct function_ann_d): Likewise.
19217         (union tree_ann_d): Remove fdecl member.
19218         (function_ann_t): Remove.
19219         (function_ann, get_function_ann, create_function_ann): Remove
19220         declarations.
19222 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
19224         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
19226 2009-04-27  Jan Hubicka  <jh@suse.cz>
19228         * ipa-pure-const.c (struct funct_state_d): New fields
19229         state_previously_known, looping_previously_known; remove
19230         state_set_in_source.
19231         (analyze_function): Use new fields.
19232         (propagate): Avoid assumption that state_set_in_source imply
19233         nonlooping.
19235         * tree-ssa-loop-niter.c (finite_loop_p): New function.
19236         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
19237         * cfgloop.h (finite_loop_p): Declare.
19239 2009-04-26  Michael Matz  <matz@suse.de>
19241         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
19243 2009-04-26  Michael Matz  <matz@suse.de>
19245         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
19246         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
19247         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
19248         pass_mark_used_blocks): Remove.
19249         * tree-optimize.c (pass_free_datastructures,
19250         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
19251         * passes.c (init_optimization_passes): Don't call
19252         pass_mark_used_blocks, remove dead code.
19254 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
19256         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
19257         * tree-ssa-live.h (register_ssa_partition): Likewise.
19259 2009-04-26  Michael Matz  <matz@suse.de>
19261         Expand from SSA.
19262         * builtins.c (fold_builtin_next_arg): Handle SSA names.
19263         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
19264         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
19265         SSA names.
19266         (compare_pairs): Swap cost comparison.
19267         (coalesce_ssa_name): Don't use change_partition_var.
19268         * tree-nrv.c (struct nrv_data): Add modified member.
19269         (finalize_nrv_r): Set it.
19270         (tree_nrv): Use it to update statements.
19271         (pass_nrv): Require PROP_ssa.
19272         * tree-mudflap.c (mf_decl_cache_locals,
19273         mf_build_check_statement_for): Use make_rename_temp.
19274         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
19275         * alias.c (find_base_decl): Handle SSA names.
19276         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
19277         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
19278         * rtl.h (set_reg_attrs_for_parm): Declare.
19279         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
19280         to "optimized", remove unused locals at finish.
19281         (execute_free_datastructures): Make global, call
19282         delete_tree_cfg_annotations.
19283         (execute_free_cfg_annotations): Don't call
19284         delete_tree_cfg_annotations.
19286         * ssaexpand.h: New file.
19287         * expr.c (toplevel): Include ssaexpand.h.
19288         (expand_assignment): Handle SSA names the same as register variables.
19289         (expand_expr_real_1): Expand SSA names.
19290         * cfgexpand.c (toplevel): Include ssaexpand.h.
19291         (SA): New global variable.
19292         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
19293         (SSAVAR): New macro.
19294         (set_rtl): New helper function.
19295         (add_stack_var): Deal with SSA names, use set_rtl.
19296         (expand_one_stack_var_at): Likewise.
19297         (expand_one_stack_var): Deal with SSA names.
19298         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
19299         before unique numbers.
19300         (expand_stack_vars): Use set_rtl.
19301         (expand_one_var): Accept SSA names, add asserts for them, feed them
19302         to above subroutines.
19303         (expand_used_vars): Expand all partitions (without default defs),
19304         then only the local decls (ignoring those expanded already).
19305         (expand_gimple_cond): Remove edges when jumpif() expands an
19306         unconditional jump.
19307         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
19308         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
19309         SSA name.
19310         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
19311         members of SA; deal with PARM_DECL partitions here; expand
19312         all PHI nodes, free tree datastructures and SA.  Commit instructions
19313         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
19314         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
19315         info and statements at start, collect garbage at finish.
19316         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
19317         (VAR_ANN_PARTITION) Remove.
19318         (change_partition_var): Don't declare.
19319         (partition_to_var): Always return SSA names.
19320         (var_to_partition): Only accept SSA names.
19321         (register_ssa_partition): Only check argument.
19322         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
19323         member.
19324         (delete_var_map): Don't free it.
19325         (var_union): Only accept SSA names, simplify.
19326         (partition_view_init): Mark only useful SSA names as used.
19327         (partition_view_fini): Only deal with SSA names.
19328         (change_partition_var): Remove.
19329         (dump_var_map): Use ssa_name instead of partition_to_var member.
19330         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
19331         basic blocks.
19332         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
19333         (struct _elim_graph): New member const_dests; nodes member vector of
19334         ints.
19335         (set_location_for_edge): New static helper.
19336         (create_temp): Remove.
19337         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
19338         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
19339         (new_elim_graph): Allocate const_dests member.
19340         (clean_elim_graph): Truncate const_dests member.
19341         (delete_elim_graph): Free const_dests member.
19342         (elim_graph_size): Adapt to new type of nodes member.
19343         (elim_graph_add_node): Likewise.
19344         (eliminate_name): Likewise.
19345         (eliminate_build): Don't take basic block argument, deal only with
19346         partition numbers, not variables.
19347         (get_temp_reg): New static helper.
19348         (elim_create): Use it, deal with RTL temporaries instead of trees.
19349         (eliminate_phi): Adjust all calls to new signature.
19350         (assign_vars, replace_use_variable, replace_def_variable): Remove.
19351         (rewrite_trees): Only do checking.
19352         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
19353         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
19354         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
19355         contains_tree_r, MAX_STMTS_IN_LATCH,
19356         process_single_block_loop_latch, analyze_edges_for_bb,
19357         perform_edge_inserts): Remove.
19358         (expand_phi_nodes): New global function.
19359         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
19360         functions, initialize new parameter, remember partitions having a
19361         default def.
19362         (finish_out_of_ssa): New global function.
19363         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
19364         don't reset in_ssa_p here, don't disable TER when mudflap.
19365         (pass_del_ssa): Remove.
19366         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
19367         partition members.
19368         (execute_free_datastructures): Declare.
19369         * Makefile.in (SSAEXPAND_H): New variable.
19370         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
19371         * basic-block.h (commit_one_edge_insertion): Declare.
19372         * passes.c (init_optimization_passes): Move pass_nrv and
19373         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
19374         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
19375         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
19376         (redirect_branch_edge): Deal with super block when expanding, split
19377         out jump patching itself into ...
19378         (patch_jump_insn): ... here, new static helper.
19380 2009-04-26  Michael Matz  <matz@suse.de>
19382         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
19383         beyond num_ssa_names.
19384         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
19385         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
19387 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
19389         PR inline-asm/39543
19390         * fwprop.c (forward_propagate_asm): New function.
19391         (forward_propagate_and_simplify): Propagate also into __asm, if it
19392         doesn't increase the number of referenced registers.
19394         PR c/39889
19395         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
19397 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
19399         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
19400         note_nonlocal_vla_type for nonlocal VLAs.
19401         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
19402         contains_remapped_vars, remap_vla_decls): New functions.
19403         (convert_nonlocal_reference_stmt): If not optimizing, call
19404         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
19405         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
19406         if it wasn't found in var_map.
19407         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
19408         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
19409         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
19410         declare_vars.
19411         * gimplify.c (nonlocal_vlas): New variable.
19412         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
19413         referenced VLAs.
19414         (gimplify_body): Create and destroy nonlocal_vlas.
19416         * dwarf2out.c (loc_descr_plus_const): New function.
19417         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
19418         mem_loc_descriptor, loc_descriptor_from_tree_1,
19419         descr_info_loc, gen_variable_die): Use it.
19421         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
19422         !TREE_STATIC VAR_DECLs.
19423         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
19424         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
19425         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
19426         DECL_BY_REFERENCE is valid.
19427         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
19428         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
19429         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
19430         Copy DECL_BY_REFERENCE.
19431         (struct nesting_copy_body_data): New type.
19432         (nesting_copy_decl): New function.
19433         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
19434         if they have variable length.
19436 2009-04-26  Michael Matz  <matz@suse.de>
19438         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
19439         mark new temporaries for renaming.
19441 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
19443         PR c/39581
19444         * c-decl.c (global_bindings_p): Return negative value.
19445         (c_variable_size): New.  Based on variable_size from
19446         stor-layout.c.
19447         (grokdeclarator): Call c_variable_size not variable_size.
19449 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
19451         * config/i386/i386.c (print_operand) ['z']: Fix typo.
19453 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
19455         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
19456         Redefine it to just use mingw/include.
19457         (ASM_SPEC): Rules for -m32 and -m64.
19458         (LINK_SPEC): Use Likewise.
19459         (SPEC_32): New define.
19460         (SPEC_64): Likewise.
19461         (SUB_LINK_SPEC): Likewise.
19462         (MULTILIB_DEFAULTS): New define.
19463         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
19464         Add multilib options.
19465         (MULTILIB_DIRNAMES): Likewise.
19466         (MULTILIB_OSDIRNAMES): Likewise.
19467         (LIBGCC): Likewise.
19468         (INSTALL_LIBGCC): Likewise.
19470 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
19472         PR c/39556
19473         * c-tree.h (enum c_inline_static_type): New.
19474         (record_inline_static): Declare.
19475         * c-decl.c (struct c_inline_static, c_inline_statics,
19476         record_inline_static, check_inline_statics): New.
19477         (pop_file_scope): Call check_inline_statics.
19478         (start_decl): Call record_inline_static instead of pedwarning
19479         directly for static in inline function.
19480         * c-typeck.c (build_external_ref): Call record_inline_static
19481         instead of pedwarning directly for static referenced in inline
19482         function.
19484 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
19486         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
19487         not new but only being rescanned.
19488         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
19489         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
19490         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
19491         record_set_info, compute_set, grealloc): Remove.
19492         (recompute_all_luids): New function.
19493         (gcse_main): Don't compute sets, and don't do related memory
19494         allocations/free-ing.  If something changed before the end of the
19495         pass, update LUIDs using recompute_all_luids.
19496         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
19497         (free_gcse_mem): Don't free it either.
19498         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
19499         Use the df insn LUIDs.
19500         (load_killed_in_block): Likewise.
19501         (compute_hash_table_work): Don't compute reg_set_in_block.
19502         (compute_transp): Use DF_REG_DEF_CHAINs.
19503         (local_cprop_pass): Don't use compute_sets and related functions.
19504         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
19505         Use get_max_uid() instead of max_cuid.
19506         (insert_insn_end_basic_block, pre_insert_copy_insn,
19507         update_ld_motion_stores): Don't try to
19508         keep reg_set tables up to date.
19509         (pre_insert_copies): Use df insn LUIDs.
19510         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
19511         (reg_set_info): Don't use extra bitmap argument.
19512         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
19513         information to compute regs_set_in_block.
19514         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
19515         (bypass_jumps): Don't use compute_sets and friends.
19517 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19519         PR testsuite/39710
19520         * opts.c (undocumented_msg): Do not leave blank even with
19521         ENABLE_CHECKING.
19523 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
19525         * c-decl.c (build_enumerator): Allow values folding to integer
19526         constants but not integer constant expressions with a pedwarn if
19527         pedantic.
19529 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
19531         PR c/39582
19532         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
19533         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
19534         type is an integer constant.
19536 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
19538         PR target/39897
19539         * config/i386/i386.c (print_operand) ['z']: Revert handling of
19540         HImode operands.
19542 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
19544         PR c/39564
19545         * c-decl.c (grokdeclarator): Diagnose declarations of functions
19546         with variably modified return type and no storage class
19547         specifiers, except for the case of nested functions.  Distinguish
19548         extern declarations of functions with variably modified return
19549         types from those of objects with variably modified types.
19551 2009-04-25  Jan Hubicka  <jh@suse.cz>
19553         * tree.c (list_equal_p): New function.
19554         * tree.h (list_equal_p): Declare.
19555         * coretypes.h (edge_def, edge, const_edge, basic_block_def
19556         basic_block_def, basic_block, const_basic_block): New.
19557         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
19558         (redirect_eh_edge): New function.
19559         (make_eh_edge_update_phi): EH edges are not abnormal.
19560         * except.c: Include tree-flow.h.
19561         (list_match): New function.
19562         (eh_region_replaceable_by_p): New function.
19563         (replace_region): New function.
19564         (hash_type_list): New function.
19565         (hash_eh_region): New function.
19566         (eh_regions_equal_p): New function.
19567         (merge_peers): New function.
19568         (remove_unreachable_regions): Verify EH tree when checking;
19569         merge peers.
19570         (copy_eh_region_1): New function.
19571         (copy_eh_region): New function.
19572         (push_reachable_handler): New function.
19573         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
19574         regions without label but with live RESX.
19575         * except.h (redirect_eh_edge_to_label): New.
19576         * tree-flow.h (redirect_eh_edge): New.
19577         * coretypes.h (edge_def, edge, const_edge, basic_block_def
19578         basic_block_def, basic_block, const_basic_block): Remove.
19579         * Makefile.in (except.o): Add dependency on tree-flow.h
19580         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
19581         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
19582         Remove.
19584 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
19586         PR bootstrap/39645
19587         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
19588         on the destination of memcpy.
19590 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
19592         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
19593         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
19594         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
19596 2009-04-25  Jan Hubicka  <jh@suse.cz>
19598         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
19599         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
19600         to be reached by different label than left.
19601         (update_eh_edges): Update comment; remove edge_to_remove if possible
19602         and return true if suceeded.
19603         (cleanup_empty_eh): Accept sharing map; handle shared regions.
19604         (cleanup_eh): Compute sharing map.
19605         * except.c (remove_eh_handler_and_replace): Add argument if we should
19606         update regions.
19607         (remove_unreachable_regions): Update for label sharing.
19608         (label_to_region_map): Likewise.
19609         (get_next_region_sharing_label): New function.
19610         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
19611         prev_try pointers.
19612         (remove_eh_handler): Update.
19613         (remove_eh_region_and_replace_by_outer_of): New function.
19614         * except.h (struct eh_region): Add next_region_sharing_label.
19615         (remove_eh_region_and_replace_by_outer_of,
19616         get_next_region_sharing_label): Declare.
19617         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
19619 2009-04-25  Jan Hubicka  <jh@suse.cz>
19621         * tree-cfg.c (split_critical_edges): Split also edges where we can't
19622         insert code even if they are not critical.
19624 2009-04-25  Jan Hubicka  <jh@suse.cz>
19626         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
19627         (gimple_can_remove_branch_p): EH edges won't remove branch by
19628         redirection.
19629         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
19630         updating of non-abnormal EH edges.
19631         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
19632         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
19633         (split_critical_edges): Split also edges where emitting code on them
19634         will lead to splitting later.
19636 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
19637             H.J. Lu  <hongjiu.lu@intel.com>
19639         PR target/39590
19640         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
19641         the configured assembler supports fildq and fistpq mnemonics.
19642         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
19643         * configure: Regenerated.
19644         * config.in: Ditto.
19646         * config/i386/i386.c (print_operand): Handle 'Z'.
19647         ['z']: Remove handling of special fild/fist suffixes.
19648         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
19649         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
19650         suffix of fild insn.
19651         (*floatsi<mode>2_vector_mixed): Ditto.
19652         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
19653         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
19654         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
19655         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
19656         * config/i386/gas.h (GAS_MNEMONICS): Remove.
19658 2009-04-25  Ben Elliston  <bje@au.ibm.com>
19660         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
19661         the source of a set operation.
19663 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
19665         * target.h (struct gcc_target): Add case_values_threshold field.
19666         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
19667         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
19668         * targhooks.c (default_case_values_threshold): New function.
19669         * targhooks.h (default_case_values_threshold): Declare function.
19670         * stmt.c (expand_case): Use case_values_threshold target hook.
19671         * expr.h (case_values_threshold): Remove declartation.
19672         * expr.c (case_values_threshold): Remove function.
19673         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
19675         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
19676         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
19677         (avr_case_values_threshold): Declare as static.
19678         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
19680         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
19681         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
19682         (mn10300_case_values_threshold): New function.
19684 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
19686         * ira.c (setup_cover_and_important_classes): Add enum cast.
19688 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
19690         * genpreds.c (write_enum_constraint_num): Output definition of
19691         CONSTRAINT_NUM_DEFINED_P macro.
19692         * ira.c (setup_cover_and_important_classes): Use
19693         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
19695 2009-04-24  DJ Delorie  <dj@redhat.com>
19697         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
19698         __SH2A_SINGLE_ONLY__ also.
19700 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
19702         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
19703         (movdf_internal): Ditto.
19704         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
19705         SFmode and DFmode constants.
19706         (ia64_print_operand): Add 'G' format for printing
19707         floating point constants.
19709 2009-04-24  Richard Guenther  <rguenther@suse.de>
19711         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
19712         from unsigned additions.
19714 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
19716         * c-typeck.c (set_init_index): Allow array designators that are
19717         not integer constant expressions with a pedwarn if pedantic.
19719 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
19721         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
19722         zero if no overlap in nonzero bits between the operands.
19724 2009-04-24  Ian Lance Taylor  <iant@google.com>
19726         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
19727         (record_dead_and_set_regs): Likewise.
19728         * df.h (struct df_mw_hardreg): Change flags field to int.
19729         (struct df_base_ref): Likewise.
19730         (struct df): Change changeable_flags field to int.
19731         * df-scan.c (df_defs_record): Change clobber_flags to int.
19732         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
19733         constants rather than #define macros.
19734         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
19735         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
19736         (enum dwarf_calling_convention): Likewise.
19737         (enum dwarf_line_number_x_ops): Likewise.
19738         (enum dwarf_call_frame_info): Likewise.
19739         (enum dwarf_source_language): Likewise.
19740         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
19741         (add_calling_convention_attribute): Likewise.
19742         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
19743         (combine_comparisons): Change compcode to int.  Add cast to enum type.
19744         * genrecog.c (maybe_both_true_2): Change c to int.
19745         (write_switch): Likewise.  Add cast to enum type.
19746         * gimplify.c (gimplify_omp_for): Handle return values from
19747         gimplify_expr using MIN rather than bitwise or.
19748         (gimplify_expr): Add cast to enum type.
19749         * ipa-prop.c (update_jump_functions_after_inlining): Change
19750         IPA_BOTTOM to IPA_JF_UNKNOWN.
19751         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
19752         Add casts to enum type.
19753         (setup_cover_and_important_classes): Change cl to int.  Add casts
19754         to enum type.
19755         (setup_class_translate): Change cl and mode to int.
19756         (ira_init_once): Change mode to int.
19757         (free_register_move_costs): Likewise.
19758         (setup_prohibited_mode_move_regs): Add casts to enum type.
19759         * langhooks.c (add_builtin_function_common): Rework assertion that
19760         value fits bitfield.
19761         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
19762         * omega.c (omega_do_elimination): Avoid math on enum types.
19763         * optabs.c (expand_vec_shift_expr): Remove casts to int.
19764         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
19765         int local to handle integral_argment value.
19766         * regmove.c (try_auto_increment): Change PUT_MODE to
19767         PUT_REG_NOTE_KIND.
19768         * reload.c (push_secondary_reload): Add casts to enum type.
19769         (secondary_reload_class, find_valid_class): Likewise.
19770         * reload1.c (emit_input_reload_insns): Likewise.
19771         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
19772         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
19773         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
19774         constant.
19775         * tree.c (build_common_builtin_nodes): Add casts to enum type.
19776         * tree-complex.c (complex_lattice_t): Typedef to int rather than
19777         enum type.
19778         (expand_complex_libcall): Add casts to enum type.
19779         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
19780         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
19781         with ERROR_MARK, not NUM_TREE_CODES.
19782         (vect_create_epilog_for_reduction): Likewise.
19783         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
19784         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
19785         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
19786         enum machine_mode.
19787         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
19788         vect_unused_in_loop.  Change 0 to loop_vect.
19789         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
19790         * var-tracking.c (get_init_value): Change return type to enum
19791         var_init_status.
19792         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
19793         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
19794         arm_fp_model.
19795         (arm_override_options): Add casts to enum type.
19796         (arm_emit_tls_decoration): Likewise.
19797         * config/i386/i386.c (ix86_function_specific_restore): Add casts
19798         to enum type.
19799         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
19800         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
19801         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
19802         enum type.
19803         * config/s390/s390.c (code_for_builtin_64): Change to array of
19804         enum insn_code.
19805         (code_for_builtin_31): Likewise.
19806         (s390_expand_builtin): Change code_for_builtin to enum insn_code
19807         const *.
19808         * config/sparc/sparc.c (sparc_override_options): Change value
19809         field in struct code_model to enum cmodel.  In initializer change
19810         0 to NULL and add cast to enum type.
19812         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
19813         Change all callers.  Issue a -Wc++-compat warning using
19814         lhs_origtype if necessary.
19815         (convert_for_assignment): Issue -Wc++-compat warnings about
19816         invalid conversions to enum type on assignment.
19817         * c-common.h (build_modify_expr): Update declaration.
19819 2009-04-24  Nick Clifton  <nickc@redhat.com>
19821         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
19822         (function_arg_advance): Likewise.
19823         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
19824         5th alternative.
19826 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
19828         * config/s390/constraints.md ('I', 'J'): Fix condition.
19830 2009-04-24  Diego Novillo  <dnovillo@google.com>
19832         * gengtype-parse.c (parse_error): Add newline after message.
19834 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
19836         * config/i386/sse.md (avxmodesuffixs): Removed.
19837         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
19838         (*avx_pinsr<ssevecsize>): This.
19840 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
19842         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
19843         follow chains of regs with a single definition, and allow expressions
19844         that are function_invariant_p.
19845         (simple_rhs_p): Allow expressions that are function_invariant_p.
19847 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
19849         PR middle-end/39867
19850         * fold-const.c (fold_cond_expr_with_comparison): When folding
19851         > and >= to MAX, make sure the MAX uses the same type as the
19852         comparison's operands.
19854 2009-04-24  Nick Clifton  <nickc@redhat.com>
19856         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
19857         addressing for DImode accesses.
19858         (frv_print_operand_address): Handle PLUS case.
19859         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
19861 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
19863         PR rtl-optimization/39794
19864         * alias.c (canon_true_dependence): Add x_addr argument.
19865         * rtl.h (canon_true_dependence): Adjust prototype.
19866         * cse.c (check_dependence): Adjust canon_true_dependence callers.
19867         * cselib.c (cselib_invalidate_mem): Likewise.
19868         * gcse.c (compute_transp): Likewise.
19869         * dse.c (scan_reads_nospill): Likewise.
19870         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
19871         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
19872         canon_base_addr of the group, plus optional offset.
19873         (struct group_info): Rename canon_base_mem to
19874         canon_base_addr.
19875         (get_group_info): Set canon_base_addr to canon_rtx of base, not
19876         canon_rtx of base_mem.
19878 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
19880         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
19881         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
19883 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19885         * config/spu/spu-builtins.h: Delete file.
19887         * config/spu/spu.h (enum spu_builtin_type): Move here from
19888         spu-builtins.h.
19889         (struct spu_builtin_description): Likewise.  Add GTY marker.
19890         Do not use enum spu_function_code or enum insn_code.
19891         (spu_builtins): Add extern declaration.
19893         * config/spu/spu.c: Do not include "spu-builtins.h".
19894         (enum spu_function_code, enum spu_builtin_type_index,
19895         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
19896         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
19897         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
19898         unsigned_V2DI_type_node): Move here from spu-builtins.h.
19899         (spu_builtin_types): Make static.  Add GTY marker.
19900         (spu_builtins): Add extern declaration with GTY marker.
19901         Include "gt-spu.h".
19903         * config/spu/spu-c.c: Do not include "spu-builtins.h".
19904         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
19905         Check programmatically whether all parameters are scalar.
19907         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
19909 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
19911         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
19912         assignment from the constructor either if the target is volatile.
19914 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
19916         * config/arm/arm.md (insv): Do not share operands[0].
19918 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
19920         * config/vxlib-tls.c (active_tls_threads): Delete.
19921         (delete_hook_installed): New.
19922         (tls_delete_hook): Don't delete the delete hook.
19923         (tls_destructor): Delete it here.
19924         (__gthread_set_specific): Adjust installing the delete hook.
19925         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
19926         __gthread_leave_tsd_dtor_context.
19928 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
19930         * c-format.c (gcc_tdiag_char_table): Add support for %E.
19932 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
19934         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
19935         enum type.
19936         (alpha_rtx_costs): Ditto.
19937         (emit_unlikely_jump): Use add_reg_note.
19938         (emit_frame_store_1): Ditto.
19939         (alpha_expand_prologue): Ditto.
19940         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
19941         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
19943 2009-04-23  Nick Clifton  <nickc@redhat.com>
19945         * config/v850/v850.md (epilogue): Remove suppressed code.
19946         (return): Rename to return_simple and remove test of frame size.
19947         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
19948         to gen_return_simple.
19950 2009-04-22  Jing Yu  <jingyu@google.com>
19952         PR testsuite/39781
19953         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
19955 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19957         PR C/31499
19958         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
19959         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
19960         value is a VECTOR_CST, the element type is the element type of the
19961         vector.
19963 2009-04-22  DJ Delorie  <dj@redhat.com>
19965         * config/m32c/m32c.h: Update GTY annotations to new syntax.
19967 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
19969         * alias.c (find_base_term): Move around LO_SUM case, so that
19970         CONST falls through into PLUS/MINUS handling.
19972         PR c/39855
19973         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
19974         into 0, use omit_one_operand.
19976 2009-04-23  Ben Elliston  <bje@au.ibm.com>
19978         * config/rs6000/linux-unwind.h (get_regs): Remove type
19979         puns. Change the type of `pc' to an array of unsigned ints and
19980         update all users.  Constify frame24.
19982 2009-04-22  DJ Delorie  <dj@redhat.com>
19984         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
19985         declarations before code.
19986         (current_function_special_page_vector): Likewise.
19987         (m32c_expand_insv): Silence a warning.
19989 2009-04-21  Taras Glek  <tglek@mozilla.com>
19991         * alias.c: Update GTY annotations to new syntax.
19992         * basic-block.h: Likewise.
19993         * bitmap.h: Likewise.
19994         * c-common.h: Likewise.
19995         * c-decl.c: Likewise.
19996         * c-parser.c: Likewise.
19997         * c-pragma.c: Likewise.
19998         * c-tree.h: Likewise.
19999         * cfgloop.h: Likewise.
20000         * cgraph.h: Likewise.
20001         * config/alpha/alpha.c: Likewise.
20002         * config/arm/arm.h: Likewise.
20003         * config/avr/avr.h: Likewise.
20004         * config/bfin/bfin.c: Likewise.
20005         * config/cris/cris.c: Likewise.
20006         * config/darwin.c: Likewise.
20007         * config/frv/frv.c: Likewise.
20008         * config/i386/i386.c: Likewise.
20009         * config/i386/i386.h: Likewise.
20010         * config/i386/winnt.c: Likewise.
20011         * config/ia64/ia64.h: Likewise.
20012         * config/iq2000/iq2000.c: Likewise.
20013         * config/mips/mips.c: Likewise.
20014         * config/mmix/mmix.h: Likewise.
20015         * config/pa/pa.c: Likewise.
20016         * config/pa/pa.h: Likewise.
20017         * config/rs6000/rs6000.c: Likewise.
20018         * config/s390/s390.c: Likewise.
20019         * config/sparc/sparc.c: Likewise.
20020         * config/xtensa/xtensa.c: Likewise.
20021         * cselib.h: Likewise.
20022         * dbxout.c: Likewise.
20023         * dwarf2out.c: Likewise.
20024         * except.c: Likewise.
20025         * except.h: Likewise.
20026         * fixed-value.h: Likewise.
20027         * function.c: Likewise.
20028         * function.h: Likewise.
20029         * gimple.h: Likewise.
20030         * integrate.c: Likewise.
20031         * optabs.c: Likewise.
20032         * output.h: Likewise.
20033         * real.h: Likewise.
20034         * rtl.h: Likewise.
20035         * stringpool.c: Likewise.
20036         * tree-data-ref.c: Likewise.
20037         * tree-flow.h: Likewise.
20038         * tree-scalar-evolution.c: Likewise.
20039         * tree-ssa-address.c: Likewise.
20040         * tree-ssa-alias.h: Likewise.
20041         * tree-ssa-operands.h: Likewise.
20042         * tree.c: Likewise.
20043         * tree.h: Likewise.
20044         * varasm.c: Likewise.
20045         * varray.h: Likewise.
20046         * vec.h: Likewise.
20047         * coretypes.h: Do not define GTY macro if it is already defined.
20048         * doc/gty.texi: Update GTY documentation to new syntax.
20049         * gengtype-lex.l: Enforce attribute-like syntax for GTY
20050         annotations on structs.
20051         * gengtype-parse.c: Likewise.
20053 2009-04-22  Mark Heffernan  <meheff@google.com>
20055         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
20057 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
20059         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
20060         where appropriate.
20062 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
20064         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
20065         the same as a PLUS without a shift.  Increase the cost of a
20066         CONST_INT in MULT.
20068 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20070         * Makefile.in: Update dependencies.
20071         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
20072         * errors.h: Remove bogus comment about compatibility.
20073         (warning): Update declaration.
20074         * genautomata.c: Update all calls to warning.
20075         * gimple.c: Do not include errors.h. Include toplev.h.
20076         * tree-ssa-structalias.c: Do not include errors.h.
20077         * omega.c: Likewise.
20078         * tree-ssa-reassoc.c: Likewise.
20079         * config/spu/spu-c.c: Likewise.
20080         * config/spu/t-spu-elf: Update dependencies.
20082 2009-04-22  Richard Guenther  <rguenther@suse.de>
20084         PR tree-optimization/39824
20085         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
20086         make sure the types are compatible.
20088 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20090         PR c++/14875
20091         * c-common.c (c_parse_error): Take a token_flags parameter.
20092         Use token_type for the token type instead.
20093         Pass token_flags to cpp_type2name.
20094         * c-common.h (c_parse_error): Update declaration.
20095         * c-parser.c (c_parser_error): Pass 0 as token flags.
20097 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
20099         PR rtl-optimization/39580
20100         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
20102 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20104         * function.c (expand_function_end): Do not emit a jump to the "naked"
20105         return label for fall-through returns.
20106         * except.c (sjlj_emit_function_exit): Always place the call to the
20107         unregister function at the location installed by expand_function_end.
20109 2009-04-22  Richard Guenther  <rguenther@suse.de>
20111         PR tree-optimization/39845
20112         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
20113         (gen_inbound_check): Likewise.
20115 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
20117         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
20118         padding for PPC.
20119         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
20120         * config/vxlib.c (__gthread_once): Add race guard for PPC.
20122 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
20124         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
20125         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
20126         shift counts to avoid out-of-bounds array accesses.
20128 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
20130         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
20131         (Pmode): Move above.
20133 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
20135         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
20136         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
20137         GET_CODE macro.  Use IN_RANGE macro where appropriate.
20138         * config/alpha/alpha.h: Ditto.
20139         * config/alpha/alpha.md: Ditto.
20140         * config/alpha/constraints.md: Ditto.
20141         * config/alpha/predicates.md: Ditto.
20143 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
20145         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
20146         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20147         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20148         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20149         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20150         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20151         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20152         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20153         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20154         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20155         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20156         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20157         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20158         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20159         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20160         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20161         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20162         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20163         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20164         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20165         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20166         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20167         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20168         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20169         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20170         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20171         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20173 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20175         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
20176         references from comments.
20177         * cfgbuild.c: (count_basic_blocks): Delete.
20178         (find_basic_blocks_1): Delete.
20179         (find_basic_blocks): Delete.
20180         * except.c (finish_eh_generation): Make static.  Move comment from
20181         except.h here.  Remove find_basic_blocks references from comments.
20182         * except.h (finish_eh_generation): Delete.
20183         * basic-block.h (find_basic_blocks): Delete.
20184         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
20186 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
20188         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
20189         (sdbout_parms):  Likewise.
20191 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
20193         * config/sh/sh.c (prepare_cbranch_operands): Use
20194         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
20195         (expand_cbranchdi4): Likewise.
20196         (from_compare): Add cast to enum type.
20197         (expand_cbranchsi4): Use add_reg_note.
20198         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
20199         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
20200         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
20201         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20202         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
20203         instead of CODE_FOR_nothing.
20204         (cbranchdi4): Likewise.  Fix the order of arguments for
20205         gen_rtx_fmt_ee.
20206         (push_fpscr): Use add_reg_note.
20207         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
20208         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
20210 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
20212         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
20213         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
20214         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
20215         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
20216         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
20217         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
20218         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
20219         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
20220         config/alpha/x-vms, config/arc/t-arc,
20221         config/arm/README-interworking, config/arm/arm-c.c,
20222         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
20223         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
20224         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
20225         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
20226         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
20227         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
20228         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
20229         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
20230         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
20231         config/cris/t-elfmulti, config/crx/t-crx,
20232         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
20233         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
20234         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
20235         config/h8300/t-h8300, config/i386/athlon.md,
20236         config/i386/darwin-libgcc.10.4.ver,
20237         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
20238         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
20239         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
20240         config/i386/t-linux64, config/i386/t-nwld,
20241         config/i386/t-rtems-i386, config/i386/t-sol2-10,
20242         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
20243         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
20244         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
20245         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
20246         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
20247         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
20248         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
20249         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
20250         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
20251         config/m68k/t-uclinux, config/mcore/t-mcore,
20252         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
20253         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
20254         config/mips/crtn.asm, config/mips/irix-crti.asm,
20255         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
20256         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
20257         config/mips/mips-fixed.md, config/mips/sb1.md,
20258         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
20259         config/mips/t-iris6, config/mips/t-isa3264,
20260         config/mips/t-libgcc-mips16, config/mips/t-linux64,
20261         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
20262         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
20263         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
20264         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
20265         config/mn10300/t-linux, config/mn10300/t-mn10300,
20266         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
20267         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
20268         config/picochip/libgccExtras/clzsi2.asm,
20269         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
20270         config/rs6000/darwin-libgcc.10.4.ver,
20271         config/rs6000/darwin-libgcc.10.5.ver,
20272         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
20273         config/rs6000/t-aix43, config/rs6000/t-aix52,
20274         config/rs6000/t-darwin, config/rs6000/t-fprules,
20275         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
20276         config/rs6000/t-lynx, config/rs6000/t-netbsd,
20277         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
20278         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
20279         config/rs6000/t-rtems, config/rs6000/t-spe,
20280         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
20281         config/score/t-score-elf, config/sh/divcost-analysis,
20282         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
20283         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
20284         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
20285         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
20286         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
20287         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
20288         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
20289         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
20290         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
20291         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
20292         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
20293         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
20294         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
20295         limitx.h, version.c, xcoff.h: Add copyright and license notices.
20296         * config/h8300/genmova.sh: Include copyright and license notices
20297         in generated output.
20298         * config/h8300/mova.md: Regenerate.
20299         * doc/install.texi2html: Include word "Copyright" in copyright
20300         notice and use name "Free Software Foundation, Inc.".
20301         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
20302         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
20303         ChangeLog-2007, ChangeLog-2008: Correct dates.
20305 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
20307         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
20308         NE_EXPR operations as well.
20309         * c-parser.c (c_parser_condition): Do not set location information on
20310         the condition.
20311         (c_parser_conditional_expression): Likewise.
20312         (c_parser_binary_expression): Set location information on operators.
20313         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
20314         TRUTH_NOT_EXPR has been folded.
20315         * fold-const.c (fold_truth_not_expr): Copy location information from
20316         the incoming expression to the outgoing one.
20317         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
20318         recursive calls on the LHS of the operator but pass that of the
20319         operator to recursive calls on the RHS of the operator.  Set it
20320         on the COND_EXPR.
20321         (shortcut_cond_expr): Set the locus of the operator on the second
20322         COND_EXPR and that of the expression on the first in degenerate cases.
20323         Pass the locus of the expression to calls to shortcut_cond_r.
20324         Set the locus of the 'then' block on the associated jump, if any.
20325         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
20326         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
20327         expression to call to gimplify_boolean_expr.
20329 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
20331         * config.gcc: Add additional configuration for
20332         i686-w64-mingw* and x86_64-w64-mingw* triplet.
20333         * config/i386/mingw-w64.h: New mingw-w64 specific header.
20334         (CPP_SPEC): Redefine for allowing -municode option.
20335         (STARTFILE_SPEC): Likewise.
20336         * config/i386/t-mingw-w64: New.
20337         * config/i386/mingw-w64.opt: New.
20338         (municode): Add new target option.
20339         * doc/invoke.texi (municode): Add documentation for new option.
20341 2009-04-21  Ian Lance Taylor  <iant@google.com>
20343         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20344         Correct test for number of arguments.
20345         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
20347 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
20349         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
20350         argument of emit_library_call.
20352 2009-04-21  Richard Guenther  <rguenther@suse.de>
20354         PR middle-end/39829
20355         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
20356         inside VIEW_CONVERT_EXPRs.
20358 2009-04-21  Martin Jambor  <mjambor@suse.cz>
20360         * tree-switch-conversion.c (build_constructors): Split a long line.
20361         (constructor_contains_same_values_p): New function.
20362         (build_one_array): Create assigns of constants if possible, do not
20363         call mark_sym_for_renaming, call update_stmt.
20364         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
20365         make_rename_temp.  Do not call mark_symbols_for_renaming, call
20366         update_stmt.
20367         (gen_def_assigns): Do not call mark_symbols_for_renaming or
20368         find_new_referenced_vars, call update_stmt.
20369         (gen_inbound_check): Use create_tmp_var and create ssa names manually
20370         instead of calling make_rename_temp.  Do not call
20371         find_new_referenced_vars or mark_symbols_for_renaming, call
20372         update_stmt.
20374 2009-04-21  Richard Guenther  <rguenther@suse.de>
20376         PR tree-optimization/39827
20377         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
20378         (tree_ssa_phiprop): Pass the correct array size.
20380 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
20382         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
20384 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20386         PR 16202
20387         * c-typeck.c (lvalue_p): Move declaration ...
20388         * c-common.h (lvalue_p): ... to here.
20389         * c-common.c (candidate_equal_p): New.
20390         (add_tlist): Use it.
20391         (merge_tlist): Use it.
20392         (warn_for_collisions_1): Likewise.
20393         (warning_candidate_p): Accept more candidates.
20394         (verify_tree): A warning candidate can be an expression. Use
20395         candidate_equal_p.
20397 2009-04-21  Ben Elliston  <bje@au.ibm.com>
20399         PR target/5267
20400         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
20401         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
20402         options.  Remove -mcall-solaris documentation.
20404 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20406         PR c++/13358
20407         * doc/invoke.texi (-Wlong-long): Update description.
20408         * c-lex (interpret_integer): Only warn if there was no previous
20409         overflow and -Wlong-long is enabled.
20410         * c-decl.c (declspecs_add_type): Drop redundant flags.
20411         * c.opt (Wlong-long): Init to -1.
20412         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
20413         and front-end warn_long_long. Wlong-long only depends on other
20414         flags if it is uninitialized.
20415         * c-parser.c (disable_extension_diagnostics): warn_long_long is
20416         the same for CPP and FE.
20417         (restore_extension_diagnostics): Likewise.
20419 2009-04-20  Ian Lance Taylor  <iant@google.com>
20421         Fix enum conversions which are invalid in C++:
20422         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
20423         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
20424         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
20425         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
20426         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
20427         (dbxout_parms): Likewise.
20428         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
20429         (df_clear_flags): Likewise.
20430         * df-problems.c (df_rd_bb_local_compute_process_def): Change
20431         top_flag parameter to int.
20432         (df_chain_create_bb_process_use): Likewise.
20433         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
20434         Remove cast.
20435         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
20436         (df_ref_create_structure, df_def_record_1): Likewise.
20437         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
20438         (df_notes_rescan): Change 0 to VOIDmode in function call.
20439         (df_get_call_refs, df_insn_refs_collect): Likewise.
20440         (df_bb_regs_collect): Likewise.
20441         (df_entry_block_defs_collect): Likewise.
20442         (df_exit_block_uses_collect): Likewise.
20443         * df.h: Update declarations.
20444         * double-int.c (double_int_divmod): Add cast to enum type.
20445         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
20446         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
20447         (based_loc_descr): Likewise.
20448         (loc_descriptor_from_tree_1): Change first_op and second_op to
20449         enum dwarf_location_atom.  Add cast to enum type.
20450         * expmed.c (init_expmed): Change 0 to SET in function call.
20451         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
20452         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
20453         (do_store_flag): Likewise.
20454         * fixed-value.h (struct fixed_value): Change mode to enum
20455         machine_mode.
20456         * function.c (assign_parms): Change 0 to VOIDmode in function call.
20457         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
20458         function call.
20459         (insert_insn_decl, insert_decl, insert_state): Likewise.
20460         (automata_list_finish): Likewise.
20461         * genrecog.c (process_define_predicate): Add cast to enum type.
20462         * gensupport.c (init_predicate_table): Add cast to enum type.
20463         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
20464         function call.
20465         (gimple_build_call_1, gimple_build_label): Likewise.
20466         (gimple_build_goto, gimple_build_asm_1): Likewise.
20467         (gimple_build_switch_1, gimple_build_cdt): Likewise.
20468         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
20469         (enum fallback): Rename from enum fallback_t.
20470         (fallback_t): Typedef as int.
20471         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
20472         GSI_SAME_STMT in function call.
20473         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
20474         enum type.
20475         (setup_reg_class_relations): Likewise.
20476         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
20477         (setup_prohibited_class_mode_regs): Add cast to enum type.
20478         (setup_prohibited_mode_move_regs): Likewise.
20479         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
20480         (record_address_regs): Change i to enum reg_class.
20481         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
20482         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
20483         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
20484         (GET_MODE_2XWIDER_MODE): Likewise.
20485         (GET_CLASS_NARROWEST_MODE): Likewise.
20486         * omp-low.c (expand_omp_for): Add cast to enum type.
20487         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
20488         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
20489         * postreload.c (reload_cse_simplify_operands): Change rclass local
20490         to enum reg_class.
20491         * predict.c (combine_predictions_for_insn): Change best_predictor
20492         and predictor to enum br_predictor.
20493         (combine_predictions_for_bb): Likewise.
20494         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
20495         use SET_PREDICT_EXPR_OUTCOME.
20496         * real.c (real_arithmetic): Change icode to code in function call.
20497         * reginfo.c (init_move_cost): Add casts to enum type.
20498         (init_reg_sets_1, init_fake_stack_mems): Likewise.
20499         * regmove.c (regclass_compatible_p): Change class0 and class1 to
20500         enum reg_class.
20501         * reload.c (find_valid_class): Add casts to enum type.
20502         (push_reload): Change 0 to NO_REGS in function call.
20503         (find_reloads): Change this_alternative to array of enum
20504         reg_class.  Remove some now-unnecessary casts.
20505         (make_memloc): Change 0 to VOIDmode in function call.
20506         * reload1.c (reload): Change 0 to VOIDmode in function call.
20507         (eliminate_regs_1, elimination_effects): Likewise.
20508         (eliminate_regs_in_insn): Likewise.
20509         (emit_input_reload_insns): Add cast to enum type.
20510         (delete_output_reload): Change 0 to VOIDmode in function call.
20511         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
20512         to enum type in function call.
20513         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
20514         (SET_PREDICT_EXPR_OUTCOME): Define.
20515         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
20516         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
20517         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
20518         (dump_function): Likewise.
20519         * tree-dump.h: Update declarations.
20520         * tree-pass.h: Update declarations.
20521         * varasm.c (assemble_integer): Change mclass to enum mode_class.
20522         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
20523         enum type.
20524         (arm_rtx_costs_1): Correct parenthesization.
20525         (arm_rtx_costs): Add casts to enum type.
20526         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
20527         (vfp_emit_fstmd): Use add_rg_note.
20528         (emit_multi_reg_push, emit_sfm): Likewise.
20529         (thumb_set_frame_pointer): Likewise.
20530         (arm_expand_prologue): Likewise.
20531         (arm_regno_class): Change return type to enum reg_class.
20532         (thumb1_expand_prologue): Use add_reg_note.
20533         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
20534         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
20535         in function call.
20536         * config/arm/gentune.sh: Add cast to enum type.
20537         * config/arm/arm-tune.md: Rebuild.
20538         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
20539         (ix86_split_fp_branch, predict_jump): Likewise.
20540         (ix86_expand_multi_arg_builtin): Change sub_code from enum
20541         insn_code to enum rtx_code.
20542         (ix86_builtin_vectorized_function): Add cast to enum type.
20543         * config/i386/i386.md (truncdfsf2): Change slot to enum
20544         ix86_stack_slot.
20545         (truncxf<mode>2, isinf<mode>2): Likewise.
20546         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
20547         enum type.
20548         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
20549         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
20550         (insert_bundle_state): Change 1 to INSERT in function call.
20551         (ia64_add_bundle_selector_before): Likewise.
20552         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
20553         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
20554         (restore_stack_nonlocal): Likewise.
20555         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
20556         function call.
20557         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
20558         function call.
20559         (mips_rtx_costs): Likewise.
20560         (mips_override_options): Add casts to enum type.
20561         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
20562         in function call.
20563         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
20564         (store_reg, set_reg_plus_d): Likewise.
20565         (hppa_expand_prologue, hppa_profile_hook): Likewise.
20566         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
20567         cast to enum type.
20568         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
20569         function call.
20570         (emit_unlikely_jump): Use add_reg_note.
20571         (rs6000_emit_allocate_stack): Likewise.
20572         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
20573         (output_toc): Change 1 to INSERT in function call.
20574         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
20575         (rs6000_initialize_trampoline): Likewise.
20576         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
20577         function call.
20578         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
20579         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
20580         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
20581         (save_gprs): Use add_reg_note.
20582         (s390_emit_prologue): Likewise.
20583         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20584         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
20585         (sparc_fold_builtin): Add cast to enum type.
20586         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
20587         enum insn_code.
20588         (spu_expand_prologue): Use add_reg_note.
20589         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
20591 2009-04-20  Ian Lance Taylor  <iant@google.com>
20593         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
20594         (c_parser_postfix_expression_after_primary): Get VEC for list of
20595         arguments.  Get original types of arguments.  Call
20596         build_function_call_vec.
20597         (cached_expr_list_1, cached_expr_list_2): New static variables.
20598         (c_parser_expr_list): Change return type to VEC *.  Add
20599         p_orig_types parameter.  Change all callers.
20600         (c_parser_release_expr): New static function.
20601         (c_parser_vec_to_tree_list): New static function.
20602         * c-typeck.c (build_function_call): Rewrite to build a VEC and
20603         call build_function_call_vec.
20604         (build_function_call_vec): New function, based on old
20605         build_function_call.
20606         (convert_arguments): Remove nargs and argarray parameters.  Change
20607         values to a VEC.  Add origtypes parameter.
20608         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
20609         (convert_for_assignment): Add origtype parameter.  Change all
20610         callers.  If warn_cxx_compat, check for conversion to an enum
20611         type when calling a function.
20612         (store_init_value): Add origtype parameter.  Change all callers.
20613         (digest_init): Likewise.
20614         (struct init_node): Add origtype field.
20615         (add_pending_init): Add origtype parameter.  Change all callers.
20616         (output_init_element): Likewise.
20617         (output_pending_init_elements): Pass origtype from init_node to
20618         output_init_element.
20619         (process_init_element): Pass origtype from c_expr to
20620         output_init_element.
20621         (c_finish_return): Add origtype parameter.  Change all callers.
20622         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
20623         caller.
20624         (sync_resolve_params): Likewise.
20625         (sync_resolve_return): Change params to first_param.  Change caller.
20626         (resolve_overloaded_builtins): Change params to VEC *.  Change
20627         callers.  Save first parameter around call to build_function_call_vec.
20628         * c-decl.c (finish_decl): Add origtype parameter.  Change all
20629         callers.  Call build_function_call_vec rather than
20630         build_function_call for cleanup.
20631         * c-tree.h: Update declarations.
20632         * c-common.h: Update declarations.
20633         * stub-objc.c (objc_rewrite_function_call): Change parameter from
20634         params to first_param.
20635         * target.h (struct gcc_target): Change resolve_overloaded_builtin
20636         params parameter from tree to void *.
20637         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20638         Change arglist parameter to have type void *, and to be a pointer
20639         to a VEC.
20640         * config/rs6000/rs6000-protos.h
20641         (altivec_resolve_overloaded_builtin): Update declaration.
20642         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
20643         fnargs parameter to have type void *, and to be a pointer to a
20644         VEC.  Call build_function_call_vec instead of
20645         build_function_call.
20646         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
20648 2009-04-20  Joey Ye  <joey.ye@intel.com>
20649             Xuepeng Guo  <xuepeng.guo@intel.com>
20650             H.J. Lu  <hongjiu.lu@intel.com>
20652         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
20654         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
20655         (IX86_LEA_PRIORITY): Likewise.
20656         (distance_non_agu_define): New function.
20657         (distance_agu_use): Likewise.
20658         (ix86_lea_for_add_ok): Likewise.
20659         (ix86_dep_by_shift_count): Likewise.
20661         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
20662         should split for LEA.
20664         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
20665         function.
20666         (ix86_dep_by_shift_count): Likewise.
20668 2009-04-20  Richard Guenther  <rguenther@suse.de>
20670         * expr.c (handled_component_p): Move ...
20671         * tree.h (handled_component_p): ... here.
20672         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
20673         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
20674         and REALPART_EXPR to be in one group.
20676 2009-04-20  Richard Guenther  <rguenther@suse.de>
20678         * basic-block.h (get_all_dominated_blocks): Declare.
20679         * dominance.c (get_all_dominated_blocks): New function.
20680         * tree-cfg.c (get_all_dominated_blocks): Remove.
20681         (remove_edge_and_dominated_blocks): Adjust.
20682         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
20683         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
20684         instead of recursing.
20686 2009-04-20  Doug Kwan  <dougkwan@google.com>
20688         * cgraph.h (cgraph_node_ptr): New type for vector functions.
20689         (struct cgraph_node_set_def): New type.
20690         (cgraph_node_set) New type. Also declare vector functions.
20691         (struct cgraph_node_set_element_def): New type.
20692         (cgraph_node_set_element): Ditto.
20693         (cgraph_node_set_iterator): New iterator type.
20694         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
20695         cgraph_node_set_remove, dump_cgraph_node_set,
20696         debug_cgraph_node_set): New prototypes.
20697         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
20698         cgraph_node_set_size): New inlines.
20699         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
20700         including cgraph.h.
20701         (struct ipa_opt_pass): Add struct cgraph_node_set_def
20702         argument to function 'write_summary'.
20703         * ipa.c: Include ggc.h.
20704         (hash_cgraph_node_set_element,
20705         eq_cgraph_node_set_element, cgraph_node_set_new,
20706         cgraph_node_set_add, cgraph_node_set_remove,
20707         cgraph_node_set_find, dump_cgraph_node_set,
20708         debug_cgraph_node_set): New functions.
20709         * Makefile.in (ipa.o): Add dependency on GGC_H.
20711 2009-04-20  Ira Rosen  <irar@il.ibm.com>
20713         PR tree-optimization/39675
20714         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
20715         check of the return code of vect_schedule_slp. Check that
20716         stmt_vec_info still exists for the statement, before checking its
20717         vectorization type.
20719 2009-04-20  Michael Matz  <matz@suse.de>
20721         * Makefile.in (generated_files): Take out $(simple_generated_c).
20723 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
20725         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
20726         (UINTPTR_TYPE):  Likewise.
20728 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
20730         PR c/37481
20731         * c-typeck.c (digest_init): Check for initializing an array with a
20732         string literal.
20734 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
20736         PR c/19771
20737         * c-semantics.c (pop_stmt_list): Propagate
20738         STATEMENT_LIST_HAS_LABEL to parent statement list.
20740 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
20742         * config/mips/mips.h (mips_tune_attr): New macro.
20743         * config/mips/mips.md (cpu): Use it.
20745 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
20747         PR c/38243
20748         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
20749         declaring a tag.
20751 2009-04-19  Diego Novillo  <dnovillo@google.com>
20753         * toplev.c (compile_file): Move call to coverage_finish ...
20754         * cgraphunit.c (ipa_passes): ... here.
20755         Call cgraph_process_new_functions.
20756         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
20757         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
20759 2009-04-19  Jan Hubicka  <jh@suse.cz>
20761         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
20762         cfun.
20763         (dump_cgraph_node): Dump can throw external flag.
20764         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
20766 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20768         PR c/32061
20769         PR c++/36954
20770         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
20771         * common.opt (Wlogical-op): Move from here...
20772         * c.opt (Wlogical-op): ... to here.
20773         * c-typeck.c (parser_build_binary_op): Update call to
20774         warn_logical_operator.
20775         * c-opts.c (c_common_post_options): Enable warn_logical_op with
20776         extra_warnings.
20777         * c-common.c (warn_logical_op): Update.
20778         * c-common.h (warn_logical_op): Update declaration.
20780 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
20782         * tree.c (protected_set_expr_location): Fix formatting.
20784 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
20786         PR c/27676
20787         * c-typeck.c (readonly_warning): new.
20788         (build_unary_op, build_modify_expr): Use readonly_warning for
20789         storing into something readonly but not const-qualified.
20791 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
20793         PR c/22367
20794         * c-typeck.c (build_unary_op): Check for taking address of
20795         expression of type void.
20797 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
20799         PR c/35210
20800         * c-typeck.c (build_function_call): Check for calling a function
20801         with qualified void return types.  Call require_complete_type when
20802         generating a trap.
20804 2009-04-18  Jan Hubicka  <jh@suse.cz>
20806         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
20807         Set nothrow flag.
20808         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
20809         can_throw_external flag.
20810         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
20811         * ipa-pure-const.c (ignore_edge): New function.
20812         (propagate): Compute order for NOTHROW computation; set NOTHROWs
20813         only over can_throw_external edges.
20814         (local_pure_const): Add nothrow flag.
20815         * ipa-utils.c (searchc): Add ignore_edge callback.
20816         (ipa_utils_reduced_inorder): Add ignore_edge callback.
20817         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
20818         (set_nothrow_function_flags): Update cgraph.
20819         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
20821 2009-04-18  Richard Guenther  <rguenther@suse.de>
20823         PR middle-end/39804
20824         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
20825         (fold_stmt): ... this and ...
20826         (fold_stmt_inplace): ... this.
20827         (fold_stmt_1): Fold references in calls and asms.
20828         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
20830 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
20832         * tree-vrp.c (ssa_name_nonzero_p): Remove.
20833         * tree.h: Remove the prototype for ssa_name_nonzero_p.
20835 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
20837         * tree.c (function_args_count): Remove.
20838         * tree.h: Remove the prototype for function_args_count.
20840 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
20842         * tree-iterator.c (expr_only): Remove.
20843         * tree.h: Remove the prototype for expr_only.
20845 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
20847         * reginfo.c (cannot_change_mode_set_regs): Remove.
20848         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
20850 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
20852         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
20853         whether operands 0 and 1 overlaps.
20855 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20857         PR middle-end/36902
20858         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
20859         pointer. Use warning_at instead of warning.
20860         (search_for_addr_array): Likewise.
20861         (check_array_bounds): Likewise.
20862         (check_all_array_refs): Check that the incoming edge is not in the
20863         list of edges to be removed.
20864         (check_all_array_refs): Avoid the temporal pointer.
20865         (vrp_visit_cond_stmt): Fix typo.
20866         (simplify_switch_using_ranges): Handle the case where the switch
20867         index is an integer constant.
20869 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
20871         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
20873 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
20875         * doc/extend.texi, doc/invoke.texi: Fix typos.
20877 2009-04-17  Cary Coutant  <ccoutant@google.com>
20879         * tree-flow-inline.h (get_lineno): Fix inverted test.
20881 2009-04-17  Diego Novillo  <dnovillo@google.com>
20883         * tree-ssa-pre.c (create_expression_by_pieces): Remove
20884         assertion for AVAIL_OUT.
20886 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
20888         PR target/38627
20889         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
20890         * config/sh/linux-atomic.asm: Likewise.
20892 2009-04-17  Diego Novillo  <dnovillo@google.com>
20894         * except.c (debug_eh_tree): New.
20895         (struct eh_region, struct eh_status): Move ...
20896         * except.h: ... here.
20897         (add_type_for_runtime): Declare extern.
20898         (lookup_type_for_runtime): Likewise.
20899         (debug_eh_tree): Declare.
20900         * Makefile.in (GTFILES): List except.h before except.c
20902 2009-04-17  Diego Novillo  <dnovillo@google.com>
20904         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
20905         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
20906         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
20907         (find_vars_r): ... here.
20908         * tree-flow.h (find_referenced_vars_in): Declare.
20909         * tree-ssa-pre.c (create_expression_by_pieces): Assert
20910         that AVAIL_OUT exists for BLOCK.
20911         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
20912         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
20913         (tree-parloops.o): Likewise.
20915 2009-04-17  Simon Baldwin  <simonb@google.com>
20917         * toplev.c (default_tree_printer): Add handling for %E format.
20919 2009-04-17  Diego Novillo  <dnovillo@google.com>
20921         * tree-pretty-print.c (dump_generic_node): Add break after
20922         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
20923         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
20924         FUNCTION_TYPE together.  Call print_struct_decl when printing
20925         structures and TDF_SLIM is not given.
20926         (print_struct_decl): Fix logic for detecting recursion.
20928 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
20930         PR 31567
20931         * gcc.c (create_at_file): New.
20932         (compile_input_file_p): New.
20933         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
20934         * main.c (main): Update call to toplev_main.
20935         * toplev.c (toplev_main): Change signature. Call expandargv.
20936         * toplev.h (toplev_main): Change signature.
20938 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
20940         * dwarf2out.c (field_byte_offset): Use the type size as the field size
20941         if the latter is not constant.
20943 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
20945         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
20947 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
20949         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
20950         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
20952 2009-04-17  Richard Guenther  <rguenther@suse.de>
20954         * tree-ssa-structalias.c (get_constraint_for_component_ref):
20955         Handle component references view-converting an invariant address.
20957 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
20959         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
20960         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
20961         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
20962         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
20963         Use @deftypevr rather than @deftypevar.
20965 2009-04-17  Richard Guenther  <rguenther@suse.de>
20967         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
20968         (get_prop_source_stmt): Likewise.
20969         (can_propagate_from): Likewise.
20971 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
20973         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
20974         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
20975         (--with-multilib-list): Add default value.
20976         * configure: Regenerate.
20977         * Makefile.in (TM_ENDIAN_CONFIG): Define.
20978         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
20979         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
20980         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
20981         Don't add default cpu to multilib list unnecessarily, but do enable
20982         the relevant compiler option..
20983         Add support for --with-multilib-list=<blank> and
20984         --with-multilib-list=!<somelib> to supress unwanted multilibs.
20985         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
20986         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
20987         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
20988         TM_MULTILIB_CONFIG.
20989         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
20990         (MULTILIB_OSDIRNAMES): New variable.
20991         * config/sh/t-1e: Delete file.
20992         * config/sh/t-mlib-sh1: Delete file.
20993         * config/sh/t-mlib-sh2: Delete file.
20994         * config/sh/t-mlib-sh2a: Delete file.
20995         * config/sh/t-mlib-sh2a-nofpu: Delete file.
20996         * config/sh/t-mlib-sh2a-single: Delete file.
20997         * config/sh/t-mlib-sh2a-single-only: Delete file.
20998         * config/sh/t-mlib-sh2e: Delete file.
20999         * config/sh/t-mlib-sh3e: Delete file.
21000         * config/sh/t-mlib-sh4: Delete file.
21001         * config/sh/t-mlib-sh4-nofpu: Delete file.
21002         * config/sh/t-mlib-sh4-single: Delete file.
21003         * config/sh/t-mlib-sh4-single-only: Delete file.
21004         * config/sh/t-mlib-sh4a: Delete file.
21005         * config/sh/t-mlib-sh4a-nofpu: Delete file.
21006         * config/sh/t-mlib-sh4a-single: Delete file.
21007         * config/sh/t-mlib-sh4a-single-only: Delete file.
21008         * config/sh/t-mlib-sh4al: Delete file.
21009         * config/sh/t-mlib-sh5-32media: Delete file.
21010         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
21011         * config/sh/t-mlib-sh5-64media: Delete file.
21012         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
21013         * config/sh/t-mlib-sh5-compact: Delete file.
21014         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
21015         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
21016         * doc/install.texi (Options specification): Add
21017         --with-multilib-list and --with-endian.
21019 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
21021         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
21022         REVISION_c.
21023         (OBJS-common): Add plugin-version.o.
21024         (plugin-version.o): New.
21025         * gcc-plugin.h (plugin_gcc_version): New.
21026         (plugin_default_version_check): New.
21027         (plugin_init_func, plugin_init): Add version argument.
21028         * plugin-version.c: New.
21029         * plugin.c (str_plugin_gcc_version_name): New.
21030         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
21031         pass it to the init function.
21032         (plugin_default_version_check): New.
21034 2009-04-17  Richard Guenther  <rguenther@suse.de>
21036         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
21037         for decl-vs-decl disambiguation.
21039 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
21041         * config/s390/s390.h (s390_tune_attr): New macro definition.
21042         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
21044 2009-04-17  Richard Guenther  <rguenther@suse.de>
21046         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
21047         (fold_stmt_r): Likewise.
21048         (maybe_fold_reference): New function.
21049         (fold_gimple_assign): Handle cases fold_stmt_r did.
21050         (fold_stmt): Do not use fold_stmt_r.
21051         (fold_stmt_inplace): Likewise.
21053 2009-04-17  Richard Guenther  <rguenther@suse.de>
21055         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
21056         (record_equivalences_from_stmt): Remove useless checks and
21057         simplifications.
21058         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
21059         the type is already suitable.
21061 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
21063         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
21065 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
21067         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
21068         (CMPtype): Define as __gcc_CMPtype.
21070 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
21072         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
21073         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
21075 2009-04-17  Richard Guenther  <rguenther@suse.de>
21077         PR tree-optimization/39746
21078         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
21079         special-casing for builtins and static variable use/def.
21080         (call_may_clobber_ref_p_1): Likewise.
21082 2009-04-16  Ian Lance Taylor  <iant@google.com>
21084         * df.h: Include "timevar.h".
21085         (struct df_problem): Change tv_id field to timevar_id_t.
21086         * tree-pass.h: Include "timevar.h".
21087         (struct opt_pass): Change tv_id field to timevar_id_t.
21088         * timevar.h (timevar_id_t): Define TV_NONE.
21089         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
21090         TV_NONE rather than tv_id != 0.
21091         (execute_one_pass): Likewise.
21092         * Makefile.in (DF_H): Add $(TIMEVAR_H).
21093         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
21094         dependencies to $(TREE_PASS_H).
21095         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
21096         to TV_NONE.
21097         (pass_branch_target_load_optimize2): Likewise.
21098         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
21099         (pass_outof_cfg_layout_mode): Likewise.
21100         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
21101         (pass_rebuild_cgraph_edges): Likewise.
21102         (pass_remove_cgraph_callee_edges): Likewise.
21103         * df-core.c (pass_df_initialize_opt): Likewise.
21104         (pass_df_initialize_no_opt): Likewise.
21105         (pass_df_finish): Likewise.
21106         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
21107         * except.c (pass_set_nothrow_function_flags): Likewise.
21108         (pass_convert_to_eh_region_ranges): Likewise.
21109         * final.c (pass_compute_alignments): Likewise.
21110         * function.c (pass_instantiate_virtual_regs): Likewise.
21111         (pass_init_function): Likewise.
21112         (pass_leaf_regs): Likewise.
21113         (pass_match_asm_constraints): Likewise.
21114         * gimple-low.c (pass_lower_cf): Likewise.
21115         (pass_mark_used_blocks): Likewise.
21116         * init-regs.c (pass_initialize_regs): Likewise.
21117         * integrate.c (pass_initial_value_sets): Likewise.
21118         * ira.c (pass_ira): Likewise.
21119         * jump.c (pass_cleanup_barriers): Likewise.
21120         * omp-low.c (pass_expand_omp): Likewise.
21121         (pass_lower_omp): Likewise.
21122         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
21123         * recog.c (pass_split_all_insns): Likewise.
21124         (pass_split_after_reload): Likewise.
21125         (pass_split_before_regstack): Likewise.
21126         (pass_split_before_sched2): Likewise.
21127         (pass_split_for_shorten_branches): Likewise.
21128         * reginfo.c (pass_reginfo_init): Likewise.
21129         (pass_subregs_of_mode_init): Likewise.
21130         (pass_subregs_of_mode_finish): Likewise.
21131         * passes.c (pass_postreload): Likewise.
21132         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
21133         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
21134         (pass_warn_function_return): Likewise.
21135         (pass_warn_function_noreturn): Likewise.
21136         * tree-complex.c (pass_lower_complex): Likewise.
21137         (pass_lower_complex_O0): Likewise.
21138         * tree-if-conv.c (pass_if_conversion): Likewise.
21139         * tree-into-ssa.c (pass_build_ssa): Likewise.
21140         * tree-mudflap.c (pass_mudflap_1): Likewise.
21141         (pass_mudflap_2): Likewise.
21142         * tree-nomudflap.c (pass_mudflap_1): Likewise.
21143         (pass_mudflap_2): Likewise.
21144         * tree-nrv.c (pass_return_slot): Likewise.
21145         * tree-object-size.c (pass_object_sizes): Likewise.
21146         * tree-optimize.c (pass_all_optimizations): Likewise.
21147         (pass_early_local_passes): Likewise.
21148         (pass_all_early_optimizations): Likewise.
21149         (pass_cleanup_cfg): Likewise.
21150         (pass_cleanup_cfg_post_optimizing): Likewise.
21151         (pass_free_datastructures): Likewise.
21152         (pass_free_cfg_annotations): Likewise.
21153         (pass_fixup_cfg): Likewise.
21154         (pass_init_datastructures): Likewise.
21155         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
21156         (pass_late_warn_uninitialized): Likewise.
21157         (pass_update_address_taken): Likewise.
21158         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
21159         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
21160         (pass_cse_sincos): Likewise.
21161         (pass_convert_to_rsqrt): Likewise.
21162         * tree-ssa-structalias.c (pass_build_alias): Likewise.
21163         * tree-stdarg.c (pass_stdarg): Likewise.
21164         * tree-tailcall.c (pass_tail_recursion): Likewise.
21165         (pass_tail_calls): Likewise.
21166         * tree-vect-generic.c (pass_lower_vector): Likewise.
21167         (pass_lower_vector_ssa): Likewise.
21168         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
21170 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
21172         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
21173         XLR entry.
21174         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
21175         Handle -march=xlr.
21176         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
21177         logical and signext.
21179 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
21181         PR target/39767
21182         * config/sh/predicates.md (arith_operand): Check if the operand
21183         of TRUNCATE is a REG.
21185 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21187         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
21188         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
21190 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21192         * tree-iterator.c (tsi_split_statement_list_after,
21193         tsi_split_statement_list_before): Remove.
21194         * tree-iterator.h: Remove the prototypes for
21195         tsi_split_statement_list_after and tsi_split_statement_list_before.
21197 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21199         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
21200         * tree-ssa-propagate.h: Remove the prototype for
21201         stmt_makes_single_load.
21203 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21205         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
21206         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
21208 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21210         * tree-iterator.c (EXPR_LAST_BODY): Remove.
21212 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21214         * except.c (eh_region_outer_p): Remove.
21215         * except.h: Remove the prototype for eh_region_outer_p.
21217 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21219         * function.c (current_function_assembler_name): Remove.
21220         * function.h: Remove the prototype for
21221         current_function_assembler_name.
21223 2009-04-16  Ian Lance Taylor  <iant@google.com>
21225         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
21226         (add_reg_note): Call alloc_reg_note.
21227         * rtl.h (alloc_reg_note): Declare.
21228         * combine.c (try_combine): Use alloc_reg_note.
21229         (recog_for_combine, move_deaths): Likewise.
21230         (distribute_notes): Use alloc_reg_note and add_reg_note.
21231         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
21232         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
21233         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
21235 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
21237         PR rtl-optimization/39762
21238         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
21239         ira_may_move_out_cost): Add comments about way of their usage.
21240         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
21242         * ira-conflicts.c (process_regs_for_copy): Use function
21243         ira_get_register_move_cost instead of global
21244         ira_register_move_cost.
21246         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
21247         color_pass, move_spill_restore, update_curr_costs): Ditto.
21249         * ira-lives.c (process_single_reg_class_operands): Ditto.
21251         * ira-emit.c (emit_move_list): Ditto.
21253         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
21254         (record_reg_classes): Ditto.  Use functions
21255         ira_get_register_move_cost and ira_get_may_move_cost instead of
21256         global vars ira_register_move_cost, ira_may_move_out_cost and
21257         ira_may_move_in_cost.
21258         (record_address_regs): Don't call ira_init_register_move_cost.
21259         Use function ira_get_may_move_cost instead of global
21260         ira_may_move_in_cost.
21261         (process_bb_node_for_hard_reg_moves): Use function
21262         ira_get_register_move_cost instead of global ira_register_move_cost.
21263         (ira_costs): Don't call ira_init_register_move_cost.
21265 2009-04-16  Richard Guenther  <rguenther@suse.de>
21267         * tree-cfg.c (verify_gimple_assign_binary):
21268         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
21269         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
21270         (create_general_new_stmt): Note that this function is broken.
21272 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
21274         * common.opt (fhelp): Add Var(help_flag).
21275         * gcc-plugin.h (plugin_info): Add help.
21276         * plugin.c (plugin_name_args): Add help.
21277         (register_plugin_info): Set plugin->help.
21278         (print_help_one_plugin): New.
21279         (print_plugins_help): New.
21280         * plugin.h (print_plugins_help): New.
21281         * toplev.c (toplev_main): Call print_plugins_help if needed.
21283 2009-04-16  Richard Guenther  <rguenther@suse.de>
21285         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
21286         (gimple_ior_addresses_taken_1): New function.
21287         (gimple_ior_addresses_taken): Likewise.
21288         * gimple.h (struct gimple_statement_with_ops_base): Remove
21289         addresses_taken member.
21290         (gimple_ior_addresses_taken): Declare.
21291         (gimple_addresses_taken, gimple_addresses_taken_ptr,
21292         gimple_set_addresses_taken): Remove.
21293         * ipa-reference.c (mark_address): New function.
21294         (scan_stmt_for_static_refs): Use it for marking addresses taken.
21295         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
21296         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
21297         (gimple_add_to_addresses_taken): Remove.
21298         (get_tmr_operands): Call mark_address_taken.
21299         (get_asm_expr_operands): Likewise.
21300         (get_expr_operands): Likewise.
21301         (build_ssa_operands): Do not clear the addresses_taken bitmap.
21302         (free_stmt_operands): Do not free it.
21303         * tree-ssa.c (delete_tree_ssa): Likewise.
21304         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
21306 2009-04-16  Richard Guenther  <rguenther@suse.de>
21308         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
21309         (walk_stmt_load_store_ops): Likewise.
21310         * gimple.c (get_base_loadstore): New function.
21311         (walk_stmt_load_store_addr_ops): Likewise.
21312         (walk_stmt_load_store_ops): Likewise.
21313         * ipa-pure-const.c (check_op): Simplify.
21314         (check_load, check_store): New functions.
21315         (check_stmt): Use walk_stmt_load_store_ops.
21316         * ipa-reference.c (mark_load): Adjust signature.
21317         (mark_store): Likewise.
21318         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
21320 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
21322         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
21323         (plugin_info): New.
21324         * opts.c (common_handle_option): Don't call print_version.
21325         * plugin.c (plugin_name_args): Add version.
21326         (register_plugin_info): New.
21327         (register_callback): Handle PLUGIN_INFO.
21328         (try_init_one_plugin): New.
21329         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
21330         if failed to init.
21331         (finalize_one_plugin): New.
21332         (finalize_plugins): New.
21333         (print_one_plugin): New.
21334         (print_plugins_versions): New.
21335         * plugin.h (print_plugins_versions): New.
21336         (finalize_plugins): New.
21337         * toplev.c (compile_file): Don't call initialize_plugins.
21338         (print_version): Call print_plugins_versions.
21339         (toplev_main): Call initialize_plugins. Print version if needed.
21340         Call finalize_plugins.
21342 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
21344         * common.opt (fversion): New.
21345         * gcc.c (print_version): New.
21346         (process_command): Don't print the version. Just set print_version.
21347         (main): Print version. Call subprocesses if print_version and
21348         verbose_flag are set.
21349         * opts.c (common_handle_option): Handle OPT_fversion.
21351 2009-04-16  Richard Guenther  <rguenther@suse.de>
21352             Ira Rosen  <irar@il.ibm.com>
21354         PR tree-optimization/39698
21355         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
21356         type of the reduction variable.  Only generate the def if
21357         it is needed.
21359         * omp-low.c (expand_omp_for_generic): When converting to a pointer
21360         make sure to first convert to an integer of the same precision.
21361         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
21362         the type of the evolution correctly in computing the new
21363         induction variable base.
21365 2009-04-16  Richard Guenther  <rguenther@suse.de>
21367         PR middle-end/39625
21368         * tree-cfg.c (make_blocks): Split statements with to-be
21369         abnormal SSA names on the lhs.
21371 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
21373         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
21374         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
21375         * c-typeck.c (really_start_incremental_init): Likewise.
21376         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
21377         (TARGET_INITIALIZER): Remove it.
21378         * target.h (struct target): Remove vector_opaque_p.
21379         * tree.c (build_opaque_vector_type): New.
21380         * tree.h (TYPE_VECTOR_OPAQUE): New.
21381         (build_opaque_vector_type): Declare.
21382         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
21383         * config/rs6000/rs6000.c (build_opaque_vector_type,
21384         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
21385         (rs6000_init_builtins): Use build_opaque_vector_type for
21386         opaque_V4SI_type_node.
21388 2009-04-15  Catherine Moore  <clm@codesourcery.com>
21390         * debug.h (set_name):  Declare.
21391         * dwarf2out.c (dwarf2out_set_name): Declare.
21392         (dwarf2_debug_hooks): Add set_name.
21393         (find_AT_string): New.
21394         (add_AT_string): Call find_AT_string.
21395         (dwarf2out_set_name): New.
21396         * cp/decl.c (grokdeclarator): Call set_name.
21397         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
21398         * debug.c (do_nothing_debug_hooks):  Likewise.
21399         * dbxout.c (dbx_debug_hooks): Likewise.
21400         * sdbout.c (sdb_debug_hooks): Likewise.
21402 2009-04-15  Michael Eager  <eager@eagercon.com>
21404         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
21405         reg for single-precision FPU.
21406         * config/rs6000/rs6000.md (movsi_internal1): Only for
21407         !TARGET_SINGLE_FPU.
21408         (movsi_internal1_single): New. Add pattern to move SI values to/from
21409         single-precision FP regs.
21411 2009-04-15  Richard Guenther  <rguenther@suse.de>
21413         * omp-low.c (lower_rec_input_clauses): Build correct address
21414         expressions.
21415         (expand_omp_for_generic): Fix multiplication type.
21416         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
21417         (generate_memset_zero): Fix types.
21418         * tree-profile.c (prepare_instrumented_value): Correctly
21419         widen a pointer.
21421 2009-04-15  Ian Lance Taylor  <iant@google.com>
21423         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
21424         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
21425         for -Wall and for -Wc++-compat.
21426         (c_common_post_options): For C++, set warn_enum_compare if not
21427         already set.
21428         * c-tree.h (struct c_expr): Add field original_type.
21429         (build_external_ref): Update declaration.
21430         * c-parser.c (c_parser_braced_init): Set original_type.
21431         (c_parser_initelt): Likewise.
21432         (c_parser_expr_no_commas): Likewise.
21433         (c_parser_conditional_expression): Likewise.
21434         (c_parser_cast_expression): Likewise.
21435         (c_parser_unary_expression): Likewise.  Pull setting of
21436         original_code to top of function.
21437         (c_parser_sizeof_expression): Set original_type.
21438         (c_parser_alignof_expression): Likewise.
21439         (c_parser_postfix_expression): Likewise.  Pull setting of
21440         original_code to top of function.
21441         (c_parser_postfix_expression_after_paren_type): Set original_type.
21442         (c_parser_postfix_expression_after_primary): Likewise.
21443         (c_parser_expression): Likewise.
21444         * c-typeck.c (build_external_ref): Add type parameter.  Change all
21445         callers.
21446         (c_expr_sizeof_expr): Set original_type field.
21447         (parser_build_unary_op): Likewise.
21448         (parser_build_binary_op): Likewise.  Optionally warn about
21449         comparisons of enums of different types.
21450         (digest_init): Set original_type field.
21451         (really_start_incremental_init): Likewise.
21452         (push_init_level, pop_init_level): Likewise.
21453         * doc/invoke.texi (Warning Options): -Wenum-compare now
21454         supported in C.
21456 2009-04-15  Richard Guenther  <rguenther@suse.de>
21458         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
21459         out a necessary conversion.
21460         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
21461         names we didn't value number.
21462         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
21464 2009-04-15  Richard Guenther  <rguenther@suse.de>
21466         PR tree-optimization/39764
21467         * tree-ssa-ccp.c (get_value): Canonicalize value with
21468         canonicalize_float_value.
21470 2009-04-15  Jan Hubicka  <jh@suse.cz>
21472         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
21473         Wrong version of patch.
21475 2009-04-15  Jan Hubicka  <jh@suse.cz>
21477         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
21479 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
21481         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
21482         our distinct integral and vector types.
21484 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
21486         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
21487         * init.c (build_vtbl_address): Remove call to assemble_external.
21489 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
21491         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
21492         output for other floating point modes.
21494 2009-04-14  Diego Novillo  <dnovillo@google.com>
21496         * diagnostic.c (diagnostic_report_diagnostic): Do not
21497         warn about loaded plugins for DK_ERROR and DK_WARNING.
21498         * c-decl.c (declspecs_add_type): Move call to
21499         invoke_plugin_callbacks ...
21500         * c-parser.c (c_parser_declspecs): ... here.
21501         * plugin.c (dump_active_plugins): Tidy output.
21503 2009-04-14  Diego Novillo  <dnovillo@google.com>
21504             Le-Chun Wu  <lcwu@google.com>
21506         * configure.ac: Add --enable-plugin support.
21507         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
21508         * Makefile.in (PLUGIN_H): Define.
21509         Export ENABLE_PLUGIN and GMPINC to site.exp.
21510         Add PLUGINLIBS to link command.
21511         Add/modify dependencies for plugin.o and files including plugin.h.
21512         (plugin.o): New.
21513         * config.in: Regenerate.
21515         * opts.c (common_handle_option): Handle OPT_fplugin_ and
21516         OPT_fplugin_arg_.
21518 2009-04-14  Le-Chun Wu  <lcwu@google.com>
21520         * tree-pass.h (register_one_dump_file): Add a prototype for
21521         register_one_dump_file.
21522         * toplev.c (compile_file): Call initialize_plugins.
21523         (do_compile): Call invoke_plugin_callbacks.
21524         (toplev_main): Call invoke_plugin_callbacks.
21525         * common.opt: Add -fplugin= and -fplugin-arg-.
21526         * gcc-plugin.h: New public header file for plugins to include.
21527         * plugin.c: New source file.
21528         * plugin.h: New internal header file.
21529         * passes.c (register_one_dump_file): Make it external.
21531         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
21533 2009-04-14  Diego Novillo  <dnovillo@google.com>
21535         * doc/plugins.texi: New.
21536         * doc/gccint.texi: Add reference to Plugins chapter.
21537         * doc/invoke.texi: Document -fplugin and -fplugin-arg
21538         * diagnostic.c (diagnostic_report_diagnostic): Warn about
21539         loaded plugins, if any.
21540         * timevar.def (TV_PLUGIN_INIT): Define.
21541         (TV_PLUGIN_RUN): Define.
21542         * plugin.c: Include timevar.h
21543         (plugins_active_p): New.
21544         (dump_active_plugins): New.
21545         (debug_active_plugins): New.
21547 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
21549         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
21550         library paths.
21551         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
21553 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
21555         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
21556         the same as a minus without a shift.
21558 2009-04-14  Nick Clifton  <nickc@redhat.com>
21560         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
21561         comparisons with small integers will always produce a short
21562         branch.
21564 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
21566         Merge:
21567         2008-12-19  Diego Novillo  <dnovillo@google.com>
21569         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
21571 2009-04-14  Richard Guenther  <rguenther@suse.de>
21573         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
21574         verification.
21575         (verify_gimple_assign_binary): Likewise.  Handle shifts and
21576         rotates correctly.
21577         (verify_gimple_phi): Print the mismatched argument position.
21578         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
21579         Fix types.
21580         (vect_update_init_of_dr): Likewise.
21581         * matrix-reorg.c (transform_access_sites): Do what the
21582         comment suggests.
21583         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
21585 2009-04-13  Michael Eager  <eager@eagercon.com>
21587         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
21588         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
21589         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
21590         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
21591         remove duplicate config
21593 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
21595         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
21596         file_name:line_number type locator of the call site.
21598 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
21600         * genautomata.c: Put blank after comma.
21601         (automaton_decls): New.
21602         (struct unit_usage): Add comments to member next.
21603         (store_alt_unit_usage): Keep the list ordered.
21604         (unit_present_on_list_p, equal_alternatives_p): New.
21605         (check_regexp_units_distribution): Check units distribution
21606         correctness correctly.
21607         (main): Don't write automata if error is found.  Return correct
21608         exit code.
21610         * config/m68k/cf.md (cfv4_ds): Remove.
21611         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
21612         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
21614         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
21615         power4-load-ext, power4-store, power4-store-update,
21616         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
21617         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
21618         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
21619         power4-sqrt, power4-isync): Modify reservation to make correct
21620         unit distribution to automata.
21622         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
21623         power5-store-update, power5-two, power5-three, power5-lmul,
21624         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
21626 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
21628         * except.c (pass_set_nothrow_function_flags): Set name and add
21629         TODO_dump_func.
21630         (set_nothrow_function_flags): Mention in the dump file when
21631         changing a function to nothrow.
21633 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
21635         PR/39066
21636         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
21637         instead of unsigned long.
21639 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21641         * config/arm/arm.c (return_used_this_function): Remove.
21642         (arm_output_function_prologue): Remove use of
21643         return_used_this_function.
21644         (output_return_instruction): Replace use of
21645         return_used_this_function
21646         by cfun->machine->return_used_this_function.
21647         (arm_output_epilogue): Likewise.
21648         (arm_output_function_epilogue): Likewise.
21649         (thumb_unexpanded_epilogue): Likewise.
21650         * config/arm/arm.h (struct machine_function):
21651         New member return_used_this_function.
21653 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
21655         * doc/install.texi: Correct description of default directory for
21656         --with-gxx-include-dir.
21658 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
21660         * fold-const.c (build_range_check): Properly deal with enumeral and
21661         boolean base types.
21663 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
21665         * doc/invoke.texi (max_gcse_passes): Remove documentation.
21666         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
21667         * params.h (MAX_GCSE_PASSES): Remove.
21668         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
21669         in sequence.  Remove ability to run multiple passes.
21670         (bypass_jumps): Report run as third CPROP pass.
21672 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
21674         PR middle-end/39651
21675         * except.c (can_throw_external): Look at each insn in a SEQUENCE
21676         when deciding whether the whole SEQUENCE can throw.
21678 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
21680         PR target/39740
21681         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
21682         offseted label references.
21684 2009-04-11  Jan Hubicka  <jh@suse.cz>
21686         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
21688 2009-04-11  Richard Guenther  <rguenther@suse.de>
21690         PR middle-end/39732
21691         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
21692         return variables as TREE_ADDRESSABLE.
21694 2009-04-11  Richard Guenther  <rguenther@suse.de>
21696         PR tree-optimization/39713
21697         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
21698         reference trees have SSA_NAME operands.
21700 2009-04-11  Richard Guenther  <rguenther@suse.de>
21702         PR c/39712
21703         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
21704         address expressions.
21706 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
21708         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
21709         match changes in Cygwin 1.7
21710         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
21711         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
21713 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
21715         PR tree-optimization/39701
21716         * doc/invoke.texi (Optimization Options): Document change in
21717         meaning and initialization of -fdelete-null-pointer-checks.
21719 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
21721         PR middle-end/39701
21722         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
21724         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
21725         here.
21727         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
21729 2009-04-10  Chao-ying Fu  <fu@mips.com>
21731         * doc/tm.texi (Instruction Output): Document
21732         TARGET_ASM_FINAL_POSTSCAN_INSN.
21733         * target.h (final_postscan_insn): New field in asm_out.
21734         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
21735         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
21736         * final.c (final_scan_insn): Call
21737         targetm.asm_out.final_postscan_insn after outputting
21738         an asm macro and a normal instruction.
21740         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
21741         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
21742         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
21743         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
21744         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
21746 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
21748         PR middle-end/39701
21749         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
21750         variables as non-NULL even with -fdelete-null-pointer-checks.
21752 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
21754         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
21756 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
21758         PR target/39678
21759         * config/i386/i386.c (classify_argument): Handle SCmode with
21760         (bit_offset % 64) != 0.
21762 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
21764         * doc/invoke.texi (Optimize Options): Add cross-reference to
21765         -Q --help=optimizers examples.
21767 2009-04-10  Ben Elliston  <bje@au.ibm.com>
21769         PR target/36800
21770         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
21771         regalign for the reg == fpr and TDmode case.
21773 2009-04-09  David Ayers  <ayers@fsfe.org>
21775         PR objc/29200
21776         * objc/objc-act.c (warn_with_method): Remove helper function.
21777         (check_duplicates): Call warning and inform directly.
21778         (really_start_method): Likewise.
21780 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
21782         * expmed.c (expand_divmod): Always use a comparison for a division
21783         by a large unsigned integer.
21785         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
21786         for things others than variables or functions as nonzero.
21788 2009-04-09  Nick Clifton  <nickc@redhat.com>
21790         * unwind-compat.c: Change copyright header to refer to version
21791         3 of the GNU General Public License with version 3.1 of the
21792         GCC Runtime Library Exception and to point readers at the
21793         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
21794         * config/alpha/crtfastmath.c: Likewise.
21795         * config/alpha/linux-unwind.h: Likewise.
21796         * config/alpha/qrnnd.asm: Likewise.
21797         * config/alpha/vms-crt0-64.c: Likewise.
21798         * config/alpha/vms-crt0.c: Likewise.
21799         * config/alpha/vms-dwarf2.asm: Likewise.
21800         * config/alpha/vms-dwarf2eh.asm: Likewise.
21801         * config/alpha/vms-psxcrt0-64.c: Likewise.
21802         * config/alpha/vms-psxcrt0.c: Likewise.
21803         * config/alpha/vms_tramp.asm: Likewise.
21804         * config/arc/initfini.c: Likewise.
21805         * config/arc/lib1funcs.asm: Likewise.
21806         * config/arm/bpabi-v6m.S: Likewise.
21807         * config/arm/bpabi.S: Likewise.
21808         * config/arm/bpabi.c: Likewise.
21809         * config/arm/crti.asm: Likewise.
21810         * config/arm/crtn.asm: Likewise.
21811         * config/arm/ieee754-df.S: Likewise.
21812         * config/arm/ieee754-sf.S: Likewise.
21813         * config/arm/lib1funcs.asm: Likewise.
21814         * config/arm/libunwind.S: Likewise.
21815         * config/arm/linux-atomic.c: Likewise.
21816         * config/arm/mmintrin.h: Likewise.
21817         * config/arm/pr-support.c: Likewise.
21818         * config/arm/unaligned-funcs.c: Likewise.
21819         * config/arm/unwind-arm.c: Likewise.
21820         * config/arm/unwind-arm.h: Likewise.
21821         * config/avr/libgcc.S: Likewise.
21822         * config/bfin/crti.s: Likewise.
21823         * config/bfin/crtlibid.s: Likewise.
21824         * config/bfin/crtn.s: Likewise.
21825         * config/bfin/lib1funcs.asm: Likewise.
21826         * config/bfin/linux-unwind.h: Likewise.
21827         * config/cris/arit.c: Likewise.
21828         * config/cris/cris_abi_symbol.c: Likewise.
21829         * config/darwin-64.c: Likewise.
21830         * config/darwin-crt2.c: Likewise.
21831         * config/darwin-crt3.c: Likewise.
21832         * config/darwin.h: Likewise.
21833         * config/dbxelf.h: Likewise.
21834         * config/dfp-bit.c: Likewise.
21835         * config/dfp-bit.h: Likewise.
21836         * config/elfos.h: Likewise.
21837         * config/fixed-bit.c: Likewise.
21838         * config/fixed-bit.h: Likewise.
21839         * config/fp-bit.c: Likewise.
21840         * config/fp-bit.h: Likewise.
21841         * config/fr30/crti.asm: Likewise.
21842         * config/fr30/crtn.asm: Likewise.
21843         * config/fr30/lib1funcs.asm: Likewise.
21844         * config/freebsd-spec.h: Likewise.
21845         * config/frv/cmovd.c: Likewise.
21846         * config/frv/cmovh.c: Likewise.
21847         * config/frv/cmovw.c: Likewise.
21848         * config/frv/frvbegin.c: Likewise.
21849         * config/frv/frvend.c: Likewise.
21850         * config/frv/lib1funcs.asm: Likewise.
21851         * config/glibc-stdint.h: Likewise.
21852         * config/h8300/clzhi2.c: Likewise.
21853         * config/h8300/crti.asm: Likewise.
21854         * config/h8300/crtn.asm: Likewise.
21855         * config/h8300/ctzhi2.c: Likewise.
21856         * config/h8300/fixunssfsi.c: Likewise.
21857         * config/h8300/lib1funcs.asm: Likewise.
21858         * config/h8300/parityhi2.c: Likewise.
21859         * config/h8300/popcounthi2.c: Likewise.
21860         * config/i386/ammintrin.h: Likewise.
21861         * config/i386/att.h: Likewise.
21862         * config/i386/avxintrin.h: Likewise.
21863         * config/i386/biarch64.h: Likewise.
21864         * config/i386/bmmintrin.h: Likewise.
21865         * config/i386/cpuid.h: Likewise.
21866         * config/i386/cross-stdarg.h: Likewise.
21867         * config/i386/crtfastmath.c: Likewise.
21868         * config/i386/crtprec.c: Likewise.
21869         * config/i386/cygming-crtbegin.c: Likewise.
21870         * config/i386/cygming-crtend.c: Likewise.
21871         * config/i386/cygwin.asm: Likewise.
21872         * config/i386/emmintrin.h: Likewise.
21873         * config/i386/gmm_malloc.h: Likewise.
21874         * config/i386/gthr-win32.c: Likewise.
21875         * config/i386/i386.h: Likewise.
21876         * config/i386/immintrin.h: Likewise.
21877         * config/i386/linux-unwind.h: Likewise.
21878         * config/i386/linux64.h: Likewise.
21879         * config/i386/mm3dnow.h: Likewise.
21880         * config/i386/mmintrin-common.h: Likewise.
21881         * config/i386/mmintrin.h: Likewise.
21882         * config/i386/nmmintrin.h: Likewise.
21883         * config/i386/pmm_malloc.h: Likewise.
21884         * config/i386/pmmintrin.h: Likewise.
21885         * config/i386/smmintrin.h: Likewise.
21886         * config/i386/sol2-c1.asm: Likewise.
21887         * config/i386/sol2-ci.asm: Likewise.
21888         * config/i386/sol2-cn.asm: Likewise.
21889         * config/i386/sol2-gc1.asm: Likewise.
21890         * config/i386/tmmintrin.h: Likewise.
21891         * config/i386/unix.h: Likewise.
21892         * config/i386/w32-unwind.h: Likewise.
21893         * config/i386/wmmintrin.h: Likewise.
21894         * config/i386/x86-64.h: Likewise.
21895         * config/i386/x86intrin.h: Likewise.
21896         * config/i386/xmmintrin.h: Likewise.
21897         * config/ia64/crtbegin.asm: Likewise.
21898         * config/ia64/crtend.asm: Likewise.
21899         * config/ia64/crtfastmath.c: Likewise.
21900         * config/ia64/crti.asm: Likewise.
21901         * config/ia64/crtn.asm: Likewise.
21902         * config/ia64/fde-glibc.c: Likewise.
21903         * config/ia64/lib1funcs.asm: Likewise.
21904         * config/ia64/linux-unwind.h: Likewise.
21905         * config/ia64/quadlib.c: Likewise.
21906         * config/ia64/unwind-ia64.c: Likewise.
21907         * config/linux.h: Likewise.
21908         * config/m32c/m32c-lib1.S: Likewise.
21909         * config/m32c/m32c-lib2-trapv.c: Likewise.
21910         * config/m32c/m32c-lib2.c: Likewise.
21911         * config/m32r/initfini.c: Likewise.
21912         * config/m68hc11/larith.asm: Likewise.
21913         * config/m68hc11/m68hc11-crt0.S: Likewise.
21914         * config/m68k/cf.md: Likewise.
21915         * config/m68k/crti.s: Likewise.
21916         * config/m68k/crtn.s: Likewise.
21917         * config/m68k/lb1sf68.asm: Likewise.
21918         * config/m68k/linux-unwind.h: Likewise.
21919         * config/mcore/crti.asm: Likewise.
21920         * config/mcore/crtn.asm: Likewise.
21921         * config/mcore/lib1.asm: Likewise.
21922         * config/mips/linux-unwind.h: Likewise.
21923         * config/mips/loongson.h: Likewise.
21924         * config/mips/mips16.S: Likewise.
21925         * config/mmix/crti.asm: Likewise.
21926         * config/mmix/crtn.asm: Likewise.
21927         * config/pa/fptr.c: Likewise.
21928         * config/pa/hpux-unwind.h: Likewise.
21929         * config/pa/lib2funcs.asm: Likewise.
21930         * config/pa/linux-atomic.c: Likewise.
21931         * config/pa/linux-unwind.h: Likewise.
21932         * config/pa/milli64.S: Likewise.
21933         * config/pa/quadlib.c: Likewise.
21934         * config/pa/stublib.c: Likewise.
21935         * config/picochip/libgccExtras/adddi3.asm: Likewise.
21936         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
21937         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
21938         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
21939         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
21940         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
21941         * config/picochip/libgccExtras/divmod15.asm: Likewise.
21942         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
21943         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
21944         * config/picochip/libgccExtras/longjmp.asm: Likewise.
21945         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
21946         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
21947         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
21948         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
21949         * config/picochip/libgccExtras/setjmp.asm: Likewise.
21950         * config/picochip/libgccExtras/subdi3.asm: Likewise.
21951         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
21952         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
21953         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
21954         * config/rs6000/750cl.h: Likewise.
21955         * config/rs6000/altivec.h: Likewise.
21956         * config/rs6000/biarch64.h: Likewise.
21957         * config/rs6000/crtresfpr.asm: Likewise.
21958         * config/rs6000/crtresgpr.asm: Likewise.
21959         * config/rs6000/crtresxfpr.asm: Likewise.
21960         * config/rs6000/crtresxgpr.asm: Likewise.
21961         * config/rs6000/crtsavfpr.asm: Likewise.
21962         * config/rs6000/crtsavgpr.asm: Likewise.
21963         * config/rs6000/darwin-asm.h: Likewise.
21964         * config/rs6000/darwin-fallback.c: Likewise.
21965         * config/rs6000/darwin-fpsave.asm: Likewise.
21966         * config/rs6000/darwin-ldouble.c: Likewise.
21967         * config/rs6000/darwin-tramp.asm: Likewise.
21968         * config/rs6000/darwin-unwind.h: Likewise.
21969         * config/rs6000/darwin-vecsave.asm: Likewise.
21970         * config/rs6000/darwin-world.asm: Likewise.
21971         * config/rs6000/e500crtres32gpr.asm: Likewise.
21972         * config/rs6000/e500crtres64gpr.asm: Likewise.
21973         * config/rs6000/e500crtres64gprctr.asm: Likewise.
21974         * config/rs6000/e500crtrest32gpr.asm: Likewise.
21975         * config/rs6000/e500crtrest64gpr.asm: Likewise.
21976         * config/rs6000/e500crtresx32gpr.asm: Likewise.
21977         * config/rs6000/e500crtresx64gpr.asm: Likewise.
21978         * config/rs6000/e500crtsav32gpr.asm: Likewise.
21979         * config/rs6000/e500crtsav64gpr.asm: Likewise.
21980         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
21981         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
21982         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
21983         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
21984         * config/rs6000/eabi-ci.asm: Likewise.
21985         * config/rs6000/eabi-cn.asm: Likewise.
21986         * config/rs6000/eabi.asm: Likewise.
21987         * config/rs6000/linux-unwind.h: Likewise.
21988         * config/rs6000/linux64.h: Likewise.
21989         * config/rs6000/paired.h: Likewise.
21990         * config/rs6000/paired.md: Likewise.
21991         * config/rs6000/ppc64-fp.c: Likewise.
21992         * config/rs6000/ppu_intrinsics.h: Likewise.
21993         * config/rs6000/rs6000.h: Likewise.
21994         * config/rs6000/si2vmx.h: Likewise.
21995         * config/rs6000/sol-ci.asm: Likewise.
21996         * config/rs6000/sol-cn.asm: Likewise.
21997         * config/rs6000/spe.h: Likewise.
21998         * config/rs6000/spu2vmx.h: Likewise.
21999         * config/rs6000/sysv4.h: Likewise.
22000         * config/rs6000/tramp.asm: Likewise.
22001         * config/rs6000/vec_types.h: Likewise.
22002         * config/s390/linux-unwind.h: Likewise.
22003         * config/s390/tpf-unwind.h: Likewise.
22004         * config/score/crti.asm: Likewise.
22005         * config/score/crtn.asm: Likewise.
22006         * config/sh/crt1.asm: Likewise.
22007         * config/sh/crti.asm: Likewise.
22008         * config/sh/crtn.asm: Likewise.
22009         * config/sh/divtab-sh4-300.c: Likewise.
22010         * config/sh/divtab-sh4.c: Likewise.
22011         * config/sh/divtab.c: Likewise.
22012         * config/sh/lib1funcs-4-300.asm: Likewise.
22013         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
22014         * config/sh/lib1funcs.asm: Likewise.
22015         * config/sh/lib1funcs.h: Likewise.
22016         * config/sh/linux-atomic.asm: Likewise.
22017         * config/sh/linux-unwind.h: Likewise.
22018         * config/sh/shmedia.h: Likewise.
22019         * config/sh/sshmedia.h: Likewise.
22020         * config/sh/ushmedia.h: Likewise.
22021         * config/sparc/crtfastmath.c: Likewise.
22022         * config/sparc/linux-unwind.h: Likewise.
22023         * config/sparc/sol2-c1.asm: Likewise.
22024         * config/sparc/sol2-ci.asm: Likewise.
22025         * config/sparc/sol2-cn.asm: Likewise.
22026         * config/spu/divmodti4.c: Likewise.
22027         * config/spu/divv2df3.c: Likewise.
22028         * config/spu/float_disf.c: Likewise.
22029         * config/spu/float_unsdidf.c: Likewise.
22030         * config/spu/float_unsdisf.c: Likewise.
22031         * config/spu/float_unssidf.c: Likewise.
22032         * config/spu/mfc_multi_tag_release.c: Likewise.
22033         * config/spu/mfc_multi_tag_reserve.c: Likewise.
22034         * config/spu/mfc_tag_release.c: Likewise.
22035         * config/spu/mfc_tag_reserve.c: Likewise.
22036         * config/spu/mfc_tag_table.c: Likewise.
22037         * config/spu/multi3.c: Likewise.
22038         * config/spu/spu_internals.h: Likewise.
22039         * config/spu/spu_intrinsics.h: Likewise.
22040         * config/spu/spu_mfcio.h: Likewise.
22041         * config/spu/vec_types.h: Likewise.
22042         * config/spu/vmx2spu.h: Likewise.
22043         * config/stormy16/stormy16-lib2.c: Likewise.
22044         * config/svr4.h: Likewise.
22045         * config/sync.c: Likewise.
22046         * config/v850/lib1funcs.asm: Likewise.
22047         * config/vxlib-tls.c: Likewise.
22048         * config/vxlib.c: Likewise.
22049         * config/vxworks-dummy.h: Likewise.
22050         * config/xtensa/crti.asm: Likewise.
22051         * config/xtensa/crtn.asm: Likewise.
22052         * config/xtensa/ieee754-df.S: Likewise.
22053         * config/xtensa/ieee754-sf.S: Likewise.
22054         * config/xtensa/lib1funcs.asm: Likewise.
22055         * config/xtensa/lib2funcs.S: Likewise.
22056         * config/xtensa/linux-unwind.h: Likewise.
22057         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
22058         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
22059         * coretypes.h: Likewise.
22060         * crtstuff.c: Likewise.
22061         * defaults.h: Likewise.
22062         * dwarf2.h: Likewise.
22063         * emutls.c: Likewise.
22064         * gbl-ctors.h: Likewise.
22065         * gcov-io.h: Likewise.
22066         * ginclude/float.h: Likewise.
22067         * ginclude/iso646.h: Likewise.
22068         * ginclude/stdarg.h: Likewise.
22069         * ginclude/stdbool.h: Likewise.
22070         * ginclude/stddef.h: Likewise.
22071         * ginclude/stdfix.h: Likewise.
22072         * ginclude/stdint-gcc.h: Likewise.
22073         * ginclude/tgmath.h: Likewise.
22074         * gthr-aix.h: Likewise.
22075         * gthr-dce.h: Likewise.
22076         * gthr-gnat.c: Likewise.
22077         * gthr-gnat.h: Likewise.
22078         * gthr-lynx.h: Likewise.
22079         * gthr-mipssde.h: Likewise.
22080         * gthr-nks.h: Likewise.
22081         * gthr-posix.c: Likewise.
22082         * gthr-posix.h: Likewise.
22083         * gthr-posix95.h: Likewise.
22084         * gthr-rtems.h: Likewise.
22085         * gthr-single.h: Likewise.
22086         * gthr-solaris.h: Likewise.
22087         * gthr-tpf.h: Likewise.
22088         * gthr-vxworks.h: Likewise.
22089         * gthr-win32.h: Likewise.
22090         * gthr.h: Likewise.
22091         * libgcc2.c: Likewise.
22092         * libgcc2.h: Likewise.
22093         * libgcov.c: Likewise.
22094         * tsystem.h: Likewise.
22095         * typeclass.h: Likewise.
22096         * unwind-c.c: Likewise.
22097         * unwind-compat.h: Likewise.
22098         * unwind-dw2-fde-compat.c: Likewise.
22099         * unwind-dw2-fde-darwin.c: Likewise.
22100         * unwind-dw2-fde-glibc.c: Likewise.
22101         * unwind-dw2-fde.c: Likewise.
22102         * unwind-dw2-fde.h: Likewise.
22103         * unwind-dw2.c: Likewise.
22104         * unwind-dw2.h: Likewise.
22105         * unwind-generic.h: Likewise.
22106         * unwind-pe.h: Likewise.
22107         * unwind-sjlj.c: Likewise.
22108         * unwind.inc: Likewise.
22109         * config/arm/neon-gen.ml: Change generated copyright header to
22110         refer to version 3 of the GNU General Public License with
22111         version 3.1 of the GCC Runtime Library Exception and to point
22112         readers at the COPYING3 and COPYING3.RUNTIME files and the
22113         FSF's license web page.
22114         * config/arm/arm_neon.h: Regenerate.
22116 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
22118         * config/cris/cris.md: Change copyright header to refer to version
22119         3 of the GNU General Public License.
22120         * doc/install.texi2html: Change copyright header to refer to version
22121         3 of the GNU General Public License and to point readers at the
22122         COPYING3 file and the FSF's license web page.
22123         * config/vax/linux.h: Likewise.
22125 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
22127         * config/i386/i386.md (cmpcc): New.
22128         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
22129         (sync_compare_and_swap_cc*): Delete.
22131         * config/s390/s390.c (s390_compare_emitted): Remove.
22132         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
22133         s390_compare_emitted used to be handled.  Assert that modes match.
22134         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
22135         refer to sync_compare_and_swap_ccsi.
22136         * config/s390/s390.h (s390_compare_emitted): Remove.
22137         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
22138         instead of s390_compare_emitted.
22139         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
22140         instead of s390_compare_emitted.
22141         * config/s390/s390.md (cmpcc): New.
22142         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
22143         CC_REGNUM, do not pretend it's set.
22144         (sync_compare_and_swap_cc*): Delete.
22145         * config/s390/predicates.md (cc_reg_operand): New.
22147         * expr.c (sync_compare_and_swap_cc): Delete.
22148         * optabs.h (sync_compare_and_swap_cc): Delete.
22149         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
22150         is being used with can_compare_p.
22151         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
22152         (find_cc_set): New.
22153         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
22154         look for a MODE_CC set instead.  Use emit_store_flag.
22155         (expand_compare_and_swap_loop): Likewise, with some additional
22156         complication to avoid a force_reg when useless.  Use
22157         emit_cmp_and_jump_insns.
22158         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
22159         * doc/md.texi (sync_compare_and_swap_cc): Merge with
22160         sync_compare_and_swap documentation.
22162 2009-04-09  Jan Hubicka  <jh@suse.cz>
22164         * except.c (find_prev_try): Break out from ....
22165         (duplicate_eh_regions): ... here; properly update prev_try pointers
22166         when duplication part of tree.
22167         (dump_eh_tree): Improve dumping.
22168         (verify_eh_region): New.
22169         (verify_eh_tree): Use it.
22171 2009-04-06  Richard Guenther  <rguenther@suse.de>
22173         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
22174         &ARRAY addresses by adjusting their types and prepending
22175         a conversion.
22176         * tree-cfg.c (verify_gimple_assign_single): Verify that
22177         addresses are correct.
22179 2009-04-09  Richard Guenther  <rguenther@suse.de>
22181         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
22182         indices into an array reference if possible.
22183         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
22184         Fold POINTER_PLUS_EXPR statements with invariant address.
22186 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
22188         PR target/39634
22189         * config.gcc (powerpc64-*-linux*): Always build biarch.
22191 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
22193         PR c/39613
22194         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
22195         it and pedwarn if this results in an INTEGER_CST.
22197 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22199         * doc/install.texi: Update minimum GMP version.  Remove obsolete
22200         text in MPFR section.
22202 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
22204         * dwarf2out.c (class_scope_p): New static inline.
22205         (class_or_namespace_scope_p): Use it.
22206         (gen_variable_die): Use DW_TAG_member tag for static data member
22207         declarations instead of DW_TAG_variable.
22209         PR middle-end/39573
22210         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
22211         variables.
22213 2009-04-08  Richard Guenther  <rguenther@suse.de>
22215         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
22216         valueize random data.
22218 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
22220         * config.gcc (aix tm_file):  Add aix-stdint.h.
22221         (aix tm clause use_gcc_stdint):  Set to wrap.
22222         * config/rs6000/aix-stdint.h:  New file.
22224 2009-04-08  Richard Guenther  <rguenther@suse.de>
22226         PR middle-end/36291
22227         * tree-dfa.c (add_referenced_var): Do not recurse into
22228         global initializers.
22229         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
22230         exposed variables.
22231         (fold_const_aggregate_ref): Likewise.
22233 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
22235         * recog.c (ordered_comparison_operator): New.
22236         * gensupport.c (std_preds): Add it.
22237         * doc/md.texi (Machine-Independent Predicates): Document it.
22239 2009-04-08  Jan Hubicka  <jh@suse.cz>
22241         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
22242         * function.h (rtl_eh): Remove exception_handler_label_map.
22243         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
22244         remove_exception_handler_label, for_each_eh_label_1): Remove.
22245         (rtl_remove_unreachable_regions): Remove.
22246         (convert_from_eh_region_ranges): Do not remove unreachable regions.
22247         (find_exception_handler_labels): Don't build the hashtable.
22248         (maybe_remove_eh_handler): Remove.
22249         (for_each_eh_label): Rewrite to walk the tree.
22250         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
22251         * except.h (maybe_remove_eh_handler): Remove.
22252         * passes.c (init_optimization_passes): Schedule second EH cleanup
22253         before out-of-ssa.
22254         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
22255         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
22257 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
22259         * genoutput.c (validate_optab_operands): New.
22260         (gen_insn, gen_expand): Call it.
22262         * genflags.c (gen_insn): Detect misused iterators.
22263         (main): Pass line_no to gen_insn, exit with status 1 on error.
22265         * genextract.c (line_no): Make global.
22266         (VEC_safe_set_locstr): Change assertion to error message.
22267         (main): Exit with status 1 on error.
22269 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
22271         PR c/39614
22272         PR c/39673
22273         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
22274         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
22275         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
22276         * c-convert.c (convert): Do not call fold on results of conversion
22277         functions when the result is a C_MAYBE_CONST_EXPR.
22278         * c-parser.c (c_parser_postfix_expression): Do not fold condition
22279         of __builtin_choose_expr.
22280         * c-typeck.c (remove_c_maybe_const_expr): New.
22281         (build_unary_op, build_conditional_expr, build_compound_expr,
22282         build_binary_op, c_objc_common_truthvalue_conversion): Call
22283         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
22284         integer operands.
22286 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
22288         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
22289         CODE to produce a new one. Add a prototype to use fold_convert_const
22291 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
22293         PR bootstrap/39660
22294         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
22295         mix declarations and code.
22297 2009-04-08  Ben Elliston  <bje@au.ibm.com>
22299         * gcc.c: Replace `CC' with `GCC' throughout.
22301 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
22303         * doc/invoke.texi: Document Atom support.
22305 2009-04-07  Jason Merrill  <jason@redhat.com>
22307         PR c++/25185
22308         * c-common.h, c-common.c: Add flag_pretty_templates.
22309         * c-opts.c (c_common_handle_option): Set it.
22310         * c.opt: Add -fno-pretty-templates.
22311         * doc/invoke.texi (C++ Dialect Options): Likewise.
22313 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
22315         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
22316         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
22317         (ia64_expand_builtin): Likewise.
22319 2009-04-07  Martin Jambor  <mjambor@suse.cz>
22321         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
22322         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
22323         ADDR_EXPRS are include too.
22325 2009-04-07  Richard Guenther  <rguenther@suse.de>
22327         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
22328         decls are only used if passes as parameters or if they are
22329         local statics and the call is not to a builtin.
22330         (call_may_clobber_ref_p_1): Likewise.
22332 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22334         * expr.c (do_store_flag): Remove last argument.  Simplify code
22335         to avoid duplication of tests already done by can_compare_p.
22336         (expand_expr_real_1): Adjust caller.
22338 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22340         * optabs.c (can_compare_p): Test the predicate of a
22341         cbranch and cstore pattern.
22343 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22345         * expr.c (convert_move): Use emit_store_flag instead of
22346         "emulating" it.
22348 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22350         * config/i386/i386.c (ix86_compare_emitted): Remove.
22351         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
22352         ix86_compare_op0 like ix86_compare_emitted used to be handled.
22353         * config/i386/i386.h (ix86_compare_emitted): Remove.
22354         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
22355         instead of ix86_compare_emitted.
22356         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
22358 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
22360         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
22361         Add t-sysroot-suffix to tmake_file.
22362         * config/print-sysroot-suffix.sh: New file.
22363         * config/t-sysroot-suffix: New file.
22365 2009-04-07  Ben Elliston  <bje@au.ibm.com>
22367         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
22368         as the latter produces a warning when the target does not support
22369         infinity.
22371 2009-04-07  Ben Elliston  <bje@au.ibm.com>
22373         * dfp.c: Replace type punning assignments with memcpy throughout.
22374         * Makefile.in (dfp.o-warn): Remove.
22376 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
22378         PR target/39634
22379         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
22380         Include soft-fp/t-softfp after rs6000/t-linux64.
22382 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
22384         * stor-layout.c (set_sizetype): Use the full precision of their
22385         machine mode for bitsize types.
22387 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
22389         * config/i386/i386.md: Revert 2 accidental checkins.
22391 2009-04-06  Joey Ye  <joey.ye@intel.com>
22392             Xuepeng Guo  <xuepeng.guo@intel.com>
22393             H.J. Lu  <hongjiu.lu@intel.com>
22395         Atom pipeline model, tuning and insn selection.
22396         * config.gcc (atom): Add atom config options and target.
22398         * config/i386/atom.md: New.
22400         * config/i386/i386.c (atom_cost): New cost.
22401         (m_ATOM): New macro flag.
22402         (initial_ix86_tune_features): Set m_ATOM.
22403         (x86_accumulate_outgoing_args): Likewise.
22404         (x86_arch_always_fancy_math_387): Likewise.
22405         (processor_target): Add Atom cost.
22406         (cpu_names): Add Atom cpu name.
22407         (override_options): Set Atom ISA.
22408         (ix86_issue_rate): New case PROCESSOR_ATOM.
22409         (ix86_adjust_cost): Likewise.
22411         * config/i386/i386.h (TARGET_ATOM): New target macro.
22412         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
22413         (TARGET_OPT_AGU): New target option.
22414         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
22415         (processor_type): Add PROCESSOR_ATOM.
22417         * config/i386/i386.md (cpu): Add new value "atom".
22418         (use_carry, movu): New attr.
22419         (atom.md): Include atom.md.
22420         (adddi3_carry_rex64): Set attr "use_carry".
22421         (addqi3_carry): Likewise.
22422         (addhi3_carry): Likewise.
22423         (addsi3_carry): Likewise.
22424         (*addsi3_carry_zext): Likewise.
22425         (subdi3_carry_rex64): Likewise.
22426         (subqi3_carry): Likewise.
22427         (subhi3_carry): Likewise.
22428         (subsi3_carry): Likewise.
22429         (x86_movdicc_0_m1_rex64): Likewise.
22430         (*x86_movdicc_0_m1_se): Likewise.
22431         (x86_movsicc_0_m1): Likewise.
22432         (*x86_movsicc_0_m1_se): Likewise.
22433         (*adddi_1_rex64): Emit add insn as much as possible.
22434         (*addsi_1): Likewise.
22435         (return_internal): Set atom_unit.
22436         (return_internal_long): Likewise.
22437         (return_pop_internal): Likewise.
22438         (*rcpsf2_sse): Set atom_sse_attr attr.
22439         (*qrt<mode>2_sse): Likewise.
22440         (*prefetch_sse): Likewise.
22442         * config/i386/i386-c.c (ix86_target_macros_internal): New case
22443         PROCESSOR_ATOM.
22444         (ix86_target_macros_internal): Likewise.
22446         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
22447         (*prefetch_sse_rex): Likewise.
22448         (sse_rcpv4sf2): Likewise.
22449         (sse_vmrcpv4sf2): Likewise.
22450         (sse_sqrtv4sf2): Likewise.
22451         (<sse>_vmsqrt<mode>2): Likewise.
22452         (sse_ldmxcsr): Likewise.
22453         (sse_stmxcsr): Likewise.
22454         (*sse_sfence): Likewise.
22455         (sse2_clflush): Likewise.
22456         (*sse2_mfence): Likewise.
22457         (*sse2_lfence): Likewise.
22458         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
22459         (<sse>_movup<ssemodesuffixf2c>): Likewise.
22460         (avx_movdqu<avxmodesuffix>): Likewise.
22461         (avx_lddqu<avxmodesuffix>): Likewise.
22462         (sse2_movntv2di): Change attr "type" to "ssemov".
22463         (sse2_movntsi): Likewise.
22464         (rsqrtv8sf2): Change attr "type" to "sseadd".
22465         (sse3_addsubv2df3): Set attr "atom_unit".
22466         (sse3_h<plusminus_insn>v4sf3): Likewise.
22467         (*sse2_pmaddwd): Likewise.
22468         (*vec_extractv2di_1_rex64): Likewise.
22469         (*vec_extractv2di_1_avx): Likewise.
22470         (sse2_psadbw): Likewise.
22471         (ssse3_phaddwv8hi3): Likewise.
22472         (ssse3_phaddwv4hi3): Likewise.
22473         (ssse3_phadddv4si3): Likewise.
22474         (ssse3_phadddv2si3): Likewise.
22475         (ssse3_phaddswv8hi3): Likewise.
22476         (ssse3_phaddswv4hi3): Likewise.
22477         (ssse3_phsubwv8hi3): Likewise.
22478         (ssse3_phsubwv4hi3): Likewise.
22479         (ssse3_phsubdv4si3): Likewise.
22480         (ssse3_phsubdv2si3): Likewise.
22481         (ssse3_phsubswv8hi3): Likewise.
22482         (ssse3_phsubswv4hi3): Likewise.
22483         (ssse3_pmaddubsw128): Likewise.
22484         (sse3_pmaddubsw: Likewise.
22485         (ssse3_palignrti): Likewise.
22486         (ssse3_palignrdi): Likewise.
22488 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
22490         * doc/install.texi (Specific): Fix two cross-references to MinGW.
22492 2009-04-06  Richard Guenther  <rguenther@suse.de>
22494         PR tree-optimization/28868
22495         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
22496         of which PHI results we inserted.
22497         (insert_into_preds_of_block): Record inserted PHIs.
22498         (eliminate): Eliminate redundant PHI nodes.
22499         (init_pre): Init inserted_phi_names.
22501 2009-04-06  Richard Guenther  <rguenther@suse.de>
22503         PR tree-optimization/39643
22504         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
22505         IMAGPART_EXPRs of complex constants.
22506         (execute_fold_all_builtins): If we folded a call queue
22507         TODO_update_address_taken.
22509 2009-04-06  Jan Hubicka  <jh@suse.cz>
22511         PR middle-end/39659
22512         * except.c (remove_unreachable_regions): Propagate may_contain_throw
22513         flag.
22515 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
22517         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
22518         delay slot.
22519         (ic_invalidate_array): Likewise.
22521 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
22523         * calls.c (emit_library_call_value_1): Fix a problem with parameter
22524         alignment for library calls.
22526 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
22528         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
22529         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
22530         * config/i386/mingw-stdint.h:  New file.
22532 2009-04-05  Richard Guenther  <rguenther@suse.de>
22534         PR tree-optimization/39648
22535         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
22536         our &A vs. &A[0] IL deficiencies.
22538 2009-04-04  Jan Hubicka  <jh@suse.cz>
22540         * except.c (sjlj_find_directly_reachable_regions): Be ready for
22541         removed toplevel regions.
22542         (sjlj_mark_call_sites): Likewise.
22544 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
22546         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
22547         (cygwin tm clause use_gcc_stdint):  Set to wrap.
22548         * config/i386/cygwin-stdint.h:  New file.
22550 2009-04-04  Richard Guenther  <rguenther@suse.de>
22552         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
22553         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
22554         single-argument PHIs if we are in loop-closed SSA form.
22555         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
22556         for the pre-condition.
22557         (slpeel_tree_peel_loop_to_edge): Likewise.
22558         (vect_build_loop_niters): Take an optional sequence to append stmts.
22559         (vect_generate_tmps_on_preheader): Likewise.
22560         (vect_do_peeling_for_loop_bound): Take extra guards for the
22561         pre-condition.
22562         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
22563         the cost model check.
22564         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
22565         guards if we are going to peel.  Do not apply versioning in that case.
22566         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
22567         (vect_do_peeling_for_loop_bound): Likewise.
22568         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
22569         loop bound only record extra pre-conditions, do not apply loop
22570         versioning.
22572 2009-04-04  Richard Guenther  <rguenther@suse.de>
22574         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
22575         renaming code.
22577 2009-04-04  Jan Hubicka  <jh@suse.cz>
22579         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
22580         last_basic_block for size of bb->index indexed array.
22581         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
22582         compute_out, link_btr_uses, build_btr_def_use_webs,
22583         build_btr_def_use_webs, migrate_btr_defs): Likewise.
22585 2009-04-04  Jan Hubicka  <jh@suse.cz>
22587         * except.c (remove_eh_handler_and_replace): Break out from ...
22588         (remove_eh_handler): ... here.
22589         (bring_to_root): New function.
22590         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
22591         handled ones, bring others to root of tree.
22593 2009-04-04  Jan Hubicka  <jh@suse.cz>
22595         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
22596         (all_phis_safe_to_merge): New function.
22597         (update_info): New structure.
22598         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
22599         (cleanup_empty_eh): Update SSA if possible.
22601 2009-04-04  Richard Guenther  <rguenther@suse.de>
22603         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
22604         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
22605         (append_vuse): Likewise.
22607 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
22609         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
22610         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
22611         instead of REG_UNSAVED for DW_CFA_undefined.
22612         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
22613         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
22614         outermost frame.
22616 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
22618         PR target/39501
22619         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
22621 2009-04-04  Richard Guenther  <rguenther@suse.de>
22623         PR tree-optimization/8781
22624         PR tree-optimization/37892
22625         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
22626         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
22627         (valueize_refs): Call it for *& valueizations.
22628         (shared_reference_ops_from_ref): Rename to ...
22629         (valueize_shared_reference_ops_from_ref): ... this and valueize.
22630         (shared_reference_ops_from_call): Rename to ...
22631         (valueize_shared_reference_ops_from_call): ... this and valueize.
22632         (vn_reference_lookup): Update.
22633         (visit_reference_op_call): Likewise.
22634         * tree-ssa-pre.c (phi_translate_1): Fold *&.
22635         (eliminate): Value-replace the call address in call statements.
22637 2009-04-04  Richard Guenther  <rguenther@suse.de>
22639         PR tree-optimization/39636
22640         * tree-ssa-forwprop.c
22641         (forward_propagate_addr_into_variable_array_index): Check for
22642         GIMPLE_ASSIGN before accessing the rhs code.
22644 2009-04-03  Jason Merrill  <jason@redhat.com>
22646         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
22648 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
22650         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
22651         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
22652         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
22653         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
22654         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
22655         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
22656         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
22657         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
22658         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
22659         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
22660         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
22661         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
22662         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
22663         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
22664         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
22665         Use fr_reg_or_fp01_operand instead of fr_register_operand
22667         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
22668         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
22669         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
22671 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
22673         PR rtl-optimization/39607
22674         PR rtl-optimization/39631
22676         Revert:
22678         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
22679         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
22680         instead of DF_LR_OUT.
22681         * ira-lives.c (process_bb_node_lives): Ditto.
22682         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
22683         instead of DF_LR_{OUT,IN}.
22684         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
22685         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
22687 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
22689         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
22690         (execute_lower_omp): Always run but take the short way out if -fopenmp
22691         is not given.
22692         (gate_lower_omp): Remove, forcing the pass manager to always run the
22693         pass and always set PROP_gimple_lomp.
22694         (pass_lower_omp): Remove gate function.
22695         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
22696         PROP_trees.  Instead, require it.
22697         * ipa-cp.c (pass_ipa_cp): Likewise.
22698         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
22699         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
22700         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
22701         and PROP_gimple_leh.
22703 2009-04-03  Richard Guenther  <rguenther@suse.de>
22705         PR middle-end/13146
22706         PR tree-optimization/23940
22707         PR tree-optimization/33237
22708         PR middle-end/33974
22709         PR middle-end/34093
22710         PR tree-optimization/36201
22711         PR tree-optimization/36230
22712         PR tree-optimization/38049
22713         PR tree-optimization/38207
22714         PR tree-optimization/38230
22715         PR tree-optimization/38301
22716         PR tree-optimization/38585
22717         PR middle-end/38895
22718         PR tree-optimization/38985
22719         PR tree-optimization/39299
22720         * tree-ssa-structalias.h: Remove.
22721         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
22722         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
22723         (struct vuse_element_d): Remove.
22724         (struct vuse_vec_d): Likewise.
22725         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
22726         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
22727         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
22728         VUSE_ELEMENT_VAR): Likewise.
22729         (struct voptype_d): Likewise.
22730         (NUM_VOP_FREE_BUCKETS): Likewise.
22731         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
22732         (struct stmt_operands_d): Remove.
22733         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
22734         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
22735         VDEF_NUM, VDEF_VECT): Likewise.
22736         (copy_virtual_operands): Remove.
22737         (operand_build_cmp): Likewise.
22738         (create_ssa_artificial_load_stmt): Likewise.
22739         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
22740         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
22741         vuse_index and mayuse_index members.  Pack and move done and iter_type
22742         members to the front.
22743         (SSA_OP_VMAYUSE): Remove.
22744         (SSA_OP_VIRTUAL_USES): Adjust.
22745         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
22746         (unlink_stmt_vdef): Declare.
22747         (add_to_addressable_set): Remove.
22748         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
22749         (vrp_visit_stmt): Likewise.
22750         * doc/tree-ssa.texi (Alias analysis): Update.
22751         * doc/invoke.texi (max-aliased-vops): Remove docs.
22752         (avg-aliased-vops): Likewise.
22753         * tree-into-ssa.c (syms_to_rename): Remove.
22754         (need_to_update_vops_p): Likewise.
22755         (need_to_initialize_update_ssa_p): Rename to ...
22756         (update_ssa_initialized_fn): ... this.  Track function we are
22757         initialized for.
22758         (symbol_marked_for_renaming): Simplify.
22759         (add_new_name_mapping): Do not set need_to_update_vops_p.
22760         (dump_currdefs): Use SYMS_TO_RENAME.
22761         (rewrite_update_stmt): Always walk all uses/defs.
22762         (dump_update_ssa): Adjust.
22763         (init_update_ssa): Take function argument.  Track what we are
22764         initialized for.
22765         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
22766         (create_new_def_for): Initialize for cfun, assert we are initialized
22767         for cfun.
22768         (mark_sym_for_renaming): Simplify.
22769         (mark_set_for_renaming): Do not initialize update-ssa.
22770         (need_ssa_update_p): Simplify.  Take function argument.
22771         (name_mappings_registered_p): Assert we ask for the correct function.
22772         (name_registered_for_update_p): Likewise.
22773         (ssa_names_to_replace): Likewise.
22774         (release_ssa_name_after_update_ssa): Likewise.
22775         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
22776         (dump_decl_set): Do not print a newline.
22777         (debug_decl_set): Do it here.
22778         (dump_update_ssa): And here.
22779         * tree-ssa-loop-im.c (move_computations): Adjust.
22780         (movement_possibility): Likewise.
22781         (determine_max_movement): Likewise.
22782         (gather_mem_refs_stmt): Likewise.
22783         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
22784         or NAME_MEMORY_TAG.
22785         * tree-complex.c (update_all_vops): Remove.
22786         (expand_complex_move): Adjust.
22787         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
22788         Simplify test for memory referencing statement.  Exclude
22789         non-invariant ADDR_EXPRs.
22790         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
22791         * tree-loop-distribution.c (generate_memset_zero): Adjust.
22792         (rdg_flag_uses): Likewise.
22793         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
22794         related code.
22795         (tree_optimize_tail_calls_1): Also split the
22796         edge from the entry block if we have degenerate PHI nodes in
22797         the first basic block.
22798         * tree.c (init_ttree): Remove memory-tag related code.
22799         (tree_code_size): Likewise.
22800         (tree_node_structure): Likewise.
22801         (build7_stat): Re-write to be build6_stat.
22802         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
22803         (SSA_VAR_P): Adjust.
22804         (struct tree_memory_tag): Remove.
22805         (struct tree_memory_partition_tag): Likewise.
22806         (union tree_node): Adjust.
22807         (build7): Re-write to be build6.
22808         * tree-pass.h (pass_reset_cc_flags): Remove.
22809         (TODO_update_address_taken): New flag.
22810         (pass_simple_dse): Remove.
22811         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
22812         * params.h (MAX_ALIASED_VOPS): Remove.
22813         (AVG_ALIASED_VOPS): Likewise.
22814         * omp-low.c (expand_omp_taskreg): Update SSA form.
22815         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
22816         aliases the lhs in a copy stmt.
22817         * tree-ssa-dse.c (struct address_walk_data): Remove.
22818         (memory_ssa_name_same): Likewise.
22819         (memory_address_same): Likewise.
22820         (get_kill_of_stmt_lhs): Likewise.
22821         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
22822         unused stores.  Look through PHI nodes into post-dominated regions.
22823         (dse_optimize_stmt): Simplify.  Properly remove stores.
22824         (tree_ssa_dse): Compute dominators.
22825         (execute_simple_dse): Remove.
22826         (pass_simple_dse): Likewise.
22827         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
22828         gimple_loaded_syms and gimple_stored_syms computation.
22829         * toplev.c (dump_memory_report): Dump alias and pta stats.
22830         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
22831         (vn_reference_eq): Likewise.
22832         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
22833         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
22834         valueize_vuses): Remove.
22835         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
22836         (get_def_ref_stmt_vuse): ... this.
22837         (vn_reference_lookup_2): New function.
22838         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
22839         walking equivalent vuses.  Simplify.
22840         (vn_reference_lookup): Likewise.
22841         (vn_reference_insert): Likewise.
22842         (vn_reference_insert_pieces): Likewise.
22843         (visit_reference_op_call): Simplify.
22844         (visit_reference_op_load): Likewise.
22845         (visit_reference_op_store): Likewise.
22846         (init_scc_vn): Remove shared_lookup_vuses initialization.
22847         (free_scc_vn): Remove shared_lookup_vuses freeing.
22848         (sort_vuses, sort_vuses_heap): Remove.
22849         (get_ref_from_reference_ops): Export.
22850         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
22851         vector with single vuse pointer.
22852         (vn_reference_lookup_pieces, vn_reference_lookup,
22853         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
22854         (shared_vuses_from_stmt): Remove.
22855         (get_ref_from_reference_ops): Declare.
22856         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
22857         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
22858         memory-tag related code.
22859         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
22860         (likely_value): Add comment, skip static-chain of call statements.
22861         (surely_varying_stmt_p): Adjust.
22862         (gimplify_and_update_call_from_tree): Likewise.
22863         (execute_fold_all_builtins): Do not rebuild alias info.
22864         (gimplify_and_update_call_from_tree): Properly update VOPs.
22865         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
22866         (copy_ref_info): Remove memory-tag related code.
22867         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
22868         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
22869         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
22870         computation.
22871         * tree-ssa-dom.c (gimple_p): Remove typedef.
22872         (eliminate_redundant_computations): Adjust.
22873         (record_equivalences_from_stmt): Likewise.
22874         (avail_expr_hash): Likewise.
22875         (avail_expr_eq): Likewise.
22876         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
22877         (stmt_makes_single_load): Likewise.
22878         (stmt_makes_single_store): Likewise.
22879         * tree-ssa-alias.c: Rewrite completely.
22880         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
22881         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
22882         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
22883         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
22884         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
22885         Remove public functions.
22886         (pass_reset_cc_flags): Remove.
22887         (pass_build_alias): Move ...
22888         * tree-ssa-structalias.c (pass_build_alias): ... here.
22889         * tree-ssa-alias.c (may_be_aliased): Move ...
22890         * tree-flow-inline.h (may_be_aliased): ... here.
22891         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
22892         count_uses_and_derefs): Move ...
22893         * gimple.c: ... here.
22894         * gimple.h (count_uses_and_derefs): Declare.
22895         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
22896         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
22897         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
22898         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
22899         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
22900         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
22901         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
22902         New functions.
22903         * tree-dfa.c (refs_may_alias_p): Move ...
22904         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
22905         * tree-ssa-alias.h: New file.
22906         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
22907         (statement_sink_location): Likewise.
22908         * opts.c (decode_options): Do not adjust max-aliased-vops or
22909         avg-aliased-vops values.
22910         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
22911         (TV_CALL_CLOBBER): Likewise.
22912         (TV_FLOW_SENSITIVE): Likewise.
22913         (TV_FLOW_INSENSITIVE): Likewise.
22914         (TV_MEMORY_PARTITIONING): Likewise.
22915         (TV_ALIAS_STMT_WALK): New timevar.
22916         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
22917         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
22918         (get_address_description): Remove memory-tag related code.
22919         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
22920         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
22921         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
22922         and immediate uses in statements.  Document.
22923         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
22924         (dump_symbols): Remove.
22925         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
22926         * alias.c (get_deref_alias_set): New function split out from ...
22927         (get_alias_set): ... here.
22928         * alias.h (get_deref_alias_set): Declare.
22929         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
22930         type parameter.  Remove restrict pointer handling.  Create a
22931         ref-all pointer in case type-based alias sets do not conflict.
22932         (vect_analyze_data_refs): Remove SMT related code.
22933         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
22934         (vectorizable_load): Likewise.
22935         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
22936         (DR_SYMBOL_TAG, DR_VOPS): Remove.
22937         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
22938         Ignore vops and SMTs.
22939         (dr_analyze_alias): Likewise..
22940         (free_data_ref): Likewise.
22941         (create_data_ref): Likewise.
22942         (analyze_all_data_dependences): Likewise.
22943         (get_references_in_stmt): Adjust.
22944         * tree-flow-inline.h (gimple_aliases_computed_p,
22945         gimple_addressable_vars, gimple_call_clobbered_vars,
22946         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
22947         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
22948         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
22949         gimple_mem_ref_stats): Remove.
22950         (gimple_vop): New function.
22951         (op_iter_next_use): Remove vuses and mayuses cases.
22952         (op_iter_next_def): Remove vdefs case.
22953         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
22954         (clear_and_done_ssa_iter): Do not set removed fields.
22955         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
22956         Assert we are not iterating over vuses or vdefs if not also
22957         iterating over uses or defs.
22958         (op_iter_init_use): Likewise.
22959         (op_iter_init_def): Likewise.
22960         (op_iter_next_vdef): Remove.
22961         (op_iter_next_mustdef): Likewise.
22962         (op_iter_init_vdef): Likewise.
22963         (compare_ssa_operands_equal): Likewise.
22964         (link_use_stmts_after): Handle vuse operand.
22965         (is_call_used): Use is_call_clobbered.
22966         (is_call_clobbered): Global variables are always call clobbered,
22967         query the call-clobbers bitmap.
22968         (mark_call_clobbered): Ignore global variables.
22969         (clear_call_clobbered): Likewise.
22970         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
22971         virtual operands sanity check.
22972         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
22973         Remove.
22974         (TARGET_MEM_REF): Remove TMR_TAG operand.
22975         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
22976         Remove call-clobber related code.
22977         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
22978         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
22979         partitions or escape reason.
22980         (get_single_def_stmt, get_single_def_stmt_from_phi,
22981         get_single_def_stmt_with_phi): Remove.
22982         (dump_referenced_vars): Tidy.
22983         (get_ref_base_and_extent): Allow bare decls.
22984         (collect_dfa_stats): Adjust.
22985         * graphite.c (rename_variables_in_stmt): Adjust.
22986         (graphite_copy_stmts_from_block): Likewise.
22987         (translate_clast): Likewise.
22988         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
22989         (EXPR_DIES): New.
22990         (translate_vuse_through_block): Use the oracle.
22991         (phi_translate_1): Adjust.
22992         (value_dies_in_block_x): Use the oracle.  Cache the outcome
22993         in EXPR_DIES.
22994         (valid_in_sets): Check if the VUSE for
22995         a REFERENCE is available.
22996         (eliminate): Do not remove stmts during elimination,
22997         instead queue and remove them afterwards.
22998         (do_pre): Do not rebuild alias info.
22999         (pass_pre): Run TODO_rebuild_alias before PRE.
23000         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
23001         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
23002         (mark_all_v_defs_stmt): Remove.
23003         (mark_all_v_defs_seq): Adjust.
23004         (sra_replace): Likewise.
23005         (scalarize_use): Likewise.
23006         (scalarize_copy): Likewise.
23007         (scalarize_init): Likewise.
23008         (scalarize_ldst): Likewise.
23009         (todoflags): Remove.
23010         (tree_sra): Do not rebuild alias info.
23011         (tree_sra_early): Adjust.
23012         (pass_sra): Run TODO_update_address_taken before SRA.
23013         * tree-predcom.c (set_alias_info): Remove.
23014         (prepare_initializers_chain): Do not call it.
23015         (mark_virtual_ops_for_renaming): Adjust.
23016         (mark_virtual_ops_for_renaming_list): Remove.
23017         (initialize_root_vars): Adjust.
23018         (initialize_root_vars_lm): Likewise.
23019         (prepare_initializers_chain): Likewise.
23020         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
23021         (may_propagate_copy_into_stmt): Likewise.
23022         (merge_alias_info): Do nothing for now.
23023         (propagate_tree_value_into_stmt): Adjust.
23024         (stmt_may_generate_copy): Likewise.
23025         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
23026         not mark symbols for renaming.
23027         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
23028         with the same statement, make sure to update the new pointed-to one.
23029         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
23030         call statements, do not mark symbols for renaming.
23031         (mark_operand_necessary): Dump something.
23032         (ref_may_be_aliased): New function.
23033         (mark_aliased_reaching_defs_necessary_1): New helper function.
23034         (mark_aliased_reaching_defs_necessary): Likewise.
23035         (mark_all_reaching_defs_necessary_1): Likewise.
23036         (mark_all_reaching_defs_necessary): Likewise.
23037         (propagate_necessity): Do not process virtual PHIs.  For
23038         non-aliased loads mark all reaching definitions as necessary.
23039         For aliased loads and stores mark the immediate dominating
23040         aliased clobbers as necessary.
23041         (visited): New global static.
23042         (perform_tree_ssa_dce): Free visited bitmap after propagating
23043         necessity.
23044         (remove_dead_phis): Perform simple dead virtual PHI removal.
23045         (remove_dead_stmt): Properly unlink virtual operands when
23046         removing stores.
23047         (eliminate_unnecessary_stmts): Schedule PHI removal after
23048         stmt removal.
23049         * tree-ssa-ter.c (is_replaceable_p): Adjust.
23050         (process_replaceable): Likewise.
23051         (find_replaceable_in_bb): Likewise.
23052         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
23053         based on the single gimple vop.
23054         (verify_flow_insensitive_alias_info): Remove.
23055         (verify_flow_sensitive_alias_info): Likewise.
23056         (verify_call_clobbering): Likewise.
23057         (verify_memory_partitions): Likewise.
23058         (verify_alias_info): Likewise.
23059         (verify_ssa): Adjust..
23060         (execute_update_addresses_taken): Export.  Update SSA
23061         manually.  Optimize only when optimizing.  Use a local bitmap.
23062         (pass_update_address_taken): Remove TODO_update_ssa, add
23063         TODO_dump_func.
23064         (pass_update_address_taken): Just use TODO_update_address_taken.
23065         (init_tree_ssa): Do not initialize addressable_vars.
23066         (verify_ssa): Verify new VUSE / VDEF properties.
23067         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
23068         Do not call verify_alias_info.
23069         (delete_tree_ssa): Clear the VUSE, VDEF operands.
23070         Do not free the loaded and stored syms bitmaps.  Reset the escaped
23071         and callused solutions.  Do not free addressable_vars.
23072         Remove memory-tag related code.
23073         (warn_uninitialized_var): Aliases are always available.
23074         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
23075         * lambda-code.c (can_put_in_inner_loop): Adjust.
23076         (can_put_after_inner_loop): Likewise.
23077         (perfect_nestify): Likewise.
23078         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
23079         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
23080         (vectorizable_conversion): Do not mark symbols for renaming.
23081         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
23082         (expand_call_inline): Unlink the calls virtual operands before
23083         replacing it.
23084         (tree_function_versioning): Do not call update_ssa if we are not
23085         updating clones.  Simplify.
23086         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
23087         (propagate_with_phi): Likewise..
23088         * tree-outof-ssa.c (create_temp): Remove memory tag and call
23089         clobber code.  Assert we are not aliased or global.
23090         * tree-flow.h: Include tree-ssa-alias.h
23091         (enum escape_type): Remove.
23092         (struct mem_sym_stats_d): Likewise.
23093         (struct mem_ref_stats_d): Likewise.
23094         (struct gimple_df): Add vop member.  Remove global_var,
23095         call_clobbered_vars, call_used_vars, addressable_vars,
23096         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
23097         escaped and callused members.
23098         (struct ptr_info_def): Remove all members, add points-to solution
23099         member pt.
23100         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
23101         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
23102         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
23103         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
23104         (tree-ssa-alias.o): Likewise.
23105         (toplev.o): Add tree-ssa-alias.h
23106         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
23107         * gimple.c (gimple_set_bb): Fix off-by-one error.
23108         (is_gimple_reg): Do not handle memory tags.
23109         (gimple_copy): Also copy virtual operands.
23110         Delay updating the statement.  Do not reset loaded and stored syms.
23111         (gimple_set_stored_syms): Remove.
23112         (gimple_set_loaded_syms): Likewise.
23113         (gimple_call_copy_skip_args): Copy the virtual operands
23114         and mark the new statement modified.
23115         * tree-ssa-structalias.c (may_alias_p): Remove.
23116         (set_uids_in_ptset): Take the alias set to prune with as
23117         parameter.  Fold in the alias test of may_alias_p.
23118         (compute_points_to_sets): Compute whether a ptr is dereferenced
23119         in a local sbitmap.
23120         (process_constraint): Deal with &ANYTHING on the lhs, reject all
23121         other ADDRESSOF constraints on the lhs.
23122         (get_constraint_for_component_ref): Assert that we don't get
23123         ADDRESSOF constraints from the base of the reference.
23124         Properly generate UNKNOWN_OFFSET for DEREF if needed.
23125         (struct variable_info): Remove collapsed_to member.
23126         (get_varinfo_fc): Remove.
23127         (new_var_info): Do not set collapsed_to.
23128         (dump_constraint): Do not follow cycles.
23129         (dump_constraint_graph): Likewise.
23130         (build_pred_graph): Likewise.
23131         (build_succ_graph): Likewise.
23132         (rewrite_constraints): Likewise.
23133         (do_simple_structure_copy): Remove.
23134         (do_rhs_deref_structure_copy): Remove.
23135         (do_lhs_deref_structure_copy): Remove.
23136         (collapse_rest_of_var): Remove.
23137         (do_structure_copy): Re-implement.
23138         (pta_stats): New global variable.
23139         (dump_pta_stats): New function.
23140         (struct constraint_expr): Make offset signed.
23141         (UNKNOWN_OFFSET): Define special value.
23142         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
23143         (solution_set_expand): New helper function split out from ...
23144         (do_sd_constraint): ... here.
23145         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
23146         (do_ds_constraint): Likewise.
23147         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
23148         and CALLUSED = *CALLUSED.
23149         (set_union_with_increment): Make inc argument signed.
23150         (type_safe): Remove.
23151         (get_constraint_for_ptr_offset): Handle unknown and negative
23152         constant offsets.
23153         (first_vi_for_offset): Handle offsets before start.  Bail
23154         out early for offsets beyond the variable extent.
23155         (first_or_preceding_vi_for_offset): New function.
23156         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
23157         Together with ESCAPED = *ESCAPED this properly computes reachability.
23158         (find_what_var_points_to): New function.
23159         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
23160         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
23161         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
23162         pt_solutions_intersect): New functions.
23163         (compute_call_used_vars): Remove.
23164         (compute_may_aliases): New main entry into PTA computation.
23165         * gimple.h (gimple_p): New typedef.
23166         (struct gimple_statement_base): Remove references_memory_p.
23167         (struct gimple_statement_with_memory_ops_base): Remove
23168         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
23169         members.
23170         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
23171         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
23172         gimple_set_references_memory): Remove.
23173         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
23174         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
23175         New functions.
23176         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
23177         (verify_expr): Allow RESULT_DECL.
23178         (gimple_duplicate_bb): Do not copy virtual operands.
23179         (gimple_duplicate_sese_region): Adjust.
23180         (gimple_duplicate_sese_tail): Likewise.
23181         (mark_virtual_ops_in_region): Remove.
23182         (move_sese_region_to_fn): Do not call it.
23183         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
23184         and pass_simple_dse.
23185         (execute_function_todo): Handle TODO_update_address_taken,
23186         call execute_update_addresses_taken for TODO_rebuild_alias.
23187         (execute_todo): Adjust.
23188         (execute_one_pass): Init dump files early.
23189         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
23190         call-clobbered.
23191         (create_general_new_stmt): Clear vops.
23192         * tree-ssa-reassoc.c (get_rank): Adjust.
23193         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
23194         symbols for renaming.
23195         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
23196         (PARAM_AVG_ALIASED_VOPS): Likewise.
23197         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
23198         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
23199         * tree-ssa-operands.c: Simplify for new virtual operand representation.
23200         (operand_build_cmp, copy_virtual_operands,
23201         create_ssa_artificial_load_stmt, add_to_addressable_set,
23202         gimple_add_to_addresses_taken): Remove public functions.
23203         (unlink_stmt_vdef): New function.
23205 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
23207         * config.gcc (powerpc-*-linux*): Merge variants.
23209 2009-04-02  Chao-ying Fu  <fu@mips.com>
23210             James Grosbach  <james.grosbach@microchip.com>
23212         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
23213         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
23214         cop0_sp_offset.
23215         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
23216         keep_interrupts_masked_p, use_debug_exception_return_p.
23217         (mips_attribute_table): Add interrupt, use_shadow_register_set,
23218         keep_interrupts_masked, use_debug_exception_return.
23219         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
23220         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
23221         New functions.
23222         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
23223         (mips_print_operand): Process COP0 registers to print $0 .. $31
23224         correctly for GAS to process.
23225         (mips_interrupt_extra_call_saved_reg_p): New function.
23226         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
23227         extra registers.
23228         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
23229         (mips_compute_frame_info): Add supports for interrupt context that
23230         includes doubleword accumulators and COP0 registers.
23231         (mips_for_each_saved_acc): New function.
23232         (mips_for_each_saved_gpr_and_fpr): Change the function name from
23233         mips_for_each_saved_reg.
23234         (mips_save_reg): Save accumulators.
23235         (mips_kernel_reg_p): A new for_each_rtx callback.
23236         (mips_expand_prologue): Support interrupt handlers.
23237         (mips_restore_reg): Restore accumulators.
23238         (mips_expand_epilogue): Support interrupt handlers.
23239         (mips_can_use_return_insn): Return false for interrupt handlers.
23240         (mips_epilogue_uses): New function.
23241         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
23242         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
23243         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
23244         cop0_move): New instructions.
23245         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
23246         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
23247         defines.
23248         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
23249         New defines.
23250         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
23251         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
23252         interrupt handlers, we use K0 as the temporary register.
23253         (EPILOGUE_USES): Change to a function call.
23254         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
23255         handlers, we use K0 as the temporary register.
23257         * doc/extend.texi (Function Attributes): Document interrupt,
23258         use_shadow_register_set, keep_interrupts_masked,
23259         use_debug_exception_return for MIPS attributes.
23261 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
23263         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
23264         Remove a number of t-files from tmake_file.
23265         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
23266         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
23267         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
23268         target_prototype, not TARGET_PROTOTYPE.
23269         (LINK_OS_GNU_SPEC): Define.
23270         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
23271         and darwin-ldoubdle.c.
23273 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
23275         PR driver/39293
23276         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
23277         (cpp_options): Ditto.
23278         (default_compilers): Ditto.
23279         (display_help): Ditto.
23280         (process_command): Ditto.
23281         (do_spec_1): Ditto.
23282         (set_input): Use lbasename instead of duplicate code.
23283         (save_temps_prefix): New static for -save-temps=obj.
23284         (save_temps_length): Ditto.
23286         * doc/invoke.texi (-save-temps=obj): Document new variant to
23287         -save-temps switch.
23289 2009-04-02  Jeff Law  <law@redhat.com>
23291         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
23292         variable.
23294 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
23296         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
23297         * configure: Regenerated.
23299 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
23301         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
23302         share the argument list.
23304 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
23306         Merge
23308         2009-02-12  Diego Novillo  <dnovillo@google.com>
23310         * varpool.c (debug_varpool): New.
23311         * cgraph.h (debug_varpool): Declare.
23313 2009-04-02  Jan Hubicka  <jh@suse.cz>
23315         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
23316         pass.
23318 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
23320         * config/i386/i386.c (ix86_abi): Move initialization to ...
23321         (override_options): Here.
23323 2009-04-02  Christian Bruel  <christian.bruel@st.com>
23325         * config/sh/sh.c (sh_dwarf_register_span): New function.
23326         (TARGET_DWARF_REGISTER_SPAN): Define.
23327         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
23329 2009-04-02  Ira Rosen  <irar@il.ibm.com>
23331         PR tree-optimization/39595
23332         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
23333         interleaved loads group is not  greater than the SLP group size.
23335 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
23337         * builtins.c (is_builtin_name): New.
23338         (called_as_built_in): Use is_builtin_name.
23339         * tree.h (is_builtin_name): New.
23340         * varasm.c (incorporeal_function_p): Use is_builtin_name
23342 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
23344         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
23346 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
23348         PR c++/26693
23349         * c-decl.c (clone_underlying_type): Move this ...
23350         * c-common.c (set_underlying_type): ... here.
23351         Also, make sure the function properly sets TYPE_STUB_DECL() on
23352         the newly created typedef variant type.
23353         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
23354         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
23355         points.
23357 2009-04-02  Richard Guenther  <rguenther@suse.de>
23359         PR tree-optimization/37221
23360         * tree-flow.h (degenerate_phi_result): Declare.
23361         * tree-ssa-dom.c (degenerate_phi_result): Export.
23362         * tree-scalar-evolution.c (analyze_initial_condition): If
23363         the initial condition is defined by a degenerate PHI node
23364         use the degenerate value.
23366 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
23368         PR rtl-optimization/39588
23369         * combine.c (merge_outer_ops): Do not set the constant when this
23370         is not necessary.
23371         (simplify_shift_const_1): Do not modify it either in this case.
23373 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
23375         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
23376         tuning is deprecated if -mtune value is set to an Itanium1 variant.
23378 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
23380         PR c/29027
23381         * c-lex.c (interpret_float): Default (no suffix) is double.
23383 2009-04-1  Xinliang David Li  <davidxl@google.com>
23385         * config/i386/i386.c (legitimate_constant_p): Recognize
23386         all one vector constant.
23388 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23390         * config/vax/vax.c: Add #includes to silence warnings.
23391         Change #include order to silence two warnings.
23393 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23395         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
23396         (ASM_SPEC): Pass -k to the assembler for PIC code.
23398 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23400         * config.gcc: Add vax-*-linux* to the switch.
23401         * config/vax/linux.h: New file. (TARGET_VERSION,
23402         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
23404 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23406         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
23407         Use predicate macros instead of GET_CODE() == foo.
23408         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
23409         ashlsi3, rotrsi3, <unnamed>): Likewise.
23411 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23413         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
23414         jbbccihi, jbbccisi): Remova trailing whitespace.
23415         * config/vax/constraints.md: Likewise.
23416         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
23417         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
23418         * config/vax/predicates.md: Likewise.
23419         * config/vax/vax.c (print_operand_address, vax_output_int_move,
23420         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
23421         * config/vax/vax.h: Likewise.
23422         * config/vax/vax.md (nonlocal_goto): Likewise.
23424 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23426         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
23427         (indirectable_address_p, adjacent_operands_p): Add spaces around
23428         braces.
23429         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
23431 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23433         * config/vax/vax.c (legitimate_constant_address_p,
23434         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
23435         index_term_p, reg_plus_index_p, legitimate_address_p,
23436         vax_mode_dependent_address_p): Update comments to match functions
23437         modified by the recent int->bool conversion.
23439 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23441         * config/vax/builtins.md: Update copyright message.
23442         * config/vax/constraints.md: Likewise.
23443         * config/vax/netbsd-elf.h: Likewise.
23444         * config/vax/predicates.md: Likewise.
23445         * config/vax/vax-protos.h: Likewise.
23446         * config/vax/vax.c: Likewise.
23447         * config/vax/vax.h: Likewise.
23448         * config/vax/vax.md: Likewise.
23449         * config/vax/vax.opt: Likewise.
23451 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23453         * config/vax/builtins.md (ffssi2, ffssi2_internal,
23454         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
23455         * config/vax/constraints.md (B, R): Likewise.
23456         * config/vax/predicates.md (external_memory_operand,
23457         nonimmediate_addsub_di_operand): Likewise.
23458         * config/vax/vax.c (vax_output_int_add): Likewise.
23459         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
23460         untyped_call): Likewise.
23462 2009-04-01  Matt Thomas  <matt@3am-software.com>
23464         * config/vax/predicates.md: New file.
23465         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
23466         external_const_operand, nonsymbolic_operand, external_memory_operand,
23467         indirect_memory_operand, indexed_memory_operand,
23468         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
23469         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
23470         predicate.
23471         * config/vax/constraints.md: New file.
23472         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
23473         New constraint.
23474         * config/vax/builtins.md: New file.
23475         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
23476         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
23477         jbbccisi): Define.
23478         * config/vax/vax.opt (mqmath): Add option.
23479         * config/vax/vax.md (isfx): Extend with DI.
23480         (VAXintQH, VAXintQHSD): Define.
23481         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
23482         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
23483         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
23484         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
23485         (movdi): Update constraints and use vax_output_int_move().
23486         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
23487         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
23488         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
23489         nonlocal_goto): New.
23490         (mov<mode>): Extend accepted operand types.
23491         (subdi3_old): Rename from subdi3, change update constraints and use
23492         a new implementation.
23493         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
23494         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
23495         MOVE_RATIO, CLEAR_RATIO): Define.
23496         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
23497         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
23498         (PRINT_OPERAND): Redefine using a function instead of inlined code.
23499         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
23500         (split_quadword_operands): Make static and really allow variable
23501         splitting.
23502         (print_operand_address): Update for PIC generation.
23503         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
23504         indexable_address_p, fixup_mathdi_operand,
23505         vax_expand_addsub_di_operands, adjacent_operands_p): New.
23506         (vax_float_literal, legitimate_constant_p,
23507         indirectable_constant_address_p, index_term_p,
23508         reg_plus_index_p): Return bool instead of int.
23509         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
23510         where needed.
23511         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
23512         generation.
23513         (vax_output_conditional_branch): Indent.
23514         (legitimate_constant_address_p, indirectable_constant_address_p,
23515         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
23516         vax_mode_dependent_address_p): Return bool instead of int, update for
23517         PIC generation.
23518         * config/vax/vax-protos.h (legitimate_constant_address_p,
23519         legitimate_constant_p, legitimate_address_p,
23520         vax_mode_dependent_address_p): Change declaration to bool.
23521         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
23522         vax_expand_addsub_di_operands, vax_output_int_subtract,
23523         vax_output_movmemsi): Declare.
23524         (split_quadword_operands, vax_float_literal): Delete declaration.
23525         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
23526         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
23527         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
23528         ASM_OUTPUT_DWARF_PCREL): Define.
23529         (ASM_SPEC): Change definition to allow PIC generation.
23531 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
23533         * doc/sourcebuild.texi: Update front-end requirements.
23535 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
23537         PR target/39226
23538         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
23539         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
23540         (booldi3_internal3): Use boolean_or_operator instead of
23541         boolean_operator.
23543 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
23545         PR c/39605
23546         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
23547         declarator whose size is not an integer constant expression but
23548         folds to an integer constant, then treat it as a constant
23549         subsequently.
23551 2009-04-01  Richard Guenther  <rguenther@suse.de>
23553         * fold-const.c (fold_plusminus_mult_expr): Do not fold
23554         i * 4 + 2 to (i * 2 + 1) * 2.
23556 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
23558         PR c/37772
23559         * c-parser.c (c_parser_asm_statement): Skip until close paren and
23560         return if c_parser_asm_string_literal returned NULL.
23562 2009-04-01  Nick Clifton  <nickc@redhat.com>
23564         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
23565         already defined.
23566         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
23567         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
23568         other typedefs to avoid conflicts with libgcc2.c.  Define labels
23569         to gain 16-bit bit-manipulation functions from libgcc2.c and then
23570         include it.
23571         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
23572         to gain 16-bit trapping arithmetic functions from libgcc2.c and
23573         then include it.
23575 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
23577         * varasm.c (default_function_rodata_section): Declare DOT as
23578         const char*.
23580 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
23581             Andrey Galkin  <agalkin@hypercom.com>
23583         PR/39492
23584         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
23585         Make object_name unique for each process.
23587 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
23589         PR other/39591
23590         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
23591         addressable variables in the parallel that could go out of scope while
23592         running queued tasks.
23594 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
23596         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
23597         (CASE_VALUES_THRESHOLD): Redefine.
23598         * config/avr/avr.c (avr_override_options): Remove initialization of
23599         avr_case_values_threshold variable.
23600         (avr_case_values_threshold): Remove variable. Add new function.
23601         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
23602         * config/avr/avr.opt (mno-tablejump): Remove option.
23603         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
23605 2009-04-01  DJ Delorie  <dj@redhat.com>
23607         * varasm.c (default_function_rodata_section): Don't assume
23608         anything about where the first '.' in the section name is.
23610 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
23612         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
23613         rs6000_emit_stack_tie.
23615 2009-03-31  Ian Lance Taylor  <iant@google.com>
23617         * tree-eh.c (tree_remove_unreachable_handlers): Compare
23618         gimple_code with GIMPLE_RESX, not RESX.
23620 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
23622         * c-common.c (c_get_ident): New.
23623         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
23625 2009-04-01  Ben Elliston  <bje@au.ibm.com>
23627         * config/rs6000/sysv4.opt (msdata): Improve option description.
23629 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
23631         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
23632         (divdf3_internal_lat): Remove.
23633         (divxf3_internal_lat): Remove.
23634         (divxf3_internal_thr): Remove.
23635         (divxf): Use divxf3_internal.
23636         * config/ia64/div.md (divsf3_internal_lat): New.
23637         (divdf3_internal_lat): New.
23638         (divxf3_internal): New.
23640 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
23642         PR c/448
23643         * Makefile.in (USE_GCC_STDINT): Define.
23644         (stmp-int-hdrs): Install stdint.h if applicable.
23645         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
23646         if known.
23647         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
23648         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
23649         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
23650         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
23651         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
23652         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
23653         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
23654         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
23655         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
23656         (c_common_nodes_and_builtins): Initialize
23657         underlying_wchar_type_node.  Do not initialize
23658         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
23659         nodes for new types.
23660         (c_stddef_cpp_builtins): Define macros for new types.
23661         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
23662         Remove.
23663         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
23664         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
23665         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
23666         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
23667         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
23668         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
23669         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
23670         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
23671         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
23672         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
23673         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
23674         int16_type_node, int32_type_node, int64_type_node,
23675         uint8_type_node, uint16_type_node, c_uint32_type_node,
23676         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
23677         int_least32_type_node, int_least64_type_node,
23678         uint_least8_type_node, uint_least16_type_node,
23679         uint_least32_type_node, uint_least64_type_node,
23680         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
23681         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
23682         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
23683         uintptr_type_node): Define.
23684         * c-cppbuiltin.c (builtin_define_constants,
23685         builtin_define_type_minmax): New.
23686         (builtin_define_stdint_macros): Define more macros.
23687         (c_cpp_builtins): Define more limit macros.
23688         (type_suffix): New.
23689         (builtin_define_type_max): Define in terms of
23690         builtin_define_type_minmax.  Remove is_long parameter.  All
23691         callers changed.
23692         * config.gcc (use_gcc_stdint): Define.
23693         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
23694         Add newlib-stdint.h for generic targets.
23695         * config/glibc-stdint.h, config/newlib-stdint.h,
23696         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
23697         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
23698         * config/score/score.h (UINTPTR_TYPE): Define.
23699         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
23700         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
23701         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
23702         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
23703         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
23704         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
23705         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
23706         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
23707         * config/spu/spu.h (STDINT_LONG32): Define.
23708         * configure.ac (use_gcc_stdint): Substitute.
23709         * configure: Regenerate.
23710         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
23711         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
23712         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
23713         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
23714         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
23715         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
23716         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
23717         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
23718         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
23719         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
23720         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
23721         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
23722         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
23723         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
23724         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
23725         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
23726         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
23727         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
23728         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
23729         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
23730         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
23731         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
23732         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
23733         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
23734         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
23735         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
23736         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
23737         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
23738         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
23740 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
23742         * loop-iv.c (suitable_set_for_replacement): Renamed from
23743         simplify_using_assignment; changed to return bool and to accept new
23744         args DEST and SRC.  Return true iff we find a source/destination pair
23745         that can be used to make a replacement, and fill SRC and DEST if so.
23746         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
23747         changed.
23748         (simplify_using_initial_values): Deal with altered regs here and track
23749         more precisely the effect they have on the validity of our expression.
23751         * loop-iv.c (simplify_using_condition): A condition of the form
23752         (EQ REG CONST) can be used to simply make a substitution.
23753         (simplify_using_initial_values): Keep track of conditions we have seen
23754         and keep using them to simplify new expressions, while applying the
23755         same substitutions to them as to the expression.
23757         * simplify-rtx.c (simplify_relational_operation_1): Simplify
23758         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
23759         GEU/LTU reversed.
23761         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
23762         changed.  Use this when trying to improve the upper bound.
23763         Generate the comparison by using simplify_gen_relational.
23765         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
23767         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
23768         functions.
23769         (simplify_using_assignment, simplify_using_initial_values): Call
23770         replace_in_expr to make replacements.  Call replace_single_def_regs
23771         once on the initial version of the expression.
23773 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23775         PR target/27237
23776         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
23778 2009-03-31  Richard Guenther  <rguenther@suse.de>
23780         PR middle-end/31029
23781         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
23782         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
23784 2009-03-31  Richard Guenther  <rguenther@suse.de>
23786         * tree.h (div_if_zero_remainder): Declare.
23787         * fold-const.c (div_if_zero_remainder): Export.
23788         * tree-ssa-forwprop.c
23789         (forward_propagate_addr_into_variable_array_index): Handle
23790         constant array index addition outside of the variable index.
23792 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
23794         PR target/39592
23795         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
23796         define_splits, floatunssi<mode>2): Require x87 conversions from
23797         DImode to be permitted.
23799 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
23801         PR preprocessor/15638
23802         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
23804 2009-03-31  Richard Guenther  <rguenther@suse.de>
23806         PR middle-end/23401
23807         PR middle-end/27810
23808         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
23809         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
23810         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
23811         a separate statement.
23812         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
23813         (lookup_tmp_var): Likewise.
23814         (is_gimple_formal_tmp_or_call_rhs): Remove.
23815         (is_gimple_reg_or_call_rhs): Rename to ...
23816         (is_gimple_reg_rhs_or_call): ... this.
23817         (is_gimple_mem_or_call_rhs): Rename to ...
23818         (is_gimple_mem_rhs_or_call): ... this.
23819         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
23820         DECL_GIMPLE_REG_P only if is_formal is true.
23821         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
23822         for non-proper post-modify expression gimplification.
23823         (gimplify_self_mod_expr): For post-modify expressions gimplify
23824         the lvalue to a minimal lvalue.
23825         (rhs_predicate_for): Remove formal temp case.
23826         (gimplify_modify_expr_rhs): Likewise.
23827         (gimplify_addr_expr): Use is_gimple_reg.
23828         (gimplify_expr): Remove formal temp cases.
23829         (gimple_regimplify_operands): Likewise.
23830         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
23831         and FILTER_EXPR like constants.
23832         * gimple.c (walk_gimple_op): Fix val_only initialization, use
23833         is_gimple_reg.
23834         (is_gimple_formal_tmp_rhs): Remove.
23835         (is_gimple_reg_rhs): Remove special casing.
23836         (is_gimple_mem_rhs): Fix.
23837         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
23838         (is_gimple_formal_tmp_var): Remove.
23839         (is_gimple_formal_tmp_reg): Likewise.
23840         (is_gimple_min_lval): Allow invariant component ref parts.
23841         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
23842         is_gimple_formal_tmp_reg): Remove declarations.
23843         * tree-cfg.c (verify_expr): Verify that variables with address
23844         taken do not have DECL_GIMPLE_REG_P set.
23845         * tree-mudflap.c (mf_build_check_statement_for): Use
23846         force_gimple_operand instead of gimplify_expr.
23848 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
23850         * modulo-sched.c (sms_schedule_by_order): Pass the actual
23851         schedulable rows to compute_split_row.
23853 2009-03-31  Ben Elliston  <bje@au.ibm.com>
23855         PR target/31635
23856         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
23857         OPT_mvrsave.
23859 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
23861         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
23862         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
23863         * configure: Regenerate.
23864         * config.in: Regenerate.
23865         * config/rs6000/rs6000.opt (mtls-markers): Add.
23866         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
23867         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
23868         (tls_ld_aix, tls_ld_sysv): Likewise.
23869         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
23870         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
23872 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
23874         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
23876 2009-03-30  Jan Hubicka  <jh@suse.cz>
23878         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
23879         out of RESX.
23880         (tree_remove_unreachable_handlers): Cleanup EH predecestor
23881         detection and label handling.
23883 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
23885         * ira-int.h (ira_allocno): Rename left_conflicts_num to
23886         left_conflicts_size.
23887         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
23888         ALLOCNO_LEFT_CONFLICTS_SIZE.
23890         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
23891         remove_allocno_from_bucket_and_push,
23892         allocno_spill_priority_compare, push_allocnos_to_stack,
23893         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
23894         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
23895         (setup_allocno_left_conflicts_num): Ditto.  Rename to
23896         setup_allocno_left_conflicts_size.
23897         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
23898         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
23899         setup_allocno_left_conflicts_size instead of
23900         setup_allocno_left_conflicts_num.
23902         * ira-build.c (ira_create_allocno): Use
23903         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
23904         ALLOCNO_LEFT_CONFLICTS_NUM.
23906 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
23908         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
23909         instead of DF_LR_OUT.
23911         * ira-lives.c (process_bb_node_lives): Ditto.
23913         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
23914         instead of DF_LR_{OUT,IN}.
23916         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
23918         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
23920 2009-03-30  Jan Hubicka  <jh@suse.cz>
23922         * except.c (label_to_region_map): Fix thinko.
23924 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
23926         PR middle-end/38237
23927         * tree.h (tree_find_value): New declaration.
23928         * tree.c (tree_find_value): New function.
23929         * varasm.c (assemble_external): Avoid duplicate entries on lists.
23931 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
23933         PR debug/39563
23934         * c-decl.c (struct c_binding): Add locus field.
23935         (bind): Add locus argument, set locus field from it.
23936         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
23937         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
23938         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
23939         implicitly_declare, undeclared_variable, lookup_label,
23940         declare_label, c_make_fname_decl, c_builtin_function,
23941         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
23942         bind callers.
23944 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
23946         PR target/38781
23947         * config/i386/i386.c (classify_argument): Check total size of
23948         structure.
23950 2009-03-30  Martin Jambor  <mjambor@suse.cz>
23952         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
23953         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
23954         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
23955         respectively.
23957         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
23958         seen_variable_array_ref while also traversing a union.
23960         * tree-inline.c (optimize_inline_calls): Do not call
23961         cgraph_node_remove_callees.
23962         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
23963         (pass_remove_cgraph_callee_edges): New variable.
23964         * passes.c (init_optimization_passes): Add
23965         pass_remove_cgraph_callee_edges after early inlining and before all
23966         late intraprocedural passes.
23968         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
23970 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
23972         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
23973         Fix typos in names.
23975 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
23977         * combine.c (simplify_comparison): Use have_insn_for.
23978         * dojump.c (do_jump): Likewise.
23980 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
23982         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
23983         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
23984         sparc_compare_op0 like sparc_compare_emitted used to be handled.
23985         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
23986         instead of sparc_compare_emitted.
23987         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
23988         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
23989         instead of sparc_compare_emitted.
23991 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
23993         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
23994         enter/exit cfglayout mode.
23995         (pass_partition_block): Require it.
23996         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
23997         (combine_instructions): Track basic blocks instead of labels.
23998         (update_cfg_for_uncondjump): New.
23999         (try_combine): Use it.  Update jumps after rescanning.
24000         (pass_combine): Require PROP_cfglayout.
24001         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
24003 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24005         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
24006         Provide/destroy PROP_cfglayout respectively.
24007         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
24008         * tree-pass.h (PROP_cfglayout): New.
24010 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24012         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
24013         fold_convert_const_fixed_from_fixed,
24014         fold_convert_const_fixed_from_int,
24015         fold_convert_const_fixed_from_real, fold_negate_const): Do not
24016         set TREE_CONSTANT_OVERFLOW.
24017         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
24018         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
24020 2009-03-30  Ira Rosen  <irar@il.ibm.com>
24022         * tree-vect-loop-manip.c: New file.
24023         * tree-vectorizer.c: Update documentation and included files.
24024         (vect_loop_location): Make extern.
24025         (rename_use_op): Move to tree-vect-loop-manip.c
24026         (rename_variables_in_bb, rename_variables_in_loop,
24027         slpeel_update_phis_for_duplicate_loop,
24028         slpeel_update_phi_nodes_for_guard1,
24029         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
24030         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
24031         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
24032         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
24033         find_loop_location): Likewise.
24034         (new_stmt_vec_info): Move to tree-vect-stmts.c.
24035         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
24036         get_vectype_for_scalar_type, vect_is_simple_use,
24037         supportable_widening_operation, supportable_narrowing_operation):
24038         Likewise.
24039         (bb_in_loop_p): Move to tree-vect-loop.c.
24040         (new_loop_vec_info, destroy_loop_vec_info,
24041         reduction_code_for_scalar_code, report_vect_op,
24042         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
24043         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
24044         (vect_supportable_dr_alignment): Likewise.
24045         * tree-vectorizer.h (tree-data-ref.h): Include.
24046         (vect_loop_location): Declare.
24047         Reorganize function declarations according to the new file structure.
24048         * tree-vect-loop.c: New file.
24049         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
24050         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
24051         * tree-vect-data-refs.c: New file.
24052         * tree-vect-patterns.c (timevar.h): Don't include.
24053         * tree-vect-stmts.c: New file.
24054         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
24055         tree-vect-slp.c, tree-vect-loop.c.
24056         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
24057         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
24058         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
24059         (tree-vect-analyze.o): Remove.
24060         (tree-vect-transform.o): Likewise.
24061         (tree-vect-data-refs.o): Add rule.
24062         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
24063         tree-vect-slp.o): Likewise.
24064         (tree-vect-patterns.o): Remove redundant dependencies.
24065         (tree-vectorizer.o): Likewise.
24066         * tree-vect-slp.c: New file.
24068 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24070         * optc-gen.awk: Warn if an option flag has multiple different
24071         help strings.
24073 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
24075         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
24076         -floop-block): Document dependences on PPL, CLooG and Graphite.
24078 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
24080         PR rtl-optimization/323
24081         * c-common.c (c_fully_fold, convert_and_check,
24082         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
24083         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
24084         * c-common.def (EXCESS_PRECISION_EXPR): New.
24085         * c-cppbuiltin.c (builtin_define_float_constants): Define
24086         constants with enough digits for long double.
24087         * c-lex.c (interpret_float): Interpret constant with excess
24088         precision where appropriate.
24089         * c-opts.c (c_common_post_options): Set
24090         flag_excess_precision_cmdline.  Give an error for
24091         -fexcess-precision=standard for C++ for processors where the
24092         option is significant.
24093         * c-parser.c (c_parser_conditional_expression): Handle excess
24094         precision in condition.
24095         * c-typeck.c (convert_arguments): Handle arguments with excess
24096         precision.
24097         (build_unary_op): Move excess precision outside operation.
24098         (build_conditional_expr): Likewise.
24099         (build_compound_expr): Likewise.
24100         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
24101         (build_modify_expr): Handle excess precision in RHS.
24102         (convert_for_assignment): Handle excess precision in converted
24103         value.
24104         (digest_init, output_init_element, process_init_element): Handle
24105         excess precision in initializer.
24106         (c_finish_return): Handle excess precision in return value.
24107         (build_binary_op): Handle excess precision in operands and add
24108         excess precision as needed for operation.
24109         * common.opt (-fexcess-precision=): New option.
24110         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
24111         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
24112         For standard excess precision, output explicit conversion to and
24113         truncation from XFmode.
24114         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
24115         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
24116         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
24117         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
24118         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
24119         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
24120         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
24121         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
24122         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
24123         define_splits, sqrt<mode>2): Disable where appropriate for
24124         standard excess precision.
24125         * convert.c (convert_to_real): Do not shorten arithmetic to type
24126         for which excess precision would be used.
24127         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
24128         * doc/invoke.texi (-fexcess-precision=): Document option.
24129         (-mfpmath=): Correct index entry.
24130         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
24131         flag_excess_precision): New.
24132         * langhooks.c (lhd_post_options): Set
24133         flag_excess_precision_cmdline.
24134         * opts.c (common_handle_option): Handle -fexcess-precision=.
24135         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
24136         init_excess_precision): New.
24137         (lang_dependent_init_target): Call init_excess_precision.
24138         * tree.c (excess_precision_type): New.
24139         * tree.h (excess_precision_type): Declare.
24141 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
24143         PR c/35235
24144         * c-typeck.c (build_component_ref): Do not copy qualifiers from
24145         non-lvalue to component.
24147 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
24149         PR preprocessor/34695
24150         * Makefile.in (c-opts.o): Depend on c-tree.h.
24151         * c-common.c: Move down include of diagnostic.h.
24152         (done_lexing, c_cpp_error): New.
24153         * c-common.h (done_lexing): Declare.
24154         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
24155         (parse_in).
24156         * c-opts.c: Include c-tree.h.
24157         (c_common_init_options): Set preprocessor error callback.
24158         (c_common_handle_option): Do not set preprocessor
24159         inhibit_warnings, warnings_are_errors, warn_system_headers,
24160         pedantic_errors or inhibit_warnings flags.
24161         (c_common_post_options): Do not check cpp_errors (parse_in).
24162         (c_common_finish): Do not output dependencies if there were
24163         errors.  Do not check return value of cpp_finish.
24164         * c-ppoutput.c (pp_file_change): Set input_location.
24165         * c-tree.h (c_cpp_error): Declare.
24166         * diagnostic.c (diagnostic_set_info_translated): Also initialize
24167         override_column.
24168         (diagnostic_build_prefix): Check override_column.
24169         * diagnostic.h (diagnostic_info): Add override_column field.
24170         (diagnostic_override_column): Define.
24172 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
24174         * c-common.c (c_expand_expr, c_staticp): Remove.
24175         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
24176         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
24177         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
24178         * c-gimplify.c (gimplify_compound_literal_expr,
24179         optimize_compound_literals_in_ctor): Remove.
24180         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
24181         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
24182         * c-semantics.c (emit_local_var): Remove.
24184         * langhooks-def.h (lhd_expand_expr): Remove.
24185         * langhooks.c (lhd_expand_expr): Remove.
24186         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
24188         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
24189         handling from c-semantics.c; don't call into langhook.
24190         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
24191         * gimplify.c (gimplify_compound_literal_expr,
24192         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
24193         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
24194         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
24195         as was done in c-gimplify.c.
24196         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
24197         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
24198         Move from c-common.h.
24199         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
24201         * tree.c (staticp): Do not call langhook.
24202         * langhooks.c (lhd_staticp): Delete.
24203         * langhooks-def.h (lhd_staticp): Delete prototype.
24204         (LANG_HOOKS_STATICP): Delete.
24205         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
24207         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
24208         instead of DECL_STMTs.
24210 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
24212         PR c/456
24213         PR c/5675
24214         PR c/19976
24215         PR c/29116
24216         PR c/31871
24217         PR c/35198
24218         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
24219         void_type_node.
24220         (fold_call_expr): Return a NOP_EXPR from folding rather than the
24221         contained expression.
24222         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
24223         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
24224         conditional expressions for C.
24225         (decl_constant_value_for_optimization): Move from
24226         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
24227         whether optimizing and that the expression is a VAR_DECL not of
24228         array type instead of doing such checks in the caller.  Do not
24229         check pedantic.  Call gcc_unreachable for C++.
24230         * c-common.def (C_MAYBE_CONST_EXPR): New.
24231         * c-common.h (c_fully_fold, c_save_expr,
24232         decl_constant_value_for_optimization): New prototypes.
24233         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
24234         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
24235         EXPR_INT_CONST_OPERANDS): Define.
24236         * c-convert.c (convert): Strip nops from expression.
24237         * c-decl.c (groktypename): Take extra parameters expr and
24238         expr_const_operands.  Update call to grokdeclarator.
24239         (start_decl): Update call to grokdeclarator.  Add statement for
24240         expressions used in type of decl.
24241         (grokparm): Update call to grokdeclarator.
24242         (push_parm_decl): Update call to grokdeclarator.
24243         (build_compound_literal): Add parameter non_const and build a
24244         C_MAYBE_COSNT_EXPR if applicable.
24245         (grokdeclarator): Take extra parameters expr and
24246         expr_const_operands.  Track expressions used in declaration
24247         specifiers and declarators.  Fold array sizes and track whether
24248         they are constant expressions and whether they are integer
24249         constant expressions.
24250         (parser_xref_tag): Set expr and expr_const_operands fields in
24251         return value.
24252         (grokfield): Update call to grokdeclarator.
24253         (start_function): Update call to grokdeclarator.
24254         (build_null_declspecs): Set expr and expr_const_operands fields in
24255         return value.
24256         (declspecs_add_type): Handle expressions in typeof specifiers.
24257         * c-parser.c (c_parser_declspecs): Set expr and
24258         expr_const_operands fields for declaration specifiers.
24259         (c_parser_enum_specifier): Likewise.
24260         (c_parser_struct_or_union_specifier): Likewise.
24261         (c_parser_typeof_specifier): Likewise.  Update call to
24262         groktypename.  Fold expression as needed.  Return expressions with
24263         type instead of adding statements.
24264         (c_parser_attributes): Update calls to c_parser_expr_list.
24265         (c_parser_statement_after_labels): Fold expression before passing
24266         to objc_build_throw_stmt.
24267         (c_parser_condition): Fold expression.
24268         (c_parser_asm_operands): Fold expression.
24269         (c_parser_conditional_expression): Use c_save_expr.  Update call
24270         to build_conditional_expr.
24271         (c_parser_alignof_expression): Update call to groktypename.
24272         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
24273         original_code.  Fold expression argument of va_arg.  Create
24274         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
24275         argument to va_arg.  Update calls to groktypename.  Fold array
24276         index for offsetof.  Verify that first argument to
24277         __builtin_choose_expr has integer type.
24278         (c_parser_postfix_expression_after_paren_type): Update calls to
24279         groktypename and build_compound_literal.  Handle expressions with
24280         side effects in type name.
24281         (c_parser_postfix_expression_after_primary): Update call to
24282         c_parser_expr_list.  Set original_code for calls to
24283         __builtin_constant_p.
24284         (c_parser_expr_list): Take extra parameter fold_p.  Fold
24285         expressions if requested.
24286         (c_parser_objc_type_name): Update call to groktypename.
24287         (c_parser_objc_synchronized_statement): Fold expression.
24288         (c_parser_objc_receiver): Fold expression.
24289         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
24290         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
24291         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
24292         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
24293         (struct c_typespec): Add elements expr and expr_const_operands.
24294         (struct c_declspecs): Add elements expr and expr_const_operands.
24295         (groktypename, build_conditional_expr, build_compound_literal):
24296         Update prototypes.
24297         (in_late_binary_op): Declare.
24298         * c-typeck.c (note_integer_operands): New function.
24299         (in_late_binary_op): New variable.
24300         (decl_constant_value_for_broken_optimization): Move to c-common.c
24301         and rename to decl_constant_value_for_optimization.
24302         (default_function_array_conversion): Do not strip nops.
24303         (default_conversion): Do not call
24304         decl_constant_value_for_broken_optimization.
24305         (build_array_ref): Do not fold result.
24306         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
24307         result when operand is a VLA.
24308         (c_expr_sizeof_type): Update call to groktypename.  Handle
24309         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
24310         result when operand names a VLA type.
24311         (build_function_call): Update call to build_compound_literal.
24312         Only fold result for calls to __builtin_* functions.  Strip
24313         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
24314         the function designator.
24315         (convert_arguments): Fold arguments.  Update call to
24316         convert_for_assignment.
24317         (build_unary_op): Handle increment and decrement of
24318         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
24319         decrement earlier.  Fold operand of increment and decrement.
24320         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
24321         built for integer operand.  Wrap returns that are INTEGER_CSTs
24322         without being integer constant expressions or that have integer
24323         constant operands without being INTEGER_CSTs.
24324         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
24325         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
24326         result is an integer constant expression or can be used in
24327         unevaluated parts of one and avoid folding and wrap as
24328         appropriate.  Fold operands before possibly doing -Wsign-compare
24329         warnings.
24330         (build_compound_expr): Wrap result for C99 if operands can be used
24331         in integer constant expressions.
24332         (build_c_cast): Update call to digest_init.  Do not ignore
24333         overflow from casting floating-point constants to integers.  Wrap
24334         results that could be confused with integer constant expressions,
24335         null pointer constants or floating-point constants.
24336         (c_cast_expr): Update call to groktypename.  Handle expressions
24337         included in type name.
24338         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
24339         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
24340         Update calls to convert_for_assignment.
24341         (convert_for_assignment): Take new parameter
24342         null_pointer_constant.  Do not strip nops or call
24343         decl_constant_value_for_broken_optimization.  Set
24344         in_late_binary_op for conversions to boolean.
24345         (store_init_value): Update call to digest_init.
24346         (digest_init): Take new parameter null_pointer_constant.  Do not
24347         call decl_constant_value_for_broken_optimization.  pedwarn for
24348         initializers not constant expressions.  Update calls to
24349         convert_for_assignment.
24350         (constructor_nonconst): New.
24351         (struct constructor_stack): Add nonconst element.
24352         (really_start_incremental_init, push_init_level, pop_init_level):
24353         Handle constructor_nonconst and nonconst element.
24354         (set_init_index): Call constant_expression_warning for array
24355         designators.
24356         (output_init_element): Fold value.  Set constructor_nonconst as
24357         applicable.  pedwarn for initializers not constant expressions.
24358         Update call to digest_init.  Call constant_expression_warning
24359         where constant initializers are required.
24360         (process_init_element): Use c_save_expr.
24361         (c_finish_goto_ptr): Fold expression.
24362         (c_finish_return): Fold return value.  Update call to
24363         convert_for_assignment.
24364         (c_start_case): Fold switch expression.
24365         (c_process_expr_stmt): Fold expression.
24366         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
24367         ensure statement expression is not evaluated in constant expression.
24368         (build_binary_op): Track whether results are integer constant
24369         expressions or may occur in such, disable folding and wrap results
24370         as applicable.  Fold operands for -Wsign-compare warnings unless
24371         in_late_binary_op.
24372         (c_objc_common_truthvalue_conversion): Handle results folded to
24373         integer constants that are not integer constant expressions.
24374         * doc/extend.texi: Document when typeof operands are evaluated,
24375         that condition of __builtin_choose_expr is an integer constant
24376         expression, and more about use of __builtin_constant_p in
24377         initializers.
24379 2009-03-29  Richard Guenther  <rguenther@suse.de>
24381         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
24382         propagate addresses of array references.
24384 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
24386         * regmove.c (perhaps_ends_bb_p): Remove.
24387         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
24388         from INSN and check that the main loop stays within that basic block.
24389         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
24390         (regmove_forward_pass): Split out from regmove_optimize.  Use
24391         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
24392         (regmove_backward_pass): Split out from regmove_optimize.  Use
24393         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
24394         (regmove_optimize): Simplify.
24396 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
24398         PR target/39545
24399         * config/i386/i386.c (classify_argument): Ignore flexible array
24400         member in struct and warn ABI change.
24402 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
24404         * config/i386/i386-protos.h (ix86_agi_dependent): New.
24406         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
24407         (ix86_adjust_cost): Updated.
24409 2009-03-29  Jan Hubicka  <jh@suse.cz>
24411         PR middle-end/28850
24412         * tree-pass.h (pass_cleanup_eh): New function.
24413         (remove_unreachable_regions): Break code handling RTL
24414         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
24415         that can not be reached by runtime.
24416         (can_be_reached_by_runtime): New function.
24417         (label_to_region_map): New function.
24418         (num_eh_regions): New function.
24419         (rtl_remove_unreachable_regions): New function.
24420         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
24421         (remove_eh_region): New function.
24422         * except.h: Include sbitmap and vecprim.
24423         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
24424         num_eh_regions): Declare.
24425         * passes.c (init_optimization_passes): Schedule cleanup_eh.
24426         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
24427         * tree-eh.c (tree_remove_unreachable_handlers): New function.
24428         (tree_empty_eh_handler_p): New function.
24429         (cleanup_empty_eh): New function.
24430         (cleanup_eh): New function.
24431         (pass_cleanup_eh): New function.
24433 2009-03-29  Jan Hubicka  <jh@suse.cz>
24435         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
24436         for removed regions.
24438 2009-03-29  Jan Hubicka  <jh@suse.cz>
24440         * except.c (dump_eh_tree): Dump all datastructures.
24442 2009-03-29  Jan Hubicka  <jh@suse.cz>
24444         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
24445         (duplicate_eh_regions_1): Likewise.
24446         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
24447         vector; call EH verification.
24448         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
24449         Be ready for region being removed.
24451 2009-03-29  Jan Hubicka  <jh@suse.cz>
24453         * bitmap.c (bitmap_last_set_bit): New function.
24454         * bitmap.h (bitmap_last_set_bit): Declare.
24456 2009-03-29  David Ayers  <ayers@fsfe.org>
24458         PR objc/27377
24459         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
24460         by calling objc_compare_types and surpress warnings about
24461         incompatible C pointers that are compatible ObjC pointers.
24463 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
24465         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
24466         call initialize_inline_failed.
24467         (initialize_inline_failed): Move it from here ...
24468         * cgraph.c (initialize_inline_failed): ... to here.
24469         (cgraph_create_edge): Call initialize_inline_failed rather than
24470         setting inline_failed directly.
24472 2009-03-29  Ben Elliston  <bje@au.ibm.com>
24474         PR target/32542
24475         * sysv4.opt (msdata): Improve comment.
24476         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
24477         * sysv4.h (SVR4_ASM_SPEC): Likewise.
24479 2009-03-29  Ben Elliston  <bje@au.ibm.com>
24481         PR target/30451
24482         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
24483         load and store attributes.
24485 2009-03-29  Ben Elliston  <bje@au.ibm.com>
24487         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
24488         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
24489         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
24490         * doc/extend.texi (X86 Built-in Functions): Add index entries for
24491         __builtin_infq and __builtin_huge_valq.
24493 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
24495         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
24496         atmega8m1 devices.
24497         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
24498         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
24500 2009-03-28  Xinliang David Li  <davidxl@google.com>
24502         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
24503         (do_dbg_cnt): New function.
24505 2009-03-28  Jan Hubicka  <jh@suse.cz>
24507         Merge from pretty-ipa:
24509         2009-03-27  Jan Hubicka  <jh@suse.cz>
24511         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
24512         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
24513         * passes.c (function_called_by_processed_nodes_p): New.
24514         * ipa-pure-const.c (check_call): Fix handling of operands.
24515         (analyze_function): Dump debug output for skipped bodies.
24516         (local_pure_const): Use function_called_by_processed_nodes_p.
24517         * dwarf2out.c (reference_to_unused): Use output.
24518         * passes.c (do_per_function_toporder): Likewise.
24520         2008-11-12  Jan Hubicka  <jh@suse.cz>
24522         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
24523         * ipa-pure-const.c (funct_state_d): Add can throw field; make
24524         state_set_in_source enum
24525         (check_decl): Ignore memory tags; do not set fake looping flags;
24526         dump diagnostics.
24527         (check_operand, check_tree, check_rhs_var, check_lhs_var,
24528         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
24529         (check_call, analyze_function): Rewrite.
24530         (check_stmt): New.
24531         (add_new_function): Update call of analyze_function.
24532         (generate_summary): Add call of analyze_function.
24533         (propagate): Propagate can_throw; handle state_set_in_source correctly.
24534         (local_pure_const): New function.
24535         (pass_local_pure_const): New pass.
24536         * ipa-inline.c (inline_transform): Set after_inlining.
24537         * tree-eh.c (stmt_can_throw_external): New.
24538         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
24539         work with aliasing built.
24540         * tree-flow.h (stmt_can_throw_external): New.
24541         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
24542         and local pure/const pass in early and late optimization queue.
24544 2009-03-28  Martin Jambor  <mjambor@suse.cz>
24546         * fold-const.c (get_pointer_modulus_and_residue): New parameter
24547         allow_func_align.
24548         (fold_binary): Allow function decl aligment consideration is the
24549         second argument is integer constant one.
24550         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
24551         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
24552         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
24554 2009-03-28  Jan Hubicka  <jh@suse.cz>
24556         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
24557         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
24558         * function.h (rtl_data): Add nothrow flag.
24559         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
24560         set DECL_NOTHROW for AVAILABLE functions.
24562 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
24564         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
24565         following vector keyword has expansion starting with pixel or bool
24566         keyword, expand vector to __vector and pixel or bool to __pixel or
24567         __bool.
24569         PR c++/39554
24570         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
24571         warn_if_disallowed_function_p): Removed.
24572         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
24573         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
24574         warning_if_disallowed_function_p.
24575         * flags.h (warn_if_disallowed_function_p,
24576         warn_disallowed_functions): Removed.
24577         * common.opt (Wdisallowed-function-list=): Removed.
24578         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
24580 2009-03-28  Richard Guenther  <rguenther@suse.de>
24582         PR tree-optimization/38723
24583         * tree-ssa-pre.c (compute_avail): Add all default definitions to
24584         the entry block.
24586 2009-03-28  Jan Hubicka  <jh@suse.cz>
24588         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
24589         test introduced by my previous patch.
24591 2009-03-28  Richard Guenther  <rguenther@suse.de>
24593         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
24594         the PHIs value undefined.
24596 2009-03-28  Jan Hubicka  <jh@suse.cz>
24598         * tree-pass.h (pass_fixup_cfg): New pass.
24599         * ipa-inline.c (inline_transform): Set
24600         always_inline_functions_inlined/after_inlining.
24601         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
24602         (pass_fixup_cfg): New pass.
24603         * passes.c (init_optimization_passes): Add fixup_cfg.
24605 2009-03-28  Richard Guenther  <rguenther@suse.de>
24607         PR tree-optimization/38458
24608         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
24609         argument use the arguments copy-of value.
24611 2009-03-28  Richard Guenther  <rguenther@suse.de>
24613         PR tree-optimization/38180
24614         * tree-ssa-ccp.c (get_default_value): Simplify.
24615         (likely_value): Likewise.
24616         (surely_varying_stmt_p): Properly handle VOP case.
24617         (ccp_initialize): Likewise.
24618         (ccp_fold): Handle propagating through *&.
24619         (fold_const_aggregate_ref): Also handle decls.
24621 2009-03-28  Jan Hubicka  <jh@suse.cz>
24623         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
24624         * cgraph.h (cgraph_node): Likewise.
24625         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
24626         (cgraph_reset_node): Use process flag.
24627         (cgraph_mark_functions_to_output): Likewise.
24628         (cgraph_expand_function): Likewise.
24629         (cgraph_expand_all_functions): Likewise.
24630         (cgraph_output_in_order): Likewise.
24631         * dwarf2out.c (reference_to_unused): Likewise.
24632         * passes.c do_per_function_toporder): Likewise.
24634 2009-03-28  Jan Hubicka  <jh@suse.cz>
24636         Bring from lto-branch:
24638         2008-09-03  Doug Kwan  <dougkwan@google.com>
24640         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
24641         enums instead of reason strings.
24642         * cgraph.c (cgraph_create_edge): Same.
24643         (cgraph_inline_failed_string): New function.
24644         * cgraph.h (cgraph_inline_failed_t): New enum type.
24645         (cgraph_inline_failed_string): New prototype.
24646         (struct cgraph_edge): Change type of INLINED_FAILED from constant
24647         char pointer to cgraph_inline_failed_t.
24648         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
24649         (cgraph_default_inline_p): Ditto.
24650         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
24651         to cgraph_inline_failed_t pointer.
24652         * cif-code.def: New file.
24653         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
24654         reason string.
24655         (cgraph_check_inline_limits): Change type of REASON to pointer to
24656         cgraph_inline_failed_t.  Replace reason strings with enums.
24657         (cgraph_default_inline_p): Ditto.
24658         (cgraph_recursive_inlining_p): Ditto.
24659         (update_caller_keys): Change type of FAILED_REASON to
24660         cgraph_inline_failed_t.
24661         (cgraph_set_inline_failed): Change type of REASON to pointer to
24662         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
24663         convert enums to strings for text output.
24664         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
24665         to be of type cgraph_inline_failed_t.  Replace reason strings with
24666         enums.  Call cgraph_inline_failed_string to covert enums
24667         to strings for text output.
24668         (cgraph_decide_inlining): Replace reason strings with enums.
24669         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
24670         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
24671         for text output.
24672         * tree-inline.c (expand_call_inline): Change type of REASON
24673         to cgraph_inline_failed_t.  Replace reason strings with enums.
24674         Call cgraph_inline_failed_string for text output.
24675         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
24676         (cgraph.o): Ditto.
24678 2009-03-28  Jan Hubicka  <jh@suse.cz>
24680         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
24681         cgraph_clone_node): Remove master clone handling.
24682         (cgraph_is_master_clone, cgraph_master_clone): Remove.
24683         * cgraph.h (master_clone): Remove.
24684         (cgraph_is_master_clone, cgraph_master_clone): Remove.
24685         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
24686         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
24688 2009-03-28  Jan Hubicka  <jh@suse.cz>
24690         * cgraph.c (cgraph_function_body_availability): Functions declared
24691         inline are always safe to assume that it is not going to be replaced.
24693 2009-03-28  Richard Guenther  <rguenther@suse.de>
24695         PR tree-optimization/38513
24696         * tree-ssa-pre.c (eliminate): Remove redundant stores.
24697         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
24698         EXC_PTR_EXPR and FILTER_EXPR.
24699         (get_ref_from_reference_ops): Likewise.
24701 2009-03-28  Richard Guenther  <rguenther@suse.de>
24703         PR tree-optimization/38968
24704         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
24705         Use FLOOR_MOD_EXPR to compute misalignment.
24707 2009-03-28  Richard Guenther  <rguenther@suse.de>
24709         PR tree-optimization/37795
24710         * tree.h (combine_comparisons): Declare.
24711         * fold-const.c (combine_comparisons): Export.
24712         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
24713         comparisons.
24714         (ifcombine_iforif): Use combine_comparisons.
24716 2009-03-28  Jan Hubicka  <jh@suse.cz>
24718         * tree-eh.c (inlinable_call_p): New function.
24719         (make_eh_edges): Use it.
24720         (verify_eh_edges): Use it.
24721         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
24722         * except.c (reachable_next_level): Add inlinable_function argument
24723         (sjlj_find_directly_reachable_regions): Update.
24724         (add_reachable_handler): Do not set saw_any_handlers.
24725         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
24726         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
24727         Add new inlinable call parameter.
24728         (can_throw_internal, can_throw_external): Update.
24729         * except.h (can_throw_internal_1, can_throw_external_1,
24730         foreach_reachable_handler): Update declaration.
24732 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
24734         * config/arm/t-arm-coff, config/h8300/coff.h,
24735         config/i386/i386-aout.h, config/i386/i386-coff.h,
24736         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
24737         config/pdp11/2bsd.h, config/rs6000/aix41.h,
24738         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
24739         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
24740         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
24741         sys-types.h: Remove.
24742         * Makefile.in: Remove protoize and fixproto support and references
24743         in comments.
24744         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
24745         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
24746         Remove.
24747         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
24748         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
24749         unprotoize$(exeext).
24750         (rest.encap): Don't depend on $(STMP_FIXPROTO)
24751         (.PHONY): Don't depend on proto.
24752         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
24753         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
24754         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
24755         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
24756         build/gen-protos.o, build/scan.o, xsys-protos.h,
24757         build/fix-header$(build_exeext), build/fix-header.o,
24758         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
24759         stmp-install-fixproto): Remove.
24760         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
24761         SYSCALLS.c or fixproto files.
24762         (install-common): Don't install protoize.
24763         (install-headers-tar, install-headers-cpio, install-headers-cp):
24764         Don't depend on $(STMP_FIXPROTO).
24765         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
24766         install fixproto files or write out fixproto settings.
24767         (uninstall): Don't uninstall protoize.
24768         * config.gcc (use_fixproto): Remove.
24769         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
24770         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
24771         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
24772         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
24773         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
24774         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
24775         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
24776         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
24777         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
24778         * config/t-vxworks (STMP_FIXPROTO): Remove.
24779         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
24780         STMP_FIXPROTO): Remove.
24781         * config.in, configure: Regenerate.
24782         * crtstuff.c (gid_t, uid_t): Don't undefine.
24783         * doc/install.texi: Change m68k-coff to m68k-elf in example.
24784         (arm-*-coff, arm-*-aout: Remove target entries.
24785         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
24786         Remove mention of AIX 4.1.
24787         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
24788         * doc/invoke.texi (Running Protoize): Remove.
24789         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
24790         (Protoize Caveats): Remove.
24791         * tsystem.h: Update comments on headers assumed to exist.
24793 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
24795         * genautomata.c: Add a new year to the copyright.  Add a new
24796         reference.
24797         (struct insn_reserv_decl): Add comments for member bypass_list.
24798         (find_bypass): Remove.
24799         (insert_bypass): New.
24800         (process_decls): Use insert_bypass.
24801         (output_internal_insn_latency_func): Output all bypasses with the
24802         same input insn in one switch case.
24804         * rtl.def (define_bypass): Describe bypass choice.
24805         * doc/md.texi (define_bypass): Ditto.
24807 2009-03-27  Richard Guenther  <rguenther@suse.de>
24809         * gimplify.c (mark_addressable): Export.
24810         * tree-flow.h (mark_addressable): Declare.
24811         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
24812         * tree-ssa.c (verify_phi_args): Verify that address taken
24813         variables have TREE_ADDRESSABLE set.
24815 2009-03-27  Richard Guenther  <rguenther@suse.de>
24817         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
24818         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
24819         Do not mark decls TREE_ADDRESSABLE.
24820         (build_fold_addr_expr): Adjust.
24821         (fold_addr_expr): Remove.
24822         (fold_unary): Use build_fold_addr_expr.
24823         (fold_comparison): Likewise.
24824         (split_address_to_core_and_offset): Likewise.
24825         * coverage.c (tree_coverage_counter_addr): Mark the array decl
24826         TREE_ADDRESSABLE.
24827         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
24828         (gimplify_modify_expr_to_memcpy): Mark source and destination
24829         addressable.
24830         * omp-low.c (create_omp_child_function): Mark the object decl
24831         TREE_ADDRESSABLE.
24832         (lower_rec_input_clauses): Mark the var we take the address of
24833         TREE_ADDRESSABLE.
24834         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
24836 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24838         PR middle-end/39315
24839         * cfgexpand.c (expand_one_stack_var_at): Change alignment
24840         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
24842 2009-03-27  Richard Guenther  <rguenther@suse.de>
24844         PR tree-optimization/39120
24845         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
24846         constraints.
24847         (handle_lhs_call): Process return constraints.  Add escape
24848         constraints if necessary.
24849         (handle_const_call): Fill out return constraints.  Make nested
24850         case more precise.  Avoid consttmp if possible.
24851         (handle_pure_call): Fill out return constraints.  Avoid
24852         callused if possible.
24853         (find_func_aliases): Simplify call handling.
24855 2009-03-27  Richard Guenther  <rguenther@suse.de>
24857         PR tree-optimization/39120
24858         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
24859         as a representative.
24860         (solve_graph): Do propagate CALLUSED.
24861         (handle_pure_call): Use a scalar constraint from CALLUSED for
24862         the return value.
24863         (find_what_p_points_to): CALLUSED shall not appear in poins-to
24864         solutions.
24866 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24868         PR c/39323
24869         * c-common.c (handle_aligned_attribute): Properly check alignment
24870         overflow.  Use (1U << i) instead of (1 << i).
24872         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
24874         * expr.h (get_mem_align_offset): Updated.
24876         * tree.h (tree_decl_common): Change align to "unsigned int" and
24877         move it before pointer_alias_set.
24879 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24880             Jakub Jelinek  <jakub@redhat.com>
24882         PR target/38034
24883         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
24884         gr_register_operand with gr_reg_or_0_operand.
24885         (cmpxchg_rel_di): Likewise.
24886         (sync_lock_test_and_set<mode>): Likewise.
24888 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24890         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
24891         (true_regnum): Likewise.
24893         * rtlanal.c (subreg_info): Moved to ...
24894         * rtl.h (subreg_info): Here.  New.
24895         (subreg_get_info): New.
24897         * rtlanal.c (subreg_get_info): Make it extern.
24899 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24901         PR target/39472
24902         * config/i386/i386.c (ix86_abi): New.
24903         (override_options): Handle -mabi=.
24904         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
24905         (ix86_call_abi_override): Likewise.
24906         (init_cumulative_args): Likewise.
24907         (function_arg_advance): Likewise.
24908         (function_arg_64): Likewise.
24909         (function_arg): Likewise.
24910         (ix86_pass_by_reference): Likewise.
24911         (ix86_function_value_regno_p): Likewise.
24912         (ix86_build_builtin_va_list_abi): Likewise.
24913         (setup_incoming_varargs_64): Likewise.
24914         (is_va_list_char_pointer): Likewise.
24915         (ix86_init_machine_status): Likewise.
24916         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
24917         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
24918         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
24919         (ix86_function_abi): Make it static and return enum calling_abi.
24920         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
24921         with ix86_abi.
24922         (ix86_fn_abi_va_list): Updated.
24924         * config/i386/i386.h (ix86_abi): New.
24925         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
24926         (CONDITIONAL_REGISTER_USAGE): Likewise.
24927         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
24928         (machine_function): Likewise.
24930         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
24931         with ix86_abi.
24932         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
24933         (STACK_BOUNDARY): Likewise.
24934         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
24936         * config/i386/i386.opt (mabi=): New.
24938         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
24939         return enum calling_abi.
24940         (ix86_function_type_abi): Likewise.
24941         (ix86_function_abi): Removed.
24943         * doc/invoke.texi: Document -mabi= option for x86.
24945 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24947         * builtins.c (real_dconstp): Delete.
24948         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
24950 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
24951             Jakub Jelinek  <jakub@redhat.com>
24953         PR debug/37959
24954         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
24955         (gen_subprogram_die): When a function is explicit, generate the
24956         DW_AT_explicit attribute.
24957         * langhooks.h (struct lang_hooks_for_decls): Add
24958         function_decl_explicit_p langhook.
24959         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
24960         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
24962 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
24964         * builtins.c (fold_builtin_memory_op): Optimize memmove
24965         into memcpy if we can prove source and destination don't overlap.
24967         * tree-inline.c: Include gt-tree-inline.h.
24968         (clone_fn_id_num): New variable.
24969         (clone_function_name): New function.
24970         (tree_function_versioning): Use it.
24971         * Makefile.in (GTFILES): Add tree-inline.c.
24973 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
24975         * BASE-VER: Change to 4.5.0.
24977 2009-03-27  Xinliang David Li  <davidxl@google.com>
24979         PR tree-optimization/39557
24980         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
24982 2009-03-27  Xinliang David Li  <davidxl@google.com>
24984         PR tree-optimization/39548
24985         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
24986         candidate check.
24988 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24990         * c-common.c (pointer_int_sum): Use %wd on return from
24991         tree_low_cst.
24993 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24995         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
24996         on return from tree_low_cst.
24998 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
25000         PR c++/36799
25001         * ginclude/stdarg.h (va_copy): Define also for
25002         __GXX_EXPERIMENTAL_CXX0X__.
25004 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25006         PR c++/35652
25007         * builtins.h (c_strlen): Do not warn here.
25008         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
25009         * c-common.c (pointer_int_sum): Take an explicit location.
25010         Warn about offsets out of bounds.
25011         * c-common.h (pointer_int_sum): Adjust declaration.
25013 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25015         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
25016         markup glitch.
25018 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
25020         PR c++/39554
25021         * opts.c (warn_if_disallowed_function_p): Don't assume
25022         get_callee_fndecl must return non-NULL.
25024 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
25026         PR rtl-optimization/39522
25027         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
25028         when reg_reloaded_valid is set.
25030 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25032         * config/spu/divv2df3.c: New file.
25033         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
25034         (DPBIT_FUNCS): Filter out _div_df.
25036 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
25038         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
25039         a jump insn, count that jump in the distance to the loop start.
25041 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
25043         PR target/39523
25044         * config/sh/sh.c (calc_live_regs): Fix condition for global
25045         registers except PIC_OFFSET_TABLE_REGNUM.
25047 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
25049         PR/39518
25050         * doc/invoke.texi (-mconsole): New.
25051         (-mcygwin): New.
25052         (-mno-cygwin): New.
25053         (-mdll): New.
25054         (-mnop-fun-dllimport): New.
25055         (-mthread): New.
25056         (-mwin32): New.
25057         (-mwindows): New.
25058         (sub section "i386 and x86-64 Windows Options"): New.
25060 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
25062         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
25063         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
25065 2009-03-25  Richard Guenther  <rguenther@suse.de>
25067         PR middle-end/39497
25068         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
25069         of -Wno-error.
25071 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
25073         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
25074         neither of haifa/selective schedulers are working.
25076 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25078         * doc/invoke.texi (Debugging Options): Fix description of
25079         -fno-merge-debug-strings.
25081 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
25083         * config/cris/libgcc.ver: New version-script.
25084         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
25086         * configure.ac <GAS features, nop mnemonic>: Add pattern
25087         crisv32-*-* for "nop".
25088         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
25089         * configure: Regenerate.
25091 2009-03-24  Ira Rosen  <irar@il.ibm.com>
25093         PR tree-optimization/39529
25094         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
25095         mark_sym_for_renaming for the tag copied to the new vector
25096         pointer.
25098 2009-03-24  Arthur Loiret  <aloiret@debian.org>
25100         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
25101         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
25102         EXTRA_SPEC_FUNCTIONS.
25103         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
25104         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
25105         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
25106         -march and -mtune options.
25108 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
25110         * config/m68k/t-rtems: Add m5329 multilib.
25112 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
25113             Jakub Jelinek  <jakub@redhat.com>
25115         PR debug/39524
25116         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
25117         nodes.
25119 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
25121         PR c/39495
25122         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
25123         instead of c_parser_expression_conv, if original_code isn't one of the
25124         4 allowed comparison codes, fail.
25126 2009-03-23  Richard Guenther  <rguenther@suse.de>
25128         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
25129         * tree.h (struct tree_type): Likewise.
25130         * reload.h (struct insn_chain): Likewise.
25131         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
25132         * function.h (struct function): Likewise.
25133         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
25135 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
25137         PR tree-optimization/39516
25138         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
25140 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
25142         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
25143         should be set true if BITS_PER_WORD of target is bigger than 32
25145 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
25147         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
25148         Translate -B-options to -rpath-link.  Correct existing
25149         rpath-link and conditionalize on !nostdlib.
25151 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25153         * doc/extend.texi (Function Attributes, Variable Attributes):
25154         Fix typos.
25155         * doc/invoke.texi (Debugging Options, Optimize Options)
25156         (i386 and x86-64 Options, MCore Options): Likewise.
25158 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
25160         PR debug/37890
25161         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
25162         it for block local namespace aliases.
25163         (gen_decl_die): Pass context_die to gen_namespace_die.
25165 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
25167         PR c/39495
25168         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
25169         minimum or maximum value.
25171 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
25173         * reginfo.c (globalize_reg): Recompute derived reg sets.
25175 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
25177         PR target/39063
25178         * libgcc2.c (mprotect): Do not use signed arguments for
25179         VirtualProtect, use DWORD arguments.  Also fix the 'may
25180         be used uninitialized' warning for the np variable.
25182 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
25184         PR target/39496
25185         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
25186         functions using regparm calling conventions when not optimizing.
25187         (ix86_function_sseregparm): Similarly for sseregparm calling
25188         conventions.
25190 2009-03-19  Li Feng  <nemokingdom@gmail.com>
25192         PR middle-end/39500
25193         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
25194         dependence if the first conflict is after niter iterations.
25196 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
25198         PR middle-end/38609
25199         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
25200         functions with dynamic stack-pointer adjustments.
25202 2009-03-19  Ben Elliston  <bje@au.ibm.com>
25204         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
25205         option; change to -msdata=data.
25207 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25209         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
25210         and -fopenmp.
25212 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
25214         PR target/35180
25215         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
25217 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
25219         * doc/invoke.texi (Code Gen Options): Expand discussion of
25220         -fno-common.
25222 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
25224         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
25225         * matrix-reorg.c (struct matrix_info): Likewise.
25226         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
25227         * rtl.h (struct mem_attrs): Likewise.
25228         * df.h (struct df): Likewise.
25229         * tree-data-ref.h (struct data_dependence_relation): Likewise.
25230         * ira-int.h (struct ira_allocno): Likewise.
25231         * df-scan.c (struct df_collection_rec): Likewise.
25232         * ira.c (struct equivalence): Likewise.
25233         * function.c (struct temp_slot): Likewise.
25234         * cfgloop.h (struct loop): Likewise.
25236         PR debug/39485
25237         * function.c (use_register_for_decl): When not optimizing, disregard
25238         register keyword for variables with types containing methods.
25240 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
25242         PR middle-end/39447
25243         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
25244         (is_simple_operand): Call contains_component_ref_p before calling data
25245         reference analysis that would fail on COMPONENT_REFs.
25247         * tree-vrp.c (search_for_addr_array): Fix formatting.
25249 2009-03-18  Richard Guenther  <rguenther@suse.de>
25251         * tree-vect-transform.c (vect_loop_versioning): Fold the
25252         generated comparisons.
25253         * tree-vectorizer.c (set_prologue_iterations): Likewise.
25254         (slpeel_tree_peel_loop_to_edge): Likewise.
25256 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25258         PR middle-end/37805
25259         * opts.c (print_specific_help): In addition to `undocumented',
25260         accept `separate' and `joined' flags if passed alone.  Describe
25261         output by the first matched one of those.
25262         (common_handle_option): Skip over empty strings.
25263         * gcc.c (display_help): Fix help string for `--help='.
25264         * doc/invoke.texi (Option Summary, Overall Options): With
25265         `--help=', classes and qualifiers can both be repeated, but
25266         only the latter can be negated.  One should not pass only
25267         negated qualifiers.  Fix markup and examples.
25269         Revert
25270         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
25271         PR middle-end/37805
25272         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
25273         and -fhelp=separate.
25275 2009-03-17  Jing Yu  <jingyu@google.com>
25277         PR middle-end/39378
25278         * function.h (struct rtl_data): Move is_thunk from here...
25279         (struct function): ...to here.
25280         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
25281         * varasm.c (assemble_start_function): Change is_thunk from crtl to
25282         cfun.
25283         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
25284         cfun.
25285         (alpha_does_function_need_gp, alpha_start_function): Likewise.
25286         (alpha_output_function_end_prologue): Likewise.
25287         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
25288         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
25289         (rs6000_output_function_epilogue): Likewise.
25290         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
25292 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
25294         PR target/39482
25295         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
25296         from different units in a single alternative.
25297         (*truncdfsf_i387): Ditto.
25298         (*truncxfsf2_mixed): Ditto.
25299         (*truncxfdf2_mixed): Ditto.
25301 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
25303         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
25304         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
25306         PR debug/39474
25307         * tree-ssa-live.c (remove_unused_locals): Don't remove local
25308         unused non-artificial variables when not optimizing.
25310         PR debug/39471
25311         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
25312         DW_TAG_imported_module even if decl is IMPORTED_DECL with
25313         NAMESPACE_DECL in its DECL_INITIAL.
25315         PR middle-end/39443
25316         * optabs.c (set_user_assembler_libfunc): New function.
25317         * expr.h (set_user_assembler_libfunc): New prototype.
25318         * c-common.c: Include libfuncs.h.
25319         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
25320         for memcmp, memset, memcpy, memmove and abort.
25321         * Makefile.in (c-common.o): Depend on libfuncs.h.
25323         PR debug/39412
25324         * dwarf2out.c (gen_inlined_enumeration_type_die,
25325         gen_inlined_structure_type_die, gen_inlined_union_type_die,
25326         gen_tagged_type_instantiation_die): Removed.
25327         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
25328         do nothing.
25330 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
25332         PR testsuite/38526
25333         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
25334         its use.
25335         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
25336         (check-parallel-%): Ditto.
25337         (check-consistency): Ditto.
25339 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
25341         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
25342         local variable rhs by NULL_TREE.
25344 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25346         PR target/39477
25347         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
25349 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25351         PR target/39476
25352         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
25354 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25356         PR target/39473
25357         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
25358         for ms->sysv ABI calls only in 64bit mode.
25360         * config/i386/i386.md (untyped_call): Support 32bit.
25362 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
25364         * doc/extend.texi: Replace x86_65 with x86_64.
25366 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
25368         PR tree-optimization/39455
25369         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
25370         mismatches for POINTER_TYPE_P (type).
25371         (number_of_iterations_le): Likewise.
25373 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
25375         * config/picochip/picochip.c: Removed profiling support.
25376         * config/picochip/picochip.md: Removed profiling instruction.
25377         * config/picochip/picochip.h: Removed profiling builtin.
25379 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
25381         * doc/install.texi (--with-host-libstdcxx): Document.
25383 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
25385         PR target/34299
25386         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
25387         generate a warning if the function name does not begin with
25388         "__vector" and the function has either the 'signal' or 'interrupt'
25389         attribute, from here to ...
25390         (avr_declare_function_name): ...here. New function.
25391         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
25392         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
25394 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
25396         PR bootstrap/39454
25397         * cse.c (fold_rtx): Don't modify original const_arg1 when
25398         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
25399         separate variable instead.
25400         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
25401         from out of range shift counts.
25402         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
25404 2009-03-13  Catherine Moore  <clm@codesourcery.com>
25406         * config/i386/x-mingw32 (host-mingw32.o): Replace
25407         diagnostic.h with $(DIAGNOSTIC_H).
25409 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
25411         PR target/39431
25412         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
25413         predicate.
25414         * config/i386/sync.md (sync_compare_and_swap<mode>,
25415         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
25416         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
25417         into a register.
25418         (sync_double_compare_and_swapdi_pic,
25419         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
25420         cmpxchg8b_pic_memory_operand instead of just memory_operand.
25422 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
25424         PR target/39445
25425         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
25427 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
25429         PR target/39327
25430         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
25431         (avx_addsubv4df3): Likewise.
25432         (*avx_addsubv4sf3): Likewise.
25433         (sse3_addsubv4sf3): Likewise.
25435 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
25437         PR target/38824
25438         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
25440 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
25442         PR debug/39432
25443         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
25444         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
25445         registers for allocnos created from user-defined variables.
25447 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25449         PR target/39181
25450         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
25451         of non-integer mode as well.
25453 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
25455         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
25456         for functions for which the parameter types are unknown.
25458 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
25460         PR target/39137
25461         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
25462         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
25463         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
25464         * config/i386/i386.c (ix86_local_alignment): For
25465         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
25466         long long variables on the stack to avoid dynamic realignment.
25467         Allow the first argument to be a decl rather than type.
25468         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
25470 2009-03-11  Nick Clifton  <nickc@redhat.com>
25472         PR target/5362
25473         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
25474         options.
25475         Add description to mno-lsim option.
25476         * config/mcore/mcore.h: Remove comment about deprecated m4align
25477         option.
25478         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
25479         * doc/invoke.texi: Add description of mno-lsim and
25480         mstack-increment options.
25482         * config/fr30/fr30.opt: Document the -mno-lsim option.
25483         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
25484         and -mno-lsim options.
25486 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25488         * fold-const.c (fold_comparison): Only call fold_inf_compare
25489         if the mode supports infinities.
25491 2009-03-11  Jason Merrill  <jason@redhat.com>
25493         PR debug/39086
25494         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
25495         end already did.  Notice GIMPLE_CALL modifications of the result.
25496         Don't copy debug information from an ignored decl or a decl from
25497         another function.
25499 2009-03-10  Richard Guenther  <rguenther@suse.de>
25500             Nathan Froyd  <froydnj@codesourcery.com>
25502         PR middle-end/37850
25503         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
25504         (__divMODE3): Likewise.
25506 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
25508         PR tree-optimization/39394
25509         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
25510         DECL_SIZE_UNIT of variable length FIELD_DECLs.
25512 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25514         * recog.c (verfiy_changes): Disallow renaming of hard regs in
25515         inline asms for register asm ("") declarations.
25517 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
25519         * fold-const.c (fold_unary): Fix comment.
25521 2009-03-07  Jan Hubicka  <jh@suse.cz>
25523         PR target/39361
25524         * tree-inline.c (setup_one_parameter): Do replacement of const
25525         argument by constant in SSA form.
25527 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25529         PR middle-end/38028
25530         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
25531         determine alignment passed to assign_stack_local.
25532         (assign_parms_unsplit_complex): Likewise.
25533         * except.c (sjlj_build_landing_pads): Likewise.
25535 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
25537         PR middle-end/39360
25538         * tree-flow.h (add_referenced_var): Return bool instead of void.
25539         * tree-dfa.c (add_referenced_var): Return result of
25540         referenced_var_check_and_insert call.
25541         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
25542         of referenced_var_check_and_insert.
25544         PR debug/39372
25545         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
25546         (gen_variable_die): Emit DW_AT_location on abstract static variable's
25547         DIE, don't emit it if abstract origin already has it.
25548         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
25549         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
25551 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
25553         * genpreds.c (needs_variable): Fix parentheses at variable name
25554         detection.
25555         (write_tm_constrs_h): Indent generated code.
25557 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25559         * doc/extend.texi (Function Attributes): Add documentation
25560         for isr attributes.
25562 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
25564         PR debug/39387
25565         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
25566         take locus from its DECL_SOURCE_LOCATION instead of input_location.
25568 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
25570         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
25571         the loop as bad.
25573 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
25575         PR debug/39379
25576         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
25577         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
25579 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
25581         * config/i386/i386.md (R8_REG, R9_REG): New constants.
25582         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
25583         constants instead of magic numbers.
25584         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
25585         (QI_REG_P): Ditto.
25586         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
25587         (x86_64_ms_abi_int_parameter_registers): Ditto.
25588         (x86_64_int_return_registers): Ditto.
25589         (ix86_maybe_switch_abi): Ditto.
25590         (ix86_expand_call): Ditto for clobbered_registers array.
25591         (ix86_hard_regno_mode_ok): Ditto.
25592         (x86_extended_QIreg_mentioned_p): Ditto.
25594 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
25596         PR tree-optimization/39349
25597         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
25599         * combine.c (gen_lowpart_for_combine): Use omode when generating
25600         clobber.
25602 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
25604         PR rtl-optimization/39235
25605         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
25607 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
25609         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
25611 2009-03-04  Richard Guenther  <rguenther@suse.de>
25613         PR tree-optimization/39362
25614         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
25615         that occur in abnormal PHIs should be varying.
25617 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
25619         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
25620         Extend comments.
25621         (simple_iv):  Take loop as an argument instead of statement.
25622         * tree-scalar-evolution.h (simple_iv): Declaration changed.
25623         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
25624         to simple_iv.
25625         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
25626         Ditto.
25627         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
25628         * matrix-reorg.c (analyze_transpose): Ditto.
25629         * tree-data-ref.c (dr_analyze_innermost): Ditto.
25630         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
25631         * tree-predcom.c (ref_at_iteration): Ditto.
25632         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
25634 2009-03-04  Richard Guenther  <rguenther@suse.de>
25636         PR tree-optimization/39358
25637         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
25638         escaped_id and callused_id.
25639         (solve_graph): Likewise.
25641 2009-03-04  Richard Guenther  <rguenther@suse.de>
25643         PR tree-optimization/39339
25644         * tree-sra.c (try_instantiate_multiple_fields): Make it
25645         no longer ICE on the above.
25647 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
25649         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
25650         that fits within Pmode.
25652 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
25654         PR middle-end/10109
25655         * tm.texi (LIBCALL_VALUE): Update description.
25657 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
25659         PR middle-end/34443
25660         * doc/extend.texi (section): Update description.
25662 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
25664         PR middle-end/39345
25665         * tree-inline.c (remapped_type): New.
25666         (can_be_nonlocal): Call remapped_type instead of remap_type.
25668 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
25670         PR fortran/39354
25671         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
25672         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
25674 2009-03-03  Richard Guenther  <rguenther@suse.de>
25676         PR middle-end/39272
25677         * tree.c (tree_nonartificial_location): New function.
25678         * tree.h (tree_nonartificial_location): Declare.
25679         * builtins.c (expand_builtin_memory_chk): Provide location
25680         of the call location for artificial function pieces.
25681         (maybe_emit_chk_warning): Likewise.
25682         (maybe_emit_sprintf_chk_warning): Likewise.
25683         (maybe_emit_free_warning): Likewise.
25684         * expr.c (expand_expr_real_1): Likewise.
25686 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
25688         PR tree-optimization/39343
25689         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
25690         COMPONENT_REF t has ARRAY_TYPE.
25692 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
25694         PR middle-end/39335
25695         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
25696         when the type precision of the induction variable should be
25697         larger than the type precision of nit.
25698         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
25699         * graphite.c (graphite_loop_normal_form): Same.
25700         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
25702 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
25704         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
25705         (*call_1_rex64_ms_sysv): Use named constants instead of magic
25706         numbers to describe clobbered registers.
25707         (*call_value_0_rex64_ms_sysv): Ditto.
25708         * config/i386/mmx.md (mmx_emms): Ditto.
25709         (mmx_femms): Ditto.
25711 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
25713         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
25714         of ABI_64.
25716 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25718         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
25719         (spu_section_type_flags): New function.
25721 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
25723         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
25724         reg_class_contents of FLOAT_REGS into a temporary.
25726 2009-03-02  Richard Guenther  <rguenther@suse.de>
25727             Ira Rosen  <irar@il.ibm.com>
25729         PR tree-optimization/39318
25730         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
25731         information to the vectorized statement.
25733 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
25735         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
25736         variable.  Use defined names instead of magic constants for REX SSE
25737         registers.
25739 2009-03-01  Richard Guenther  <rguenther@suse.de>
25741         PR tree-optimization/39331
25742         * omp-low.c (lower_send_shared_vars): Do not receive new
25743         values for the reference of DECL_BY_REFERENCE parms or results.
25745 2009-03-01  Jan Hubicka  <jh@suse.cz>
25747         PR debug/39267
25748         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
25749         BLOCK_NONLOCALIZED_VAR): New macros.
25750         (tree_block): Add nonlocalized_vars.
25751         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
25752         gen_decl_die): Add origin argument.  Allow generation of die with
25753         origin at hand only.
25754         (gen_member_die, gen_type_die_with_usage, force_decl_die,
25755         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
25756         of gen_*.
25757         (gen_block_die): Fix checking for unused blocks.
25758         (process_scope_var): Break out from .... ; work with origins only.
25759         (decls_for_scope) ... here; process nonlocalized list.
25760         (dwarf2out_ignore_block): Look for nonlocalized vars.
25761         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
25762         vars.
25763         (dump_scope_block): Dump them.
25764         * tree-inline.c (remap_decls): Handle nonlocalized vars.
25765         (remap_block): Likewise.
25766         (can_be_nonlocal): New predicate.
25767         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
25769 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25771         * configure: Regenerate.
25773 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25775         * optc-gen.awk: No need to duplicate option flags twice.
25776         Reuse help texts for duplicate options which do not have any.
25778         * gcc.c (display_help): Document --version.
25780         * gcc.c (main): If print_help_list and verbose_flag, ensure
25781         driver output comes before subprocess output.
25783         * optc-gen.awk: Assign all remaining fields to help string,
25784         space-separated, for multi-line help in *.opt.
25786         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
25787         -Wno-pedantic-ms-format is for MinGW targets only.
25789         * doc/options.texi (Option file format): Fix bad indentation,
25790         restoring dropped sentence.
25792 2009-02-28  Jan Hubicka  <jh@suse.cz>
25794         * tree-inline.c (tree_function_versioning): Output debug info.
25796 2009-02-28  Jan Hubicka  <jh@suse.cz>
25798         PR debug/39267
25799         * tree-inline.c (setup_one_parameter): Do not copy propagate
25800         arguments when not optimizing.
25802 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
25804         PR target/39327
25805         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
25806         (avx_addsubv4df3): Likewise.
25807         (*avx_addsubv4sf3): Likewise.
25808         (sse3_addsubv4sf3): Likewise.
25809         (*avx_addsubv2df3): Likewise.
25810         (sse3_addsubv2df3): Likewise.
25811         (avx_unpckhps256): Correct item selectors.
25812         (avx_unpcklps256): Likewise.
25813         (avx_unpckhpd256): Likewise.
25814         (avx_unpcklpd256): Likewise.
25816 2009-02-28  Jan Hubicka  <jh@suse.cz>
25818         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
25819         static vars.
25820         (copy_arguments_for_versioning): If var is declared don't declare it.
25821         (tree_function_versioning): First setup substitutions and then copy
25822         args.
25824 2009-02-27  Jan Hubicka  <jh@suse.cz>
25826         PR debug/39267
25827         * cgraph.h (varpool_output_debug_info): Remove.
25828         * cgraphunit.c (varpool_output_debug_info): Remove.
25829         * dwarf2out.c (deferred_locations_struct): New struct
25830         (deferred_locations): New type.
25831         (deferred_locations_list): New static var.
25832         (deffer_location): New function.
25833         (gen_variable_die): Use it.
25834         (decls_for_scope): Output info on local static vars.
25835         (dwarf2out_finish): Process deferred locations.
25836         * varpool.c (varpool_output_debug_info): Remove.
25838 2009-02-27  Jan Hubicka  <jh@suse.cz>
25840         PR debug/39267
25841         * tree.h (TREE_PROTECTED): Fix comment.
25842         (BLOCK_HANDLER_BLOCK): Remove.
25843         (struct tree_block): Remove handler_block add body_block.
25844         (inlined_function_outer_scope_p): New.
25845         (is_body_block): Remove.
25846         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
25847         * dwarf2out.c (is_inlined_entry_point): Remove.
25848         (add_high_low_attributes): Use inlined_function_outer_scope_p.
25849         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
25850         code.
25851         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
25852         * gimplify.c (gimplify_expr): Gimplify body blocks.
25853         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
25854         block with multiple subblocks.
25855         (dump_scope_block): Prettier output; dump more flags and info.
25856         (dump_scope_blocks): New.
25857         (remove_unused_locals): Use dump_scope_blocks.
25858         * tree-flow.h (dump_scope_blocks): Declare.
25859         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
25860         * stmt.c (is_body_block): Remove.
25861         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
25862         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
25864 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
25866         PR middle-end/39308
25867         * graphite.c (graphite_loop_normal_form): Do not call
25868         number_of_iterations_exit from a gcc_assert.
25870 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25872         * config/s390/s390.c (s390_swap_cmp): Look for conditional
25873         jumps if COND is NULL.
25874         (find_cond_jump): New function.
25875         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
25876         * config/s390/s390.md: Remove z10_cobra attribute value.
25878 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
25880         * config/alpha/alpha.h (alpha_expand_mov): Return false if
25881         force_const_mem returns NULL_RTX.
25883 2009-02-26  Jan Hubicka  <jh@suse.cz>
25885         PR debug/39267
25886         * cgraph.h (varpool_output_debug_info): Remove.
25887         * cgraphunit.c (varpool_output_debug_info): Remove.
25888         * dwarf2out.c (deferred_locations_struct): New struct
25889         (deferred_locations): New type.
25890         (deferred_locations_list): New static var.
25891         (deffer_location): New function.
25892         (gen_variable_die): Use it.
25893         (decls_for_scope): Output info on local static vars.
25894         (dwarf2out_finish): Process deferred locations.
25895         * varpool.c (varpool_output_debug_info): Remove.
25897 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
25899         PR rtl-optimization/39241
25900         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
25901         to subreg_offset_representable_p.
25903 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
25905         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
25906         execute function prototype.  Get f and nregs from max_reg_num
25907         and get_insns.  Remove the first backward pass as it's dead,
25908         guard the forward pass by flag_expensive_optimizations.
25909         (rest_of_handle_regmove): Delete.
25910         (pass_regmove): Replace it with regmove_optimize.
25912 2009-02-25  Martin Jambor  <mjambor@suse.cz>
25914         PR tree-optimization/39259
25915         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
25916         calls_alloca function flags.
25917         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
25918         calls are detected.
25920 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
25922         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
25923         flags_set_1_rtx, flags_set_1_set): Delete.
25924         (regmove_optimize): Do not call mark_flags_life_zones.
25926 2009-02-24  Julian Brown  <julian@codesourcery.com>
25928         PR target/35965
25929         * config/arm/arm.c (require_pic_register): Only set
25930         cfun->machine->pic_reg once per function.
25932 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
25934         * doc/invoke.texi (Link Options): Document an easier way to pass
25935         options that take arguments to the GNU linker using -Xlinker and -Wl.
25937 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
25939         PR target/33785
25940         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
25942 2009-02-24  Richard Guenther  <rguenther@suse.de>
25944         PR debug/39285
25945         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
25947 2009-02-24  Richard Guenther  <rguenther@suse.de>
25948             Zdenek Dvorak  <ook@ucw.cz>
25950         PR tree-optimization/39233
25951         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
25952         from converting them to a generic type.
25954 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
25956         PR tree-optimization/39260
25957         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
25958         contains a condition with a real type.
25959         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
25961 2009-02-23  Jason Merrill  <jason@redhat.com>
25963         PR c++/38880
25964         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
25965         narrowing_initializer_constant_valid_p.
25966         (narrowing_initializer_constant_valid_p): Don't return
25967         null_pointer_node for adding a pointer to itself.
25969 2009-02-23  Jan Hubicka  <jh@suse.cz>
25971         PR c/12245
25972         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
25973         resizing.
25975 2009-02-23  Jan Hubicka  <jh@suse.cz>
25977         PR tree-optimization/37709
25978         * tree.c (block_ultimate_origin): Move here from dwarf2out.
25979         * tree.h (block_ultimate_origin): Declare.
25980         * dwarf2out.c (block_ultimate_origin): Move to tree.c
25981         * tree-ssa-live.c (remove_unused_scope_block_p):
25982         Eliminate blocks containig no instructions nor live variables nor
25983         nested blocks.
25984         (dump_scope_block): New function.
25985         (remove_unused_locals): Enable removal of dead blocks by default;
25986         enable dumping at TDF_DETAILS.
25988 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
25990         * config/i386/i386.c (classify_argument): Don't allow COImode
25991         and OImode.
25992         (function_arg_advance_32): Don't allow OImode.
25993         (function_arg_32): Likewise.
25994         (function_value_32): Likewise.
25995         (return_in_memory_32): Likewise.
25996         (function_arg_64): Remove OImode comment.
25998 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
26000         PR target/39261
26001         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
26002         ix86_expand_vector_set for V4DImode in 64bit mode only.
26003         (ix86_expand_vector_init_one_var): Likewise.
26005 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
26007         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
26009 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
26011         PR bootstrap/39257
26012         * loop-iv.c: Revert last change.
26013         * emit-rtl.c: Likewise.
26015 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
26017         PR target/39256
26018         * config/i386/i386.c (type_natural_mode): Remove an extra
26019         space in the warning message.
26020         (function_value_32): Handle 32-byte vector modes.
26021         (return_in_memory_32): Likewise.
26023 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
26025         * loop-iv.c (truncate_value): New function.
26026         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
26027         of lowpart_subreg.
26028         (lowpart_subreg): Move to...
26029         * emit-rtl.c: ...here.
26031 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
26033         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
26034         accidental and undocumented change at revision 140860.
26036 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
26038         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
26039         take gimple_seq * arguments.
26040         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
26041         types_compatible_p langhook.
26043 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
26044             Joseph Myers  <joseph@codesourcery.com>
26046         * config/arm/arm.c (arm_builtin_va_list): New function.
26047         (arm_expand_builtin_va_start): Likewise.
26048         (arm_gimplify_va_arg_expr): Likewise.
26049         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
26050         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
26051         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
26052         (va_list_type): New variable.
26053         (arm_mangle_type): Mangle va_list_type appropriately.
26055 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
26057         PR middle-end/39157
26058         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
26059         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
26060         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
26061         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
26062         parameter to 1000 for -O1 by default.
26063         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
26064         parameter.
26065         * loop-invariant.c: Include params.h.
26066         (move_loop_invariants): Don't call move_single_loop_invariants on
26067         very large loops.
26069 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
26071         * calls.c (emit_library_call_value_1): Use slot_offset instead of
26072         offset when calculating bounds for indexing stack_usage_map.  Fixes
26073         a buffer overflow with certain target setups.
26075 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
26077         PR target/39240
26078         * calls.c (expand_call): Clear try_tail_call if caller and callee
26079         disagree in promotion of function return value.
26081 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
26083         PR target/39175
26084         * c-common.c (c_determine_visibility): If visibility changed and
26085         DECL_RTL has been already set, call make_decl_rtl to update symbol
26086         flags.
26088 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
26090         PR c++/39188
26091         * varasm.c (assemble_variable): Don't check DECL_NAME when
26092         globalizing a variable.
26094 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
26096         PR c/38483
26097         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
26098         expression before any __builtin_trap call.
26099         * c-typeck.c (build_function_call): Convert and check function
26100         arguments before generating a call to a trap.  Evaluate the
26101         function arguments before the trap.
26103 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
26105         PR target/39228
26106         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
26107         (UNSPEC_FXAM_MEM): New unspec.
26108         (fxam<mode>2_i387_with_temp): New insn and split pattern.
26109         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
26110         memory using fxam<mode>2_i387_with_temp to remove excess precision.
26112 2009-02-19  Richard Guenther  <rguenther@suse.de>
26114         PR tree-optimization/39207
26115         PR tree-optimization/39074
26116         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
26117         storedanything_tree): New.
26118         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
26119         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
26120         (build_succ_graph): Add edges from STOREDANYTHING to all
26121         non-direct nodes.
26122         (init_base_vars): Initialize STOREDANYTHING.
26123         (compute_points_to_sets): Free substitution info after
26124         building the succ graph.
26125         (ipa_pta_execute): Likewise.
26127         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
26128         field.
26129         (do_ds_constraint): Do not add to special var or non-pointer
26130         field solutions.
26131         (type_could_have_pointers): Split out from ...
26132         (could_have_pointers): ... here.  For arrays use the element type.
26133         (create_variable_info_for): Initialize may_have_pointers.
26134         (new_var_info): Likewise.
26135         (handle_lhs_call): Make the HEAP variable unknown-sized.
26136         (intra_create_variable_infos): Use a type with pointers for
26137         PARM_NOALIAS, make it unknown-sized.
26139 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
26141         PR target/39224
26142         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
26144 2009-02-18  Jason Merrill  <jason@redhat.com>
26146         PR target/39179
26147         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
26148         value if DECL_EXTERNAL.
26149         * tree-sra.c (sra_walk_gimple_assign): Likewise.
26150         * target.h (gcc_target::binds_local_p): Clarify "module".
26151         * tree.h (TREE_PUBLIC): Clarify "module".
26153 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
26155         PR target/38891
26156         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
26157         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
26159 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
26161         PR target/39082
26162         * c.opt (Wabi): Support C and ObjC.
26163         (Wpsabi): New.
26165         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
26167         * config/i386/i386.c (classify_argument): Warn once about the ABI
26168         change when passing union with long double.
26170         * doc/invoke.texi: Update -Wabi for warning psABI changes.
26172 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
26174         PR c/35447
26175         * c-parser.c (c_parser_compound_statement): Always enter and leave
26176         a scope.
26178 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26180         PR target/34587
26181         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
26183 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
26185         PR tree-optimization/36922
26186         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
26187         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
26188         Likewise.
26190 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
26192         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
26193         to 0 for EABI64.
26195 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
26197         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
26199 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
26201         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
26202         tree sharing.
26204 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
26205             Richard Sandiford  <rdsandiford@googlemail.com>
26207         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
26208         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
26209         (loongson_biadd): ...this.
26211 2009-02-17  Richard Guenther  <rguenther@suse.de>
26213         PR tree-optimization/39202
26214         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
26215         a var make sure to follow existing collapses.
26217 2009-02-17  Richard Guenther  <rguenther@suse.de>
26219         PR middle-end/39214
26220         * langhooks.c (lhd_print_error_function): Check for NULL block.
26222 2009-02-17  Richard Guenther  <rguenther@suse.de>
26224         PR tree-optimization/39204
26225         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
26226         of the PHI arg.
26228 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
26230         * config/soft-fp/double.h: Update from glibc CVS.
26232 2009-02-17  Richard Guenther  <rguenther@suse.de>
26234         PR tree-optimization/39207
26235         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
26236         strict-aliasing warnings for pointers pointing to NULL.
26238 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
26240         PR c/35446
26241         * c-parser.c (c_parser_braced_init): Call pop_init_level when
26242         skipping until next close brace.
26244 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
26246         PR target/37049
26247         * config/i386/i386.c (ix86_expand_push): Set memory alignment
26248         to function argument boundary.
26250 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
26252         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
26253         in the lea_add. Reload eventually constraints it properly.
26254         * config/picochip/constraints.md: Remove the target constraint
26255         "b", since it is not needed anymore.
26257 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
26259         * gthr-dce.h: Uglify function parameter and local variable names.
26260         * gthr-gnat.h: Likewise.
26261         * gthr-mipssde.h: Likewise.
26262         * gthr-nks.h: Likewise.
26263         * gthr-posix95.h: Likewise.
26264         * gthr-posix.h: Likewise.
26265         * gthr-rtems.h: Likewise.
26266         * gthr-single.h: Likewise.
26267         * gthr-solaris.h: Likewise.
26268         * gthr-tpf.h: Likewise.
26269         * gthr-vxworks.h: Likewise.
26270         * gthr-win32.h: Likewise.
26272 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
26274         PR target/39196
26275         * config/i386/i386.md: Restrict the new peephole2 to move
26276         between MMX/SSE registers.
26278 2009-02-15  Richard Guenther  <rguenther@suse.de>
26280         Revert
26281         2009-02-13  Richard Guenther  <rguenther@suse.de>
26283         * configure.ac: Enable LFS.
26284         * configure: Re-generate.
26285         * config.in: Likewise.
26287 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26289         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
26290         spu_srqwbyte, spu_srqwbytebc): Define.
26291         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
26292         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
26293         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
26294         "shrqby_<mode>"): New insn-and-split patterns.
26295         * config/spu/spu.c (expand_builtin_args): Determine and return
26296         number of operands using spu_builtin_description data.
26297         (spu_expand_builtin_1): Use it.
26299 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
26301         PR target/38056
26302         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
26303         TARGET_CONST_GP.
26305 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
26307         PR target/39149
26308         * config/i386/i386.c (override_options): Correct warning
26309         messages for -malign-loops, -malign-jumps and -malign-functions.
26311 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
26313         PR target/39152
26314         * config/i386/i386.md: Restrict the new peephole2 to move
26315         between the general purpose registers.
26317 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
26319         PR target/39162
26320         * config/i386/i386.c (type_natural_mode): Add a new argument.
26321         Return the original mode and warn ABI change if vector size is 32byte.
26322         (function_arg_advance): Updated.
26323         (function_arg): Likewise.
26324         (ix86_function_value): Likewise.
26325         (ix86_return_in_memory): Likewise.
26326         (ix86_sol10_return_in_memory): Likewise.
26327         (ix86_gimplify_va_arg): Likewise.
26328         (function_arg_32): Don't warn ABX ABI change here.
26329         (function_arg_64): Likewise.
26331 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
26333         * loop-iv.c (implies_p): In the final case, test that operands 0
26334         of the two comparisons match.
26336         * config/bfin/bfin.c (find_prev_insn_start): New function.
26337         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
26338         (find_next_insn_start): Move.
26340 2009-02-13  Richard Guenther  <rguenther@suse.de>
26342         * configure.ac: Enable LFS.
26343         * configure: Re-generate.
26344         * config.in: Likewise.
26346 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
26348         PR c/35444
26349         * c-parser.c (c_parser_parms_list_declarator): Discard pending
26350         sizes on syntax error after some arguments have been parsed.
26352 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
26354         * doc/invoke.texi (-fira): Remove.
26356 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
26358         * caller-save.c: Replace regclass.c with reginfo.c in comments.
26359         * recog.c: Likewise.
26360         * rtl.h: Likewise.
26362 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
26364         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
26365         (umul_ppmm): Likewise.
26366         (count_leading_zeros): Likewise.
26367         (count_trailing_zeros): Likewise.
26368         (UMUL_TIME): Likewise.
26370 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
26372         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
26373         soft-fp/t-softfp to tmake_file.
26375         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
26376         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
26377         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
26378         IA64_BUILTIN_INFQ]: New.
26379         (ia64_init_builtins): Initialize __builtin_infq,
26380         __builtin_fabsq and __builtin_copysignq if not HPUX.
26381         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
26382         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
26384         * config/ia64/lib1funcs.asm (__divtf3): Define only if
26385         SHARED is defined.
26386         (__fixtfti): Likewise.
26387         (__fixunstfti): Likewise.
26388         (__floattitf): Likewise.
26390         * config/ia64/libgcc-glibc.ver: New.
26391         * config/ia64/t-fprules-softfp: Likewise.
26392         * config/ia64/sfp-machine.h: Likewise.
26394         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
26395         (LIBGCC2_TF_CEXT): Likewise.
26396         (TF_SIZE): Likewise.
26397         (TARGET_INIT_LIBFUNCS): Likewise.
26399         * config/ia64/t-glibc (SHLINB_MAPFILES):
26400         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
26402 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
26404         * config/i386/i386.c (construct_container): Rewrite processing
26405         BLKmode with X86_64_SSE_CLASS.
26407 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
26409         PR target/39152
26410         * config/i386/i386.md: Replace simplify_replace_rtx with
26411         replace_rtx in the new peephole2.
26413 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
26415         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
26416         loop unrolling do not happen at -O2.
26418 2009-02-12  Michael Matz  <matz@suse.de>
26420         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
26422 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
26424         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
26425         for -g3.
26427 2009-02-12  Ben Elliston  <bje@au.ibm.com>
26429         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
26430         patterns when updating the back chain.  Missed in the 2009-02-10
26431         change.
26433 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
26435         * doc/extend.texi (Decimal Floating Types): Update identifier of
26436         draft TR and list of missing support.
26438 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
26440         PR middle-end/39154
26441         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
26442         bit to variable length decl's flags, add it also to its
26443         pointer replacement variable.
26445 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
26446             Jakub Jelinek  <jakub@redhat.com>
26448         PR target/39118
26449         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
26450         (memory_blockage): New expander.
26451         (*memory_blockage): New insn pattern.
26452         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
26453         instead of general blockage at the end of function prologue when
26454         frame pointer is used to access red zone area.  Do not emit blockage
26455         when profiling, it is emitted in generic code.
26456         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
26457         function epilogue when frame pointer is used to access red zone area.
26459 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
26461         PR target/38824
26462         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
26463         by arithmetic with memory operands.
26464         * config/i386/predicates.md (commutative_operator): New.
26466 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
26468         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
26469         bulleted lists.
26471 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
26473         * alias.h (record_alias_subset): Declare.
26474         * alias.c (record_alias_subset): Make global.
26476 2009-02-10  Nick Clifton  <nickc@redhat.com>
26478         * tree-parloops.c: Change license to GPLv3.
26479         * ipa-struct-reorg.c: Change license to GPLv3.
26480         * ipa-struct-reorg.h: Change license to GPLv3.
26482 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
26484         PR c/39084
26485         * c-decl.c (start_struct): Return NULL on error.
26487 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
26489         PR middle-end/39124
26490         * cfgloopmanip.c (remove_path): Call remove_bbs after
26491         cancel_loop_tree, not before it.
26493         PR target/39139
26494         * function.h (struct function): Add has_local_explicit_reg_vars bit.
26495         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
26496         VAR_DECLs were seen.
26497         * tree-ssa-live.c (remove_unused_locals): Recompute
26498         cfun->has_local_explicit_reg_vars.
26499         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
26500         copies or clearings if cfun->has_local_explicit_reg_vars.
26502 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
26504         PR target/39118
26505         * config/i386/i386.c (expand_prologue): Emit blockage at the end
26506         of function prologue when frame pointer is used to access
26507         red zone area.
26509 2009-02-10  Richard Guenther  <rguenther@suse.de>
26511         PR middle-end/39127
26512         * gimplify.c (gimple_regimplify_operands): Always look if
26513         we need to create a temporary.
26515 2009-02-10  Richard Guenther  <rguenther@suse.de>
26517         PR tree-optimization/39132
26518         * tree-loop-distribution.c (todo): New global var.
26519         (generate_memset_zero): Trigger TODO_rebuild_alias.
26520         (tree_loop_distribution): Return todo.
26522 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
26524         PR target/39119
26525         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
26526         (x86_64_reg_class_name): Removed.
26527         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
26528         first one isn't X86_64_SSE_CLASS or any other ones aren't
26529         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
26530         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
26531         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
26532         and 3 X86_64_SSEUP_CLASS.
26533         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
26534         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
26536 2009-02-10  Ben Elliston  <bje@au.ibm.com>
26538         * config/rs6000/rs6000.md (allocate_stack): Always use an update
26539         form instruction to update the stack back chain word, even if the
26540         user has disabled the generation of update instructions.
26541         (movdi_<mode>_update_stack): New.
26542         (movsi_update_stack): Likewise.
26543         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
26544         always use an update form instruction to update the stack back
26545         chain word.
26547 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
26549         PR middle-end/38953
26550         * graphite.c (if_region_set_false_region): After moving a region in
26551         the false branch of a condition, remove the empty dummy basic block.
26552         (gloog): Remove wrong fix for PR38953.
26554 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26556         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
26557         generation due to implicit sign extension.
26559 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
26561         PR middle-end/38981
26562         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
26563         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
26565 2009-02-09  Richard Guenther  <rguenther@suse.de>
26567         PR middle-end/35202
26568         * convert.c (convert_to_real): Disable (float)fn((double)x)
26569         to fnf(x) conversion if errno differences may occur and
26570         -fmath-errno is set.
26572 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
26574         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
26575         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
26576         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
26578 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
26580         PR c/35434
26581         * c-common.c (handle_alias_attribute): Disallow attribute for
26582         anything not a FUNCTION_DECL or VAR_DECL.
26584 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
26586         PR c/39035
26587         * real.c (do_compare): Special-case compare of zero against
26588         decimal float value.
26590 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
26592         PR c/36432
26593         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
26594         as indicating flexible array members unless the field itself is
26595         being declarared as the incomplete array.
26597 2009-02-06  Jan Hubicka  <jh@suse.cz>
26599         PR tree-optimization/38844
26600         * ipa-inline.c (try_inline): Stop inlining recursion when edge
26601         is already inlined.
26603 2009-02-06  Richard Guenther  <rguenther@suse.de>
26605         PR middle-end/38977
26606         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
26607         fork because we may expand it as __gcov_fork.
26609 2009-02-06  Nick Clifton  <nickc@redhat.com>
26611         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
26613 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
26615         PR tree-optimization/35659
26616         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
26617         vn_phi_eq): Shortcut if hashcode does not match.
26618         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
26619         NULL operands.
26620         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
26621         and avoid iterative_hash_expr.
26622         (FOR_EACH_VALUE_ID_IN_SET): New.
26623         (value_id_compare): Remove.
26624         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
26625         sort expressions by value id.
26627 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
26629         PR target/38991
26630         * config/sh/predicates.md (general_movsrc_operand): Don't check
26631         the subreg of system registers here.
26633 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
26635         PR c++/39106
26636         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
26637         on the copied decl.
26639 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
26641         PR rtl-optimization/39110
26642         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
26643         addresses, not aligned ones.
26645 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
26646             Richard Guenther  <rguenther@suse.de>
26648         PR tree-optimization/39100
26649         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
26650         comment says and add edges.
26652 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
26654         PR c/35435
26655         * c-common.c (handle_tls_model_attribute): Ignore attribute for
26656         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
26658 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
26660         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
26661         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
26662         register_bb_in_sese, new_sese, free_sese): Moved.
26663         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
26664         outermost_loop_in_scop, build_scop_iteration_domain,
26665         expand_scalar_variables_ssa_name, get_vdef_before_scop,
26666         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
26667         Use loop_in_sese_p instead of loop_in_scop_p.
26668         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
26669         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
26670         (scopdet_basic_block_info): Fix bug in scop detection.
26671         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
26672         eq_loop_to_cloog_loop): Remove.
26673         (nb_loops_around_loop_in_scop, nb_loop
26674         ref_nb_loops): Moved here...
26675         * graphite.h (ref_nb_loops): ... from here.
26676         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
26677         (loop_domain_dim, loop_iteration_vector_dim): Remove.
26678         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
26680 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
26681             Hans-Peter Nilsson  <hp@axis.com>
26683         PR rtl-optimization/37889
26684         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
26685         Move offset handling from PLUS to before the switch.  Use new
26686         arguments when considering SYMBOL_REFs too.
26687         (rtx_addr_can_trap_p): Pass dummy offset and size.
26688         (enum may_trap_p_flags): Remove.
26689         (may_trap_p_1): Pass size from MEM_SIZE.
26691         PR rtl-optimization/38921
26692         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
26693         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
26694         * rtlanal.c (may_trap_after_code_motion_p): Delete.
26695         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
26697 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
26699         AVX Programming Reference (January, 2009)
26700         * config/i386/sse.md (*vpclmulqdq): New.
26702 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
26704         PR tree-optimization/38977
26705         PR gcov-profile/38292
26706         * calls.c (special_function_p): Disregard __builtin_ prefix.
26708 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
26710         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
26711         non-indexable addresses even before reload.
26713 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
26715         PR c/29129
26716         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
26717         as having variable size.  Do not give an error for unnamed
26718         parameters with [*] declarators.  Give a warning for type names
26719         with [*] declarators and mark them as variable size.
26720         * c-parser.c (c_parser_sizeof_expression): Do not give an error
26721         for sizeof applied to [*] type names.
26723 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
26725         PR C++/36607
26726         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
26728 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
26730         * gcc.c (process_command): Update copyright notice dates.
26731         * gcov.c (print_version): Likewise.
26732         * gcov-dump.c (print_version): Likewise.
26733         * mips-tfile.c (main): Likewise.
26734         * mips-tdump.c (main): Likewise.
26736 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
26738         PR c/35433
26739         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
26740         for composite type involving a zero-length array type.
26742 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
26744         PR target/35318
26745         * function.c (match_asm_constraints_1): Skip over
26746         initial optional % in the constraint.
26748         PR inline-asm/39059
26749         * c-parser.c (c_parser_postfix_expression): If fixed point is not
26750         supported, don't accept FIXED_CSTs.
26751         * c-decl.c (finish_declspecs): Error if fixed point is not supported
26752         and _Sat is used without _Fract/_Accum.  Set specs->type to
26753         integer_type_node for cts_fract/cts_accum if fixed point is not
26754         supported.
26756 2009-02-02  Catherine Moore  <clm@codesourcery.com>
26758         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
26760 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
26762         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
26763         (ABI_HAS_64BIT_SYMBOLS): Use it.
26764         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
26766 2009-02-02  Paul Brook  <paul@codesourcery.com>
26768         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
26770 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
26772         PR inline-asm/39058
26773         * recog.h (asm_operand_ok): Add constraints argument.
26774         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
26775         recurse on matching constraint.
26776         (check_asm_operands): Pass constraints as 3rd argument to
26777         asm_operand_ok.  Don't look up matching constraint here.
26778         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
26779         to asm_operand_ok.
26781 2009-02-02  Ben Elliston  <bje@au.ibm.com>
26783         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
26784         TARGET_NARROW_VOLATILE_BITFIELD macro names.
26786 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26788         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
26789         information.  Remove some obsolete information.  Reorganize.
26791         * config/pa/fptr.c: Revert license to GPL 2.
26792         * config/pa/milli64.S: Likewise.
26794 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
26796         PR target/38904
26797         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
26798         LIBRARY name in, instead of hard-coding it.
26799         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
26800         extra target make frag to tmake_files according to EH model.
26801         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
26802         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
26803         frags that define makefile variable EH_MODEL appropriately.
26804         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
26805         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
26806         to "-sjlj" according to type of EH configured.
26807         (LIBGCC_SONAME):  Concatenate it to shared library base name.
26808         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
26809         to "_sjlj" according to type of EH configured.
26810         (LIBGCC_SONAME):  Concatenate it to shared library base name.
26811         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
26812         (SHLIB_LINK):  Add missing semicolon to if-else construct.
26813         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
26814         string value of "pe_dll" command-line option.
26815         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
26816         (SHLIB_SONAME):  Use it when overriding t-cygming default.
26817         (SHLIB_IMPLIB):  Override t-cygming default.
26818         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
26819         string value of "pe_dll" command-line option.
26821 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
26823         PR target/38952
26824         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
26825         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
26827 2009-01-31  Richard Guenther  <rguenther@suse.de>
26829         PR tree-optimization/38937
26830         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
26831         computing the transitive closure.
26833 2009-01-30  Richard Guenther  <rguenther@suse.de>
26835         PR tree-optimization/39041
26836         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
26837         Propagate variable indices only if the types match for this stmt.
26839 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
26841         PR target/39013
26842         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
26843         inline but never defined.
26845 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
26847         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
26848         (*insv_h_di_reg_extimm): New insn.
26849         (*insv_l<mode>_reg_extimm): New insn.
26851 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
26853         * config/picochip/picochip.c (flag_conserve_stack): set
26854         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
26855         fconserve-stack. Reduce call-overhead used by inliner.
26857 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
26859         PR/38157
26860         * common.opt (flag_conserve_stack): Initialised to zero.
26862 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
26864         PR/39002
26865         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
26866         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
26867         method.
26869 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
26871         * ira-color.c (allocno_reload_assign): Update comments.
26872         * regmove.c (regmove_optimize): Likewise.
26874         * ra.h: Removed.
26876 2009-01-29  Robert Millan  <rmh@aybabtu.com>
26878         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
26879         * config/i386/kopensolaris-gnu.h: New file.  Undefine
26880         `MD_UNWIND_SUPPORT'.
26881         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
26883 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
26885         PR tree-optimization/39007
26886         * tree-loop-distribution.c (generate_builtin): Use
26887         recompute_dominator to compute the immediate dominator of the
26888         basic block just after the loop.
26890 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
26892         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
26893         (ASM_OUTPUT_DWARF_PCREL): Define.
26895 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
26897         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
26898         * doc/passes.texi: Remove entries about regclass, local-alloc, and
26899         global.  Modify entries about regmove and IRA.
26901         * ra-conflict.c: Remove the file.
26903         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
26905         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
26906         (pass_regclass_init): Rename to pass_reginfo_init.
26908         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
26910         * toplev.h (flag_ira): Remove.
26912         * caller-save.c (setup_save_areas): Remove flag_ira.
26914         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
26916         * global.c: Remove the file.
26918         * opts.c (decode_options): Remove flag_ira.
26920         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
26922         * regmove.c: Modify file description.
26923         (find_use_as_address, try_auto_increment): Define them only if
26924         AUTO_INC_DEC is defined.
26925         (replacement_quality, replace_in_call_usage, fixup_match_1,
26926         stable_and_no_regs_but_for_p): Remove.
26927         (reg_set_in_bb): Make it static.
26928         (regmove_optimize): Remove flag_ira and code which worked for
26929         !flag_ira.
26931         * local-alloc.c: Remove the file.
26933         * common.opt (fira): Remove.
26935         * ira.c: Include except.h.
26936         (eliminable_regset): Move from global.c.
26937         (mark_elimination): Ditto.  Remove flag_ira.
26938         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
26939         equiv_mem_modified, validate_equiv_mem_from_store,
26940         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
26941         contains_replace_regs, memref_referenced_p, memref_used_between_p,
26942         no_equiv, recorded_label_ref): Move from local-alloc.c.
26943         (update_equiv_regs): Ditto.  Make it static.
26944         (print_insn_chain, print_insn_chains): Move it from global.c.
26945         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
26946         (build_insn_chain): Ditto.  Make it static.
26947         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
26948         Rename to init_live_subregs.
26949         (gate_ira): Remove flag_ira.
26951         * regclass.c: Rename reginfo.c.  Change file description.
26952         (FORBIDDEN_INC_DEC_CLASSES): Remove.
26953         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
26954         (init_reg_sets_1): Remove code for evaluation of
26955         reg_class_superclasses and losing_caller_save_reg_set.
26956         (init_regs): Remove init_reg_autoinc.
26957         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
26958         ok_for_base_p_nonstrict): Remove.
26959         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
26960         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
26961         corresponding entries.
26962         (dump_regclass, record_operand_costs, scan_one_insn,
26963         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
26964         record_address_regs, auto_inc_dec_reg_p): Remove.
26965         (gt-regclass.h): Rename to gt-reginfo.h.
26967         * rtl.h (dump_global_regs, retry_global_alloc,
26968         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
26970         * Makefile.in (RA_H): Remove.
26971         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
26972         Rename regclass.o to reginfo.o.
26973         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
26974         gt-reginfo.h.
26975         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
26976         (GTFILES): Rename regclass.c to reginfo.c.
26978         * passes.c (init_optimization_passes): Remove pass_local_alloc and
26979         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
26981         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
26982         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
26983         Remove flag_ira.
26984         (finish_spills): Ditto.  Remove code for !flag_ira.
26986 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
26988         PR middle-end/35854
26989         * doc/invoke.texi (rtl debug options): Complete rewrite.
26990         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
26991         to auto_inc_dec".
26992         * mode-switching.c (pass_mode_switching): Rename pass from
26993         "mode-sw" to "mode_sw".
26994         * except.c (pass_convert_to_eh_ranges): Rename pass from
26995         "eh-ranges" to "eh_ranges".
26996         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
26997         to "subreg1".
27000 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
27001             Alexander Monakov  <amonakov@ispras.ru>
27003         PR middle-end/38857
27004         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
27005         register.
27006         (move_exprs_to_boundary): Change return type and pass through
27007         should_move from move_op.  Relax assert.  Update usage ...
27008         (schedule_expr_on_boundary): ... here.  Use should_move instead of
27009         cant_move.
27010         (move_op_orig_expr_found): Indicate that insn was disconnected from
27011         stream.
27012         (code_motion_process_successors): Do not call after_merge_succs
27013         callback if original expression was not found when traversing any of
27014         the branches.
27015         (code_motion_path_driver): Change return type.  Update prototype.
27016         (move_op): Update comment.  Add a new parameter (should_move).  Update
27017         prototype.  Set *should_move based on indication provided by
27018         move_op_orig_expr_found.
27020 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
27022         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
27023         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
27024         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
27025         * config/rs6000/rs6000.c (rs6000_override_options): Default
27026         avoid-indexed-addresses on for Power6, off for everything else.
27027         (avoiding_indexed_address_p): New function.
27028         (rs6000_legitimize_address): Use it.
27029         (rs6000_legitimate_address): Likewise.
27030         * config/rs6000/rs6000.md (movXX_updateX): Likewise
27032 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
27034         PR tree-optimization/38997
27035         * tree-loop-distribution.c (generate_memset_zero): Use
27036         POINTER_PLUS_EXPR for a pointer addition.
27038 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
27040         * config/s390/s390.md (bswap<mode>2): New pattern added.
27042 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
27044         * config/s390/s390.md (*tls_load_31): Added type attribute.
27046 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
27048         * config/s390/s390.md: Fix a few comments.
27050 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
27052         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
27053         (*tm<mode>_full): Fixed z10prop attribute.
27054         (*tst<mode>_extimm): Fixed z10prop attribute.
27055         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
27056         (*tstqiCCT_cconly): Fixed z10prop attribute.
27057         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
27058         (*movsi_larl): Fixed z10prop attribute.
27059         (*movsi_zarch): Fixed z10prop attribute.
27060         (*movsi_eas): Fixed z10prop attribute.
27061         (*movhi): Fixed z10prop attribute.
27062         (*movqi): Fixed z10prop attribute.
27063         (*movstrictqi): Fixed z10prop attribute.
27064         (*mov<mode>): Fixed z10prop attribute.
27065         (*movcc): Fixed z10prop attribute.
27066         (*sethighpartdi_64): Fixed z10prop attribute.
27067         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
27068         (*negdi2_sign_cc): Fixed z10prop attribute.
27069         (*negdi2_sign): Fixed z10prop attribute.
27070         (*absdi2_sign_cc): Fixed z10prop attribute.
27071         (*absdi2_sign): Fixed z10prop attribute.
27072         (*negabsdi2_sign_cc): Fixed z10prop attribute.
27073         (*negabsdi2_sign): Fixed z10prop attribute.
27074         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
27075         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
27076         (doloop_si64): Fixed z10prop attribute.
27077         (doloop_si31): Fixed z10prop attribute.
27078         (doloop_long): Fixed z10prop attribute.
27079         (indirect_jump): Fixed z10prop attribute.
27080         (nop): Fixed z10prop attribute.
27081         (main_base_64): Fixed z10prop attribute.
27082         (reload_base_64): Fixed z10prop attribute.
27084 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
27086         PR rtl-optimization/38740
27087         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
27088         if !optimize.
27089         * config/mips/mips.c (mips_reorg): Likewise.
27091 2009-01-28  Richard Guenther  <rguenther@suse.de>
27093         PR tree-optimization/38926
27094         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
27095         with the correct value id to a value.
27096         (do_regular_insertion): Use the value number of edoubleprime
27097         for the value number of the expr.
27099         Revert
27100         2008-08-21  Richard Guenther  <rguenther@suse.de>
27102         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
27103         a PHI ask VN if it is already available.
27104         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
27105         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
27107 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
27109         PR middle-end/38934
27110         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
27111         set to varying whenever max has TREE_OVERFLOW set, similarly
27112         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
27114 2009-01-28  Richard Guenther  <rguenther@suse.de>
27116         PR middle-end/38908
27117         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
27118         uninitialized aggregate uses in call arguments.
27120 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
27122         PR tree-optimization/38984
27123         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
27124         the nothing_id variable if -fno-delete-null-pointer-checks.
27126 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
27128         PR target/38988
27129         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
27130         (set_got_offset_rex64): Ditto.
27132 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
27134         PR target/38941
27135         * doc/extend.texi: Improve local variable with asm reg.
27137 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
27139         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
27140         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
27141         was not supplied then set warn_packed_bitfield_compat to the
27142         default value of 1.
27143         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
27144         against 1.
27146 2009-01-27  Richard Guenther  <rguenther@suse.de>
27148         PR tree-optimization/38503
27149         * cfgexpand.c (expand_gimple_basic_block): Ignore
27150         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
27151         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
27152         variables that cannot have TBAA applied.
27153         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
27154         statements.
27156 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
27158         PR middle-end/38969
27159         * calls.c (initialize_argument_information): Do not wrap complex
27160         arguments in SAVE_EXPR.
27162 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
27164         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
27165         (INSTALL_LIBGCC): Revert typo commit.
27167 2009-01-26  Richard Guenther  <rguenther@suse.de>
27169         PR tree-optimization/38745
27170         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
27171         from special handling.
27173 2009-01-26  Richard Guenther  <rguenther@suse.de>
27175         PR tree-optimization/38745
27176         * tree-ssa.c (execute_update_addresses_taken): Do not include
27177         variables that cannot possibly be a register in not_reg_needs.
27178         Do not clear TREE_ADDRESSABLE on vars that may not become
27179         registers.
27180         * tree-ssa.c (update_alias_info_1): Include those in the set
27181         of addressable vars.
27183 2009-01-26  Richard Guenther  <rguenther@suse.de>
27185         PR middle-end/38851
27186         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
27187         * tree-ssa-dse.c: Include langhooks.h
27188         (execute_simple_dse): Remove stores with zero size.
27190 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
27192         PR c/38957
27193         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
27194         as PLUS_EXPR.
27196 2009-01-24  Julian Brown  <julian@codesourcery.com>
27198         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
27199         config/arm/linux-atomic.c.
27200         * config/arm/linux-atomic.c: New.
27202 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
27204         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
27205         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
27206         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
27208 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
27210         PR c/38938
27211         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
27212         properly.
27214 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
27216         PR tree-optimization/38953
27217         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
27218         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
27219         (gloog): Split the exit of the scop when the scop exit is a loop exit.
27220         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
27221         changed the CFG.
27223 2009-01-24  Paul Brook  <paul@codesourcery.com>
27225         * config/arm/neon.md (neon_type): Move to arm.md.
27226         (neon_mov<VSTRUCT>): Add neon_type attribute.
27227         * config/arm/arm.md (neon_type): Move to here.
27228         (conds): Add "unconditioal" and use as default for NEON insns.
27230 2009-01-24  Ben Elliston  <bje@au.ibm.com>
27232         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
27233         void *' warning from -Wc++-compat.
27234         * Makefile.in (dominance.o-warn): Remove.
27236 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
27238         PR tree-optimization/38932
27239         * fold-const.c (fold_unary_ignore_overflow): New.
27240         * tree.h (fold_unary_ignore_overflow): Declare.
27241         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
27242         * tree-ssa-sccvn.c (visit_reference_op_load,
27243         simplify_unary_expression): Likewise.
27245 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
27247         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
27248         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
27249         regardless of their type.
27250         * c-common.c (handle_packed_attribute): Don't ignore packed on
27251         bitfields.
27252         * c.opt (Wpacked-bitfield-compat): New warning option.
27253         * stor-layout.c (place_field): Warn if offset of a field changed.
27254         * doc/extend.texi (packed): Mention the ABI change.
27255         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
27256         (Warning Options): Add it to the list.
27258 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
27260         * c-opts.c (c_common_post_options): Fix a typo in comments.
27262 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
27264         PR middle-end/38615
27265         * gimplify.c (gimplify_init_constructor): Fix promotion of const
27266         variables to static.
27267         * doc/invoke.texi (-fmerge-all-constants): Update description.
27269 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
27271         PR target/38931
27272         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
27273         (*movdi_1_rex64): Use type "mmx" for alternative 5.
27275 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
27277         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
27278         a word boundary.
27279         (LOCAL_ALIGNMENT): Similarly.
27281 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
27282             Joseph Myers  <joseph@codesourcery.com>
27284         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
27285         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
27286         * config/arm/arm-tune.md: Regenerate.
27287         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
27288         -march=iwmmxt2.
27290 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
27292         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
27293         version number to five.
27295 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
27297         PR c++/38930
27298         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
27299         * c-common.c (set_underlying_type): Likewise.
27300         (is_typedef_decl ): Likewise
27301         * tree.h: Likewise
27302         (set_underlying_type): Likewise.
27303         (is_typedef_type): Likewise.
27305 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
27307         PR middle-end/38587
27308         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
27309         crossing setjmps.
27311 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
27313         PR bootstrap/37660
27314         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
27315         (LIBGCC_SPEC):  Don't define.
27316         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
27318 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
27320         PR rtl-optimization/38879
27321         * alias.c (base_alias_check): Unaligned access via AND address can
27322         alias all surrounding object types except those with sizes equal
27323         or wider than the size of unaligned access.
27325 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
27327         PR c++/26693
27328         * c-decl.c (clone_underlying_type): Move this ...
27329         * c-common.c (set_underlying_type): ... here.
27330         Also, make sure the function properly sets TYPE_STUB_DECL() on
27331         the newly created typedef variant type.
27332         (is_typedef_decl ): New entry point.
27333         * tree.h: Added a new member member_types_needing_access_check to
27334         struct tree_decl_non_common.
27335         (set_underlying_type): New entry point.
27336         (is_typedef_type): Likewise.
27338 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
27340         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
27341         Check whether two instructions have memory references that
27342         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
27343         are helper functions for traversing.
27344         * alias.h (insn_alias_sets_confilict_p): New prototypes.
27345         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
27346         not to draw dependency edge for instructions with non-conflicting
27347         alias sets.
27349 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
27351         PR other/38758
27352         * longlong.h: Update copyright years.  Use soft-fp license notice.
27353         Sync __clz_tab declaration with glibc.
27355 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
27357         PR target/30687
27358         * doc/extend.texi (syscall_linkage): New.
27359         (version_id): Modify.
27361 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27362             Richard Guenther  <rguenther@suse.de>
27364         PR tree-optimization/38747
27365         PR tree-optimization/38748
27366         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
27367         conversion if the base address is an indirect reference and the
27368         aliasing sets could cause issues.
27370 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
27372         * common.opt (fgraphite, fgraphite-identity): Add comment for
27373         explaining why these options are not documented.
27375 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
27377         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
27378         gimple_call_lhs is NULL.
27380 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
27382         PR target/38868
27383         * emit-rtl.c (adjust_address_1): Make sure memref is never
27384         overwritten.
27386 2009-01-20  Ben Elliston  <bje@au.ibm.com>
27388         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
27389         const qualifier from arg parameter. Remove unnecessary cast to char *.
27390         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
27391         const qualifier from arg 2.
27393 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
27395         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
27397 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
27399         PR c/38869
27400         * rtl.h (reinit_regs): New prototype.
27401         * regclass.c: Include ira.h.
27402         (reinit_regs): New.
27403         * Makefile.in (regclass.o): Add ira.h.
27404         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
27406 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
27408         PR target/38736
27409         * c-common.c (handle_aligned_attribute): Use
27410         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
27411         default alignment value.
27413         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
27415         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
27416         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
27418         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
27419         __BIGGEST_ALIGNMENT__.
27421         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
27423 2009-01-18  Richard Guenther  <rguenther@suse.de>
27425         PR tree-optimization/38819
27426         * tree-flow.h (operation_could_trap_helper_p): Declare.
27427         * tree-eh.c (operation_could_trap_helper_p): Export.
27428         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
27429         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
27430         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
27431         are about to insert a possibly trapping instruction and fail
27432         in this case.
27434 2009-01-18  Andreas Schwab  <schwab@suse.de>
27436         * doc/install.texi (Configuration): Remove obsolete paragraph
27437         about use of --with-gnu-ld with --with-gnu-as.
27439 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
27441         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
27442         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
27443         Follow spelling conventions.
27445 2009-01-18  Ben Elliston  <bje@au.ibm.com>
27447         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
27448         C++ warning about implicit conversion from void * to struct
27449         bitmap_head_def *.
27450         (bitmap_obstack_free): Likewise for bitmap_element *.
27451         * Makefile.in (bitmap.o-warn): Remove.
27453 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
27455         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
27457 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
27458             Tobias Grosser  <tobi.grosser@amd.com>
27460         * graphite.c (graphite_trans_scop_block): Do not block single
27461         nested loops.
27463 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
27465         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
27466         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
27467         test with assertion.
27469 2009-01-16  Richard Guenther  <rguenther@suse.de>
27471         PR tree-optimization/38835
27472         PR middle-end/36227
27473         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
27474         and INT + PTR -> (INT)(PTR p+ INT) folding.
27475         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
27477 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
27479         PR target/38554
27480         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
27481         the subreg from a lowpart subreg if it is also casting the value.
27483 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
27484             Tobias Grosser  <tobi.grosser@amd.com>
27486         * graphite.c (compare_prefix_loops): New.
27487         (build_scop_canonical_schedules): Rewritten.
27488         (graphite_transform_loops): Move build_scop_canonical_schedules
27489         after build_scop_iteration_domain.
27491 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
27492             Tobias Grosser  <tobi.grosser@amd.com>
27494         * graphite.c (add_conditions_to_domain): Add the loops to
27495         the dimension of the iteration domain.  Do copy the domain
27496         only when it exists.
27497         (build_scop_conditions_1): Do not call add_conditions_to_domain.
27498         (add_conditions_to_constraints): New.
27499         (can_generate_code_stmt, can_generate_code): Removed.
27500         (gloog): Do not call can_generate_code.
27501         (graphite_transform_loops): Call add_conditions_to_constraints
27502         after building the iteration domain.
27504 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
27506         PR tree-optimization/38789
27507         * tree-ssa-threadedge.c
27508         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
27509         __builtin_constant_p.
27511 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
27513         * dce.c (delete_unmarked_insns): Reversed the order that insns are
27514         examined before deleting them.
27516 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
27518         * function.c (aggregate_value_p): Correctly extract the function
27519         type from CALL_EXPR_FN lookup.
27521 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
27523         * config/picochip/picochip.c (picochip_override_options): Revert
27524         CFI asm flag disable commited previously.
27526 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
27527             Tobias Grosser  <tobi.grosser@amd.com>
27528             Jan Sjodin  <jan.sjodin@amd.com>
27530         * graphite.c (scan_tree_for_params): On substractions negate
27531         all the coefficients of the term.
27532         (clast_to_gcc_expression_red): New.  Handle reduction expressions
27533         of more than two operands.
27534         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
27535         (get_vdef_before_scop): Handle also the case of default definitions.
27537 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
27539         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
27540         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
27541         Also use them when walking CALL_INSN_FUNCTION_USAGE.
27543 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
27544             Joey Ye  <joey.ye@intel.com>
27546         PR middle-end/37843
27547         * cfgexpand.c (expand_stack_alignment): Don't update stack
27548         boundary nor check incoming stack boundary here.
27549         (gimple_expand_cfg): Update stack boundary and check incoming
27550         stack boundary here.
27552 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
27554         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
27556 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
27558         PR rtl-optimization/38245
27559         * calls.c (expand_call): Add stack arguments to
27560         CALL_INSN_FUNCTION_USAGE even for pure calls (when
27561         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
27562         in regs and partially in memory or BLKmode arguments.
27563         (emit_library_call_value_1): Add stack arguments to
27564         CALL_INSN_FUNCTION_USAGE even for pure calls (when
27565         ACCUMULATE_OUTGOING_ARGS).
27566         * dce.c: Include tm_p.h.
27567         (find_call_stack_args): New function.
27568         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
27569         argument.
27570         (mark_insn): Call find_call_stack_args for CALL_Ps.
27571         (prescan_insns_for_dce): Walk insns backwards in bb rather than
27572         forwards.  Allocate and free arg_stores bitmap if needed, pass it
27573         down to deletable_insn_p, don't mark stores set in arg_stores
27574         bitmap, clear the bitmap at the beginning of each bb.
27575         * Makefile.in (dce.o): Depend on $(TM_P_H).
27577 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
27579         PR target/22599
27580         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
27581         to make sure the insn is a conditional test (bug 22599).  Reformat a
27582         few long lines.
27584 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
27586         PR middle-end/38431
27587         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
27588         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
27589         (gloog): Do not call cleanup_tree_cfg.
27590         (graphite_transform_loops): Call cleanup_tree_cfg after all
27591         scops have been code generated.
27593 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
27594         * doc/gty.texi (Invoking the garbage collector): Added new node
27595         and section documenting ggc_collect.
27597 2009-01-14  Richard Guenther  <rguenther@suse.de>
27599         PR tree-optimization/38826
27600         PR middle-end/38477
27601         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
27602         initialization notes only if we actually emitted a warning.
27603         (intra_create_variable_infos): Add constraints for a result decl
27604         that is passed by hidden reference.
27605         (build_pred_graph): Mark all related variables non-direct on
27606         address-taking.
27608 2009-01-14  Nick Clifton  <nickc@redhat.com>
27610         * ira-conflicts.c: Include addresses.h for the definition of
27611         base_reg_class.
27612         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
27613         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
27615 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
27617         PR target/38811
27618         * Makefile.in (ira-lives.o): Add except.h.
27620         * ira-lives.c: Include except.h.
27621         (process_bb_node_lives): Process can_throw_internal.
27623 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
27625         PR rtl-optimization/38774
27626         * combine.c (simplify_set): When undoing cc_use change, don't do
27627         PUT_CODE on the newly created comparison, but instead put back the
27628         old comparison.
27630 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
27632         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
27633         values.  Remove duplicate arm8 entry.
27635 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
27637         PR tree-optimization/38786
27638         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
27639         the SSA_NAME case of expand_scalar_variables_expr.
27640         Set the type of an expression to the type of its assign statement.
27641         (expand_scalar_variables_expr): Also gather the scalar computation
27642         used to index the memory access.  Do not pass loop_p.
27643         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
27644         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
27645         the gimple_stmt_iterator where it inserts new code.
27646         Do not pass loop_p.
27647         (copy_bb_and_scalar_dependences): Do not pass loop_p.
27648         (translate_clast): Update call to copy_bb_and_scalar_dependences.
27650 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
27652         * graphite.h (debug_value): Removed.
27653         * graphite.c (debug_value): Removed.
27655 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
27657         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
27658         ldrd/strd with two 32-bit instructions.
27660 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
27662         * config/arm/arm.c (struct processors): Pass for speed down into
27663         cost helper functions.
27664         (const_ok_for_op): Handle COMPARE and inequality nodes.
27665         (arm_rtx_costs_1): Rewrite.
27666         (arm_size_rtx_costs): Update prototype.
27667         (arm_rtx_costs): Pass speed down to helper functions.
27668         (arm_slowmul_rtx_costs): Rework cost calculations.
27669         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
27670         (arm_9e_rtx_costs): Likewise.
27672 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
27674         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
27675         relocations of local symbols wider than UNITS_PER_WORD are not valid.
27676         (alpha_legitimize_address): Do not split local symbols wider than
27677         UNITS_PER_WORD into HIGH/LO_SUM parts.
27679 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
27681         PR bootstrap/38580
27682         * gcc.c (process_command): Replace call to execvp with calls
27683         to pex_one and exit.
27685 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
27687         PR target/29141
27688         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
27689         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
27690         variant for devices with 3-byte PC.
27691         (__tablejump_elpm__): New.
27693 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
27695         PR c/32041
27696         * c-parser.c (c_parser_postfix_expression): Allow `->' in
27697         offsetof member-designator, handle it as `[0].'.
27699 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27701         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
27702         function when not using named sections on targets with named sections
27703         if branch distance is less than 262132.
27705 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
27707         * combine.c (combine_instructions):  Recompute
27708         optimize_this_for_speed_p  for each BB in the main combine loop.
27710 2009-01-12  Tomas Bily  <tbily@suse.cz>
27712         PR middlend/38385
27713         * tree-loop-distribution.c (prop_phis): New function.
27714         (generate_builtin): Call prop_phis.
27716 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
27718         PR tree-optimization/38807
27719         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
27720         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
27722 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
27724         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
27725         subreg of op0 to the original op0.
27727 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
27729         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
27731 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
27733         PR debug/7055
27734         * mips-tfile.c (parse_def): Fix parsing of def strings
27735         starting with digits.
27737 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
27739         PR target/38695
27740         * config/arm/arm.c (arm_is_long_call_p): Don't call
27741         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
27743 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
27745         * regrename.c (regrename_optimize): Fix dumping.
27746         (find_oldest_value_reg): Preserve REG_POINTER.
27747         (copy_hardreg_forward_1): Likewise.
27749 2009-01-09  Diego Novillo  <dnovillo@google.com>
27751         * gimple.h (struct gimple_statement_base) <uid>: Document
27752         the restrictions on its use.
27753         (gimple_uid): Tidy.
27754         (gimple_set_uid): Tidy.
27756 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
27758         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
27759         zero guard even if align_bytes != 0 and count is smaller than
27760         size_needed.
27762 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
27764         PR rtl-optimization/38495
27765         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
27766         (add_range_and_copies_from_move_list): Print all added ranges.
27767         Add ranges to memory optimized destination.
27769 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
27771         PR target/38686
27772         PR target/38708
27773         * config/i386/i386.c (override_options): Reject
27774         -mstringop-strategy=rep_8byte with -m32.
27775         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
27776         to 1.  Do count comparison against epilogue_size_needed at compile
27777         time even when count_exp was constant forced into register.  For
27778         size_needed don't jump to epilogue, instead just avoid aligning
27779         and invoke the body algorithm.  If need_zero_guard, add zero guard
27780         even if count is non-zero, but smaller than size_needed + number of
27781         bytes that could be stored for alignment.
27782         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
27783         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
27784         but smaller than size_needed + number of bytes that could be stored
27785         for alignment.  Compare size_needed with epilogue_size_needed instead
27786         of desired_align - align, don't adjust size_needed, pass
27787         epilogue_size_needed to the epilogue expanders.
27789         PR c/35742
27790         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
27792 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27794         * pa.c (last_address): Change to unsigned.
27795         (update_total_code_bytes): Change argument to unsigned.  Don't
27796         check if insn addresses are set.
27797         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
27798         addresses are not set.
27799         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
27801 2009-01-09  Nick Clifton  <nickc@redhat.com>
27803         * config/sh/symbian.c: Replace uses of DECL_INLINE with
27804         DECL_DECLARED_INLINE_P.
27806 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
27808         PR middle-end/38347
27809         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
27810         GET_MODE (op0) in operand_subword_force calls.
27812         PR middle-end/38771
27813         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
27814         fold_convert arg0 operands to TREE_TYPE (op0) first.
27816 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
27818         * params.def (ira-max-conflict-table-size): Decrease default value
27819         to 1000.
27821 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
27823         PR tree-optimization/37031
27824         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
27825         on parameter_set.
27826         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
27827         allocate it using gc instead of heap, use VEC_quick_push instead of
27828         VEC_safe_push.
27829         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
27830         instead of heap, use VEC_quick_push instead of VEC_safe_push.
27831         * tree-data-ref.h (struct access_matrix): Change matrix to gc
27832         allocated vector from heap allocated.
27833         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
27834         * tree-loop-linear.c (linear_transform_loops): Allocate nest
27835         vector only after perfect_loop_nest_depth call.
27837 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
27838             Jan Sjodin  <jan.sjodin@amd.com>
27840         PR tree-optimization/38559
27841         * graphite.c (debug_value, copy_constraint,
27842         swap_constraint_variables, scale_constraint_variable, ): New.
27843         (get_lower_bound, get_upper_bound): Removed.
27844         (graphite_trans_bb_strip_mine): Clean up this code that works
27845         only for constant number of iterations.  Fully copy upper and
27846         lower bound constraints, not only the constant part of them.
27847         * graphite.h (debug_value): Declared.
27849 2009-01-08  Ira Rosen  <irar@il.ibm.com>
27851         PR tree-optimization/37194
27852         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
27853         Don't add the cost of cost model guard in prologue to scalar
27854         outside cost in case of known number of iterations.
27856 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
27857             Alan Modra  <amodra@bigpond.net.au>
27859         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
27860         non-word-aligned REG+CONST addressing.
27862 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
27864         PR target/38706
27865         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
27866         free_after_compilation when outputting a thunk.
27867         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
27868         Do not call free_after_compilation here.
27870 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
27872         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
27873         (ix86_valid_target_attribute_inner_p): Ditto.
27875 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
27877         PR tree-optimization/38492
27878         PR tree-optimization/38498
27879         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
27880         * tree-chrec.h (scev_is_linear_expression): Declared.
27881         * graphite.c (graphite_cannot_represent_loop_niter): New.
27882         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
27883         (graphite_loop_normal_form): Use gcc_assert.
27884         (scan_tree_for_params): Use CASE_CONVERT.
27885         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
27886         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
27887         Use gcc_assert.  Discard scops that contain unhandled cases.
27888         (build_scop_conditions): Return a boolean status for unhandled cases.
27889         (strip_mine_profitable_p): Print the loop number, not its depth.
27890         (is_interchange_valid): Pass the depth of the loop nest, don't
27891         recompute it wrongly.
27892         (graphite_trans_bb_block): Same.
27893         (graphite_trans_bb_block): Print tentative of loop blocking.
27894         (graphite_trans_scop_block): Do not print that the loop has been
27895         blocked.
27896         (graphite_transform_loops): Do not handle scops that contain condition
27897         scalar phi nodes.
27899 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
27901         AVX Programming Reference (December, 2008)
27902         * config/i386/avxintrin.h (_mm256_stream_si256): New.
27903         (_mm256_stream_pd): Likewise.
27904         (_mm256_stream_ps): Likewise.
27906         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
27907         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
27908         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
27909         (bdesc_special_args): Add __builtin_ia32_movntdq256,
27910         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
27911         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
27912         (ix86_expand_special_args_builtin): Likewise.
27914         * config/i386/sse.md (AVXMODEDI): New.
27915         (avx_movnt<mode>): Likewise.
27916         (avx_movnt<mode>): Likewise.
27917         (<sse>_movnt<mode>): Remove AVX support.
27918         (sse2_movntv2di): Likewise.
27920 2009-01-07  Richard Guenther  <rguenther@suse.de>
27922         PR middle-end/38751
27923         * fold-const.c (extract_muldiv): Remove obsolete comment.
27924         (fold_plusminus_mult_expr): Undo MINUS_EXPR
27925         to PLUS_EXPR canonicalization for the canonicalization.
27927 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
27929         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
27930         hosted cross-compilers generating less efficient code.
27932 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
27934         * function.h (rtl_data): Add a dbr_scheduled_p field.
27935         * reorg.c (dbr_schedule): Set it.
27936         (gate_handle_delay_slots): Check it.
27937         * config/mips/mips.c (mips_base_delayed_branch): Delete.
27938         (mips_reorg): Check flag_delayed_branch instead of
27939         mips_base_delayed_branch.
27940         (mips_override_options): Don't set mips_base_delayed_branch
27941         or flag_delayed_branch.
27943 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
27945         PR rtl-optimization/38426.
27946         * ira.c (ira): Set current_function_is_leaf earlier.
27948 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
27950         PR rtl-optimization/38722
27951         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
27952         too early, only set a flag and modify after last possible
27953         undo_all point.
27955 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
27957         PR c/34252
27958         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
27959         * real.c (decimal_single_format): Correct values of emin and emax.
27960         (decimal_double_format): Ditto.
27961         (decimal_quad_format): Ditto.
27962         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
27963         computation of DECnn_MIN and DECnn_MAX for corrected values of
27964         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
27965         __DECnn_MIN__, and adjust its computation for the corrected value
27966         of emin.
27968 2009-01-06  Jan Hubicka  <jh@suse.cz>
27970         PR target/38744
27971         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
27973 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
27975         * doc/contrib.texi (Contributors): Slightly adjust the end note.
27976         Add Robert Clark to the list of testers.
27978 2009-01-06  Jan Hubicka  <jh@suse.cz>
27979             Kai Tietz  <kai.tietz@onevision.com>
27981         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
27982         * config/i386/i386.c (ix86_expand_call): Add clobbers.
27984 2009-01-06  Jan Hubicka  <jh@suse.cz>
27985             Kai Tietz  <kai.tietz@onevision.com>
27987         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
27988         for w64 ABI.
27989         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
27990         (ix86_nsaved_regs): Count only general purpose regs.
27991         (ix86_nsaved_sseregs): New.
27992         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
27993         to 16 for w64; compute padding and size of sse reg save area.
27994         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
27995         general purpose regs.
27996         (ix86_emit_save_sse_regs_using_mov): New.
27997         (ix86_expand_prologue): Save SSE regs if needed.
27998         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
27999         (ix86_emit_restore_sse_regs_using_mov): New.
28000         (ix86_expand_epilogue): Save SSE regs if needed.
28002 2009-01-06  Jan Hubicka  <jh@suse.cz>
28003             Kai Tietz  <kai.tietz@onevision.com>
28005         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
28006         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
28007         functions when accumulate outgoing args is off.
28009 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
28011         PR bootstrap/38742
28012         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
28013         before using pseudos_have_intersected_live_ranges_p.
28015         * ira-int.h (ira_assert): Always define.
28017 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
28019         AVX Programming Reference (December, 2008)
28020         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
28021         (_mm256_permute2_pd): Likewise.
28022         (_mm_permute2_ps): Likewise.
28023         (_mm256_permute2_ps): Likewise.
28024         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
28025         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
28027         * config/i386/i386.c (ix86_builtins): Remove
28028         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
28029         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
28030         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
28031         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
28032         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
28033         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
28034         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
28035         __builtin_ia32_vpermil2ps256.
28036         (ix86_init_mmx_sse_builtins): Updated.
28037         (ix86_expand_args_builtin): Likewise.
28039 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28041         * pa.c (output_call): Relocate non-jump insns in the delay slot of
28042         long absolute calls when generating PA 2.0 code.
28044 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
28046         PR rtl-optimization/38583
28047         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
28049         * params.def (ira-max-conflict-table-size): New.
28051         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
28053         * ira.h (ira_conflicts_p): New external definition.
28055         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
28056         table.  Report this.  Return result of building.
28057         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
28058         building conflict table.
28060         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
28061         (ira_color): Use ira_conflicts_p.
28063         * global.c: Include ira.h.
28064         (pseudo_for_reload_consideration_p, build_insn_chain): Use
28065         ira_conflicts_p.
28067         * Makefile.in (global.o): Add ira.h.
28069         * ira-build.c (mark_all_loops_for_removal,
28070         propagate_some_info_from_allocno): New.
28071         (remove_unnecessary_allocnos): Call
28072         propagate_some_info_from_allocno.
28073         (remove_low_level_allocnos): New.
28074         (remove_unnecessary_regions): Add parameter.  Call
28075         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
28076         parameter to remove_unnecessary_regions.
28077         (ira_build): Remove all regions but root if the conflict table was
28078         not built.  Update conflict hard regs for allocnos crossing calls.
28080         * ira.c (ira_conflicts_p): New global.
28081         (ira): Define and use ira_conflicts_p.
28083         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
28084         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
28085         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
28087 2009-01-06  Ben Elliston  <bje@au.ibm.com>
28089         * gengtype-lex.l (YY_NO_INPUT): Define.
28091 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
28093         PR c/34911
28094         * c-common.c (handle_vector_size_attribute): Also reject
28095         BOOLEAN_TYPE types.
28097 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
28099         PR tree-optimization/38492
28100         * graphite.c (rename_map_elt, debug_rename_elt,
28101         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
28102         rename_map_elt_info, eq_rename_map_elts,
28103         get_new_name_from_old_name, bb_in_sese_p): Moved around.
28104         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
28105         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
28106         (sese_build_livein_liveouts): New.
28107         (new_sese, free_sese): New.
28108         (new_scop): Call new_sese.
28109         (free_scop): Call free_sese.
28110         (rename_variables_from_edge, rename_phis_end_scop): Removed.
28111         (register_old_new_names): Renamed register_old_and_new_names.
28112         (register_scop_liveout_renames, add_loop_exit_phis,
28113         insert_loop_close_phis, struct igp,
28114         default_liveout_before_guard, add_guard_exit_phis,
28115         insert_guard_phis, copy_renames): New.
28116         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
28117         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
28118         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
28119         (scop_adjust_phis_for_liveouts): New.
28120         (gloog): Call scop_adjust_phis_for_liveouts.
28122         * graphite.h (struct sese): Documented.  Added fields liveout,
28123         num_ver and livein.
28124         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
28125         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
28126         (struct scop): Added field liveout_renames.
28127         (SCOP_LIVEOUT_RENAMES): New.
28129 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
28131         PR tree-optimization/38510
28132         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
28133         (translate_clast): Call recompute_all_dominators before
28134         graphite_verify.
28135         (gloog): Call recompute_all_dominators before graphite_verify.
28137 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
28138             Jan Sjodin  <jan.sjodin@amd.com>
28140         PR tree-optimization/38500
28141         * graphite.c (create_sese_edges): Call fix_loop_structure after
28142         splitting blocks.
28144 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
28146         * config.gcc: Add m32r*-*-rtems*.
28147         * config/m32r/rtems.h: New file.
28149 2009-01-05  Ben Elliston  <bje@au.ibm.com>
28151         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
28152         (.po.pox): Likewise.
28153         (po/gcc.pot): Likewise.
28155 2009-01-04  David S. Miller  <davem@davemloft.net>
28157         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
28158         (STARTING_FRAME_OFFSET): Always set to zero.
28160 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
28162         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
28163         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
28164         fixed-point types, and vectors of the same.
28166 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
28168         * config/mips/sync.md (*mb_barrier): Rename to...
28169         (*memory_barrier): ...this.
28171 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
28173         * doc/extend.texi (Function Attributes): Move @cindex after @item
28174         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
28175         and put in alphabetical order. Fix 'target' name and put in order.
28176         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
28177         typos.
28179 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
28181         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
28182         (memory_barrier): Expand as unspec instead of unspec_volatile.
28183         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28184         (*memory_barrier): Define as unspec instead of unspec_volatile.
28185         Use (match_dup 0) as input operand.
28187         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
28188         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
28189         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
28190         scratch register.  Remove operand 1.
28191         (*stbar): Define as unspec instead of unspec_volatile.
28192         Use (match_dup 0) as input operand, remove (const_int 8).
28193         (*membar): Define as unspec instead of unspec_volatile.
28194         Use (match_dup 0) as input operand, remove input operand 2.
28196         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
28197         (memory_barrier): Expand as unspec instead of unspec_volatile.
28198         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28199         (*memory_barrier): Define as unspec instead of unspec_volatile.
28200         Use (match_dup 0) as input operand.
28202         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
28203         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28204         Set volatile flag on operand 0.
28205         (*memory_barrier): New insn pattern.
28207         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
28208         insn operands.
28209         (*memory_barrier): Use (match_dup 0) as input operand.
28211         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
28212         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28213         Set volatile flag on operand 0.
28214         (*mb_internal): New insn pattern.
28216         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
28218 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
28220         PR middle-end/38586
28221         * function.c (struct temp_slot): Move to the section of the file
28222         that deals with temp slots.  Remove field 'address'.
28223         (temp_slot_address_table): New hash table of address -> temp slot.
28224         (struct temp_slot_address_entry): New struct, items for the table.
28225         (temp_slot_address_compute_hash, temp_slot_address_hash,
28226         temp_slot_address_eq, insert_temp_slot_address): Support functions
28227         for the new table.
28228         (find_temp_slot_from_address): Rewrite to use the new hash table.
28229         (remove_unused_temp_slot_addresses): Remove addresses of temp
28230         slots that have been made available.
28231         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
28232         worker function for remove_unused_temp_slot_addresses.
28233         (assign_stack_temp_for_type): Don't clear the temp slot address list.
28234         Add the temp slot address to the address -> temp slot map.
28235         (update_temp_slot_address): Update via insert_temp_slot_address.
28236         (free_temp_slots): Call remove_unused_temp_slot_addresses.
28237         (pop_temp_slots): Likewise.
28238         (init_temp_slots): Allocate the address -> temp slot map, or empty
28239         the map if it is already allocated.
28240         (prepare_function_start): Initialize temp slot processing.
28242 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
28244         PR middle-end/38584
28245         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
28246         Calculate the size of all stack vars assuming no packing of stack
28247         vars will happen, replacing a quadratic algorithm with a linear one.
28249 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
28251         PR target/38707
28252         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
28253         can't be used.
28255 2009-01-03  Diego Novillo  <dnovillo@google.com>
28257         * doc/contrib.texi: Update contributions.
28259 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
28261         PR c++/38705
28262         * builtins.c (fold_builtin_memory_op): Give up if either operand
28263         is volatile.  Set srctype or desttype to non-qualified version
28264         of the other type.
28266         PR c/38700
28267         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
28268         and FUNCTION_DECLs.
28270 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
28272         PR rtl-optimization/35805
28273         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
28274         problem if fast dce is able to remove any instructions.
28275         * dce.c (dce_process_block): Fix dump message.
28277 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
28279         PR 33649
28280         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
28282 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
28284         PR middle-end/38690
28285         * tree-flow.h (op_code_prio, op_prio): New prototypes.
28286         * tree-pretty-print.c (op_code_prio): New function.
28287         (op_prio): No longer static.  Use op_code_prio.
28288         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
28289         Use op_prio and op_code_prio to determine if () should be
28290         printed around operand(s) or not.
28292         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
28293         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
28294         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
28295         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
28296         pp_character instead of pp_string for single letter printing.
28298 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
28300         * doc/extend.texi: Fix '#pragma GCC option' typo.
28302 2009-01-02  Richard Guenther  <rguenther@suse.de>
28304         * doc/install.texi (--enable-checking): Mention different
28305         default for stage1.
28306         (--enable-stage1-checking): Document.
28308 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
28310         PR middle-end/30142
28311         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
28312         case to be an error.
28314 2009-01-02  Ben Elliston  <bje@au.ibm.com>
28316         * config/fp-bit.h (pack_d): Constify argument.
28317         * config/fp-bit.c (makenan): Constify return type. Remove casts.
28318         (isnan): Constify argument.
28319         (isinf): Likewise.
28320         (iszero): Likewise.
28321         (pack_d): Likewise.
28322         (_fpadd_parts): Constify return type.
28323         (_fpmul_parts): Likewise.
28324         (_fpdiv_parts): Likewise.
28326 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
28328         PR c/36489
28329         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
28330         warn about overwriting initializer with side-effects or
28331         -Woverride-init if !IMPLICIT.
28332         (output_init_element): Likewise.  Pass IMPLICIT down to
28333         add_pending_init.
28334         (process_init_element): Add IMPLICIT argument.  Pass it down
28335         to output_init_element.
28336         (push_init_element, pop_init_level, set_designator): Adjust
28337         process_init_element callers.
28338         (set_nonincremental_init, set_nonincremental_init_from_string):
28339         Adjust add_pending_init callers.
28340         (output_pending_init_elements): Adjust output_init_element callers.
28341         * c-tree.h (process_init_element): Adjust prototype.
28342         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
28343         process_init_element callers.
28346 Copyright (C) 2009 Free Software Foundation, Inc.
28348 Copying and distribution of this file, with or without modification,
28349 are permitted in any medium without royalty provided the copyright
28350 notice and this notice are preserved.