OSDN Git Service

2893556ea8b658e6cbab1e8138efb784857605d6
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
2
3         * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
4         *lea_2_rex64): Move before *add<mode>_1 pattern.
5
6 2009-10-07  Jan Hubicka  <jh@suse.cz>
7
8         * collect2.c (main): Add -fno-whole-program.
9         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
10
11 2009-10-07  Jan Hubicka  <jh@suse.cz>
12
13         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones has
14         no address taken.
15         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
16         never needed.
17         (cgraph_clone_node): Clear externally_visible flag for clones.
18         * cgraph.h (cgraph_only_called_directly_p,
19         cgraph_can_remove_if_no_direct_calls_p): New predicates.
20         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
21         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
22         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
23         ipcp_insert_stage): Likwise.
24         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
25         externally_visible flag.
26         (verify_cgraph_node): Verify that inline clones look right.
27         (process_function_and_variable_attributes): Do not set
28         externally_visible flags.
29         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
30         been already run.
31         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
32         boundaries.
33         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
34         clear externally_visible when turning into inline clones
35         (cgraph_mark_inline_edge): Use new predicates.
36         (cgraph_estimate_growth): Likewise.
37         (cgraph_decide_inlining): Likewise.
38         * ipa.c (cgraph_postorder): Likewise.
39         (cgraph_remove_unreachable_nodes): Likewise; sanity check
40         that inline clones are not needed.
41         (cgraph_externally_visible_p): New predicate.
42         (function_and_variable_visibility): Add whole_program parameter;
43         always set externally_visible flag; handle COMDAT function
44         privatization.
45         (local_function_and_variable_visibility): New function.
46         (gate_whole_program_function_and_variable_visibility): New function.
47         (whole_program_function_and_variable_visibility): New function.
48         (pass_ipa_whole_program_visibility): New function.
49         * passes.c  (init_optimization_passes): Add whole program visibility
50         pass.
51         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
52         not care about needed/reachable flags.
53         * varpool.c: Include flags.h
54         (decide_is_variable_needed): When doing LTO assume whole-program mode.
55         (varpool_finalize_decl): When we are in LTO read-back, all variables
56         are analyzed.
57         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
58
59 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60
61         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
62         add MASK_HARD_DFP.
63
64 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
65
66         * config.gcc: Don't include the makefile fragments intended for
67         libgcc.
68         * config/s390/fixdfdi.h: File removed.
69         * config/s390/libgcc-glibc.ver: File removed.
70         * config/s390/s390.h: Remove the fixdfdi.h hack.
71         * config/s390/t-crtstuff: File moved to libgcc dir.
72         * config/s390/t-linux: Likewise.
73         * config/s390/t-tpf: libgcc specific parts removed.
74         * config/s390/t-linux64: Likewise.
75
76 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
77
78         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
79         (lto-compress.o): Likewise.
80
81 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
82
83         PR target/41512
84         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
85         dllexport to class members here.
86         (i386_pe_determine_dllimport_p): Only check static class data for
87         definition.
88         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
89         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
90         functions for vague linkage.
91         (i386_pe_type_dllexport_p): Fix formatting.
92         (maybe_add_dllexport) New function.
93         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
94         to class members.
95
96 2009-10-07  Ben Elliston  <bje@au.ibm.com>
97
98         * config/rs6000/a2.md: Remove duplicated lines.
99
100 2009-10-07  Ben Elliston  <bje@au.ibm.com>
101
102         * config.gcc (powerpc*-*-*): Handle a2.
103         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
104         * config/rs6000/a2.md: New file.
105         * config/rs6000/rs6000.opt (mno-update): New.
106         (mupdate): Return to using a mask, not a var.
107         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
108         (enum processor_type): Add PROCESSOR_PPCA2.
109         * config/rs6000/rs6000.c (ppca2_cost): New costs.
110         (rs6000_override_options): Add "a2" to processor_target_table.
111         Update rs6000_always_hint logic.  Correctly set rs6000_cost for
112         a2.
113         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
114         -mcpu=a2.
115
116 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
117
118         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
119         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
120         reference to nonexistent gen_truncxfxf2 function.
121
122 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
123
124         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
125         (DWIH, g, di, doubleint_general_operand): New mode attributes.
126         (general_operand): Handle TI mode.
127         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
128         using SDWIM mode iterator.
129         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
130         pattern from *add{di,ti}3_1 patterns and corresponding splitters
131         using DWI mode iterator.
132         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
133         patterns using SWI mode iterator.
134         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
135         using SWI48 mode iterator.
136         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
137         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
138         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
139         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
140         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
141         using SDWIM mode iterator.
142         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
143         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
144         using DWI mode iterator.
145         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
146         patterns using SWI mode iterator.
147         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
148         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
149         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
150         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
151         patterns using plusminus code iterator.
152         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
153         sub<mode>3 patterns using plusminus code iterator.
154         * config/i386/i386.c (override_options): Update call to
155         gen_subdi_carry_rex64 for renamed function.
156         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
157         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
158         calls to instruction expanders.
159
160 2009-10-06  Martin Jambor  <mjambor@suse.cz>
161
162         PR bootstrap/41395
163         * opts.c (decode_options): Run IPA-SRA at -O2.
164
165 2009-10-06  Richard Guenther  <rguenther@suse.de>
166
167         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
168
169 2009-10-06  Tobias Burnus  <burnus@net-b.de>
170
171         PR lto/41591
172         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
173         -flto and -fwhole-program flags can be combined.
174
175 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
176
177         PR driver/41217
178         * gcc.c (process_command): Check that -o argument was specified.
179
180 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
181
182         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix
183         compilation.
184
185 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
186
187         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
188         * doc/invoke.texi (Warning Options): Annotate allowed languages
189         for -Wunsuffixed-float-constants.
190
191 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
192
193         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
194         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
195         same name and isn't the main variant.
196
197         PR debug/41558
198         * dwarf2out.c (loc_by_reference): Removed.
199         (dw_loc_list_1): New function.
200         (dw_loc_list): Remove toplev argument, add want_address argument.
201         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
202         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
203         want_address == 2 to dw_loc_list.  For successful dw_loc_list
204         set have_address to 1 only if want_address is not 0.
205
206 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
207
208         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
209         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
210         a code block followed by two pointers.
211         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
212         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
213         (MIPS_MOVE): Likewise.
214         (MIPS_LUI): Likewise.
215         (MIPS_JR): Likewise.
216         (MIPS_BAL): Likewise.
217         (MIPS_NOP): Likewise.
218         (mips_asm_trampoline_template): Delete.
219         (mips_trampoline_code_size): New function.
220         (mips_trampoline_init): Add shorter sequences for all cases
221         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
222         Calculate the opcodes directly, rather than copying from a template.
223         Only flush the code part of the trampoline.
224         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
225
226 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
227
228         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
229         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
230         (INCOMING_RETURN_ADDR_RTX): Likewise.
231         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
232         with AT_REGNUM.
233         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
234         with RETURN_ADDR_REGNUM.
235         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
236         * config/mips/mips.c (mips16_build_call_stub): Replace
237         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
238         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
239         (mips_print_operand_punctuation): Likewise.
240         (mips_frame_set): Likewise.
241         (mips16e_output_save_restore): Likewise.
242         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
243         (mips_save_reg_p): Likewise.
244         (mips_return_addr): Likewise.
245         (mips_set_return_address): Likewise.
246         (mips_direct_save_slot_move_p): Likewise.
247         (mips_output_function_prologue): Likewise.
248         (mips_restore_reg): Likewise.
249         (mips_expand_epilogue): Likewise.
250         (mips_epilogue_uses): Likewise.
251         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
252         (*mov<mode>_ra): Use it instead of a hard-coded 31.
253         (clear_hazard_<mode>): Likewise.
254         (call_internal): Likewise.
255         (call_internal_direct): Likewise.
256         (call_direct_split): Likewise.
257         (call_value_internal): Likewise.
258         (call_value_split): Likewise.
259         (call_value_internal_direct): Likewise.
260         (call_value_direct_split): Likewise.
261         (call_value_multiple_internal): Likewise.
262         (call_value_multiple_split): Likewise.
263
264 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
265             Jakub Jelinek  <jakub@redhat.com>
266
267         PR rtl-optimization/41511
268         * combine.c (record_value_for_reg): Pass explicit values as argument
269         to get_last_value_validate.
270         (get_last_value_validate): Document INSN parameter.
271         For non-readonly MEMs, assume they might have been modified if INSN
272         was in another basic block.
273         (get_last_value): Minor reformatting.
274
275 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
276
277         PR tree-opt/40992
278         * final.c (asm_str_count): Split out from asm_insn_count.
279         * rtl.h (asm_str_count): New prototype.
280         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
281         asm_str_count.
282
283 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
284
285         * doc/plugins.texi: Change plugin_pass to register_pass_info.
286
287 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
288             Rafael Espindola  <espindola@google.com>
289
290         * gengtype.c (write_types): Moved call to write_func_for_structure
291         into seperate loops.
292
293 2009-10-05  Richard Guenther  <rguenther@suse.de>
294
295         PR lto/41281
296         * lto-cgraph.c (output_cgraph): Output toplevel asms.
297         (input_cgraph_1): Input toplevel asms.
298
299 2009-10-05  Richard Guenther  <rguenther@suse.de>
300
301         PR lto/40902
302         * lto-symtab.c (lto_compatible_attributes_p): Remove.
303         (external_aggregate_decl_p): Likewise.
304         (lto_symtab_compatible): Re-structure.  Remove dead code.
305         For variables ignore toplevel qualifiers when comparing types.
306         Issue warnings, not errors for mismatched user-alignment.
307
308 2009-10-05  Richard Guenther  <rguenther@suse.de>
309
310         PR lto/41552
311         PR lto/41487
312         * lto-symtab.c (struct lto_symtab_base_def): Remove.
313         (struct lto_symtab_identifier_def): Likewise.
314         (struct lto_symtab_decl_def): Likewise.
315         (struct lto_symtab_entry_def): New.
316         (lto_symtab_identifier_t): Rename to ...
317         (lto_symtab_entry_t): ... this.
318         (lto_symtab_decls): Remove.
319         (lto_symtab_base_hash): Rename to ...
320         (lto_symtab_entry_hash): ... this.
321         (lto_symtab_base_eq): Rename to ...
322         (lto_symtab_entry_eq): ... this.
323         (lto_symtab_base_marked_p): Rename to ...
324         (lto_symtab_entry_marked_p): ... this.
325         (lto_symtab_identifier_marked_p): Remove.
326         (lto_symtab_decl_marked_p): Likewise.
327         (lto_symtab_maybe_init_hash_tables): Rename to ...
328         (lto_symtab_maybe_init_hash_table): ... this.
329         (lto_symtab_set_resolution_and_file_data): Remove.
330         (lto_symtab_register_decl): New function.
331         (lto_symtab_get_identifier): Remove.
332         (lto_symtab_get): New function.
333         (lto_symtab_get_resolution): Adjust.
334         (lto_symtab_get_identifier_decl): Remove.
335         (lto_symtab_set_identifier_decl): Likewise.
336         (lto_symtab_merge_decl): Rename to ...
337         (lto_symtab_merge): ... this.  Rewrite.
338         (lto_symtab_merge_var): Remove.
339         (lto_symtab_merge_fn): Likewise.
340         (lto_symtab_prevailing_decl): Adjust.
341         (lto_cgraph_replace_node): New function.
342         (lto_symtab_merge_decls_2): Likewise.
343         (lto_symtab_merge_decls_1): Likewise.
344         (lto_symtab_fixup_var_decls): Likewise.
345         (lto_symtab_resolve_symbols): Likewise.
346         (lto_symtab_merge_decls): Likewise.
347         (lto_symtab_prevailing_decl): Adjust.
348         (lto_symtab_get_symtab_def): Remove.
349         (lto_symtab_get_file_data): Likewise.
350         (lto_symtab_clear_resolution): Adjust.
351         (lto_symtab_clear_resolution): Likewise.
352         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
353         (input_cgraph_1): Likewise.
354         * lto-streamer-in.c (get_resolution): Do not provide fake
355         symbol resolutions here.
356         (deferred_global_decls): Remove.
357         (lto_register_deferred_decls_in_symtab): Likewise.
358         (lto_register_var_decl_in_symtab): Change signature, register
359         variable via lto_symtab_register_decl.
360         (lto_register_function_decl_in_symtab): Likewise.
361         (lto_read_tree): Adjust.
362         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
363         (lto_symtab_merge_var): Likewise.
364         (lto_symtab_merge_fn): Likewise.
365         (lto_symtab_register_decl): Declare.
366         (lto_symtab_merge_decls): Likewise.
367
368 2009-10-05  Richard Guenther  <rguenther@suse.de>
369
370         PR tree-optimization/23821
371         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
372         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
373         simple IV increments.
374
375 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
376
377         * config/arm/arm.c (arm_override_options): Really initialize
378         flag_dwarf2_cfi_asm to 0.
379
380 2009-10-05  Doug Kwan  <dougkwan@google.com>
381
382         PR rtl-optimization/41574
383         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
384         floating point and we are not doing unsafe math optimizations.
385
386 2009-10-03  Simon Baldwin  <simonb@google.com>
387             Cary Coutant  <ccoutant@google.com>
388             Rafael Espindola  <espindola@google.com>
389             Richard Guenther  <rguenther@suse.de>
390             Jan Hubicka  <jh@suse.cz>
391             Doug Kwan <dougkwan@google.com>
392             H.J. Lu  <hongjiu.lu@intel.com>
393             Bill Maddox  <maddox@google.com>
394             Ryan Mansfield  <rmansfield@qnx.com>
395             Diego Novillo  <dnovillo@google.com>
396             Ollie Wild  <aaw@google.com>
397             Kenneth Zadeck <zadeck@naturalbridge.com>
398
399         * lto-cgraph.c: New file.
400         * lto-compress.c: New file.
401         * lto-compress.h: New file.
402         * lto-opts.c: New file.
403         * lto-section-in.c: New file.
404         * lto-section-out.c: New file.
405         * lto-streamer-in.c: New file.
406         * lto-streamer-out.c: New file.
407         * lto-streamer.c: New file.
408         * lto-streamer.h: New file.
409         * lto-symtab.c: New file.
410         * lto-wpa-fixup.c: New file.
411         * lto-wrapper.c: New file.
412
413 2009-10-03  Simon Baldwin  <baldwin@google.com>
414             Ben Elliston  <bje@au.ibm.com>
415             Rafael Espindola  <espindola@google.com>
416             Nathan Froyd  <froydnj@codesourcery.com>
417             Jan Hubicka  <jh@suse.cz>
418             Doug Kwan  <dougkwan@google.com>
419             Diego Novillo  <dnovillo@google.com>
420             Kenneth Zadeck  <zadeck@naturalbridge.com>
421
422         * Makefile.in (enable_lto): New.
423         (site.exp): If @enable_lto@ is set to 'yes' define
424         ENABLE_LTO.
425         (LINKER_PLUGIN_API_H): Define.
426         (LTO_SYMTAB_H): Define.
427         (LTO_STREAMER_H): Define.
428         (TREE_VECTORIZER_H): Define.
429         (INCLUDES): Add LIBELFINC.
430         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
431         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
432         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o,
433         lto-compress.o.
434         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
435         (native): Add lto-wrapper$(exeext)
436         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
437         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
438         lto-symtab.o, lto-opts.o, lto-streamer.o,
439         lto-wpa-fixup.o): New rules.
440         (gimple.o): Add dependency on LTO_HEADER_H and
441         LTO_SECTION_OUT_H.
442         (varasm.o): Add dependency on tree-iterator.h.
443         (cgraph.o): Add dependency on cif-code.def.
444         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
445         (ipa-pure-const.o): Likewise.
446         (GTFILES): Add lto-symtab.c.
447         (install-lto-wrapper): New.
448         * configure.ac: If 'lto' is in enable_languages, define
449         ENABLE_LTO and enable_lto.
450         If LIBELFLIBS is set, define HAVE_libelf.
451         * config.in: Regenerate.
452
453 2009-10-03  Rafael Espindola  <espindola@google.com>
454             Diego Novillo  <dnovillo@google.com>
455
456         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
457         ipa_write_summaries.
458         Call execute_ipa_summary_passes for all_regular_ipa_passes and
459         all_lto_gen_passes.
460         (cgraph_optimize): Make extern.
461
462 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
463             Kenneth Zadeck <zadeck@naturalbridge.com>
464
465         * toplev.c (in_lto_p): Declare.
466         * collect2.c (scan_prog_file): Read all the output when reading
467         information for LTO.
468         (enum lto_mode_d): Declare.
469
470 2009-10-03  Richard Guenther  <rguenther@suse.de>
471             Diego Novillo  <dnovillo@google.com>
472
473         * gimple.c: Include target.h and alias.h.
474         (gimple_types): Declare.
475         (type_hash_cache): Declare.
476         (gimple_alloc_stat): Make extern.
477         (gimple_build_eh_must_not_throw): Call
478         gimple_eh_must_not_throw_set_fndecl.
479         (struct type_pair_d): Declare.
480         (type_pair_t): Declare.
481         (type_pair_hash): New.
482         (type_pair_eq): New.
483         (lookup_type_pair): New.
484         (gimple_force_type_merge): New.
485         (compare_type_names_p): New.
486         (compare_field_offset): New.
487         (gimple_types_compatible_p): New.
488         (struct sccs): Declare.
489         (next_dfs_num): Declare.
490         (iterative_hash_gimple_type): New.
491         (visit): New.
492         (iterative_hash_type_name): New.
493         (iterative_hash_gimple_type): New.
494         (gimple_type_hash): New.
495         (gimple_type_eq): New.
496         (gimple_register_type): New.
497         (print_gimple_types_stats): New.
498         (gimple_signed_or_unsigned_type): New.
499         (gimple_unsigned_type): New.
500         (gimple_signed_type): New.
501         (gimple_get_alias_set): New.
502         (gimple_decl_printable_name): Do not use DMGL_TYPES.
503         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
504         (gimple_force_type_merge): Declare.
505         (gimple_types_compatible_p): Declare.
506         (gimple_register_type): Declare.
507         (print_gimple_types_stats): Declare.
508         (gimple_unsigned_type): Declare.
509         (gimple_signed_type): Declare.
510         (gimple_get_alias_set): Declare.
511         (gimple_eh_must_not_throw_set_fndecl): New.
512
513 2009-10-03  Jan Hubicka  <jh@suse.cz>
514             Kenneth Zadeck <zadeck@naturalbridge.com>
515
516         * ipa-pure-const.c: Include lto-streamer.h.
517         (register_hooks): Factor out of ...
518         (generate_summary): ... here.
519         (pure_const_write_summary): New.
520         (pure_const_read_summary): New.
521         (pass_ipa_pure_const): Add pure_const_write_summary and
522         pure_const_read_summary.
523         * ipa-reference.c: Include lto-streamer.h.
524         (add_new_function): New.
525         (remove_node_data): New.
526         (duplicate_node_data): New.
527         (ipa_init): Guard against multiple calls.
528         Move hook setup from analyze_function.
529         (write_node_summary_p): New.
530         (ipa_reference_write_summary): New.
531         (ipa_reference_read_summary): New.
532         (pass_ipa_reference): Add ipa_reference_write_summary and
533         ipa_reference_read_summary.
534         * cgraph.h (cgraph_local_info): Add field lto_file_data.
535         (struct cgraph_edge): Add fields lto_stmt_uid and
536         call_stmt_cannot_inline_p.
537         (cgraph_optimize): Declare.
538         (cgraph_decide_is_function_needed): Declare.
539         (reset_inline_failed): Declare.
540         (enum LTO_cgraph_tags): Declare.
541         (LTO_cgraph_tag_names): Declare.
542         (LCC_NOT_FOUND): Define.
543
544 2009-10-03  Doug Kwan  <dougkwan@google.com>
545             Rafael Espindola  <espindola@google.com>
546             Jan Hubicka  <jh@suse.cz>
547             Diego Novillo  <dnovillo@google.com>
548             Kenneth Zadeck  <zadeck@naturalbridge.com>
549
550         * passes.c (all_regular_ipa_passes): New.
551         (all_ipa_passes): Rename to all_small_ipa_passes.
552         (init_optimization_passes): Init all_regular_ipa_passes.
553         * tree-pass.h (all_regular_ipa_passes): New.
554         (all_ipa_passes): Rename to all_small_ipa_passes.
555         * passes.c (all_lto_gen_passes): New.
556         (init_optimization_passes): Initialize all_lto_gen_passes.
557         (execute_ipa_summary_passes): Make non-static.
558         (ipa_write_summaries_1): New.
559         (ipa_write_summaries_2): New.
560         (ipa_write_summaries): New.
561         (ipa_write_summaries_of_cgraph_node_set): New.
562         (ipa_read_summaries_1): New.
563         (ipa_read_summaries): New.
564         (execute_ipa_pass_list): Call cgraph_process_new_functions.
565         (execute_regular_ipa_pass_list): Remove.
566         (init_optimization_passes): Schedule
567         pass_rebuild_cgraph_edges and pass_early_inline outside
568         of pass_all_early_optimizations.  Document reason.
569         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
570         pass_ipa_lto_finish_out): New pass.
571         (pass_ipa_summary_passes): Start and stop timers if the pass
572         has them.
573         (execute_all_ipa_transforms): New.
574         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
575         (dump_properties, debug_properties): New.
576         * tree-optimize.c (gate_all_early_local_passes): Return
577         false if we are in lto1.
578         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
579         * tree-pass.h (execute_all_ipa_transforms): Declare.
580         (pass_ipa_function_and_variable_visibility): Declare.
581         (pass_ipa_early_inline): Declare.
582         (pass_ipa_lto_gimple_out): Declare.
583         (pass_ipa_lto_wpa_fixup): Declare.
584         (pass_ipa_lto_finish_out): Declare.
585         (all_small_ipa_passes, all_regular_ipa_passes,
586         all_lto_gen_passes): Declare.
587         (execute_ipa_summary_passes): Declare.
588         (execute_all_ipa_transforms): Declare.
589         (ipa_write_summaries): Declare
590         (ipa_write_summaries_of_cgraph_node_set): Declare.
591         (ipa_read_summaries): Declare.
592
593 2009-10-03  Doug Kwan  <dougkwan@google.com>
594             Ollie Wild  <aaw@google.com>
595
596         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do
597         nothing in WPA.
598
599         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
600         (lto_mode): New variable.
601         (maybe_run_lto_and_relink): Handle the -fwpa option.
602         (main): Handle the -fwpa option.
603         (maybe_unlink_list): New function.
604         * gcc.c (link_lto_options): Replace -flto with -fwpa.
605         * common.opt (flto): New flag.
606         * toplev.c (flag_generate_lto): Declare.
607
608 2009-10-03  Simon Baldwin  <simonb@google.com>
609
610         * common.opt (flto-compression-level): New flag.
611
612         * opts.c: Include lto-opts.h.
613         (handle_option): Call lto_register_user_option for each
614         valid option handled.
615         * (decode_options): Clear registered options before the options
616         handling loop.
617
618 2009-10-03  Cary Coutant  <ccoutant@google.com>
619
620         * collect2.c (is_elf): New function.
621         (scan_prog_file): Require LTO object to be in ELF format.
622
623 2009-10-03  Rafael Espindola  <espindola@google.com>
624
625         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
626         libgcc to the linker.
627
628         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is
629         running.
630
631         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
632         (collect_execute): Add flags argument. Pass flags to pex_run. Update
633         all callers.
634         * collect2.h (collect_execute): Add flags argument.
635         * tlink.c (tlink_execute): Update call to collect_execute.
636         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
637         (use_linker_plugin): New.
638         (use_linker_plugin_spec_function): New.
639         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
640         (linker_plugin_file_spec): New.
641         (lto_wrapper_spec): New.
642         (lto_gcc_spec): New.
643         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
644         (static_spec_functions): Add use-linker-plugin.
645         (process_command): Handle -use-linker-plugin.
646         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
647         linker_plugin_file_spec and lto_gcc_spec.
648         (use_linker_plugin_spec_function): New.
649
650 2009-10-03  Richard Guenther  <rguenther@suse.de>
651
652         PR lto/41547
653         PR lto/41548
654         * tree.h (is_lang_specific): Include LANG_TYPE.
655         * tree.c (find_decls_types_r): Manually add interesting parts
656         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
657
658         * gimple.c (type_pair_hash): Make symmetric.
659         (type_pair_eq): Likewise.
660         (lookup_type_pair): Increase initial hashtable size.
661         (gimple_force_type_merge): Rely on type-pair symmetry.
662         (visit): Remove excessive checking code.
663         (iterative_hash_type_name): Do not hash TYPE_NAME of
664         anonymous unions.
665         (gimple_register_type): Remove getenv calls, shrink initial
666         hashtable size.
667
668         PR middle-end/41502
669         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
670         inline functions if not generating lto output.
671
672         PR lto/41379
673         * toplev.c (finalize): In WPA mode remove the asm file.
674
675 2009-10-03  Doug Kwan  <dougkwan@google.com>
676
677         * ipa-inline.c (cgraph_mark_inline): Check
678         edge->call_stmt_cannot_inline_p instead of calling
679         gimple_call_cannot_inline_p.
680         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
681         (cgraph_gate_ipa_early_inlining): Return false if
682         in_lto_p is set.
683         (inline_generate_summary): Do nothing in LTRANS.
684         * cgraph.c (initialize_inline_failed): Make sure
685         e->call_stmt exists before calling
686         gimple_call_cannot_inline_p.
687         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
688         (cgraph_clone_edge): Add argument STMT_UID.  Modify all
689         callers.
690         Update new_edge->lto_stmt_uid.
691         * cgraphbuild.c (reset_inline_failed): New.
692
693         * common.opt (fwpa): New flag.
694         (fltrans): New option.
695         * gcc.c (gcc_lto_option_t): New type.
696         (current_lto_option): New variable.
697         (lto_single_spec_function): Remove and is replaced by ..
698         (lto_option_spec_function): New function.
699         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
700         passing the -flto flag.
701         (cc1_options): Separate non-LTO related parts into ..
702         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
703         (lto1_options): New spec for lto FE.
704         (link_lto_options): New spec for handling LTO flags in linker.
705         (invoke_lto_single): Re-format to fit in 80 column.  Replace
706         lto-single with lto-option.
707         (static_specs): Add cc1_non_lto_options, lto1_options and
708         link_lto_options.
709         (static_spec_function): Replace lto-single with lto-option.
710         (process_command): Handle -flto, -fwpa and -fltran
711         by setting current_lto_option and not passing it to subprocess
712         unconditionally.
713
714 2009-10-03  Bill Maddox  <maddox@google.com>
715
716         Add `gcc' driver support for link-time code generation (LTO).
717
718         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
719         (lto_flag, lto_objects, lto_o_file): New variables.
720         (struct lto_object, struct lto_object_list): New structures.
721         (collect_exit, handler): Remove LTO temporary output file on exit.
722         (add_lto_object): New function.
723         (maybe_run_lto_and_relink): New function. Perform link time code
724         generation and relinking for object files containing LTO information.
725         (main): Invoke maybe_run_lto_and_relink().
726         (dump_argv): New function.  For debugging, currently disabled.
727         (scan_prog_file): Add LTO information pass.
728         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
729         collect2.
730         * toplev.c (compile_file): Emit assembler directive to create
731         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
732
733 2009-10-03  Diego Novillo  <dnovillo@google.com>
734
735         * c.opt: Add LTO to warn_abi and warn_psabi.
736
737         * tree.c (fld_worklist_push): Rename from PUSH.
738         Convert to static inline function.
739         Ignore language-specific nodes.
740         Update all users.
741         (find_decls_types_r): Do not traverse the subtrees of
742         language-specific nodes.
743         Do not traverse DECL_INITIAL for TYPE_DECLs.
744         * tree.h (is_lang_specific): New.
745         * langhooks.h (struct lang_hooks_for_decls): Remove
746         may_need_assembler_name_p.  Update all users.
747
748         * c-common.c (set_builtin_user_assembler_name): Move ...
749         * builtins.c (set_builtin_user_assembler_name): ... here.
750         (is_builtin_name): Add comment
751         (is_builtin_fn): New.
752         * except.c (output_ttype): Only call
753         lookup_type_for_runtime if TYPE is not a runtime type.
754
755         * passes.c (register_pass): Call position_pass on
756         all_small_ipa_passes, all_regular_ipa_passes and
757         all_lto_gen_passes.
758         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
759         (TV_IPA_LTO_DECL_IO): Define.
760         (TV_IPA_LTO_CGRAPH_IO): Define.
761         (TV_LTO): Define.
762         (TV_WHOPR_WPA): Define.
763         (TV_WHOPR_WPA_IO): Define.
764         (TV_WHOPR_LTRANS): Define.
765         (TV_WHOPR_WPA_FIXUP): Define.
766         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
767         * tree-cfg.c (tree_node_can_be_shared): Make extern.
768         * tree-flow.h (tree_node_can_be_shared): Declare.
769         * tree-inline.c (tree_can_inline_p): Check that E has a
770         statement associated with it.
771         * tree.c (free_lang_data_in_binf): Factor out of ...
772         (free_lang_data_in_type): ... here.
773         Call RECORD_OR_UNION_TYPE_P.
774         (need_assembler_name_p): Ignore DECL if it does not have
775         TREE_PUBLIC set.
776         Call lang_hooks.decls.may_need_assembler_name_p if set.
777         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for
778         CONST_DECLs.
779         (free_lang_data): Set debug_info_level to
780         DINFO_LEVEL_NONE.
781         Set write_symbols to NO_DEBUG.
782         Set debug_hooks to do_nothing_debug_hooks.
783         (gate_free_lang_data): Return true if flag_generate_lto
784         is set.
785         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
786         * c-common.h (set_builtin_user_assembler_name): Move ...
787         * tree.h (set_builtin_user_assembler_name): ... here.
788
789         * common.opt (flto-report): New flag.
790         * opts.c (complain_wrong_lang): Do not complain if
791         running lto1.
792         * collect2.c (scan_prog_file): Send the error output of
793         'nm' to HOST_BIT_BUCKET.
794
795 2009-10-03  Ollie Wild  <aaw@google.com>
796
797         * langhooks-def.h (lhd_begin_section): New function declaration.
798         (lhd_write_section): New function declaration.
799         (lhd_end_section): New function declaration.
800         (LANG_HOOKS_BEGIN_SECTION): New macro.
801         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
802         (LANG_HOOKS_END_SECTION): New macro.
803         (LANG_HOOKS_LTO): New macro.
804         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
805         * langhooks.c (output.h): Add include.
806         (saved_section): New static variable.
807         (lhd_begin_section): New function.
808         (lhd_write_section_data): New function.
809         (lhd_end_section): New function.
810         * langhooks.h (struct lang_hooks_for_lto): New structure.
811         (struct lang_hooks): Add member lto.
812         * Makefile.in (langhooks.o): Add dependency on output.h.
813
814         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
815
816 2009-10-03  Richard Guenther  <rguenther@suse.de>
817
818         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
819         Handle LTO.
820
821 2009-10-03  Simon Baldwin  <simonb@google.com>
822             Richard Guenther  <rguenther@suse.de>
823             Janis Johnson  <janis187@us.ibm.com>
824             Doug Kwan  <dougkwan@google.com>
825             Diego Novillo  <dnovillo@google.com>
826             Ramana Radhakrishnan  <ramana.r@gmail.com>
827             Ollie Wild  <aaw@google.com>
828
829         * doc/install.texi: Add documentation for libelf and --enable-lto.
830         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr,
831         -fltrans, -flto-report, -flto-compression-level and
832         -use-linker-plugin.
833         * doc/sourcebuild.texi: Document use of zlib.
834         Document lto-plugin.
835         Add section for LTO Testing.
836
837 2009-10-02  Cary Coutant  <ccoutant@google.com>
838
839         Add support for comdat type sections for DWARF v4.  Merge from dwarf4
840         branch.
841         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
842         (dw_die_ref): Define vector type.
843         (enum dw_val_class): Add dw_val_class_data8.
844         (struct dw_val_struct): Add v.val_data8.
845         (comdat_type_node_ref): New type.
846         (struct die_struct): Move die_symbol into a union; add new field
847         die_type_node.  Change all uses.
848         (comdat_type_node): New type.
849         (skeleton_chain_node): New type.
850         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
851         (comdat_type_list): New variable.
852         (dwarf_tag_name): Add DW_TAG_type_unit.
853         (dwarf_attr_name): Add DW_AT_signature.
854         (add_AT_data8): New function.
855         (replace_child): New function.
856         (move_all_children): New function.
857         (print_signature): New function.
858         (print_die): Print signature information; add dw_val_class_data8.
859         (attr_checksum): Support dw_val_class_data8.
860         (CHECKSUM_STRING): Redefine for DWARF-4 to include
861         trailing NULL byte.
862         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
863         (checksum_sleb128, checksum_uleb128): New functions.
864         (checksum_die_context): New function.
865         (loc_checksum_ordered): New function.
866         (attr_checksum_ordered): New function.
867         (struct checksum_attributes): New structure.
868         (collect_checksum_attributes): New function.
869         (die_checksum_ordered): New function.
870         (generate_type_signature): New function.
871         (same_dw_val_p): Add dw_val_class_data8.
872         (is_symbol_die): Use new is_declaration_die function.
873         (is_declaration_die): New function.
874         (should_move_die_to_comdat): New function.
875         (clone_die): New function.
876         (clone_tree): New function.
877         (clone_as_declaration): New function.
878         (copy_declaration_context): New function.
879         (generate_skeleton_ancestor_tree): New function.
880         (generate_skeleton_bottom_up): New function.
881         (generate_skeleton): New function.
882         (remove_child_or_replace_with_skeleton): New function.
883         (break_out_comdat_types): New function.
884         (struct decl_table_entry): New type.
885         (htab_decl_hash): New function.
886         (htab_decl_eq): New function.
887         (htab_decl_del): New function.
888         (copy_ancestor_tree): New function.
889         (copy_decls_walk): New function.
890         (copy_decls_for_unworthy_types): New function.
891         (build_abbrev_table): Don't assert on missing die_symbol when doing
892         comdat type sections.
893         (size_of_die): Use DW_FORM_sig8 for external references; Add
894         dw_val_class_data8.
895         (unmark_dies): Don't assert for unmarked dies when doing comdat
896         type sections.
897         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
898         (output_signature): New function.
899         (output_die): Likewise.
900         (output_compilation_unit_header): Mark output as DWARF version 3
901         even if generating DWARF 4.
902         (output_comdat_type_unit): New function.
903         (output_line_info): Mark output as DWARF version 3 even if generating
904         DWARF 4.
905         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
906         DWARF-4.
907         (dwarf2out_end_source_file): Likewise.
908         (prune_unused_types_walk_attribs): Don't follow references into
909         comdat type sections.
910         (prune_unused_types_mark): When generating type units, do not mark
911         children of non-defining declarations of types; do mark children of
912         type entries.
913         (prune_unused_types): Process comdat type sections.
914         (htab_ct_hash): New function.
915         (htab_ct_eq): New function.
916         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
917         Add a pointer to the line table from type unit entries so
918         DW_AT_decl_file has meaning.
919         * varasm.c (default_elf_asm_named_section): Use identifier name as
920         comdat key instead of lang hook.
921
922 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
923
924         * gcov-io.c (gcov_open): Open files read-only when MODE < 0
925
926 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
927
928         * config/i386/i386.md (SWIM248): New mode iterator.
929         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
930         divmodhi4 patterns using SWIM248 macro.
931         (*divmod<mode>4): Macroize insn_and_split pattern from
932         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
933         and their corresponding splitters usign SWIM248 macro.  Split SImode
934         insn to generate cltd and DImode insn to generate cqto instead of
935         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
936         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
937         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
938         *divmodsi_noext patterns using SWIM248 macro.
939         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
940         udivmodhi4 patterns using SWIM248 macro.
941         (*udivmod<mode>4): Macroize insn_and_split pattern from
942         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
943         corresponding splitters using SWIM248 macro.
944         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
945         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
946
947 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
948
949         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
950         of zero-sized element is zero-sized regardless of its extent.
951
952 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
953
954         PR debug/40521
955         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
956         * configure: Regenerated.
957         * config.in: Regenerated.
958         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
959         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
960         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
961         not emitting .eh_frame, emit .cfi_sections .debug_frame
962         directive.
963
964         PR debug/41404
965         PR debug/41353
966         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
967         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end with
968         '\0'.
969         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
970         vars use DECL_RTL with resetting it back to NULL afterwards.
971         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
972         rtx_equal_p instead of asserting it is a SYMBOL_REF.
973         (value_format): For dw_val_class_addr only use DW_FORM_addr if
974         the attribute type allows it, otherwise use DW_FORM_dataN.
975         (mem_loc_descriptor): Handle CONST_STRING.
976         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
977         Handle MEM with CONST_STRING address using add_AT_string.
978         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
979         CONST_STRING for const arrays initialized with a string literal.
980         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
981         (dwarf2out_finish): Call resolve_addr.
982
983 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
984             Maxim Kuvyrkov  <maxim@codesourcery.com>
985
986         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
987
988 2009-10-02  Nick Clifton  <nickc@redhat.com>
989
990         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
991         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
992
993 2009-10-01  Jan Hubicka  <jh@suse.cz>
994
995         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
996         (cgraph_create_virtual_clone): Just pass redirect_callers
997         around.
998         * cgraph.h (cgraph_clone_node): Update prototype.
999         * ipa-pure-const.c (self_recursive_p): New function.
1000         (propagate): Use it.
1001         * ipa-inline.c (cgraph_clone_inlined_nodes,
1002         cgraph_decide_recursive_inlining): Update.
1003
1004 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
1005
1006         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
1007         instructions for TARGET_OCTEON.
1008
1009 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1010
1011         * config/arm/arm.c (arm_override_options): Turn off
1012         flag_dwarf2_cfi_asm for AAPCS variants.
1013
1014 2009-10-01  Martin Jambor  <mjambor@suse.cz>
1015
1016         PR middle-end/12392
1017         * tree-sra.c (convert_callers): Do not call
1018         compute_inline_parameters on one caller more than once.
1019
1020 2009-10-01  Nick Clifton  <nickc@redhat.com>
1021
1022         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
1023         an empty string if not already defined.
1024
1025 2009-10-01  Martin Jambor  <mjambor@suse.cz>
1026
1027         PR bootstrap/41395
1028         * tree-sra.c (is_va_list_type): New function.
1029         (find_var_candidates): Call is_va_list_type.
1030         (find_param_candidates): Check that the type or the type pointed
1031         to are not va_list types.
1032
1033 2009-10-01  Martin Jambor  <mjambor@suse.cz>
1034
1035         PR c++/41503
1036         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
1037         DECL_ARTIFICIAL (param_decl) is true.
1038
1039 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
1040
1041         * tree.h (tree_decl_common::lang_flag_8): New.
1042         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
1043         keyword.
1044         * c-common.h (RID_CONSTEXPR): New.
1045
1046 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
1047
1048         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
1049         Use ref-all pointers.
1050         (alpha_gimplify_va_arg): Ditto.
1051
1052 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
1053
1054         PR target/41279
1055         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
1056         before insn counting loop now that BB_END (bb) is counted.  Ensure
1057         the return value isn't zero.
1058
1059 2009-09-30  Nick Clifton  <nickc@redhat.com>
1060
1061         * config.gcc (sh-symbianelf): Replace definition of extra_objs
1062         with separate definitions of c_target_objs and cxx_target_objs.
1063         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
1064         and symbian-base.o.
1065         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
1066         sh_symbian_import_export_class.
1067         * config/sh/sh-protos.h: Fix names of exported symbian functions.
1068         * config/sh/symbian.c: Delete, moving code into...
1069         * config/sh/symbian-base.c: ... here
1070         * config/sh/symbian-c.c: ... and here
1071         * config/sh/symbian-cxx.c: ... and here.
1072
1073 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
1074
1075         PR target/22093
1076         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
1077         of plus RTX into register.
1078
1079 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1080
1081         * doc/install.texi: Linguistic and markup fixes.
1082         (Configuration) <--disable-cpp>: Remove description.
1083         <--enable-maintainer-mode>: Autotools files are affected, too.
1084         <--with-sysroot>: Improve description.
1085         (Building): Bump required GNU make version.
1086
1087 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
1088
1089         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
1090         (x86_64-*-*): Ditto.
1091
1092         * config/i386/fma4intrin.h: New file, provide common x86 compiler
1093         intrinisics for FMA4.
1094         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
1095         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
1096         Add FMA4 check and fma4intrin.h.
1097         * config/i386/i386-c.c(ix86_target_macros_internal): Check
1098         ISA_FLAG for FMA4.
1099         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
1100         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
1101         constant for FMA4 support.
1102         (UNSPEC_FMA4_FMADDSUB): Ditto.
1103         (UNSPEC_FMA4_FMSUBADD): Ditto.
1104         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
1105         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
1106         (ix86_expand_fma4_multiple_memory): Ditto.
1107         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
1108         (OPTION_MASK_ISA_FMA4_UNSET): New.
1109         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
1110         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
1111         (ix86_handle_option): Handle -mfma4.
1112         (isa_opts): Handle -mfma4.
1113         (enum pta_flags): Add PTA_FMA4.
1114         (override_options): Add FMA4 support.
1115         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
1116         (IX86_BUILTIN_VFMADDSD): Ditto.
1117         (IX86_BUILTIN_VFMADDPS): Ditto.
1118         (IX86_BUILTIN_VFMADDPD): Ditto.
1119         (IX86_BUILTIN_VFMSUBSS): Ditto.
1120         (IX86_BUILTIN_VFMSUBSD): Ditto.
1121         (IX86_BUILTIN_VFMSUBPS): Ditto.
1122         (IX86_BUILTIN_VFMSUBPD): Ditto.
1123         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
1124         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
1125         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
1126         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
1127         (IX86_BUILTIN_VFNMADDSS): Ditto.
1128         (IX86_BUILTIN_VFNMADDSD): Ditto.
1129         (IX86_BUILTIN_VFNMADDPS): Ditto.
1130         (IX86_BUILTIN_VFNMADDPD): Ditto.
1131         (IX86_BUILTIN_VFNMSUBSS): Ditto.
1132         (IX86_BUILTIN_VFNMSUBSD): Ditto.
1133         (IX86_BUILTIN_VFNMSUBPS): Ditto.
1134         (IX86_BUILTIN_VFNMSUBPD): Ditto.
1135         (IX86_BUILTIN_VFMADDPS256): Ditto.
1136         (IX86_BUILTIN_VFMADDPD256): Ditto.
1137         (IX86_BUILTIN_VFMSUBPS256): Ditto.
1138         (IX86_BUILTIN_VFMSUBPD256): Ditto.
1139         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
1140         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
1141         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
1142         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
1143         (IX86_BUILTIN_VFNMADDPS256): Ditto.
1144         (IX86_BUILTIN_VFNMADDPD256): Ditto.
1145         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
1146         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
1147         (enum multi_arg_type): New enum for describing the various FMA4
1148         intrinsic argument types.
1149         (bdesc_multi_arg): New table for FMA4 intrinsics.
1150         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
1151         (ix86_expand_multi_arg_builtin): New function for creating FMA4
1152         intrinsics.
1153         (ix86_expand_builtin): Add FMA4 intrinsic support.
1154         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
1155         operand instructions.
1156         (ix86_expand_fma4_multiple_memory): New function to split the
1157         second memory reference from FMA4 instructions.
1158         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
1159         (ssemodesuffixf2s): Ditto.
1160         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
1161         instructions.
1162         (fma4_fmsub<mode>4): Ditto.
1163         (fma4_fnmadd<mode>4): Ditto.
1164         (fma4_fnmsub<mode>4): Ditto.
1165         (fma4_vmfmadd<mode>4): Ditto.
1166         (fma4_vmfmsub<mode>4): Ditto.
1167         (fma4_vmfnmadd<mode>4): Ditto.
1168         (fma4_vmfnmsub<mode>4): Ditto.
1169         (fma4_fmadd<mode>4256): Ditto.
1170         (fma4_fmsub<mode>4256): Ditto.
1171         (fma4_fnmadd<mode>4256): Ditto.
1172         (fma4_fnmsub<mode>4256): Ditto.
1173         (fma4_fmaddsubv8sf4): Ditto.
1174         (fma4_fmaddsubv4sf4): Ditto.
1175         (fma4_fmaddsubv4df4): Ditto.
1176         (fma4_fmaddsubv2df4): Ditto.
1177         (fma4_fmsubaddv8sf4): Ditto.
1178         (fma4_fmsubaddv4sf4): Ditto.
1179         (fma4_fmsubaddv4df4): Ditto.
1180         (fma4_fmsubaddv2df4): Ditto.
1181         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
1182         instructions for intrinsics.
1183         (fma4i_fmsub<mode>4): Ditto.
1184         (fma4i_fnmadd<mode>4): Ditto.
1185         (fma4i_fnmsub<mode>4): Ditto.
1186         (fma4i_vmfmadd<mode>4): Ditto.
1187         (fma4i_vmfmsub<mode>4): Ditto.
1188         (fma4i_vmfnmadd<mode>4): Ditto.
1189         (fma4i_vmfnmsub<mode>4): Ditto.
1190         (fma4i_fmadd<mode>4256): Ditto.
1191         (fma4i_fmsub<mode>4256): Ditto.
1192         (fma4i_fnmadd<mode>4256): Ditto.
1193         (fma4i_fnmsub<mode>4256): Ditto.
1194         (fma4i_fmaddsubv8sf4): Ditto.
1195         (fma4i_fmaddsubv4sf4): Ditto.
1196         (fma4i_fmaddsubv4df4): Ditto.
1197         (fma4i_fmaddsubv2df4): Ditto.
1198         (fma4i_fmsubaddv8sf4): Ditto.
1199         (fma4i_fmsubaddv4sf4): Ditto.
1200         (fma4i_fmsubaddv4df4): Ditto.
1201         (fma4i_fmsubaddv2df4): Ditto.
1202
1203         * doc/invoke.texi (-mfma4): Add documentation.
1204         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
1205
1206 2009-09-29  Richard Henderson  <rth@redhat.com>
1207
1208         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
1209         an edge to the new destination block.
1210
1211 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1212
1213         PR target/41393
1214         * pa.c (hppa_profile_hook): Use
1215         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
1216
1217 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
1218             Alexander Monakov  <amonakov@ispras.ru>
1219
1220         PR target/41365
1221         * config/ia64/predicates.md (not_postinc_destination_operand): New.
1222         (not_postinc_memory_operand): New.
1223         (not_postinc_move_operand): New.
1224         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
1225         (*cmovsi_internal): Ditto.
1226
1227 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
1228
1229         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
1230         restrict issue_rate in first pass when scheduling for register
1231         pressure.
1232
1233 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
1234             Rafael Avila de Espindola  <espindola@google.com>
1235
1236         * gengtype.c (plugin_output): New.
1237         (get_output_file_with_visibility): Return plugin_output for plugins.
1238         (main): Parse and use the -P option.
1239         * gty.texi: Update the command line format.
1240
1241 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
1242
1243         PR debug/41438
1244         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
1245         functions.
1246         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
1247         out if !const_ok_for_output.
1248
1249         PR debug/41474
1250         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
1251         case VAR_LOCATION>: Remove gcc_unreachable ().
1252
1253 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
1254
1255         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
1256         (x86_64-*-*): Ditto.
1257         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
1258         back to smmintrin.h.
1259         * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
1260         * config/i386/x86intrin.h: Remove SSE5.
1261         * config/i386/mmintrin-common.h: Delete file.
1262         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
1263
1264 2009-09-29  Richard Guenther  <rguenther@suse.de>
1265
1266         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
1267         resulting from stack temporaries on STRICT_ALIGNMENT targets.
1268
1269 2009-09-29  Nick Clifton  <nickc@redhat.com>
1270
1271         * function.c (current_function_name): If there is no current
1272         function just return "<none>".
1273
1274 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
1275
1276         * tree-pass.h (register_pass_info): New structure.
1277         (pass_positioning_ops): Move enum from gcc-plugin.h.
1278         (register_pass): New function.
1279         * gcc-plugin.h (plugin_pass): Delete structure.
1280         (pass_positioning_ops): Delete enum.
1281         * plugin.c (regsiter_pass): Delete function.
1282         (position_pass): Delete function.
1283         (added_pass_nodes): Delete variable.
1284         (prev_added_pass_nodes): Delete variable.
1285         (pass_list_node): Delete structure.
1286         * passes.c (make_pass_instance): New function.
1287         (next_pass_1): Change to call make_pass_instance.
1288         (pass_list_node): Move structure from gcc-plugin.h.
1289         (added_pass_nodes): Move variable from plugin.c.
1290         (prev_added_pass_nodes): Move variable from plugin.c.
1291         (position_pass): New function.
1292         (register_pass): New function.
1293
1294 2009-09-28  Easwaran Raman  <eraman@google.com>
1295
1296         * ifcvt.c (noce_try_abs): Recognize pattern and call
1297         expand_one_cmpl_abs_nojump.
1298         * optabs.c (expand_one_cmpl_abs_nojump): New function.
1299         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
1300
1301 2009-09-28  Ian Lance Taylor  <iant@google.com>
1302
1303         PR middle-end/40500
1304         * c-opts.c (c_common_handle_option): Don't set
1305         warn_jump_misses_init for -Wall.
1306         * doc/invoke.texi (Warning Options): Update documentation.
1307
1308 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1309
1310         * Makefile.in ($(out_object_file)): Depend on
1311         gt-$(basename $(notdir $(out_file))).h.
1312
1313 2009-09-28  Richard Henderson  <rth@redhat.com>
1314
1315         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
1316         * except.c (gen_eh_region): Set it.
1317         (duplicate_eh_regions_1): Copy it.
1318         * tree-eh.c (lower_resx): Use it to determine which function
1319         to call to resume.
1320
1321         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
1322         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
1323         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
1324         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
1325         BUILT_IN_CXA_END_CLEANUP if necessary.
1326
1327         * c-common.c (c_define_builtins): Update call to
1328         build_common_builtin_nodes.
1329
1330 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1331
1332         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
1333
1334 2009-09-28  Michael Matz  <matz@suse.de>
1335
1336         * builtins.c (interclass_mathfn_icode): New helper.
1337         (expand_builtin_interclass_mathfn): Use it here, and split folding
1338         into ...
1339         (fold_builtin_interclass_mathfn): ... this new folder.
1340         (build_call_nofold_loc): New static helper.
1341         (build_call_nofold): New wrapper macro for above.
1342         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
1343         (expand_builtin_pow): Ditto.
1344         (expand_builtin_memset_args): Ditto.
1345         (expand_builtin_printf): Ditto.
1346         (expand_builtin_fprintf): Ditto.
1347         (expand_builtin_sprintf): Ditto.
1348         (expand_builtin_memory_chk): Ditto.
1349         (expand_builtin_mempcpy_args): Ditto and don't call folders.
1350         (expand_builtin_stpcpy): Ditto.
1351         (expand_builtin_strcmp): Ditto.
1352         (expand_builtin_strncmp): Ditto.
1353         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
1354         (expand_builtin_strcpy_args): Don't call folders.
1355         (expand_builtin_memcmp): Ditto.
1356         (expand_builtin_strncpy): Ditto, and use target.
1357         (expand_builtin_memcpy): Ditto.
1358         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
1359         expand_builtin_strpbrk, expand_builtin_memmove,
1360         expand_builtin_memmove_args, expand_builtin_bcopy,
1361         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
1362         expand_builtin_strspn, expand_builtin_strcspn,
1363         expand_builtin_fputs): Remove these.
1364         (expand_builtin): Don't call the above, change calls to other
1365         expanders that changed prototype.
1366         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
1367         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
1368         fold_builtin_interclass_mathfn.
1369         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
1370         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
1371
1372         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
1373         * passes.c (init_optimization_passes): Move pass_fold_builtins
1374         after last phiopt pass.
1375         * tree-inline.c (fold_marked_statements): When folding builtins
1376         iterate over all instruction potentially generated.
1377         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
1378         earlier.
1379         (fold_gimple_call): Use it to always fold calls (into potentially
1380         multiple instructions).
1381         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
1382         calls into zero at this time.
1383         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
1384         statements generated by builtin folding.
1385
1386 2009-09-28  Nick Clifton  <nickc@redhat.com>
1387
1388         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging
1389         insns.
1390
1391 2009-09-28  Duncan Sands  <baldrick@free.fr>
1392
1393         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
1394         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
1395         (register_callback): Dispatch it.
1396         (invoke_plugin_callbacks): Incorporate in sanity check.
1397         * ggc.h (ggc_register_cache_tab): Add declaration.
1398         * ggc-common.c (ggc_register_root_tab): Simplify.
1399         (const_ggc_cache_tab_t): New typedef.
1400         (extra_cache_vec): New vector of dynamically added cache tables.
1401         (ggc_register_cache_tab): New function.
1402         (ggc_scan_cache_tab): New function.
1403         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
1404         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
1405
1406 2009-09-27  Richard Henderson  <rth@redhat.com>
1407
1408         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
1409         which we remove __builtin_stack_restore.
1410
1411 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
1412
1413         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
1414         to test for GRD_INVARIANT.
1415         (simple_rhs_p): Anything that's function_invariant_p is fine.
1416
1417 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
1418
1419         * gengtype.c (main): Use plunge_files instead of plugin_output.
1420
1421 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
1422             Rafael Avila de Espindola  <espindola@google.com>
1423
1424         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
1425         Don't print pch related info if it is false.
1426         (main): Don't print pch info in plugin mode.
1427
1428 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
1429
1430         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
1431         with dw_val_class_const_double.
1432         (struct dw_val_struct): Replace val_long_long with val_double and
1433         adjust for above change.
1434         (output_loc_operands): Likewise.
1435         (add_AT_long_long): Rename into...
1436         (add_AT_double): ...this.
1437         (print_die): Replace dw_val_class_long_long with
1438         dw_val_class_const_double and adjust.
1439         (attr_checksum): Likewise.
1440         (same_dw_val_p): Likewise.
1441         (size_of_die): Likewise.
1442         (value_format): Likewise.
1443         (output_die): Likewise.
1444         (loc_descriptor) <CONST_DOUBLE>: Likewise.
1445         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
1446         instead of add_AT_long_long.
1447         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
1448         value with the precision of its type.
1449
1450 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
1451
1452         PR c/41476
1453         * c-typeck.c (build_conditional_expr): Use the readonly and
1454         volatile flags of the operand types, not of the operands itself.
1455
1456 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
1457
1458         collect2.c (main): Look for -brtl before adding libraries.
1459
1460 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
1461
1462         * config.gcc: Update OpenBSD targets.
1463         * config/openbsd-stdint.h: New file.
1464         * config/openbsd-libpthread.h: New file.
1465         * config/openbsd.h: Update and break out LIB_SPEC definition.
1466         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
1467         * config/i386/openbsdelf.h: Correct types.
1468         * config/m68k/openbsd.h: Likewise.
1469         * config/mips/openbsd.h: Likewise.
1470         * config/vax/openbsd.h: Likewise.
1471
1472 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
1473
1474         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
1475         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
1476         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
1477         of the length and zero.
1478
1479 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1480
1481         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
1482         (FLAGS_H): Add options.h $(REAL_H).
1483         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
1484         (TREE_VECTORIZER_H): New.
1485         (EBITMAP_H): Renamed from EBIMAP_H.
1486         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
1487         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
1488         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
1489         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
1490         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
1491         (graphite-clast-to-gimple.o, graphite-dependences.o)
1492         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
1493         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
1494         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
1495         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
1496         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
1497         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
1498         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
1499         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
1500         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
1501         updated and fixed as per above changes and per
1502         check_makefile_deps.sh output.
1503
1504         PR bootstrap/40928
1505         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
1506         * configure: Regenerate.
1507
1508 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1509
1510         * doc/install.texi: Update minimum MPC version to 0.7.
1511
1512 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
1513
1514         * doc/install.texi (Binaries): Remove reference to the binary
1515         distribution CD-ROM from the FSF.
1516
1517 2009-09-26  Michael Matz  <matz@suse.de>
1518
1519         PR lto/40758
1520         PR middle-end/41470
1521         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
1522         that are mentioned in the body.
1523
1524 2009-09-26  Michael Matz  <matz@suse.de>
1525
1526         PR tree-optimization/41454
1527         * tree-ssa-dom (stmts_to_rescan): Remove variable.
1528         (tree_ssa_dominator_optimize): Don't allocate and free it.
1529         (dom_opt_leave_block): Don't iterate over it.
1530         (eliminate_redundant_computations): Don't return a value.
1531         (cprop_operand, cprop_into_stmt): Ditto.
1532         (optimize_stmt): Don't defer updating stmts.
1533
1534 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
1535
1536         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
1537         generic_parameter_die, template_parameter_pack_die,
1538         gen_formal_parameter_die, gen_subprogram_die): Adjust after renaming
1539         DW_TAG_formal_parameter_pack and DW_TAG_template_parameter_pack into
1540         DW_TAG_GNU_formal_parameter_pack and DW_TAG_GNU_template_parameter_pack.
1541
1542 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
1543
1544         * config/v850/v850.h (FUNCTION_VALUE): Remove.
1545         * config/v850/v850.c (v850_function_value): New function.
1546         (TARGET_FUNCTION_VALUE): Define.
1547
1548 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
1549
1550         * tree-vect-stmts.c (vectorizable_call): Call
1551         mark_symbols_for_renaming after vect_finish_stmt_generation.
1552
1553         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
1554         to loc_descriptor_from_tree.
1555         (add_location_or_const_value_attribute): Pass 0 instead of 2
1556         for decl_by_reference_p decls.
1557
1558 2009-09-25  Richard Guenther  <rguenther@suse.de>
1559
1560         PR middle-end/41463
1561         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
1562         arrays again.
1563
1564 2009-09-25  Ben Elliston  <bje@au.ibm.com>
1565
1566         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
1567         after `power7'.
1568
1569 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
1570
1571         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
1572         form of instruction.
1573
1574 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1575
1576         PR middle-end/41435
1577         * fold-const.c (const_binop): Handle complex int division.
1578         * tree-complex.c (expand_complex_div_straight,
1579         expand_complex_div_wide): Update comments.
1580
1581 2009-09-24  DJ Delorie  <dj@redhat.com>
1582
1583         PR target/41456
1584         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
1585         (reg_class): Likewise.
1586         (REG_CLASS_NAMES): Likewise.
1587         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
1588
1589         * config/m32c/m32c.c (m32c_override_options): Disable -fivopts for
1590         M32C.
1591
1592 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1593
1594         * config/rs6000/predicates.md (indexed_or_indirect_operand):
1595         Delete VSX load/store with update support.
1596         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
1597         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
1598         (vsx_movti): Ditto.
1599         (VSX_U): Delete.
1600         (VSbit): Ditto.
1601         (VStype_load_update): Ditto.
1602         (VStype_store_update): Ditto.
1603         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
1604         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
1605
1606         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
1607         load/store with update builtins.
1608
1609 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
1610
1611         * libgcc2.c (L_trampoline): Prototype for getpagesize
1612         and mprotect in WINNT case.
1613
1614 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
1615
1616         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
1617         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
1618         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
1619         'outgoing' argument.
1620         (TARGET_FUNCTION_VALUE): Define.
1621
1622 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1623
1624         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
1625
1626 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1627
1628         PR bootstrap/41405
1629         * common.opt: Initialize dwarf_strict to -1.
1630         * toplev.c (process_options): Catch unset dwarf_strict
1631         and set to 0 for all targets not overriding.
1632         * config/darwin.c (darwin_override_options): Catch unset
1633         dwarf_strict and override to 1.
1634
1635 2009-09-24  Jeff Law  <law@redhat.com>
1636
1637         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
1638
1639 2009-09-24  Richard Guenther  <rguenther@suse.de>
1640
1641         PR tree-optimization/36143
1642         PR tree-optimization/38747
1643         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
1644         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
1645
1646 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
1647
1648         PR bootstrap/41457
1649         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
1650         return false instead of gcc_unreachable ().  For CONST return the
1651         value returned by recursive call instead of always returning true.
1652         (tree_add_const_value_attribute): Return the value returned by
1653         add_const_value_attribute instead of always returning true if rtl
1654         is non-NULL.
1655
1656 2009-09-23  Justin Seyster  <jrseys@gmail.com>
1657
1658         * Makefile.in (PLUGIN_HEADERS): Include real.h.
1659
1660 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
1661
1662         * cgraphunit.c (cgraph_lower_function): Revert last change.
1663         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
1664         instead of DECL_NO_STATIC_CHAIN.
1665         * tree-cfg.c (verify_gimple_call): Likewise.
1666         * tree-nested.c (get_chain_decl, get_chain_field,
1667         convert_tramp_reference_op, convert_gimple_call): Likewise.
1668         (convert_all_function_calls): Likewise.  Always set or clear
1669         DECL_STATIC_CHAIN initially, for !n->outer clear it.
1670         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
1671         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
1672         if nested.
1673         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
1674         DECL_NO_STATIC_CHAIN.
1675         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
1676         instead of DECL_NO_STATIC_CHAIN.
1677         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
1678         decl_function_context.
1679         * varasm.c (initializer_constant_valid_p): Likewise.
1680         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
1681         (DECL_STATIC_CHAIN): ... this.
1682         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
1683         instead of DECL_NO_STATIC_CHAIN.
1684
1685 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
1686             Rafael Avila de Espindola  <espindola@google.com>
1687
1688         * gengtype.c (nb_plugin_files): Make it unsigned to match
1689         num_gt_files. Adjust other variables to avoid warnings.
1690         (main): Allocate an all zero lang_bitmap before each plugin file name
1691         to match regular file names.
1692
1693 2009-09-23  Richard Henderson  <rth@redhat.com>
1694
1695         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
1696         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
1697         static chain passed in memory.
1698         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
1699         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
1700         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
1701         STATIC_CHAIN_REGNUM defined.
1702
1703         * config/picochip/picochip-protos.h: s/class/klass/.
1704         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
1705         (picochip_static_chain): New.
1706         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
1707         (STATIC_CHAIN_INCOMING): Remove.
1708
1709         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
1710         (xtensa_static_chain): New.
1711         * config/xtensa/xtensa.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
1712
1713 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
1714
1715         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
1716         * config/pa/pa-protos.h (function_value): Remove.
1717         * config/pa/pa.c (pa_function_value): Rename from function_value.
1718         Make static, add 'outgoing' argument.
1719         (TARGET_FUNCTION_VALUE): Define.
1720
1721 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
1722
1723         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
1724         instead of cfun->machine->is_leaf.
1725         * config/avr/avr.h (machine_function): Remove is_leaf field.
1726
1727 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
1728
1729         PR debug/41439
1730         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
1731         DW_OP_piece after DW_OP_stack_value, adjust size calculations
1732         for it, when DW_OP_stack_value and DW_OP_implicit_value has
1733         the same size, prefer DW_OP_stack_value.
1734         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
1735         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
1736
1737 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
1738
1739         PR debug/41353
1740         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
1741
1742 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
1743
1744         PR debug/41248
1745         * cfgexpand.c (convert_debug_memory_address): New.
1746         (expand_debug_expr): Convert base address and offset to the same
1747         mode.  Use it to convert addresses to other modes.  Accept
1748         ptr_mode addresses.
1749
1750 2009-09-23  Richard Guenther  <rguenther@suse.de>
1751
1752         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
1753         produced for bigendian targets with promoted subregs.
1754
1755 2009-09-23  Richard Guenther  <rguenther@suse.de>
1756
1757         * value-prof.c (gimple_ic): Purge old EH edges only after building
1758         the new ones.
1759
1760 2009-09-23  Nick Clifton  <nickc@redhat.com>
1761
1762         * config/arc/arc.c (arc_trampoline_init): Fix typo.
1763
1764 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
1765
1766         PR bootstrap/41405
1767         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
1768
1769         PR bootstrap/41436
1770         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
1771         on non-nested functions.
1772
1773 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
1774             Jan Hubicka  <jh@suse.cz>
1775
1776         * dwarf2out.c (loc_list_plus_const): Only define if
1777         DWARF2_DEBUGGING_INFO.
1778         (address_of_int_loc_descriptor): Likewise.
1779
1780         PR debug/41411
1781         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
1782
1783 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
1784
1785         PR c/39779
1786         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
1787         constant is more than zero.
1788
1789 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
1790
1791         PR target/40473
1792         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
1793         call final to emit non-scheduled prologue, instead insert at entry.
1794
1795 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
1796             Joseph S. Myers  <joseph@codesourcery.com>
1797
1798         * doc/install.texi (*-*-freebsd*): Add proper format codes.
1799
1800 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
1801             Rafael Avila de Espindola  <espindola@google.com>
1802
1803         * gengtype.c (is_file_equal): New function.
1804         (close_output_files): Use is_file_equal. Free of->buf.
1805
1806 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
1807             Rafael Avila de Espindola  <espindola@google.com>
1808
1809         * gengtype.c (write_types, write_local): Add the output_header
1810         argument. Update all callers.
1811
1812 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
1813
1814         * dwarf2out.c (template_parameter_pack_die,
1815         gen_formal_parameter_pack_die ): New functions.
1816         (make_ith_pack_parameter_name): Remove this function.
1817         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
1818         DW_TAG_formal_parameter_pack.
1819         (gen_generic_params_dies): Represent each template parameter pack
1820         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
1821         represented by usual DW_TAG_template_*_parameter DIEs that are
1822         children of the DW_TAG_template_parameter_pack element DIE.
1823         (generic_parameter_die): This doesn't deal with parameter pack
1824         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
1825         of parameter pack DIEs.
1826         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
1827         in certain cases, e.g. for pack elements.
1828         (gen_formal_types_die, gen_decl_die): Adjust usage of
1829         gen_formal_parameter_die.
1830         (gen_subprogram_die): Represent each function parameter pack by a
1831         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
1832         represented by usual DW_TAG_formal_parameter DIEs that are children
1833         of the DW_TAG_formal_parameter_pack DIE. Remove references to
1834         ____builtin_va_alist decls as no part of the compiler uses those
1835         anymore.
1836         * langhooks.h (struct lang_hooks_for_decls): Add
1837         function_parm_expanded_from_pack_p, get_generic_function_decl
1838         and function_parameter_pack_p hooks.  Fix comment for
1839         get_innermost_generic_parms hook.
1840         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
1841         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
1842         macros and use them to initialize lang_hook.
1843
1844 2009-09-22  Richard Henderson  <rth@redhat.com>
1845
1846         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
1847         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
1848         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
1849         on TRAMPOLINE_TEMPLATE.
1850         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
1851         TRAMPOLINE_ADJUST_ADDRESS.
1852         * targhooks.c (default_asm_trampoline_template): Remove.
1853         (default_trampoline_adjust_address): Remove.
1854         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
1855         * targhooks.h: Update decls.
1856
1857 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
1858
1859         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
1860         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
1861         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
1862
1863 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
1864
1865         PR debug/41295
1866         * reload1.c (reload): Reset debug insns with pseudos without
1867         equivalences.
1868
1869 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
1870
1871         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
1872         unconditional true for decimal float modes.
1873         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
1874         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
1875
1876 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
1877
1878         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
1879         Enable a new case for __FreeBSD__ >= 7.
1880         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
1881         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
1882         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
1883         and USE_LD_AS_NEEDED.
1884
1885         * doc/install.texi (*-*-freebsd*): Update target information.
1886
1887 2009-09-22  Richard Guenther  <rguenther@suse.de>
1888
1889         PR middle-end/41395
1890         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
1891         arrays really properly.
1892
1893 2009-09-22  Richard Henderson  <rth@redhat.com>
1894
1895         PR target/41246
1896         * target.h (struct gcc_target): Add asm_out.trampoline_template,
1897         calls.static_chain, calls.trampoline_init,
1898         calls.trampoline_adjust_address.
1899         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1900         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
1901         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
1902         * builtins.c (expand_builtin_setjmp_receiver): Use
1903         targetm.calls.static_chain; only clobber registers.
1904         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
1905         set up memory attributes properly for the trampoline block.
1906         (expand_builtin_adjust_trampoline): Use
1907         targetm.calls.trampoline_adjust_address.
1908         * calls.c (prepare_call_address): Add fndecl argument.  Use
1909         targetm.calls.static_chain.
1910         * df-scan.c (df_need_static_chain_reg): Remove.
1911         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
1912         consolodate static chain handling.
1913         * doc/tm.texi: Document new hooks.
1914         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
1915         (init_emit_regs): Don't initialize them.
1916         * expr.h (prepare_call_address): Update decl.
1917         * final.c (profile_function): Use targetm.calls.static_chain.
1918         * function.c (expand_function_start): Likewise.
1919         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
1920         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
1921         only clobber registers.
1922         * targhooks.c (default_static_chain): New.
1923         (default_asm_trampoline_template, default_trampoline_init): New.
1924         (default_trampoline_adjust_address): New.
1925         * targhooks.h: Declare them.
1926         * varasm.c (assemble_trampoline_template): Use
1927         targetm.asm_out.trampoline_template.  Make the memory block const
1928         and set its size.
1929
1930         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
1931         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
1932         differences into the TARGET_ABI_OPEN_VMS code block.
1933         (TARGET_TRAMPOLINE_INIT): New.
1934         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
1935         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
1936         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
1937         (INITIALIZE_TRAMPOLINE): Remove.
1938
1939         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
1940         (TRAMPOLINE_TEMPLATE): Merge with ...
1941         (INITIALIZE_TRAMPOLINE): ... this and move ...
1942         * config/arc/arc.c (arc_trampoline_init): ... here.
1943         (TARGET_TRAMPOLINE_INIT): New.
1944
1945         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1946         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
1947         (arm_asm_trampoline_template): New.
1948         (arm_trampoline_init, arm_trampoline_adjust_address): New.
1949         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
1950         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
1951         code to arm_asm_trampoline_template.
1952         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
1953         arm_trampoline_adjust_address.
1954         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
1955         adjust for target hook parameters.
1956
1957         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
1958         Remove.
1959
1960         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
1961         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
1962         (bfin_trampoline_init): Rename from initialize_trampoline;
1963         make static; update for target hook parameters.
1964         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
1965         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
1966         bfin_asm_trampoline_template.
1967         (INITIALIZE_TRAMPOLINE): Remove.
1968
1969         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1970         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
1971         cris_trampoline_init): New.
1972         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
1973         cris_asm_trampoline_template.
1974         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
1975         adjust for target hook parameters.
1976
1977         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
1978
1979         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1980         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
1981         fr30_trampoline_init): New.
1982         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
1983         fr30_asm_trampoline_template.
1984         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
1985         adjust for target hook parameters.
1986
1987         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
1988         (frv_trampoline_init): Rename from frv_initialize_trampoline;
1989         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
1990         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
1991         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
1992
1993         * config/h8300/h8300.c (h8300_trampoline_init): New.
1994         (TARGET_TRAMPOLINE_INIT): New.
1995         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
1996         to h8300_trampoline_init and adjust for hook parameters.
1997
1998         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
1999         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
2000         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
2001         make static; adjust for hook parameters.
2002         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
2003
2004         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2005         (TARGET_TRAMPOLINE_INIT): New.
2006         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
2007         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
2008         iq2000_asm_trampoline_template.
2009         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
2010         (TRAMPOLINE_CODE_SIZE): New.
2011         (TRAMPOLINE_SIZE): Use it.
2012         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
2013
2014         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
2015         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
2016         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
2017         adjust for hook parameters.
2018         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
2019
2020         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
2021         (m32r_trampoline_init): New.
2022         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
2023         m32r_trampoline_init.
2024
2025         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
2026         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
2027         make static; update for hook parameters.
2028         * config/m68hc11/m68hc11-protos.h: Update.
2029         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
2030
2031         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2032         (TARGET_TRAMPOLINE_INIT): New.
2033         (mcore_function_value): Fix typo.
2034         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
2035         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
2036         to mcore_asm_trampoline_template.
2037         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
2038
2039         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
2040         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
2041         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
2042         update for hook parameters.
2043         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
2044
2045         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2046         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2047         mips_trampoline_init): New.
2048         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
2049         mips_asm_trampoline_template.
2050         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
2051         update for hook parameters.
2052
2053         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2054         (TARGET_TRAMPOLINE_INIT): New.
2055         (mmix_trampoline_size): Remove.
2056         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
2057         make static.  Remove out-of-date tetra vs octa comment.
2058         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
2059         make static; update for hook parameters.
2060         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
2061         (INITIALIZE_TRAMPOLINE): Remove.
2062         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
2063         (TRAMPOLINE_ALIGNMENT): New.
2064         * gcc/config/mmix/mmix-protos.h: Update.
2065
2066         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2067         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2068         mn10300_trampoline_init): New.
2069         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
2070         mn10300_asm_trampoline_template.
2071         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
2072
2073         * config/moxie/moxie.c (moxie_static_chain,
2074         moxie_asm_trampoline_template, moxie_trampoline_init,
2075         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
2076         TARGET_TRAMPOLINE_INIT): New.
2077         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
2078         moxie_trampoline_init.
2079         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
2080         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2081
2082         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2083         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2084         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
2085         pa_trampoline_adjust_address): New.
2086         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
2087         pa_asm_trampoline_template.
2088         (TRAMPOLINE_ALIGNMENT): New.
2089         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
2090         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
2091         adjust for hook parameters.
2092         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
2093
2094         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
2095         (TARGET_TRAMPOLINE_INIT): New.
2096         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
2097         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
2098
2099         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
2100
2101         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
2102         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
2103         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
2104         make static; adjust parameters for the hook.
2105         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
2106
2107         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
2108         s390_trampoline_template; make static.
2109         (s390_trampoline_init): Rename from s390_initialize_trampoline;
2110         make static; adjust for target hook.
2111         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2112         * config/s390/s390-protos.h: Remove trampoline decls.
2113         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
2114         (TRAMPOLINE_TEMPLATE): Remove.
2115         (TRAMPOLINE_ALIGNMENT): New.
2116
2117         * config/score/score-protos.h (score_initialize_trampoline): Remove.
2118         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2119         (TARGET_TRAMPOLINE_INIT): New.
2120         (score_asm_trampoline_template): New.
2121         (score_trampoline_init): Rename from score_initialize_trampoline;
2122         make static; adjust for hook parameters.
2123         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
2124         score[37]_asm_trampoline_template.
2125         (INITIALIZE_TRAMPOLINE): Remove.
2126         * config/score/score3.c (score3_asm_trampoline_template): New.
2127         (score3_trampoline_init): Rename from score3_initialize_trampoline;
2128         adjust for target hook.
2129         * config/score/score7.c (score7_asm_trampoline_template): New.
2130         (score7_trampoline_init): Rename from score7_initialize_trampoline;
2131         adjust for target hook.
2132         * config/score/score3.h, config/score/score7.h: Update.
2133
2134         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
2135         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
2136         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2137         (sh_trampoline_init): Rename from sh_initialize_trampoline;
2138         make static; adjust for target hook parameters.
2139         (sh_trampoline_adjust_address): New.
2140         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
2141         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
2142
2143         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
2144         (sparc32_initialize_trampoline): Rename from
2145         sparc_initialize_trampoline; make static; replace tramp parameter
2146         with m_tramp and update memory accesses.
2147         (sparc64_initialize_trampoline): Similarly.
2148         (sparc_trampoline_init): New.
2149         * config/sparc/sparc-protos.h: Remove trampoline decls.
2150         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
2151         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
2152
2153         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
2154         (array_to_constant): Make ARR parameter const.
2155         (spu_trampoline_init): Rename from spu_initialize_trampoline;
2156         make static; update for hook parameters.
2157         * config/spu/spu-protos.h: Update decls.
2158         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
2159
2160         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
2161         from xstormy16_initialize_trampoline; make static; update for
2162         hook parameters.
2163         (TARGET_TRAMPOLINE_INIT): New.
2164         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
2165
2166         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2167         (TARGET_TRAMPOLINE_INIT): New.
2168         (v850_can_eliminate): Make static.
2169         (v850_asm_trampoline_template, v850_trampoline_init): New.
2170         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
2171         v850_asm_trampoline_template.
2172         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
2173         and adjust for target hook parameters.
2174
2175         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2176         (TARGET_TRAMPOLINE_INIT): New.
2177         (vax_asm_trampoline_template, vax_trampoline_init): New.
2178         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
2179         vax_asm_trampoline_template.
2180         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
2181
2182         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2183         (TARGET_TRAMPOLINE_INIT): New.
2184         (xtensa_asm_trampoline_template): Rename from
2185         xtensa_trampoline_template; make static.
2186         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
2187         make static; update for hook parameters.
2188         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
2189         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
2190         (INITIALIZE_TRAMPOLINE): Remove.
2191
2192         * config/i386/i386.c (ix86_function_regparm): Do not issue an
2193         error for nested functions with regparm=3.
2194         (ix86_compute_frame_layout): Adjust frame pointer offset for
2195         ix86_static_chain_on_stack.
2196         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
2197         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
2198         don't reset to UNITS_PER_WORD.
2199         (ix86_emit_leave): Adjust ix86_cfa_state.
2200         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
2201         (ix86_static_chain): New.
2202         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
2203         make static; update for target hook parameters; use ix86_static_chain.
2204         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2205         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
2206         (INITIALIZE_TRAMPOLINE): Remove.
2207         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
2208         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
2209         to the end.  Add static_chain_on_stack.
2210         (ix86_static_chain_on_stack): New.
2211
2212         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
2213         (m68k_output_mi_thunk): Don't use static_chain_rtx.
2214         (m68k_trampoline_init): New.
2215         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
2216         m68k_trampoline_init and adjust for hook parameters.
2217         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
2218         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
2219
2220 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
2221
2222         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
2223         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
2224
2225         * reload1.c (reload): Call wrap_constant when substituting
2226         reg for equiv inside of DEBUG_INSNs.
2227
2228         PR bootstrap/41405
2229         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
2230         add_call_src_coords_attributes, add_high_low_attributes,
2231         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
2232         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
2233         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
2234         when -gdwarf-2 -gstrict-dwarf.
2235         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
2236         -gdwarf-[23] -gstrict-dwarf.
2237         (address_of_int_loc_descriptor, loc_descriptor,
2238         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
2239         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
2240         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
2241
2242 2009-09-22  Richard Guenther  <rguenther@suse.de>
2243
2244         PR tree-optimization/41428
2245         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
2246         (ccp_finalize): Pass it to substitute_and_fold.
2247
2248 2009-09-22  Richard Guenther  <rguenther@suse.de>
2249
2250         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
2251         (substitute_and_fold): Adjust prototype.
2252         * tree-vrp.c (vrp_evaluate_conditional): Make static.
2253         (simplify_stmt_using_ranges): Likewise.
2254         (fold_predicate_in): Move here from tree-ssa-propagate.c.
2255         (vrp_fold_stmt): New function.
2256         (vrp_finalize): Pass it to substitute_and_fold.
2257         * tree-flow.h (vrp_evaluate_conditional): Remove.
2258         (simplify_stmt_using_ranges): Likewise.
2259         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
2260         * tree-ssa-copy.c (fini_copy_prop): Likewise.
2261         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
2262         member.
2263         (fold_predicate_in): Move to tree-vrp.c.
2264         (substitute_and_fold): Use the callback instead of calling into
2265         tree-vrp.c functions directly.
2266
2267 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
2268
2269         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
2270         comparison warning on rs6000.
2271
2272         PR middle-end/41429
2273         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
2274         GIMPLE_EH_MUST_NOT_THROW cleanup.
2275         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
2276
2277 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
2278
2279         PR middle-end/41260
2280         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
2281         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
2282         LIB_SPEC for darwin10 and later since it always uses the unwinder in
2283         libSystem which is derived from the gcc 4.2.1 unwinder.
2284
2285 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2286
2287         PR middle-end/41357
2288         * varasm.c (default_encode_section_info): Copy TLS model into
2289         sym_ref flags regardless of backend support for TLS, for all
2290         model types except TLS_MODEL_EMULATED.
2291
2292 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2293
2294         PR bootstrap/41404
2295         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
2296         we can handle it correctly.
2297
2298 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
2299
2300         * doc/install.texi (os2): Remove section.
2301
2302 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
2303
2304         * doc/standards.texi (Objective-C): Adjust two URLs.
2305
2306 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
2307
2308         * tree-tailcall.c (process_assignment): Don't check if a
2309         multiplication or an addition are already present.
2310         (find_tail_calls): Combine multiple additions and multiplications.
2311         (adjust_accumulator_values): Emit accumulators.
2312
2313 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
2314
2315         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
2316         xmm register restore.
2317
2318 2009-09-21  Jan Hubicka  <jh@suse.cz>
2319
2320         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
2321         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
2322         restore at the end.
2323
2324 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
2325
2326         * stor-layout.c (layout_type): Remove obsolete code.
2327
2328 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
2329
2330         PR middle-end/41395
2331         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
2332
2333 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2334
2335         PR middle-end/30789
2336         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
2337         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
2338         (fold_builtin_2, do_mpc_arg1): Update accordingly.
2339         * fold-const.c (const_binop): Likewise.
2340         * real.h (do_mpc_arg2): Update prototype.
2341
2342 2009-09-20  Jan Hubicka  <jh@suse.cz>
2343
2344         * dwarf2out.c (add_const_value_attribute): Return true if successful.
2345         (add_location_or_const_value_attribute): Rewrite using
2346         loc_list_from_tree.
2347         (tree_add_const_value_attribute): Return true if successful.
2348         (tree_add_const_value_attribute_for_decl): Likewise.
2349
2350         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
2351         (loc_descriptor): ... here;
2352         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2353         (cst_pool_loc_descr): Break out from ...; do not reffer constant
2354         pool items that was not marked for output.
2355         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
2356         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2357         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2358         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
2359         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
2360         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
2361         DW_OP_stack_value to get address of items that are not available
2362         as addresses.
2363         (dw_loc_list): Handle single element lists correctly.
2364
2365 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
2366             Pascal Obry  <obry@adacore.com>
2367
2368         * unwind-dw2-fde.c (classify_object_over_fdes):
2369         Cast the constant 1 to _Unwind_Ptr.
2370         (add_fdes): Likewise.
2371         (linear_search_fdes): Likewise.
2372
2373 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
2374
2375         * stor-layout.c (set_sizetype): Avoid useless type copy.
2376
2377 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
2378
2379         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
2380         feature check.
2381         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
2382         * configure, config.in: Regenerate.
2383         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
2384         DW_EH_PE_absptr.
2385         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
2386         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
2387         for global data if the output could be used in a shared library.
2388         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
2389         to 0 if TARGET_WRITABLE_EH_FRAME.
2390
2391 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
2392
2393         PR rtl-optimization/39886
2394         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
2395         just when insn is equal to BB_END (bb).
2396
2397 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
2398
2399         * config/mips/mips.opt (mrelax-pic-calls): New option.
2400         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
2401         the file.
2402         (mips_unspec_call): Change "unspec_call" expander into this.
2403         (mips_strip_unspec_call): New function.
2404         (mips_got_load): Call mips_unspec_call instead of
2405         gen_unspec_call<mode>.
2406         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
2407         MIPS_CALL.
2408         (mips_cfg_in_reorg): New function.
2409         (mips16_lay_out_constants): Use it to decide whether to call
2410         CFG-aware insn splitting.
2411         (r10k_insert_cache_barriers): Move CFG set-up code from here to
2412         mips_reorg.  Move DF set-up code from here ...
2413         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
2414         from here.
2415         (mips_reorg): Call mips_df_reorg instead of
2416         r10k_insert_cache_barriers.  Move CFG set-up code here from
2417         r10k_insert_cache_barriers.
2418         (mips_call_expr_from_insn): New function.
2419         (mips_pic_call_symbol_from_set): Likewise.
2420         (mips_find_pic_call_symbol): Likewise.
2421         (mips_annotate_pic_call_expr): Likewise.
2422         (mips_get_pic_call_symbol): Likewise.
2423         (mips_annotate_pic_calls): Likewise.
2424         (mips_override_options): Disable -mrelax-pic-calls unless PIC
2425         calls are used.
2426         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
2427         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
2428         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
2429         directive.
2430         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
2431         (unspec_call<mode>): Remove it.
2432         (sibcall_internal, sibcall_value_internal,
2433         sibcall_value_multiple_internal, call_internal, call_split,
2434         call_value_internal, call_value_split,
2435         call_value_multiple_internal, call_value_multiple_split): Pass
2436         SIZE_OPNO to MIPS_CALL.
2437         (call_internal_direct, call_direct_split,
2438         call_value_internal_direct, call_value_direct_split): Pass -1 as
2439         SIZE_OPNO to MIPS_CALL.
2440         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
2441         * configure: Regenerate.
2442         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
2443         and -mno-relax-pic-calls.
2444         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
2445
2446 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2447
2448         PR bootstrap/35619
2449         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
2450         in the directory this rule is called from, rather than the
2451         toplevel 'gcc' directory, to fix in-tree build.
2452
2453 2009-09-19  Chris Demetriou  <cgd@google.com>
2454
2455         PR preprocessor/28435:
2456         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
2457         to cpplib that the preprocessor output is needed.
2458
2459 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
2460
2461         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
2462         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
2463         *return_and_restore_fpregs_<mode>,
2464         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
2465
2466         PR bootstrap/41397
2467         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
2468         instead of assuming it has always a REG inside of it.
2469
2470 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
2471
2472         * config/freebsd.h: Update comment on types.
2473         (WINT_TYPE): Define.
2474
2475 2009-09-18  Jason Merrill  <jason@redhat.com>
2476
2477         * c.opt: Add -fno-deduce-init-list.
2478
2479 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
2480
2481         * value-prof.c (interesting_stringop_to_profile_p): Added output
2482         argument to indicate which parameter is the size parameter.
2483         * value-prof.c (gimple_stringop_fixed_value): Use
2484         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
2485         * value-prof.c (gimple_stringops_transform): Update call sites to
2486         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
2487
2488 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
2489
2490         PR target/38288
2491         From David Binderman <dcb314@hotmail.com>:
2492         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
2493         local variable f.  Remove stale comments.
2494         (ix86_compute_frame_layout): Remove useless local variable total_size.
2495         Remove #if 0'd code.
2496         (legitimate_address_p): Remove useless local variables
2497         reason_rtx and reason.
2498         (ix86_split_copysign_const): Remove useless local variable op1.
2499         (scale_counter): Remove useless local variable piece_size_mask.
2500
2501 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
2502
2503         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
2504         output decl.
2505
2506 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
2507
2508         PR target/40913
2509         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
2510
2511 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
2512
2513         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
2514         TYPE_STUB_DECL.
2515
2516 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
2517
2518         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
2519         DW_OP_implicit_value even without dwarf_version 4.
2520
2521 2009-09-17  Jan Hubicka  <jh@suse.cz>
2522
2523         * dwarf2out.c: Include tree-pass.h and gimple.h.
2524         (loc_list_plus_const): New function.
2525         (loc_descriptor_from_tree_1): Rename to ...
2526         (loc_descriptor_from_tree): ... remove original.
2527         (loc_list_from_tree): New function.
2528         (add_AT_location_description): Accept location list.
2529         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
2530         (concatn_mem_loc_descriptor): Remove.
2531         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
2532         returning NULL.
2533         (secname_for_decl): Move up.
2534         (hidden_reference_p): New function; break out from ...
2535         (loc_by_refernece): ... here; move up.
2536         (dw_loc_list): New function.
2537         (single_element_loc_list): New function.
2538         (single_element_loc_list_p): New function.
2539         (add_loc_descr_to_each): New function.
2540         (add_loc_list): New function.
2541         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
2542         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
2543         add diagnostics why expansion failed.
2544         (add_location_or_const_value_attribute): Support location lists.
2545         (add_bound_info): Likewise.
2546         (descr_info_loc): Update call of loc_descriptor_from_tree.
2547         (gen_variable_die): Work on location lists.
2548         * final.c (pass_final): Add dump file.
2549         * Makefile.in (dwarf2out.o): Add new dependencies.
2550
2551 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
2552
2553         PR c/41049
2554         * real.c decimal_from_integer, decimal_integer_string): New.
2555         (real_from_integer): Use them as special case for decimal float.
2556         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
2557         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
2558         Do not append zero after the decimal point in string to convert.
2559
2560 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
2561
2562         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
2563         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
2564
2565 2009-09-17  Martin Jambor  <mjambor@suse.cz>
2566
2567         * common.opt (fipa-sra): New switch.
2568         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
2569         * timevar.def (TV_IPA_SRA): New timevar.
2570         * params.def (ipa-sra-ptr-growth-factor): New parameter.
2571         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
2572         * tree-sra.c: Include cgraph.c.
2573         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
2574         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
2575         and grp_not_necessarilly_dereferenced.
2576         (func_param_count): New variable.
2577         (encountered_apply_args): New variable.
2578         (bb_dereferences): New variable.
2579         (final_bbs): New variable.
2580         (no_accesses_representant): New variable.
2581         (no_accesses_p): New function.
2582         (dump_access): Dump the new fields.
2583         (sra_initialize): Set encountered_apply_args to false.
2584         (get_ssa_base_param): New function.
2585         (mark_parm_dereference): New function.
2586         (create_access): Caring for INIDRECT_REFs and different handling of
2587         varialble length accesses in early IPA SRA.  Store the stmt - a new
2588         parameter - to the new access.
2589         (build_access_from_expr_1): New parameter stmt, passed to
2590         create_access.  Handle INDIRECT_REFs.
2591         (build_access_from_expr): Pass the current statement to
2592         build_access_from_expr_1.
2593         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
2594         passes.
2595         (build_accesses_from_assign): Pass the current statement to
2596         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
2597         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
2598         final_bbs when necessary.  Check for calls to __builtin_apply_args.
2599         Fixup EH info if anythng was changed.
2600         (is_unused_scalar_param): New function.
2601         (ptr_parm_has_direct_uses): New function.
2602         (find_param_candidates): New function.
2603         (mark_maybe_modified): New function.
2604         (analyze_modified_params): New function.
2605         (propagate_dereference_distances): New function.
2606         (dump_dereferences_table): New function.
2607         (analyze_caller_dereference_legality): New function.
2608         (unmodified_by_ref_scalar_representative): New function.
2609         (splice_param_accesses): New function.
2610         (decide_one_param_reduction): New function.
2611         (enum ipa_splicing_result): New type.
2612         (splice_all_param_accesses): New function.
2613         (get_param_index): New function.
2614         (turn_representatives_into_adjustments): New function.
2615         (analyze_all_param_acesses): New function.
2616         (get_replaced_param_substitute): New function.
2617         (get_adjustment_for_base): New function.
2618         (replace_removed_params_ssa_names): New function.
2619         (sra_ipa_reset_debug_stmts): New function.
2620         (sra_ipa_modify_expr): New function.
2621         (sra_ipa_modify_assign): New function.
2622         (convert_callers): New function.
2623         (modify_function): New function.
2624         (ipa_sra_preliminary_function_checks): New function.
2625         (ipa_early_sra): New function.
2626         (ipa_early_sra_gate): New function.
2627         (pass_early_ipa_sra): New variable.
2628         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
2629
2630 2009-09-17  Michael Matz  <matz@suse.de>
2631
2632         PR middle-end/41347
2633         * tree.c (build_type_attribute_qual_variant): Export.
2634         * tree.h (build_type_attribute_qual_variant): Declare.
2635         * tree-inline.c (remap_type_1): Use it to build variants with
2636         the original qualifiers and attributes.
2637
2638 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2639
2640         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
2641         without a fallthrough edge.
2642
2643 2009-09-16  DJ Delorie  <dj@redhat.com>
2644
2645         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
2646         chip and ignore the "fast_interrupt" attribute if so.
2647
2648 2009-09-16  Richard Henderson  <rth@redhat.com>
2649
2650         PR middle-end/41360
2651         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
2652         barrier fix.
2653
2654 2009-09-16  Richard Henderson  <rth@redhat.com>
2655
2656         PR target/41246
2657         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
2658         is set only if DECL_NO_STATIC_CHAIN is unset.
2659         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
2660         (FOR_EACH_NEST_INFO): New.
2661         (walk_all_functions): Use it.
2662         (finalize_nesting_tree): Likewise.
2663         (unnest_nesting_tree): Likewise.
2664         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
2665         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
2666         (convert_gimple_call): Early out if gimple_call_chain already set.
2667         (convert_all_function_calls): Iterate until no new functions
2668         require a static chain.
2669         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
2670         when building a trampoline.  Use dump_function_to_file instead
2671         of dump_function.
2672         (lower_nested_functions): Open dump_file.  Validate that decls
2673         that have DECL_NO_STATIC_CHAIN from the front end don't have that
2674         bit reset by this pass.
2675
2676 2009-09-16  Michael Matz  <matz@suse.de>
2677
2678         PR fortran/41212
2679         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
2680         shorten decl_common_unused.
2681         (DECL_RESTRICTED_P): New accessor.
2682         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
2683         to disambiguate marked decls and restrict pointers.
2684
2685 2009-09-16  Richard Henderson  <rth@redhat.com>
2686
2687         PR middle-end/41360
2688         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
2689
2690 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
2691
2692         * integrate.c (set_block_abstract_flags): Call
2693         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
2694
2695 2009-09-16  Richard Guenther  <rguenther@suse.de>
2696
2697         PR middle-end/34011
2698         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
2699         as non-aliased.
2700
2701 2009-09-16  DJ Delorie  <dj@redhat.com>
2702             Kaz Kojima  <kkojima@gcc.gnu.org>
2703
2704         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
2705         (sh_expand_prologue): Update calls to output_stack_adjust.
2706         (sh_expand_epilogue): Likewise.
2707
2708 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
2709
2710         PR bootstrap/41349
2711         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
2712         trying to limit the extent of searches in the insn stream.
2713
2714 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
2715             Jakub Jelinek  <jakub@redhat.com>
2716
2717         PR target/41175
2718         PR target/40677
2719         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
2720         problem.
2721         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
2722         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
2723         (rs6000_savres_strategy): Always save FP registers inline if the
2724         target doesn't support hardware double-precision.  Set the above
2725         bits in return value when needed.
2726         (rs6000_savres_routine_sym): Fix computation for cache selector.
2727         Mark the generated symbol as a function.  Rename exitp argument to
2728         lr.  Move code for determining the name of the symbol...
2729         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
2730         getting the names right on AIX and 64-bit Linux.
2731         (savres_routine_name): New variable.
2732         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
2733         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
2734         on what the target routine uses as a base register.  If savep && lr
2735         describe saving of r0 into memory slot.
2736         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
2737         line calls for AIX ABI.
2738         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
2739         determine FP save/restore functions.
2740         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
2741         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
2742         gen_addsi3.
2743         (rs6000_emit_epilogue): Adjust computation of restore_lr.
2744         Duplicate restoration of LR and execute the appropriate one
2745         depending on whether GPRs are being restored inline.  Set r11 from
2746         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
2747         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
2748         Fix out of line calls for AIX ABI.
2749         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
2750         New insn.
2751         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
2752         register 11.
2753         (*restore_gpregs_spe): Likewise.
2754         (*return_and_restore_gpregs_spe): Likewise.
2755         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
2756         Define to empty string unconditionally.
2757         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
2758         Define to empty string unconditionally.
2759         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
2760         !TARGET_64BIT.
2761
2762 2009-09-15  Jan Hubicka  <jh@suse.cz>
2763
2764         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
2765         * params.def (inline-insns-auto): Likewise.
2766
2767 2009-09-15  Martin Jambor  <mjambor@suse.cz>
2768
2769         * ipa-inline.c (estimate_function_body_sizes): Dump info about
2770         individual statements only at TDF_DETAILS dump level.  Format
2771         source for 80 characters per line.
2772
2773 2009-09-15  Christian Bruel  <christian.bruel@st.com>
2774
2775         * regrename.c (do_replace): Update REG_DEAD notes.
2776
2777 2009-09-15  Revital Eres  <eres@il.ibm.com>
2778
2779         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
2780         * targhooks.c (default_builtin_support_vector_misalignment):
2781         New builtin function.
2782         * targhooks.h (default_builtin_support_vector_misalignment):
2783         Declare.
2784         * target.h (builtin_support_vector_misalignment):
2785         New field in struct gcc_target.
2786         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
2787         new builtin function.
2788         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
2789         Define.
2790         * config/rs6000/rs6000.c
2791         (rs6000_builtin_support_vector_misalignment): New function.
2792         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
2793
2794 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
2795
2796         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
2797         instead of INSN_P.
2798         (bfin_optimize_loop): Likewise.
2799         (bfin_gen_bundles): Likewise.
2800         (workaround_speculation): Likewise.
2801         (find_load): Return NULL_RTX for debug_insn.
2802
2803 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
2804
2805         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
2806         (sminsf3): Ditto.
2807
2808 2009-09-14  DJ Delorie  <dj@redhat.com>
2809
2810         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
2811         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
2812         VLIW mode.
2813
2814 2009-09-14  Richard Henderson  <rth@redhat.com>
2815             Jakub Jelinek  <jakub@redhat.com>
2816
2817         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
2818         * cfgbuild.c (make_edges): Handle asm goto.
2819         * cfglayout.c (fixup_reorder_chain): Likewise.
2820         * cfgrtl.c (patch_jump_insn): Likewise.
2821         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
2822         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
2823         (gimple_build_asm_vec): Add and use labels parameter.
2824         (gimple_build_asm): Remove.
2825         (walk_gimple_asm): Walk labels too.
2826         * gimple.def (GIMPLE_ASM): Update docs.
2827         * gimple.h: Update decls.
2828         (struct gimple_statement_asm): Change nc to use unsigned char;
2829         add nl member.
2830         (gimple_asm_nlabels): New.
2831         (gimple_asm_label_op, gimple_asm_set_label_op): New.
2832         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
2833         into gimple_build_asm_vec.
2834         * jump.c (mark_jump_label_asm): New.
2835         (mark_jump_label): Use it.
2836         (redirect_jump_1): Handle asm goto.
2837         (invert_jump_1): Soft fail if X is null.
2838         * recog.c (extract_asm_operands): New.
2839         (asm_noperands): Use it; handle asm labels.
2840         (decode_asm_operands): Use extract_asm_operands.
2841         (asm_operand_ok): Properly handle empty string.
2842         * reg-stack.c (get_asm_operands_in_out): Rename from
2843         get_asm_operand_n_inputs; use extract_asm_operands; return both
2844         inputs and outputs by reference; update all callers.
2845         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
2846         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
2847         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
2848         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
2849         (extract_asm_operands): Declare.
2850         * stmt.c (expand_asm_operands): Add and use labels parameter.
2851         (check_unique_operand_names): Likewise.
2852         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
2853         (expand_asm_stmt): Handle asm labels.
2854         * tree-cfg.c (make_gimple_asm_edges): New.
2855         (make_edges): Use it.
2856         (cleanup_dead_labels): Handle asm labels.
2857         (is_ctrl_altering_stmt): Likewise.
2858         (gimple_redirect_edge_and_branch): Likewise.
2859         * tree.def (ASM_EXPR): Add 5th operand.
2860         * tree.h (ASM_LABELS): New.
2861         (resolve_asm_operand_names): Update decl.
2862
2863         * c-parser.c (c_parser_asm_statement): Parse asm goto.
2864         (c_parser_asm_goto_operands): New.
2865         * c-tree.h (build_asm_expr): Update decl.
2866         * c-typeck.c (build_asm_expr): Add and use labels parameter.
2867         * doc/extend.texi: Document asm goto.
2868
2869 2009-09-14  Richard Henderson  <rth@redhat.com>
2870
2871         * except.h: Update declarations.
2872         (struct pointer_map_t): Forward declare.
2873         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
2874         (struct eh_landing_pad_d, eh_landing_pad): New.
2875         (struct eh_catch_d, eh_catch): New.
2876         (struct eh_region_d): Remove next_region_sharing_label, aka,
2877         label, tree_label, landing_pad, post_landing_pad, resume,
2878         may_contain_throw.  Rename region_number to index.  Remove
2879         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
2880         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
2881         (VEC(eh_landing_pad,gc)): New.
2882         (struct eh_status): Remove last_region_number.  Add lp_array,
2883         throw_stmt_table, ttype_data, ehspec_data.
2884         (ehr_next, FOR_ALL_EH_REGION_AT): New.
2885         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
2886         * except.c (lang_protect_cleanup_actions): Return tree.
2887         (struct ehl_map_entry): Remove.
2888         (init_eh_for_function): Push zero entries for region and lp_array.
2889         (gen_eh_region): Add to region_array immediately.
2890         (gen_eh_region_catch): Operate on eh_catch objects.
2891         (gen_eh_landing_pad): New.
2892         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
2893         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
2894         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
2895         (get_eh_landing_pad_from_number_fn): New.
2896         (get_eh_landing_pad_from_number): New.
2897         (get_eh_region_from_lp_number_fn): New.
2898         (get_eh_region_from_lp_number): New.
2899         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
2900         (get_exception_pointer, get_exception_filter): Remove.
2901         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
2902         (current_function_has_exception_handlers): Simplify.
2903         (bring_to_root, eh_region_replaceable_by_p): Remove.
2904         (replace_region, hash_type_list, hash_eh_region): Remove.
2905         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
2906         (label_to_region_map, num_eh_regions): Remove.
2907         (get_next_region_sharing_label, must_not_throw_labels): Remove.
2908         (find_exception_handler_labels): Remove.
2909         (duplicate_eh_regions_0, find_prev_try): Remove.
2910         (struct duplicate_eh_regions_data): New.
2911         (duplicate_eh_regions_1): Rewrite.
2912         (duplicate_eh_regions): Return a pointer map instead of an
2913         integer offset.
2914         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
2915         (redirect_eh_edge_to_label): Remove.
2916         (eh_region_outermost): Rewrite using eh_region pointers
2917         instead of integers.
2918         (add_ttypes_entry): Update for ttype_data move to eh_status.
2919         (add_ehspec_entry): Rewrite with VEC instead of varray.
2920         (assign_filter_values): Likewise.  Export.
2921         (build_post_landing_pads, connect_post_landing_pads): Remove.
2922         (dw2_build_landing_pads): Rewrite to use lp_array.
2923         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
2924         (sjlj_assign_call_site_values): Rewrite to use lp_array.
2925         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
2926         (sjlj_mark_call_sites): Update for landing pad numbers.
2927         (finish_eh_generation): Rewrite.
2928         (gate_handle_eh): Do nothing for no eh tree.
2929         (pass_rtl_eh): Move up near finish_eh_generation.
2930         (remove_eh_landing_pad): New.
2931         (remove_eh_handler): Export.
2932         (remove_eh_region, remove_eh_handler_and_replace): Remove.
2933         (for_each_eh_label): Rewrite to use lp_array.
2934         (make_reg_eh_region_note): New.
2935         (make_reg_eh_region_note_nothrow_nononlocal): New.
2936         (insn_could_throw_p): New.
2937         (copy_reg_eh_region_note_forward): New.
2938         (copy_reg_eh_region_note_backward): New.
2939         (check_handled, add_reachable_handler): Remove.
2940         (reachable_next_level, foreach_reachable_handler): Remove.
2941         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
2942         (get_eh_region_and_lp_from_rtx): New.
2943         (get_eh_region_from_rtx): New.
2944         (can_throw_internal_1, can_throw_external_1): Remove.
2945         (can_throw_internal): Use get_eh_region_from_rtx.
2946         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
2947         (insn_nothrow_p, can_nonlocal_goto): New.
2948         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
2949         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
2950         (add_action_record): Use VEC not varray.
2951         (collect_one_action_chain): Update for eh_region changes.
2952         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
2953         Use get_eh_region_and_lp_from_rtx.
2954         (gate_convert_to_eh_region_ranges): New.
2955         (pass_convert_to_eh_region_ranges): Use it.
2956         (push_uleb128, push_sleb128): Use VEC not varray.
2957         (output_one_function_exception_table): Likewise.
2958         (dump_eh_tree): Update for eh_region changes.
2959         (verify_eh_tree): Likewise.
2960         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
2961         * tree-eh.c: Include target.h.
2962         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
2963         Don't disallow GIMPLE_RESX; adjust argument check.
2964         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
2965         (record_stmt_eh_region): Update for landing pad numbers;
2966         generate a landing pad if necessary.
2967         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
2968         (remove_stmt_from_eh_lp_fn): Similarly.
2969         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
2970         Update for lp numbers; don't special case missing throw_stmt_table.
2971         (lookup_expr_eh_lp): Similarly.
2972         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
2973         (eh_seq, eh_region_may_contain_throw): New.
2974         (struct leh_state): Add ehp_region.
2975         (struct leh_tf_state): Remove eh_label.
2976         (emit_post_landing_pad): New.
2977         (emit_resx, emit_eh_dispatch): New.
2978         (note_eh_region_may_contain_throw): New.
2979         (frob_into_branch_around): Take eh_region not eh label;
2980         emit eh code into eh_seq.
2981         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
2982         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
2983         lower_eh_must_not_throw.  Emit code to eh_seq.
2984         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
2985         (lower_try_finally_onedest): Likewise.
2986         (lower_try_finally_copy): Likewise.
2987         (lower_try_finally_switch): Likewise.
2988         (lower_try_finally): Initialize ehp_region.
2989         (lower_catch): Update for eh_catch objects.
2990         (lower_eh_filter): Don't handle must_not_throw.
2991         (lower_eh_must_not_throw): New.
2992         (lower_cleanup): Don't set eh_label.
2993         (lower_eh_constructs_2): Resolve eh builtins.
2994         Handle GIMPLE_EH_MUST_NOT_THROW.
2995         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
2996         Add eh_seq to the end of the function body.
2997         (make_eh_dispatch_edges): New.
2998         (make_eh_edge): Remove.
2999         (make_eh_edges): Simplify for landing pads.
3000         (redirect_eh_edge_1): New.
3001         (redirect_eh_edge): Use it.
3002         (redirect_eh_dispatch_edge): New.
3003         (stmt_could_throw_p): Use a switch.  Allow RESX.
3004         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
3005         (stmt_can_throw_internal): Likewise.
3006         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
3007         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
3008         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
3009         (gate_refactor_eh): New.
3010         (pass_refactor_eh): Use it.
3011         (lower_resx, execute_lower_resx, pass_lower_resx): New.
3012         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
3013         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
3014         (remove_unreachable_handlers): Rename from
3015         tree_remove_unreachable_handlers; rewrite for landing pads;
3016         call remove_eh_handler directly.
3017         (remove_unreachable_handlers_no_lp): New.
3018         (unsplit_eh, unsplit_all_eh): New.
3019         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
3020         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
3021         (cleanup_empty_eh_unsplit): New.
3022         (cleanup_empty_eh): Rewrite.
3023         (cleanup_all_empty_eh): New.
3024         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
3025         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
3026         (gate_cleanup_eh): New.
3027         (pass_cleanup_eh): Use it.
3028         (verify_eh_edges): Move later in file.  Expect one EH edge.
3029         (verify_eh_dispatch_edge): New.
3030
3031         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
3032         (gtype-desc.o): Add TARGET_H.
3033         (tree.o): Use EXCEPT_H, not except.h.
3034         (cfgbuild.o): Add EXPR_H.
3035         (GTFILES): Add vecprim.h.
3036         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
3037         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
3038         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
3039         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
3040         * calls.c (emit_call_1): Use make_reg_eh_region_note.
3041         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
3042         calls to can_throw_internal.
3043         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
3044         (make_edges): Don't handle RESX; use can_nonlocal_goto.
3045         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
3046         (expand_gimple_stmt): Use make_reg_eh_region_note.
3047         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
3048         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
3049         or find_exception_handler_labels.
3050         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
3051         there is exacly one EH edge.  Use can_nonlocal_goto and
3052         can_throw_internal.
3053         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
3054         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
3055         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
3056         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
3057         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
3058         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
3059         * dse.c (scan_insn): Use insn_could_throw_p.
3060         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
3061         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
3062         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
3063         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
3064         EXC_PTR_EXPR or FILTER_EXPR.
3065         (tree_expr_nonzero_warnv_p): Likewise.
3066         * function.h: Include vecprim.h, not varray.h
3067         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
3068         move ttype_data and ehspec_data members to struct eh_status; change
3069         action_record_data member to a VEC.
3070         * gcse.c (hash_scan_set): Use can_throw_internal.
3071         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
3072         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
3073         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3074         (block_may_fallthru): Don't handle RESX_EXPR.
3075         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
3076         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
3077         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
3078         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
3079         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
3080         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
3081         (gimple_size): Likewise.
3082         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
3083         (gimple_build_resx): Use gimple_build_with_ops.
3084         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
3085         (is_gimple_val): Likewise.
3086         (is_gimple_stmt): Remove RESX_EXPR.
3087         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
3088         (GIMPLE_RESX): Reorder with other EH constructs.
3089         * gimple.h (struct gimple_statement_eh_mnt): New.
3090         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
3091         (gimple_eh_filter_must_not_throw): Remove.
3092         (gimple_eh_filter_set_must_not_throw): Remove.
3093         (gimple_eh_must_not_throw_fndecl): New.
3094         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
3095         (is_gimple_resx): New.
3096         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
3097         Don't copy EH_FILTER_MUST_NOT_THROW.
3098         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
3099         * ipa-inline.c (estimate_function_body_sizes): Don't try to
3100         handle must_not_throw_labels specially.
3101         * ipa-pure-const.c (check_call): Update debug statement for LP.
3102         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
3103         * ipa-utils.c (get_base_var): Likewise.
3104         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
3105         * lower-subreg.c (move_eh_region_note): Remove.
3106         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
3107         * omp-low.c (new_omp_context): Update for eh_lp_nr.
3108         (create_task_copyfn): Likewise.
3109         (maybe_catch_exception): Use gimple_build_eh_filter.
3110         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
3111         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
3112         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
3113         and pass_lower_resx.
3114         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
3115         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
3116         can_throw_internal, can_nonlocal_goto.
3117         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
3118         copy_reg_eh_region_note_forward.
3119         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
3120         (emit_output_reload_insns): Likewise.
3121         (copy_eh_notes): Remove.
3122         * rtl.def (RESX): Remove.
3123         * rtl.h: Update declarations.
3124         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
3125         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
3126         (update_eh_label): Remove.
3127         (cleanup_dead_labels_eh): New.
3128         (cleanup_deal_labels): Use it instead of update_eh_label.
3129         (gimple_merge_blocks): Update landing pad data structure when
3130         removing a landing pad label.
3131         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
3132         test; handle GIMPLE_EH_MUST_NOT_THROW.
3133         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
3134         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
3135         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
3136         (verify_stmt): Likewise.  Verify landing pads.
3137         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
3138         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
3139         (struct move_stmt_d): Add eh_map.
3140         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
3141         (move_stmt_r): Remap eh region numbers in builtin calls,
3142         resx and eh_dispatch.
3143         (move_block_to_fn): Remove eh_offset parameter.  Use
3144         maybe_duplicate_eh_stmt_fn.
3145         (find_outermost_region_in_block): Operate on eh_region pointers
3146         instead of region numbers.
3147         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
3148         duplicate_eh_regions.
3149         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
3150         test earlier.  Disallow EH landing pads.
3151         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
3152         * tree-flow.h: Update declarations.
3153         (struct tree_ann_common_d): Replace rn with lp_nr.
3154         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
3155         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
3156         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
3157         resx and eh_dispatch.
3158         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
3159         (copy_edges_for_bb): Use make_eh_dispatch_edges.
3160         (copy_cfg_body): Expect eh_map instead of eh_region_offset
3161         from duplicate_eh_regions.
3162         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
3163         update RESX; handle EH_DISPATCH.
3164         (expand_call_inline): Set eh_lp_nr, not eh_region.
3165         (maybe_inline_call_in_expr): Likewise.
3166         * tree-inline.h (struct copy_body_data): Replace eh_region with
3167         eh_lp_nr, eh_region_offset with eh_map.
3168         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
3169         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
3170         * tree-pretty-print.c (dump_generic_node): Don't handle
3171         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
3172         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
3173         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
3174         EXC_PTR_EXPR, FILTER_EXPR.
3175         * tree-ssa-operands.c (get_expr_operands): Likewise.
3176         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
3177         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3178         (ao_ref_init_from_vn_reference): Likewise.
3179         * tree-ssa-sink.c (statement_sink_location): Likewise.
3180         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3181         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
3182         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
3183         EXC_PTR_EXPR, FILTER_EXPR.
3184         (is_exception_related): Remove.
3185         (compute_avail): Don't call it.
3186         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
3187         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
3188         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
3189         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
3190         Build EH builtins.
3191         (build_resx): Remove.
3192         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
3193         * tree.h: Update declarations.
3194         (EH_FILTER_MUST_NOT_THROW): Remove.
3195         (struct tree_label_decl): Add eh_landing_pad_nr.
3196         (EH_LANDING_PAD_NR): New.
3197         * value-prof.c (gimple_ic): Tidy variable names.  Update for
3198         landing pad numbers.
3199         (gimple_stringop_fixed_value): Tidy variable names.  Assert
3200         that neither call stmt can throw.
3201         * vecprim.h (uchar): New.
3202         (VEC(uchar,heap), VEC(uchar,gc)): New.
3203
3204         * c-common.c (c_define_builtins): Update call to
3205         build_common_builtin_nodes.
3206         * c-parser.c (c_parse_file): Don't call
3207         default_init_unwind_resume_libfunc.
3208
3209 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3210
3211         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
3212         (mips_cprestore_address_p): Likewise.
3213         (mips_save_gp_to_cprestore_slot): Likewise.
3214         (mips_restore_gp): Rename to...
3215         (mips_restore_gp_from_cprestore_slot): ...this.
3216         (mips_must_initialize_gp_p): Declare.
3217         (mips_emit_save_slot_move): Likewise.
3218         (mips_output_load_label): Return nothing.
3219         (mips_eh_uses): Declare.
3220         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
3221         (TARGET_CPRESTORE_DIRECTIVE): New macro.
3222         (TARGET_ABSOLUTE_JUMPS): Likewise.
3223         (EH_USES): Likewise.
3224         (FIRST_PSEUDO_REGISTER): Update comment.
3225         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
3226         (MIPS_CALL): ...here.
3227         (REGISTER_NAMES): Add $cprestore.
3228         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
3229         Add load_label_length, has_inflexible_gp_insn_p,
3230         has_flexible_gp_insn_p, must_initialize_gp_p and
3231         must_restore_gp_when_clobbered_p.
3232         (mips_expand_call): Don't generate split instructions here.
3233         (mips_split_call): Update the call to mips_restore_gp after
3234         the above name change.
3235         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
3236         (mips_find_gp_ref): New function.
3237         (mips_insn_has_inflexible_gp_ref_p): Likewise.
3238         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
3239         (mips_insn_has_flexible_gp_ref_p): Likewise.
3240         (mips_cfun_has_flexible_gp_ref_p): Likewise.
3241         (mips_function_has_gp_insn): Delete.
3242         (mips_global_pointer): Drop the df_regs_ever_live_p check.
3243         Use the new functions above.  Only return INVALID_REGNUM
3244         for TARGET_ABSOLUTE_JUMPS.
3245         (mips_must_initialize_gp_p): New function.
3246         (mips_get_cprestore_base_and_offset): New function, extracted from...
3247         (mips_cprestore_slot): ...here.  Take a bool parameter.
3248         (mips_cfun_has_cprestore_slot_p): New function.
3249         (mips_cprestore_address_p): Likewise.
3250         (mips_save_gp_to_cprestore_slot): Likewise.
3251         (mips_restore_gp): Rename to...
3252         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
3253         epilogue_completed.  Update the call to mips_cprestore_slot.
3254         Test cfun->machine->must_restore_gp_when_clobbered_p.
3255         (mips_direct_save_slot_move_p): New function.
3256         (mips_emit_save_slot_move): Likewise.
3257         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
3258         of cfun->machine->global_pointer.
3259         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
3260         (mips_save_reg): Use mips_emit_save_slot_move.
3261         (mips_expand_prologue): Set must_initialize_gp_p.
3262         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
3263         for all cprestore saves.  Emit a use_cprestore instruction after
3264         setting up the cprestore slot.
3265         (mips_restore_reg): Use mips_emit_save_slot_move.
3266         (mips_process_load_label): New function.
3267         (mips_load_label_length): Likewise.
3268         (mips_output_load_label): Don't return asm: output it here instead.
3269         Use mips_process_load_label.
3270         (mips_adjust_insn_length): Adjust the length of branch instructions
3271         that have length MAX_PIC_BRANCH_LENGTH.
3272         (mips_output_conditional_branch): Update the call to
3273         mips_output_load_label.  Assume the branch target is OPERANDS[0]
3274         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
3275         (mips_output_order_conditional_branch): Swap the meaning of
3276         OPERANDS[0] and OPERANDS[1].
3277         (mips_variable_issue): Don't count ghost instructions.
3278         (mips_expand_ghost_gp_insns): New function.
3279         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
3280         (mips_output_mi_thunk): Set must_initialize_gp_p.
3281         (mips_eh_uses): New function.
3282         * config/mips/predicates.md (cprestore_save_slot_operand)
3283         (cprestore_load_slot_operand): New predicates.
3284         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
3285         (UNSPEC_MOVE_GP): Likewise.
3286         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
3287         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
3288         (CPRESTORE_SLOT_REGNUM): New register.
3289         (MAX_PIC_BRANCH_LENGTH): New constant.
3290         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
3291         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
3292         branches.  Fix commentary.
3293         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
3294         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
3295         Change type to "ghost".
3296         (loadgp_absolute_<mode>): Likewise.
3297         (loadgp_rtp_<mode>): Likewise.
3298         (copygp_mips16): Likewise.
3299         (loadgp_blockage): Remove redundant mode attribute.
3300         (potential_cprestore): New instruction.
3301         (cprestore): Turn into an unspec set.
3302         (use_cprestore): New instruction.
3303         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
3304         (*branch_fp_inverted): Likewise.
3305         (*branch_order<mode>): Likewise.
3306         (*branch_order<mode>_inverted): Likewise.
3307         (*branch_equality<mode>): Likewise.
3308         (*branch_equality<mode>_inverted): Likewise.
3309         (*branch_bit<bbv><mode>): Likewise.
3310         (*branch_bit<bbv><mode>_inverted): Likewise.
3311         (*branch_equality<mode>_mips16): Remove redundant mode.
3312         (jump): Turn into a define_expand.
3313         (*jump_absolute): New instruction.
3314         (*jump_pic): Likewise.
3315         (*jump_mips16): Rename previously-unnamed pattern.  Remove
3316         redundant mode attribute.
3317         (restore_gp): Split on epilogue_completed rather than
3318         reload_completed.  Change type to "ghost".
3319         (move_gp<mode>): New instruction.
3320         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
3321         Remove redundant mode attribute.
3322         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
3323         (bc1any4f, bc1any2t, bc1any2f): Likewise.
3324         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
3325
3326 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3327
3328         PR target/41210
3329         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
3330         are returned in the same register (vs34 or v2) that Altivec vector
3331         types are returned in.
3332         (rs6000_libcall_value): Ditto.
3333
3334         PR target/41331
3335         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
3336         instead of explicit addsi3/adddi3 calls.
3337         (rs6000_split_multireg_move): Ditto.
3338         (rs6000_emit_allocate_stack): Ditto.
3339         (rs6000_emit_prologue): Ditto.
3340         (rs6000_output_mi_thunk): Ditto.
3341
3342         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
3343         size is 64 bits if we can use 64-bit registers.
3344
3345 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
3346
3347         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
3348         symbols.
3349
3350         From Jie Zhang <jie.zhang@analog.com>:
3351         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
3352         save FP and RETS with saveall attribute.
3353         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
3354         with saveall attribute.
3355
3356         * config/bfin/bfin.c (bfin_expand_builtin,
3357         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
3358         operands.
3359
3360         From Jie Zhang <jie.zhang@analog.com>:
3361         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
3362         before use in two places.
3363         * config/bfin/bfin.md (AREG): Define mode iterator.
3364         (reload_in, reload_out): Use mode iterator AREG.
3365
3366 2009-09-14  Richard Guenther  <rguenther@suse.de>
3367
3368         PR middle-end/41350
3369         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
3370         EH personality path.
3371
3372 2009-09-13  Richard Guenther  <rguenther@suse.de>
3373             Rafael Avila de Espindola  <espindola@google.com>
3374
3375         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
3376         (LANG_HOOKS_EH_PERSONALITY): Likewise.
3377         (LANG_HOOKS_INITIALIZER): Adjust.
3378         (lhd_pass_through_t): Declare.
3379         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
3380         eh_personality.
3381         * langhooks.c (lhd_pass_through_t): New function.
3382         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
3383         dwarf2out_begin_prologue): Use personality from current_function_decl.
3384         * expr.h (get_personality_function): Declare.
3385         * expr.c (get_personality_function): New function.
3386         (build_personality_function): Likewise.
3387         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
3388         (eh_personality_libfunc): Remove.
3389         * optabs.c (build_libfunc_function): New function split out from ...
3390         (init_one_libfunc): ... here.
3391         * tree.h (DECL_FUNCTION_PERSONALITY): New.
3392         (tree_function_decl): Add personality.
3393         (lhd_gcc_personality): Declare.
3394         (build_personality_function): Likewise.
3395         * tree.c (gcc_eh_personality_decl): New.
3396         (lhd_gcc_personality): New function.
3397         * except.h (lang_eh_runtime_type): Remove.
3398         (enum eh_personality_kind): New.
3399         (build_personality_function): Declare.
3400         (function_needs_eh_personality): Declare.
3401         * except.c (lang_eh_runtime_type): Remove.
3402         (function_needs_eh_personality): New function.
3403         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
3404         (sjlj_emit_function_enter, output_function_exception_table):
3405         Use personality from current_function_decl.
3406         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
3407         * tree-inline.c (tree_can_inline_p): Do not inline across different
3408         EH personalities.
3409         (expand_call_inline): Likewise.  Adjust the callers EH personality.
3410         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
3411         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
3412         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
3413         (c-parser.o): Likewise
3414         * c-tree.h (c_eh_initialized_p): Remove.
3415         (c_maybe_initialize_eh): Likewise.
3416         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
3417         (finish_decl): Don't call c_maybe_initialize_eh.
3418         (c_eh_initialized_p): Remove.
3419         (c_maybe_initialize_eh): Likewise.
3420         * c-parser.c (c_parser_omp_construct): Likewise.
3421         (c_parse_file): Initialize exception handling.
3422
3423 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
3424
3425         * config.gcc (tm_file): Remove i386/biarch32.h
3426         for i?86-w64-mingw* case.
3427         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
3428         support.
3429         * config.host: Set for x64 mingw the option
3430         use_long_long_for_widest_fast_int to yes.
3431
3432 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
3433
3434         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
3435         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
3436         (dbxout_begin_function): Likewise.
3437         * final.c (dwarf2_debug_info_emitted_p): New predicate.
3438         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
3439         set on the function.
3440         (final_end_function): Likewise.
3441         (final_scan_insn): Likewise.
3442         (rest_of_handle_final): Likewise.
3443         * varasm.c (assemble_start_function): Likewise.
3444         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3445
3446 2009-09-12  Jason Merrill  <jason@redhat.com>
3447
3448         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
3449         * opts.c (common_handle_option): constify.
3450
3451 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
3452
3453         * doc/install.texi (avr): Remove obsolete reference site.
3454
3455 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
3456
3457         * doc/install.texi (Binaries): Adjust AIX link.
3458
3459 2009-09-12  Akim Demaille  <demaille@gostai.com>
3460
3461         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
3462         Use an imperative sentence.
3463
3464 2009-09-11  Richard Henderson  <rth@redhat.com>
3465
3466         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
3467         structure-name and has-tree-operands arguments; update all entries.
3468         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
3469         update all entries.
3470         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
3471         (gsstruct_code_size): New.
3472         (gss_for_code_): New.
3473         (gss_for_code): Remove.
3474         (gimple_size): Rewrite using gsstruct_code_size.
3475         (gimple_statement_structure): Move to gimple.h.
3476         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
3477         (gss_for_code, gimple_statement_structure): New.
3478         (gimple_ops): Use new arrays; tidy.
3479
3480 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3481
3482         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
3483         operand to be a PLUS expression.
3484         * config/pa/pa.c (pa_secondary_reload): Likewise.
3485
3486 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
3487
3488         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
3489
3490         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
3491         XEXP (in_rtx, 8).
3492
3493 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
3494
3495         From Jie Zhang <jie.zhang@analog.com>:
3496         * doc/extend.texi (node Function Attributes): Document l2
3497         function attribute.
3498         (node Blackfin Variable Attributes): Document l2 variable attributes.
3499
3500 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
3501
3502         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
3503         to match the system compiler's configuration at inflection point.
3504         Add comment to remark a remaining difference with system compiler.
3505
3506         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
3507         * configure: Regenerate.
3508
3509 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
3510
3511         From Jie Zhang <jie.zhang@analog.com>:
3512         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
3513         (bfin_handle_l2_attribute): New.
3514         (bfin_attribute_table): Add l2 attribute.
3515
3516 2009-09-11  Michael Matz  <matz@suse.de>
3517
3518         PR middle-end/41275
3519         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
3520         on the local_decls list.
3521
3522 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
3523
3524         PR debug/41276
3525         PR debug/41307
3526         * cselib.c (cselib_expand_value_rtx_cb): Document callback
3527         interface.
3528         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
3529         for VALUEs, to implement the documented interface.
3530         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
3531         Adjust for VALUEs and anything else, to implement the
3532         documented interface.
3533
3534 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
3535
3536         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
3537         with actual SPE/paired vector modes before using 64-bit alignment.
3538         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
3539
3540 2009-09-10  DJ Delorie  <dj@redhat.com>
3541
3542         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
3543         emitted.
3544
3545         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
3546         * config/mep/mep.c (mep_legitimate_constant_p): New.
3547         * config/mep/mep-protos.h: Prototype it.
3548
3549 2009-09-10  Richard Henderson  <rth@redhat.com>
3550
3551         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
3552
3553 2009-09-10  Jason Merrill  <jason@redhat.com>
3554
3555         * tree.c (chain_index): New fn.
3556         * tree.h: Declare it.
3557
3558 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3559
3560         * config/sol2-c.c (cmn_err_length_specs): Initialize
3561         scalar_identity_flag.
3562
3563 2009-09-10  Richard Henderson  <rth@redhat.com>
3564
3565         * tree.h (struct tree_decl_common): Move align member earlier;
3566         move label_decl_uid member ...
3567         (struct tree_label_decl): ... here.
3568         (LABEL_DECL_UID): Update to match.
3569
3570         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
3571         not TDF_DETAILS.
3572
3573         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
3574         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
3575
3576         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
3577         dest_prev if the edge is complex.
3578
3579         * tree-cfg.c (is_ctrl_stmt): Use a switch.
3580
3581         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
3582         loop latch tests earlier.
3583
3584         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
3585         before GIMPLE_RETURN, not after its predecessor; insert
3586         before GIMPLE_RESX.
3587
3588         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
3589         gimple_seq_empty_p to test for no PHI nodes.
3590         * tree-cfg.c (split_critical_edges): Likewise.
3591
3592         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
3593
3594 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
3595
3596         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
3597         introduced by the VTA branch merge.
3598
3599 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
3600
3601         * ira-conflicts.c: Use fputs or putc instead of fprintf
3602         where appropriate.
3603         * cfg.c: Ditto.
3604         * toplev.c: Ditto.
3605         * tree-switch-conversion.c: Ditto.
3606
3607 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
3608
3609         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
3610         introduced by the VTA branch merge.
3611
3612 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
3613
3614         Revert:
3615         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
3616
3617         PR rtl-optimization/39779
3618         * expr.c (convert_modes): Return when mode == oldmode after
3619         CONST_INTs are processed.
3620
3621 2009-09-10  Nick Clifton  <nickc@redhat.com>
3622
3623         * config/mep/mep.c (mep_encode_section_info): Copy weakness
3624         attribute and referring decl when creating renamed symbol.
3625
3626 2009-09-10  Richard Guenther  <rguenther@suse.de>
3627
3628         PR middle-end/41257
3629         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
3630         reachable nodes.
3631         (cgraph_finalize_compilation_unit): Compute reachability
3632         before emitting thunks.  Properly process aliases before
3633         possibly removing unreachable nodes.
3634
3635 2009-09-10  Richard Guenther  <rguenther@suse.de>
3636
3637         PR middle-end/41254
3638         * tree.c (struct free_lang_data_d): Add worklist member.
3639         (find_decls_types_r): Push onto the worklist instead of recursing.
3640         Handle TREE_BINFOs properly.
3641         (find_decls_types): New function wrapped around find_decls_types_r
3642         to process the worklist.
3643         (find_decls_types_in_eh_region): Use it.
3644         (find_decls_types_in_node): Likewise.
3645         (find_decls_types_in_var): Likewise.
3646         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
3647         * tree.h (RECORD_OR_UNION_TYPE_P): New.
3648         (AGGREGATE_TYPE_P): Adjust.
3649
3650 2009-09-09  Jason Merrill  <jason@redhat.com>
3651
3652         * configure.ac: Check glibc version even if we have an in-tree
3653         assembler.
3654
3655 2009-09-09  Anthony Green  <green@moxielogic.com>
3656
3657         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
3658         the constant 0 when appropriate.
3659         * config/moxie/constraints.md: Add constraint O.
3660
3661         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
3662         to pass up to 6 32-bit argument values in registers.
3663         (moxie_function_arg): Ditto.
3664         (moxie_arg_partial_bytes): Ditto.
3665         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
3666         (REG_PARM_STACK_SPACE): Ditto.
3667         (FUNCTION_ARG_REGNO_P): Ditto.
3668
3669         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
3670         instruction to allocate stack space.
3671
3672 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
3673
3674         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
3675         unnecessarily stringent constraints.  Fix address
3676         calculation in the splitters.
3677
3678 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
3679
3680         PR rtl-optimization/39779
3681         * expr.c (convert_modes): Return when mode == oldmode after
3682         CONST_INTs are processed.
3683
3684 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
3685
3686         PR/41315
3687         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
3688         (ix86_expand_prologue): Take frame.padding0 into logic of
3689         to_allocate checks.
3690         (ix86_expand_epilogue): Likewise.
3691
3692 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
3693
3694         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
3695         New variables.
3696         (SHLIB_LINK, SHLIB_INSTALL): Use them.
3697         * config/t-slibgcc-libgcc: New file.
3698         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
3699
3700 2009-09-09  Martin Jambor  <mjambor@suse.cz>
3701
3702         PR tree-optimization/41089
3703         * tree-sra.c (find_var_candidates): Do not consider va_lists in
3704         early SRA.
3705
3706 2009-09-09  Richard Henderson  <rth@redhat.com>
3707
3708         * gimple.h (CASE_GIMPLE_OMP): New.
3709         (is_gimple_omp): Use it.
3710         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
3711         (verify_gimple_debug): Likewise.
3712
3713 2009-09-09  Richard Guenther  <rguenther@suse.de>
3714
3715         PR tree-optimization/41101
3716         * tree-ssa-pre.c (maximal_set): Remove.
3717         (compute_antic_aux): Treat the maximal set as implicitly all ones.
3718         Defer all blocks we didn't visit at least one successor.
3719         (add_to_exp_gen): Do not add to the maximal set.
3720         (make_values_for_phi): Likewise.
3721         (compute_avail): Likewise.
3722         (init_pre): Do not allocate the maximal set.
3723         (execute_pre): Do not dump it.
3724
3725 2009-09-09  Martin Jambor  <mjambor@suse.cz>
3726
3727         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
3728         an SSA_NAME rather than a is_gimple_variable.
3729
3730 2009-09-09  Richard Guenther  <rguenther@suse.de>
3731
3732         PR middle-end/41317
3733         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
3734         code dealing with plain pointer bases.
3735         (maybe_fold_offset_to_reference): Likewise.
3736         (maybe_fold_stmt_addition): Adjust.
3737
3738 2009-09-09  Richard Guenther  <rguenther@suse.de>
3739
3740         * tree.c (free_lang_data_in_type): Do not free the type variant
3741         chains.
3742         (free_lang_data): Merge char_type_node with its properly signed
3743         variant.
3744         (pass_ipa_free): Collect after freeing language specific data.
3745
3746 2009-09-09  Michael Matz  <matz@suse.de>
3747
3748         PR middle-end/41268
3749         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
3750         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
3751         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
3752         to reflect reality.
3753
3754 2009-09-08  DJ Delorie  <dj@redhat.com>
3755
3756         * config/mep/mep.c (conversions[]): Add "ml" pattern.
3757
3758 2009-09-04  Jason Merrill  <jason@redhat.com>
3759
3760         * tree.c (tree_find_value): Remove.
3761         * tree.h: Remove prototype.
3762         * varasm.c (assemble_external): Use value_member instead.
3763
3764 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
3765
3766         * toplev.c (process_options): Choose default debugging type when
3767         gtoggle enables debug info and type is unset.
3768
3769 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
3770
3771         PR debug/41276
3772         PR debug/41307
3773         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
3774         invalid subreg.
3775
3776 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
3777
3778         * configure: Rebuilt with modified libtool.m4.
3779
3780 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
3781
3782         PR debug/41229
3783         PR debug/41291
3784         PR debug/41300
3785         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
3786
3787 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
3788
3789         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
3790         (remove_statement): Likewise.
3791         (rewrite_use_nonlinear_expr): Adjust.
3792         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
3793         * tree-ssa.c (release_defs_bitset): ... this.  New.
3794         * tree-flow.h (release_defs_bitset): Declare.
3795
3796 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
3797
3798         PR debug/41232
3799         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
3800         in the middle block.
3801
3802 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
3803
3804         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
3805         via intptr_t to long type.
3806         (insert_operand_rank): Cast long type via intptr_t to
3807         pointer type.
3808         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
3809         pointer to scalar.
3810         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
3811         from pointer to unsigned via uintptr_t.
3812
3813         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
3814         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
3815         and HAVE_INTPTR_T.
3816         * configure: Regenerated.
3817         * config.in: Regenerated
3818         * system.h (stdint.h): Add include.
3819         (inttypes.h): Likewise.
3820         * Makefile.in (aclocal): Add config/stdint.m4.
3821         * aclocal.m4: Regenerated.
3822
3823 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
3824
3825         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
3826         variables.
3827         (note_np_check_stores): New function.
3828         (harmless_null_pointer_p): New function.
3829         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
3830         changed.  Take into account whether we're in the shadow of a condjump
3831         that tested NP_REG for NULL.
3832         Lose all code that tested for SEQUENCEs.
3833         (workaround_speculation): Avoid inserting NOPs for loads that are
3834         either always executed or a NULL pointer.
3835
3836 2009-09-08  Jan Hubicka  <jh@suse.cz>
3837
3838         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
3839         * params.def (early-inlining-insns): Likewise.
3840
3841 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
3842
3843         PR rtl-optimization/41239
3844         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
3845         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
3846         lists.
3847         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
3848         across calls, as the calls might not always return normally.
3849         (call_may_noreturn_p): New function.
3850         (deps_analyze_insn): Update last_function_call_may_noreturn list.
3851         (init_deps): Initialize it.
3852         (remove_from_deps): Also remove calls from
3853         last_function_call_may_noreturn list.
3854
3855 2009-09-07  Richard Henderson  <rth@redhat.com>
3856
3857         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
3858         more VR->OPERANDS than LHS operands.  Free LHS before returning.
3859
3860 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
3861
3862         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
3863         (attr "addrtype"): New member "spreg".
3864         Use it if mem_spfp_address_operand is true for the address.
3865         (attr "type"): New entry "stall".
3866         (cpu_unit "load"): New.
3867         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
3868         "load".
3869         (insn_reservation "loadsp"): New.
3870         (insn_reservation "load_stall1"): New.
3871         (insn_reservation "load_stall3"): New.
3872         (stall): New insn.
3873         * config/bfin/predicates.md (const1_operand, const3_operand): New.
3874         (mem_p_address_operand): Exclude stack and frame pointer based
3875         addresses.
3876         (mem_spfp_address_operand): New; match them here.
3877         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
3878         (bfin_reorg): Call it if scheduling insns.
3879         (bfin_gen_bundles): Remove dummy insns created by
3880         add_sched_insns_for_speculation.
3881
3882         From Jie Zhang <jie.zhang@analog.com>:
3883         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
3884         bfin_si_revision, bfin_workarounds): Move these ...
3885         * config/bfin/bfin.h: ... here.
3886
3887         From Mike Frysinger  <michael.frysinger@analog.com>
3888         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
3889         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
3890         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
3891         bf547m, bf548m, and bf549m.
3892         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
3893         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
3894         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
3895         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
3896         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
3897         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
3898         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
3899         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
3900         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
3901         bf542m, bf544m, bf547m, bf548m, and bf549m.
3902
3903         From Jie Zhang <jie.zhang@analog.com>:
3904         * config/bfin/predicates.md (p_register_operand): New predicate.
3905         (dp_register_operand): New predicate.
3906         * config/bfin/bfin-protos.h (WA_05000074): Define.
3907         (ENABLE_WA_05000074): Define.
3908         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
3909         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
3910         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
3911         (define_attr addrtype): Allow load/store register to be P register.
3912         (define_attr storereg): New.
3913         (define_cpu_unit anomaly_05000074): New.
3914         (define_insn_reservation dsp32shiftimm): New.
3915         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
3916         (define_insn_reservation loadp): Cannot use slot2.
3917         (define_insn_reservation loadsp): Cannot use slot2.
3918         (define_insn_reservation storep): Cannot use slot2. Does not
3919         apply when working around 05000074.
3920         (define_insn_reservation storep_anomaly_05000074): New.
3921         (define_insn_reservation storei): Does not apply when working
3922         around 05000074.
3923         (define_insn_reservation storei_anomaly_05000074): New.
3924         (define_attr length): Add dsp32shiftimm case.
3925         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
3926         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
3927         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
3928         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
3929         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
3930
3931 2009-09-07  Martin Jambor  <mjambor@suse.cz>
3932
3933         PR middle-end/41282
3934         * tree-sra.c (create_artificial_child_access): Return NULL if
3935         build_ref_for_offset fails.
3936         (propagate_subacesses_accross_link): Allow build_ref_for_offset
3937         and create_artificial_child_access to fail.
3938
3939 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
3940
3941         PR c++/41214
3942         * unwind-dw2.c (uw_init_context_1): Mark noinline.
3943         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
3944         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
3945
3946 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
3947
3948         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
3949         block, ensure it has an exit edge.  Emit a barrier after a jump.
3950
3951 2009-09-07  Nick Clifton  <nickc@redhat.com>
3952
3953         * gcc.c (this_is_linker_script): New variable.  Like
3954         this_is_library_file but for the %T constructor.
3955         (end_going_arg): If this_is_linker_script is set then locate the
3956         script and insert a --script switch before it
3957         (do_spec_2): Initialise this_is_linker_script.
3958         (do_spec_1): Likewise.  Handle %T construct.
3959         (eval_spec_function): Preserve this_is_linker_script.
3960         * doc/invoke.texi: Document %T construct in spec files.
3961         * config/m32c/m32c.h (LIB_SPEC): Use it.
3962
3963 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3964
3965         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
3966         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
3967         when volatile flag is set.
3968         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
3969
3970 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
3971
3972         PR bootstrap/41241
3973         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
3974         (combine_stack_adjustments_for_block): Allow insns between stack
3975         adjustments and stores with corresponding pre-(dec|inc)rement or
3976         pre-modify operation.
3977
3978 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
3979
3980         PR bootstrap/41241
3981         * combine-stack-adj.c (struct csa_memlist): Rename to...
3982         (struct csa_reflist): ... this.  Rename mem field to ref.
3983         (free_csa_memlist): Rename to...
3984         (free_csa_reflist): ... this.
3985         (record_one_stack_memref): Rename to...
3986         (record_one_stack_ref): ... this.  Handle also REG_P.
3987         (try_apply_stack_adjustment): Handle also REG_P.
3988         (struct record_stack_memrefs_data): Rename to...
3989         (struct record_stack_refs_data): ... this.  Rename memlist field to
3990         reflist.
3991         (record_stack_memrefs): Rename to...
3992         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
3993         subexpressions instead of failing when a MEM contains SP references.
3994         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
3995         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
3996
3997 2009-09-06  Richard Guenther  <rguenther@suse.de>
3998
3999         PR middle-end/41144
4000         * tree.c (build_array_type): Do not record types marked
4001         with structural equality in the canonical type hashtable.
4002
4003 2009-09-06  Richard Guenther  <rguenther@suse.de>
4004
4005         PR middle-end/41261
4006         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
4007
4008 2009-09-05  Richard Guenther  <rguenther@suse.de>
4009
4010         PR middle-end/41181
4011         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
4012
4013 2009-09-05  Richard Guenther  <rguenther@suse.de>
4014
4015         PR debug/41273
4016         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
4017
4018 2009-09-05  Richard Guenther  <rguenther@suse.de>
4019
4020         PR middle-end/41271
4021         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
4022         before comparing function argument types.
4023
4024 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4025
4026         PR target/41024
4027         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
4028         the assembler.
4029
4030 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
4031
4032         Revert:
4033         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
4034
4035         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
4036         locators before emit_insn is called.
4037
4038 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
4039
4040         PR bootstrap/41241
4041         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
4042         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
4043         (reginfo_init): Don't call allocate_reg_info.
4044
4045 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
4046
4047         PR target/41262
4048         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
4049         NONDEBUG_INSN_P instead of INSN_P.
4050
4051 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4052
4053         PR debug/41225
4054         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
4055
4056 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4057
4058         PR target/41252
4059         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
4060         pattern of the split.
4061
4062 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4063
4064         * toplev.c (process_options): Move setter of flag_var_tracking
4065         before other tests that depend on it.  Move down setter of
4066         flag_rename_registers.  Don't enable var-tracking-assignments
4067         by default if selective scheduling is enabled.  Warn if both
4068         are enabled.
4069
4070 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4071
4072         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
4073         comment.  Use switch statement to catch overlaps between rtx
4074         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
4075         (IS_DECL_CODE): ... here. Remove.
4076         (check_value_is_not_decl): Remove.
4077         (dv_from_decl, dv_from_value): Check after conversion.
4078
4079 2009-09-04  Richard Guenther  <rguenther@suse.de>
4080
4081         PR middle-end/41257
4082         * (cgraph_finalize_compilation_unit): Move finalizing aliases
4083         after emitting tunks.  Move emitting thunks and ctors from ...
4084         (cgraph_optimize): ... here.  Remove redundant
4085         cgraph_analyze_functions.
4086         * varasm.c (find_decl_and_mark_needed): Remove no longer
4087         necessary check.
4088         (finish_aliases_1): Adjust check for thunk aliases.
4089
4090 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
4091
4092         * config/arm/arm.md (ctzsi2): Added braces
4093         to avoid warning that broke booststrap.
4094
4095 2009-09-04  Martin Jambor  <mjambor@suse.cz>
4096
4097         PR tree-optimization/41112
4098         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
4099         handle variable-bounded arrays.
4100         (expr_with_var_bounded_array_refs_p): New function.
4101         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
4102
4103 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
4104
4105         * config/s390/2097.md: Removed two incorrect bypasses.
4106         (z10_fsimpdf): Fixed latency.
4107         (z10_fhex): New insn_reservation.
4108         (z10_floaddf): Fixed latency.
4109         (z10_floadsf): Fixed latency.
4110         (z10_ftrunctf): Fixed latency.
4111         (z10_ftruncdf): Fixed latency.
4112         * config/s390/s390.c (z10_cost): Fixed values.
4113         (s390_adjust_priority): Added z10 path.
4114         * config/s390/s390.md (type): Added fhex.
4115         (*mov<mode>_64dfp): Updated type attribute.
4116         (*mov<mode>_64): Updated type attribute.
4117         (*mov<mode>_31): Updated type attribute.
4118         (*mov<mode>"): Likewise.
4119         * config/s390/2084.md (x_fsimpdf): Updated condition.
4120
4121 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
4122
4123         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
4124         RTXs in the predicate for operand 1.
4125
4126 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
4127
4128         * config/arm/arm.md (UNSPEC_RBIT): New constant.
4129         (rbitsi2): New insn.
4130         (ctzsi2): New expand.
4131         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
4132
4133 2009-09-03  Martin Jambor  <mjambor@suse.cz>
4134
4135         * tree-sra.c (duplicate_expr_for_different_base): Removed.
4136         (create_artificial_child_access): Use build_ref_for_offset instead
4137         of duplicate_expr_for_different_base.
4138         (propagate_subacesses_accross_link): Likewise.
4139
4140 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
4141
4142         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
4143         of INSN_P.
4144         (mips16e_collect_argument_saves): Skip debug instructions.
4145         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
4146         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
4147         (r10k_insert_cache_barriers): Likewise.
4148         (mips_reorg_process_insns): Likewise.
4149
4150 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
4151
4152         PR bootstrap/41241
4153         * ira.c (update_equiv_reg): Remove check on class likely spill.
4154
4155 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
4156
4157         PR debug/41236
4158         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
4159         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
4160         it or SUBREG.
4161
4162         PR debug/41238
4163         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
4164         the stack slot if it is passed by invisible reference.
4165         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
4166         by invisible reference.
4167
4168 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
4169
4170         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
4171         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
4172         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
4173         0.
4174         * config/bfin/sync.md: New file.
4175         * config/bfin/bfin.md: Include it.
4176         (UNSPEC_ATOMIC): New.
4177         (UNSPEC_ONES): Provide a unique number.
4178
4179         From Jie Zhang <jie.zhang@analog.com>:
4180         * config/bfin/bfin.c (ret_regs): New.
4181         (must_save_fp_p): Don't return true because of frame_pointer_needed.
4182         (must_save_rets_p): New.
4183         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
4184         current_function_is_leaf.
4185         (do_link): Likewise.
4186         (do_unlink): Likewise.
4187         (expand_interrupt_handler_prologue): Use ret_regs array.
4188         (expand_interrupt_handler_epilogue): Use ret_regs array and
4189         pass return register to gen_return_internal.
4190         (bfin_expand_epilogue): Pass return register to
4191         gen_return_internal.
4192         (bfin_expand_call): Explicitly clobber RETS.
4193         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
4194         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
4195         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
4196         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
4197         RETS.
4198         (return_internal): Take a reg rtx rather than the register number.
4199
4200 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
4201
4202         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
4203         when comparing against estimated_loop_iterations_int return.
4204
4205 2009-09-03  Richard Guenther  <rguenther@suse.de>
4206
4207         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
4208         eh_personality_libfunc.
4209
4210 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
4211
4212         * tree-parloops.c (separate_decls_in_region): Add space.
4213
4214 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
4215
4216         * tree-parloops.c (separate_decls_in_region): Change the condition
4217         checking if there are reductions in the loop.
4218
4219 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
4220
4221         PR tree-optimization/38275
4222         * tree-parloops.c (parallelize_loops): Replace profitability condition
4223         for expected number of iterations.
4224
4225 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
4226
4227         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
4228         (bootstrap-debug): Explain conditions in which it becomes default.
4229         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
4230         make it add to it.
4231
4232 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
4233
4234         * doc/invoke.texi (Optimize Options): Move
4235         -finline-small-functions to the -O2 list.
4236
4237 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
4238
4239         * toplev.c (process_options): Enable var-tracking-assignments
4240         by default if var-tracking is enabled.
4241
4242 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
4243
4244         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
4245         barrier.
4246         * emit-rtl.c (prev_nonnote_insn_bb): New function.
4247         * rtl.h (prev_nonnote_insn_bb): Declare it.
4248
4249 2009-09-03  Diego Novillo  <dnovillo@google.com>
4250
4251         * cgraph.c (cgraph_node_for_decl): New.
4252         * cgraph.h (cgraph_node_for_decl): Declare.
4253         * tree.c (host_integerp): Return 0 if T is NULL.
4254
4255 2009-09-03  Diego Novillo  <dnovillo@google.com>
4256
4257         * tree.h (struct alias_pair): Move from varasm.c.
4258         (alias_pairs): Likewise.
4259         (TYPE_MAXVAL): Define.
4260         (TYPE_MINVAL): Define.
4261         (iterative_hash_host_wide_int): Declare.
4262         (remove_unreachable_alias_pairs): Declare.
4263         * tree-pass.h (pass_ipa_free_lang_data): Declare.
4264         * diagnostic.c (default_diagnostic_starter): Make extern.
4265         (default_diagnostic_finalizer): Make extern.
4266         * diagnostic.h (default_diagnostic_starter): Declare.
4267         (default_diagnostic_finalizer): Declare.
4268         (default_tree_printer): Declare.
4269         * toplev.c (default_tree_printer): Make extern.
4270
4271 2009-09-03  Richard Guenther  <rguenther@suse.de>
4272             Diego Novillo  <dnovillo@google.com>
4273
4274         * cgraph.c (cgraph_add_new_function): Remove gimplification.
4275         * cgraphunit.c (cgraph_expand_function): Do not emit
4276         associated thunks from here.
4277         (cgraph_emit_thunks): New.
4278         (cgraph_optimize): Call it.
4279         Return if any IPA pass finds an error.
4280         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
4281         by thunks.
4282
4283 2009-09-03  Simon Baldwin  <simonb@google.com>
4284             Rafael Espindola  <espindola@google.com>
4285             Richard Guenther  <rguenther@suse.de>
4286             Doug Kwan  <dougkwan@google.com>
4287             Diego Novillo  <dnovillo@google.com>
4288
4289         * tree.c: Include tree-pass.h, langhooks-def.h,
4290         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
4291         (free_lang_data_in_type): New.
4292         (need_assembler_name_p): New.
4293         (free_lang_data_in_block): New.
4294         (free_lang_data_in_decl): New.
4295         (struct free_lang_data_d): New.
4296         (add_tree_to_fld_list): New.
4297         (find_decls_types_r): New.
4298         (get_eh_types_for_runtime): New.
4299         (find_decls_types_in_eh_region): New.
4300         (find_decls_types_in_node): New.
4301         (find_decls_types_in_var): New.
4302         (free_lang_data_in_cgraph): New.
4303         (free_lang_data): New.
4304         (gate_free_lang_data): New.
4305         (pass_ipa_free_lang_data): New.
4306
4307 2009-09-03  Diego Novillo  <dnovillo@google.com>
4308
4309         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
4310         * langhooks.h (struct lang_hooks): Add field free_lang_data.
4311         (lang_hooks): Remove const qualifier.
4312         * ipa.c (cgraph_remove_unreachable_nodes): Call
4313         remove_unreachable_alias_pairs.
4314         * except.c (add_type_for_runtime): Check if TYPE has
4315         already been converted.
4316         (lookup_type_for_runtime): Likewise.
4317         (check_handled): Handle converted types.
4318         * varasm.c (remove_unreachable_alias_pairs): New.
4319         * gimple.c: Include demangle.h.
4320         (gimple_decl_printable_name): New.
4321         (gimple_fold_obj_type_ref): New.
4322         * gimple.h (gimple_decl_printable_name): Declare.
4323         (gimple_fold_obj_type_ref): Declare.
4324         * passes.c (init_optimization_passes): Add pass
4325         pass_ipa_free_lang_data.
4326         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
4327         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
4328
4329 2009-09-03  Diego Novillo  <dnovillo@google.com>
4330
4331         * c-lang.c (lang_hooks): Remove const qualifier.
4332
4333 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
4334
4335         * doc/install.texi (*-*-freebsd*): Update target information.
4336
4337 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
4338
4339         * hard-reg-set.h (call_fixed_regs): Remove.
4340         * reginfo.c (call_fixed_regs): Remove.
4341         (init_reg_sets_1): Remove initialization of call_fixed_regs.
4342         (globalize_reg): Don't use call_fixed_regs.
4343         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
4344         call_fixed_regs.
4345
4346 2009-09-01  Michael Matz  <matz@suse.de>
4347
4348         * expr.h (emit_storent_insn, expand_expr_real_1,
4349         expand_expr_real_2): Declare.
4350         * expr.c (emit_storent_insn, expand_expr_real_1,
4351         expand_expr_real_2): Export.
4352         (store_expr): Setting and evaluating dont_return_target is useless.
4353         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
4354         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
4355         * except.c (expand_resx_expr): Rename to ...
4356         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
4357         * except.h (expand_resx_stmt): Declare.
4358         * stmt.c: Add include gimple.h
4359         (expand_asm_expr): Rename to ...
4360         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
4361         (expand_case): Rewrite to take gimple statement.
4362         * tree.h (expand_asm_stmt): Declare.
4363         (expand_case): Change prototype.
4364         * Makefile.in (stmt.o): Depend on gimple.h.
4365         * builtins.c (expand_builtin_synchronize): Build gimple asm
4366         statement, not an ASM_EXPR.
4367         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
4368         gimple_to_tree, release_stmt_tree): Remove.
4369         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
4370         ggc_free, but hold comparison code and operands separately.
4371         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
4372         (expand_call_stmt, expand_gimple_stmt_1,
4373         expand_gimple_stmt): New helpers.
4374         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
4375         release_stmt_tree.  Call expand_gimple_stmt instead.
4376         (expand_gimple_basic_block): Ditto.
4377
4378         * calls.c (emit_call_1): Don't look at EH regions here, make
4379         fntree parameter useless.
4380         (expand_call): New local rettype for TREE_TYPE(exp), use it
4381         throughout.  Remove local p, use addr instead.
4382         Don't look at EH regions here.
4383
4384 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
4385
4386         * doc/invoke.texi (-fsched-pressure): Document it.
4387         (-fsched-reg-pressure-heuristic): Remove it.
4388
4389         * reload.c (ira.h): Include.
4390         (find_reloads): Add choosing reload on number of small spilled
4391         classes.
4392
4393         * haifa-sched.c (ira.h): Include.
4394         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
4395         saved_reg_pressure, curr_reg_live, saved_reg_live,
4396         region_ref_regs): New variables.
4397         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
4398         initiate_reg_pressure_info, setup_ref_regs,
4399         initiate_bb_reg_pressure_info, save_reg_pressure,
4400         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
4401         functions.
4402         (setup_insn_reg_pressure_info): New function.
4403         (rank_for_schedule): Add pressure checking and insn issue time.
4404         Remove comparison of insn reg weights.
4405         (ready_sort): Set insn reg pressure info.
4406         (update_register_pressure, setup_insn_max_reg_pressure,
4407         update_reg_and_insn_max_reg_pressure,
4408         sched_setup_bb_reg_pressure_info): New functions.
4409         (schedule_insn): Add code for printing and updating reg pressure info.
4410         (find_set_reg_weight, find_insn_reg_weight): Remove.
4411         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
4412         (debug_ready_list): Print reg pressure info.
4413         (schedule_block): Ditto.  Check insn issue time.
4414         (sched_init): Set up sched_pressure_p.  Allocate and set up some
4415         reg pressure related info.
4416         (sched_finish): Free some reg pressure related info.
4417         (fix_tick_ready): Make insn always ready if pressure_p.
4418         (init_h_i_d): Don't call find_insn_reg_weight.
4419         (haifa_finish_h_i_d): Free insn reg pressure info.
4420
4421         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
4422         ira_memory_move_cost, ira_class_hard_regs,
4423         ira_class_hard_regs_num, ira_no_alloc_regs,
4424         ira_available_class_regs, ira_reg_class_cover_size,
4425         ira_reg_class_cover, ira_class_translate): Move to ira.h.
4426
4427         * ira-lives.c (single_reg_class): Check mode to find how many
4428         registers are necessary for operand.
4429         (ira_implicitly_set_insn_hard_regs): New.
4430
4431         * common.opt (fsched-pressure): New options.
4432         (fsched-reg-pressure-heuristic): Remove.
4433
4434         * ira.c (setup_eliminable_regset): Rename to
4435         ira_setup_eliminable_regset.  Make it external.
4436         (expand_reg_info): Pass cover class to setup_reg_classes.
4437         (ira): Call resize_reg_info instead of allocate_reg_info.
4438
4439         * sched-deps.c: Include ira.h.
4440         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
4441         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
4442         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
4443         mark_insn_hard_regno_birth, mark_insn_reg_birth,
4444         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
4445         mark_insn_reg_store, mark_insn_reg_clobber,
4446         setup_insn_reg_pressure_info): New.
4447         (sched_analyze_1): Update implicit_reg_pending_uses.
4448         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
4449         Use them to create dependencies.  Set insn reg uses and pressure
4450         info.  Process reg_pending_uses in one place.
4451         (free_deps): Free implicit sets.
4452         (remove_from_deps): Remove implicit sets if necessary.  Check
4453         implicit sets when clearing reg_last_in_use.
4454         (init_deps_global): Clear implicit_reg_pending_clobbers and
4455         implicit_reg_pending_uses.
4456
4457         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
4458         ira_memory_move_cost, ira_class_hard_regs,
4459         ira_class_hard_regs_num, ira_no_alloc_regs,
4460         ira_available_class_regs, ira_reg_class_cover_size,
4461         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
4462         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
4463         ira_implicitly_set_insn_hard_regs): New prototypes.
4464
4465         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
4466         cost_elements_num): New variables.
4467         (allocno_costs, total_costs): Rename to costs and
4468         total_allocno_costs.
4469         (COSTS_OF_ALLOCNO): Rename to COSTS.
4470         (allocno_pref): Rename to pref.
4471         (allocno_pref_buffer): Rename to pref_buffer.
4472         (common_classes): Rename to regno_cover_class.
4473         (COST_INDEX): New.
4474         (record_reg_classes): Set allocno attributes only if allocno_p.
4475         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
4476         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
4477         and COSTS_OF_ALLOCNO.
4478         (print_costs): Rename to print_allocno_costs.
4479         (print_pseudo_costs): New.
4480         (process_bb_node_for_costs): Split into 2 functions with new
4481         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
4482         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
4483         new parameter dump_file.  Use cost_elements_num instead of
4484         ira_allocnos_num.  Make one iteration if preferred classes were
4485         already calculated for scheduler.  Make 2 versions of code
4486         depending on allocno_p.
4487         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
4488         regno_cover_class and COSTS instead of common_classes and
4489         COSTS_OF_ALLOCNO.
4490         (init_costs, finish_costs): New.
4491         (ira_costs): Set up allocno_p and cost_elements_num.  Call
4492         init_costs and finish_costs.
4493         (ira_set_pseudo_classes): New.
4494
4495         * rtl.h (allocate_reg_info): Remove.
4496         (resize_reg_info): Change return type.
4497         (reg_cover_class): New.
4498         (setup_reg_classes): Add new parameter.
4499
4500         * sched-int.h (struct deps_reg): New member implicit_sets.
4501         (sched_pressure_p, sched_regno_cover_class): New external definitions.
4502         (INCREASE_BITS): New macro.
4503         (struct reg_pressure_data, struct reg_use_data): New.
4504         (struct _haifa_insn_data): Remove reg_weight.  Add members
4505         reg_pressure, reg_use_list, reg_set_list, and
4506         reg_pressure_excess_cost_change.
4507         (struct deps): New member implicit_sets.
4508         (pressure_p): New variable.
4509         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
4510         (struct reg_pressure_data, struct reg_use_data): New.
4511         (INSN_REG_WEIGHT): Remove.
4512         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
4513         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
4514         (sched_init_region_reg_pressure_info,
4515         sched_setup_bb_reg_pressure_info): New prototypes.
4516
4517         * reginfo.c (struct reg_pref): New member coverclass.
4518         (reg_cover_class): New function.
4519         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
4520         (reg_info_size): New variable.
4521         (allocate_reg_info): Make static.  Setup reg_info_size.
4522         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
4523         (setup_reg_classes): Add a new parameter.  Setup cover class too.
4524
4525         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
4526         the dependencies.
4527
4528         * sched-rgn.c (deps_join): Set up implicit_sets.
4529         (schedule_region): Set up region and basic blocks pressure
4530         relative info.
4531
4532         * passes.c (init_optimization_passes): Move
4533         pass_subregs_of_mode_init before pass_sched.
4534
4535 2009-09-02  Martin Jambor  <mjambor@suse.cz>
4536
4537         * tree-sra.c (struct access): New field grp_hint.
4538         (dump_access): Dump grp_hint.
4539         (sort_and_splice_var_accesses): Set grp_hint if a group is read
4540         multiple times.
4541         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
4542         those which have been specifically read and somehow written to.
4543         (propagate_subacesses_accross_link): Set grp_hint of right child and
4544         also possibly of the left child.
4545
4546 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
4547
4548         * tree-object-size.c (addr_object_size): Always use object_size_type
4549         0 or 2 when determining the pointer pointed object size.
4550
4551 2009-09-02  Richard Guenther  <rguenther@suse.de>
4552
4553         Revert
4554         2009-08-31  Richard Guenther  <rguenther@suse.de>
4555
4556         * builtins.c (fold_builtin_memory_op): Use the alias oracle
4557         to query if the memory regions for memmove overlap.
4558         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
4559         asserts on pointers, instead deal with odd trees.
4560         (ptr_derefs_may_alias_p): Likewise.
4561         (refs_may_alias_p_1): Constructor bases also never alias.
4562
4563 2009-08-01  Christian Bruel  <christian.bruel@st.com>
4564
4565         Revert:
4566         2009-07-31  Christian Bruel  <christian.bruel@st.com>
4567         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
4568
4569 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
4570
4571         * doc/invoke.texi (-fvar-tracking-assignments): New.
4572         (-fvar-tracking-assignments-toggle): New.
4573         (-fdump-final-insns=file): Mark filename as optional.
4574         (--param min-nondebug-insn-uid): New.
4575         (-gdwarf-@{version}): Mention version 4.
4576         * opts.c (common_handle_option): Accept it.
4577         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
4578         * regrename.c (regrename_optimize): Drop last.  Don't count debug
4579         insns as uses.  Don't reject change because of debug insn.
4580         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
4581         from the chain starter, and check for inexact matches in DEBUG_INSNS.
4582         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
4583         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
4584         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
4585         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
4586         * doc/gimple.texi (is_gimple_debug): New.
4587         (gimple_debug_bind_p): New.
4588         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
4589         * doc/install.texi (bootstrap-debug): More details.
4590         (bootstrap-debug-big, bootstrap-debug-lean): Document.
4591         (bootstrap-debug-lib): More details.
4592         (bootstrap-debug-ckovw): Update.
4593         (bootstrap-time): New.
4594         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
4595         (insert_phi_nodes_for): Insert debug stmts.
4596         (rewrite_stmt): Take iterator.  Insert debug stmts.
4597         (rewrite_enter_block): Adjust.
4598         (maybe_replace_use_in_debug_stmt): New.
4599         (rewrite_update_stmt): Use it.
4600         (mark_use_interesting): Return early for debug stmts.
4601         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
4602         stmts before replacing stmt.
4603         (move_computations_stmt): Likewise.
4604         * ira-conflicts.c (add_copies): Skip debug insns.
4605         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
4606         (regstat_bb_compute_ri): Skip debug insns.
4607         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
4608         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
4609         check_loop_closed_ssa_stmt): Skip debug stmts.
4610         * tree-tailcall.c (find_tail_calls): Likewise.
4611         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
4612         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
4613         (build_var_debug_value_stat): Declare.
4614         (build_var_debug_value): Define.
4615         (target_for_debug_bind): Declare.
4616         * reload.c (find_equiv_reg): Skip debug insns.
4617         * rtlanal.c (reg_used_between_p): Skip debug insns.
4618         (side_effects_p): Likewise.
4619         (canonicalize_condition): Likewise.
4620         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
4621         insns never depend on debug insns.
4622         (create_ddg_dep_no_link): Likewise.
4623         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
4624         Don't add inter-loop dependencies for debug insns.
4625         (build_intra_loop_deps): Likewise.
4626         (create_ddg): Count debug insns.
4627         * ddg.h (struct ddg::num_debug): New.
4628         (num_backargs): Pair up with previous int field.
4629         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
4630         -fcompare-debug-second.
4631         * final.c (get_attr_length_1): Skip debug insns.
4632         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
4633         * gcc.c (invoke_as): Call compare-debug-dump-opt.
4634         (driver_self_specs): Map -fdump-final-insns to
4635         -fdump-final-insns=..
4636         (get_local_tick): New.
4637         (compare_debug_dump_opt_spec_function): Test for . argument and
4638         compute output name.  Compute temp output spec without flag name.
4639         Compute -frandom-seed.
4640         (OPT): Undef after use.
4641         * cfgloopanal.c (num_loop_insns): Skip debug insns.
4642         (average_num_loop_insns): Likewise.
4643         * params.h (MIN_NONDEBUG_INSN_UID): New.
4644         * gimple.def (GIMPLE_DEBUG): New.
4645         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
4646         * auto-inc-dec.c (merge_in_block): Skip debug insns.
4647         (merge_in_block): Fix whitespace.
4648         * toplev.c (flag_var_tracking): Update comment.
4649         (flag_var_tracking_assignments): New.
4650         (flag_var_tracking_assignments_toggle): New.
4651         (process_options): Don't open final insns dump file if we're not
4652         going to write to it.  Compute defaults for var_tracking.
4653         * df-scan.c (df_insn_rescan_debug_internal): New.
4654         (df_uses_record): Handle debug insns.
4655         * haifa-sched.c (ready): Initialize n_debug.
4656         (contributes_to_priority): Skip debug insns.
4657         (dep_list_size): New.
4658         (priority): Use it.
4659         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
4660         they're ready.  Disregard previous debug insns to make decisions.
4661         (queue_insn): Never queue debug insns.
4662         (ready_add, ready_remove_first, ready_remove): Count debug insns.
4663         (schedule_insn): Don't reject debug insns because of issue rate.
4664         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
4665         (queue_to_ready): Skip and discount debug insns.
4666         (choose_ready): Let debug insns through.
4667         (schedule_block): Check boundary debug insns.  Discount debug
4668         insns, schedule them early.  Adjust whitespace.
4669         (set_priorities): Check for boundary debug insns.
4670         (add_jump_dependencies): Use dep_list_size.
4671         (prev_non_location_insn): New.
4672         (check_cfg): Use it.
4673         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
4674         stmts.
4675         (remove_unused_ivs): Reset debug stmts.
4676         * modulo-sched.c (const_iteration_count): Skip debug insns.
4677         (res_MII): Discount debug insns.
4678         (loop_single_full_bb_p): Skip debug insns.
4679         (sms_schedule): Likewise.
4680         (sms_schedule_by_order): Likewise.
4681         (ps_has_conflicts): Likewise.
4682         * caller-save.c (refmarker_fn): New.
4683         (save_call_clobbered_regs): Replace regs with saved mem in
4684         debug insns.
4685         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
4686         Call refmarker_fn mark for hardregnos.
4687         (mark_reg_as_referenced): New.
4688         (replace_reg_with_saved_mem): New.
4689         * ipa-pure-const.c (check_stmt): Skip debug stmts.
4690         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
4691         searching back.
4692         (cse_extended_basic_block): Skip debug insns.
4693         (count_reg_usage): Likewise.
4694         (is_dead_reg): New, split out of...
4695         (set_live_p): ... here.
4696         (insn_live_p): Use it for debug insns.
4697         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
4698         (execute_optimize_stdarg): Likewise.
4699         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
4700         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
4701         changes in debug stmts as changes.
4702         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
4703         (moveup_expr): Don't move across debug insns.  Don't move
4704         debug insn if it would create a bookkeeping block.
4705         (moveup_expr_cached): Don't use cache for debug insns that
4706         are heads of blocks.
4707         (compute_av_set_inside_bb): Skip debug insns.
4708         (sel_rank_for_schedule): Schedule debug insns first.  Remove
4709         dead code.
4710         (block_valid_for_bookkeeping_p); Support lax searches.
4711         (create_block_for_bookkeeping): Adjust block numbers when
4712         encountering debug-only blocks.
4713         (find_place_for_bookkeeping): Deal with debug-only blocks.
4714         (generate_bookkeeping_insn): Accept no place to insert.
4715         (remove_temp_moveop_nops): New argument full_tidying.
4716         (prepare_place_to_insert): Deal with debug insns.
4717         (advance_state_on_fence): Debug insns don't start cycles.
4718         (update_boundaries): Take fence as argument.  Deal with
4719         debug insns.
4720         (schedule_expr_on_boundary): No full_tidying on debug insns.
4721         (fill_insns): Deal with debug insns.
4722         (track_scheduled_insns_and_blocks): Don't count debug insns.
4723         (need_nop_to_preserve_insn_bb): New, split out of...
4724         (remove_insn_from_stream): ... this.
4725         (fur_orig_expr_not_found): Skip debug insns.
4726         * rtl.def (VALUE): Move up.
4727         (DEBUG_INSN): New.
4728         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
4729         (nearest_common_dominator_of_uses): Take debug_stmts argument.
4730         Set it if debug stmts are found.
4731         (statement_sink_location): Skip debug stmts.  Propagate
4732         moving defs into debug stmts.
4733         * ifcvt.c (first_active_insn): Skip debug insns.
4734         (last_active_insns): Likewise.
4735         (cond_exec_process_insns): Likewise.
4736         (noce_process_if_block): Likewise.
4737         (check_cond_move_block): Likewise.
4738         (cond_move_convert_if_block): Likewise.
4739         (block_jumps_and_fallthru_p): Likewise.
4740         (dead_or_predicable): Likewise.
4741         * dwarf2out.c (debug_str_hash_forced): New.
4742         (find_AT_string): Add comment.
4743         (gen_label_for_indirect_string): New.
4744         (get_debug_string_label): New.
4745         (AT_string_form): Use it.
4746         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
4747         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
4748         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
4749         several operations that cannot be represented with DWARF opcodes.
4750         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
4751         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
4752         (dwarf2out_var_location): Take during-call mark into account.
4753         (output_indirect_string): Update comment.  Output if there are
4754         label and references.
4755         (prune_indirect_string): New.
4756         (prune_unused_types): Call it if debug_str_hash_forced.
4757         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
4758         (dw_long_long_const): Remove.
4759         (struct dw_val_struct): Change val_long_long type to rtx.
4760         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
4761         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
4762         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
4763         component instead of HOST_BITS_PER_LONG.
4764         (output_loc_operands): Likewise.  For const8* assert
4765         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
4766         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
4767         rather than HOST_BITS_PER_LONG is >= 64.
4768         (add_AT_long_long): Remove val_hi and val_lo arguments, add
4769         val_const_double.
4770         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
4771         HOST_BITS_PER_LONG for dw_val_class_long_long.
4772         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
4773         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
4774         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
4775         DW_OP_stack_value.
4776         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
4777         Handle DW_OP_implicit_value.
4778         (extract_int): Move prototype earlier.
4779         (mem_loc_descriptor): For SUBREG punt if inner
4780         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
4781         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
4782         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
4783         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
4784         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
4785         instead of Pmode size.
4786         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
4787         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
4788         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
4789         (concat_loc_descriptor, concatn_loc_descriptor,
4790         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
4791         (add_location_or_const_value_attribute): Likewise.  For single
4792         location loc_lists attempt to use add_const_value_attribute
4793         for constant decls.  Add DW_AT_const_value even if
4794         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
4795         in its expression.
4796         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
4797         (control_flow_insn_p): Likewise.
4798         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
4799         (separate_decls_in_region_debug_bind): New.
4800         (separate_decls_in_region): Process debug bind stmts afterwards.
4801         * recog.c (verify_changes): Handle debug insns.
4802         (extract_insn): Likewise.
4803         (peephole2_optimize): Skip debug insns.
4804         * dse.c (scan_insn): Skip debug insns.
4805         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
4806         Pass it on.
4807         (setup_id_for_insn): Handle debug insns.
4808         (maybe_tidy_empty_bb): Adjust whitespace.
4809         (tidy_control_flow): Skip debug insns.
4810         (sel_remove_insn): Adjust for debug insns.
4811         (sel_estimate_number_of_insns): Skip debug insns.
4812         (create_insn_rtx_from_pattern): Handle debug insns.
4813         (create_copy_of_insn_rtx): Likewise.
4814         * sel-sched-.h (sel_bb_end): Declare.
4815         (sel_bb_empty_or_nop_p): New.
4816         (get_all_loop_exits): Use it.
4817         (_eligible_successor_edge_p): Likewise.
4818         (return_nop_to_pool): Adjust.
4819         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
4820         * ira-lives.c (process_bb_node_lives): Skip debug insns.
4821         * gimple-pretty-print.c (dump_gimple_debug): New.
4822         (dump_gimple_stmt): Use it.
4823         (dump_bb_header): Skip gimple debug stmts.
4824         * regmove.c (optimize_reg_copy_1): Discount debug insns.
4825         (fixup_match_2): Likewise.
4826         (regmove_backward_pass): Likewise.  Simplify combined
4827         replacement.  Handle debug insns.
4828         * function.c (instantiate_virtual_regs): Handle debug insns.
4829         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
4830         * print-rtl.h: Include cselib.h.
4831         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
4832         * df.h (df_inns_rescan_debug_internal): Declare.
4833         * gcse.c (alloc_hash_table): Estimate n_insns.
4834         (cprop_insn): Don't regard debug insns as changes.
4835         (bypass_conditional_jumps): Skip debug insns.
4836         (one_pre_gcse_pass): Adjust.
4837         (one_code_hoisting_pass): Likewise.
4838         (compute_ld_motion_mems): Skip debug insns.
4839         (one_cprop_pass): Adjust.
4840         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
4841         (if_convertible_stmt_p): Handle debug stmts.
4842         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
4843         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
4844         * ira-build.c (create_bb_allocnos): Skip debug insns.
4845         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
4846         (has_single_use): Likewise.
4847         (single_imm_use): Likewise.
4848         (num_imm_uses): Likewise.
4849         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
4850         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
4851         (create_outofssa_var_map): Likewise.
4852         * lower-subreg.c (adjust_decomposed_uses): New.
4853         (resolve_debug): New.
4854         (decompose_multiword_subregs): Use it.
4855         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
4856         * emit-rtl.c: Include params.h.
4857         (cur_debug_insn_uid): Define.
4858         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
4859         (copy_rtx_if_shared_1): Handle debug insns.
4860         (reset_used_flags): Likewise.
4861         (set_used_flags): LIkewise.
4862         (get_max_insn_count): New.
4863         (next_nondebug_insn): New.
4864         (prev_nondebug_insn): New.
4865         (make_debug_insn_raw): New.
4866         (emit_insn_before_noloc): Handle debug insns.
4867         (emit_jump_insn_before_noloc): Likewise.
4868         (emit_call_insn_before_noloc): Likewise.
4869         (emit_debug_insn_before_noloc): New.
4870         (emit_insn_after_noloc): Handle debug insns.
4871         (emit_jump_insn_after_noloc): Likewise.
4872         (emit_call_insn_after_noloc): Likewise.
4873         (emit_debug_insn_after_noloc): Likewise.
4874         (emit_insn_after): Take loc from earlier non-debug insn.
4875         (emit_jump_insn_after): Likewise.
4876         (emit_call_insn_after): Likewise.
4877         (emit_debug_insn_after_setloc): New.
4878         (emit_debug_insn_after): New.
4879         (emit_insn_before): Take loc from later non-debug insn.
4880         (emit_jump_insn_before): Likewise.
4881         (emit_call_insn_before): Likewise.
4882         (emit_debug_insn_before_setloc): New.
4883         (emit_debug_insn_before): New.
4884         (emit_insn): Handle debug insns.
4885         (emit_debug_insn): New.
4886         (emit_jump_insn): Handle debug insns.
4887         (emit_call_insn): Likewise.
4888         (emit): Likewise.
4889         (init_emit): Take min-nondebug-insn-uid into account.
4890         Initialize cur_debug_insn_uid.
4891         (emit_copy_of_insn_after): Handle debug insns.
4892         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
4893         location of single rhs in place.
4894         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
4895         (floor_sdiv_adjust): New.
4896         (cell_sdiv_adjust): New.
4897         (cell_udiv_adjust): New.
4898         (round_sdiv_adjust): New.
4899         (round_udiv_adjust): New.
4900         (wrap_constant): Moved from cselib.
4901         (unwrap_constant): New.
4902         (expand_debug_expr): New.
4903         (expand_debug_locations): New.
4904         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
4905         debug bind stmts.
4906         (gimple_expand_cfg): Expand debug locations.
4907         * cselib.c: Include tree-pass.h.
4908         (struct expand_value_data): New.
4909         (cselib_record_sets_hook): New.
4910         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
4911         (cselib_clear_table): Move, and implemnet in terms of...
4912         (cselib_reset_table_with_next_value): ... this.
4913         (cselib_get_next_unknown_value): New.
4914         (discard_useless_locs): Don't discard preserved values.
4915         (cselib_preserve_value): New.
4916         (cselib_preserved_value_p): New.
4917         (cselib_preserve_definitely): New.
4918         (cselib_clear_preserve): New.
4919         (cselib_preserve_only_values): New.
4920         (new_cselib_val): Take rtx argument.  Dump it in details.
4921         (cselib_lookup_mem): Adjust.
4922         (expand_loc): Take regs_active in struct.  Adjust.  Silence
4923         dumps unless details are requested.
4924         (cselib_expand_value_rtx_cb): New.
4925         (cselib_expand_value_rtx): Rename and reimplment in terms of...
4926         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
4927         without details.  Copy more subregs.  Try to resolve values
4928         using a callback.  Wrap constants.
4929         (cselib_subst_to_values): Adjust.
4930         (cselib_log_lookup): New.
4931         (cselib_lookup): Call it.
4932         (cselib_invalidate_regno): Don't count preserved values as useless.
4933         (cselib_invalidate_mem): Likewise.
4934         (cselib_record_set): Likewise.
4935         (struct set): Renamed to cselib_set, moved to cselib.h.
4936         (cselib_record_sets): Adjust.  Call hook.
4937         (cselib_process_insn): Reset table when it would be cleared.
4938         (dump_cselib_val): New.
4939         (dump_cselib_table): New.
4940         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
4941         (remove_forwarder_block): Support moving debug stmts.
4942         * cselib.h (cselib_record_sets_hook): Declare.
4943         (cselib_expand_callback): New type.
4944         (cselib_expand_value_rtx_cb): Declare.
4945         (cselib_reset_table_with_next_value): Declare.
4946         (cselib_get_next_unknown_value): Declare.
4947         (cselib_preserve_value): Declare.
4948         (cselib_preserved_value_p): Declare.
4949         (cselib_preserve_only_values): Declare.
4950         (dump_cselib_table): Declare.
4951         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
4952         (try_crossjump_to_edge): Likewise.
4953         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
4954         dominated blocks when debug stmts are present.
4955         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
4956         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
4957         (set_var_live_on_entry): Likewise.
4958         * loop-invariant.c (find_invariants_bb): Skip debug insns.
4959         * cfglayout.c (curr_location, last_location): Make static.
4960         (set_curr_insn_source_location): Don't avoid bouncing.
4961         (get_curr_insn_source_location): New.
4962         (get_curr_insn_block): New.
4963         (duplicate_insn_chain): Handle debug insns.
4964         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
4965         into debug stmts.
4966         * common.opt (fcompare-debug): Move to sort order.
4967         (fdump-unnumbered-links): Likewise.
4968         (fvar-tracking-assignments): New.
4969         (fvar-tracking-assignments-toggle): New.
4970         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
4971         because of debug stmts.
4972         (mark_stmt_if_obviously_necessary): Mark debug stmts.
4973         (eliminate_unnecessary_stmts): Walk dominated blocks before
4974         dominators.
4975         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
4976         * ira.c (memref_used_between_p): Skip debug insns.
4977         (update_equiv_regs): Likewise.
4978         * sched-deps.c (sd_lists_size): Accept empty list.
4979         (sd_init_insn): Mark debug insns.
4980         (sd_finish_insn): Unmark them.
4981         (sd_add_dep): Reject non-debug deps on debug insns.
4982         (fixup_sched_groups): Give debug insns group treatment.
4983         Skip debug insns.
4984         (sched_analyze_reg): Don't mark debug insns for sched before call.
4985         (sched_analyze_2): Handle debug insns.
4986         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
4987         insns.
4988         (deps_analyze_insn): Handle debug insns.
4989         (deps_start_bb): Skip debug insns.
4990         (init_deps): Initialize last_debug_insn.
4991         * tree-ssa.c (target_for_debug_bind): New.
4992         (find_released_ssa_name): New.
4993         (propagate_var_def_into_debug_stmts): New.
4994         (propagate_defs_into_debug_stmts): New.
4995         (verify_ssa): Skip debug bind stmts without values.
4996         (warn_uninialized_vars): Skip debug stmts.
4997         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
4998         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
4999         (rtx_equal_p): Likewise.
5000         * ira-costs.c (scan_one_insn): Skip debug insns.
5001         (process_bb_node_for_hard_reg_moves): Likewise.
5002         * rtl.h (DEBUG_INSN_P): New.
5003         (NONDEBUG_INSN_P): New.
5004         (MAY_HAVE_DEBUG_INSNS): New.
5005         (INSN_P): Accept debug insns.
5006         (RTX_FRAME_RELATED_P): Likewise.
5007         (INSN_DELETED_P): Likewise
5008         (PAT_VAR_LOCATION_DECL): New.
5009         (PAT_VAR_LOCATION_LOC): New.
5010         (PAT_VAR_OCATION_STATUS): New.
5011         (NOTE_VAR_LOCATION_DECL): Reimplement.
5012         (NOTE_VAR_LOCATION_LOC): Likewise.
5013         (NOTE_VAR_LOCATION_STATUS): Likewise.
5014         (INSN_VAR_LOCATION): New.
5015         (INSN_VAR_LOCATION_DECL): New.
5016         (INSN_VAR_LOCATION_LOC): New.
5017         (INSN_VAR_LOCATION_STATUS): New.
5018         (gen_rtx_UNKNOWN_VAR_LOC): New.
5019         (VAR_LOC_UNKNOWN_P): New.
5020         (NOTE_DURING_CALL_P): New.
5021         (SCHED_GROUP_P): Accept debug insns.
5022         (emit_debug_insn_before): Declare.
5023         (emit_debug_insn_before_noloc): Declare.
5024         (emit_debug_insn_beore_setloc): Declare.
5025         (emit_debug_insn_after): Declare.
5026         (emit_debug_insn_after_noloc): Declare.
5027         (emit_debug_insn_after_setloc): Declare.
5028         (emit_debug_insn): Declare.
5029         (make_debug_insn_raw): Declare.
5030         (prev_nondebug_insn): Declare.
5031         (next_nondebug_insn): Declare.
5032         (delegitimize_mem_from_attrs): Declare.
5033         (get_max_insn_count): Declare.
5034         (wrap_constant): Declare.
5035         (unwrap_constant): Declare.
5036         (get_curr_insn_source_location): Declare.
5037         (get_curr_insn_block): Declare.
5038         * tree-inline.c (insert_debug_decl_map): New.
5039         (processing_debug_stmt): New.
5040         (remap_decl): Don't create new mappings in debug stmts.
5041         (remap_gimple_op_r): Don't add references in debug stmts.
5042         (copy_tree_body_r): Likewise.
5043         (remap_gimple_stmt): Handle debug bind stmts.
5044         (copy_bb): Skip debug stmts.
5045         (copy_edges_for_bb): Likewise.
5046         (copy_debug_stmt): New.
5047         (copy_debug_stmts): New.
5048         (copy_body): Copy debug stmts at the end.
5049         (insert_init_debug_bind): New.
5050         (insert_init_stmt): Take id.  Skip and emit debug stmts.
5051         (setup_one_parameter): Remap variable earlier, register debug mapping.
5052         (estimate_num_insns): Skip debug stmts.
5053         (expand_call_inline): Preserve debug_map.
5054         (optimize_inline_calls): Check for no debug_stmts left-overs.
5055         (unsave_expr_now): Preserve debug_map.
5056         (copy_gimple_seq_and_replace_locals): Likewise.
5057         (tree_function_versioning): Check for no debug_stmts left-overs.
5058         Init and destroy debug_map as needed.  Split edges unconditionally.
5059         (build_duplicate_type): Init and destroy debug_map as needed.
5060         * tree-inline.h: Include gimple.h instead of pointer-set.h.
5061         (struct copy_body_data): Add debug_stmts and debug_map.
5062         * sched-int.h (struct ready_list): Add n_debug.
5063         (struct deps): Add last_debug_insn.
5064         (DEBUG_INSN_SCHED_P): New.
5065         (BOUNDARY_DEBUG_INSN_P): New.
5066         (SCHEDULE_DEBUG_INSN_P): New.
5067         (sd_iterator_cond): Accept empty list.
5068         * combine.c (create_log_links): Skip debug insns.
5069         (combine_instructions): Likewise.
5070         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
5071         return value is always unshared.
5072         (struct rtx_subst_pair): New.
5073         (auto_adjust_pair): New.
5074         (propagate_for_debug_subst): New.
5075         (propagate_for_debug): New.
5076         (try_combine): Skip debug insns.  Propagate removed defs into
5077         debug insns.
5078         (next_nonnote_nondebug_insn): New.
5079         (distribute_notes): Use it.  Skip debug insns.
5080         (distribute_links): Skip debug insns.
5081         * tree-outof-ssa.c (set_location_for_edge): Likewise.
5082         * resource.c (mark_target_live_regs): Likewise.
5083         * var-tracking.c: Include cselib.h and target.h.
5084         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
5085         MO_VAL_SET.
5086         (micro_operation_type_name): New.
5087         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
5088         (struct micro_operation_def): Update comments.
5089         (decl_or_value): New type.  Use instead of decls.
5090         (struct emit_note_data_def): Add vars.
5091         (struct attrs_def): Use decl_or_value.
5092         (struct variable_tracking_info_def): Add permp, flooded.
5093         (struct location_chain_def): Update comment.
5094         (struct variable_part_def): Use decl_or_value.
5095         (struct variable_def): Make var_part a variable length array.
5096         (valvar_pool): New.
5097         (scratch_regs): New.
5098         (cselib_hook_called): New.
5099         (dv_is_decl_p): New.
5100         (dv_is_value_p): New.
5101         (dv_as_decl): New.
5102         (dv_as_value): New.
5103         (dv_as_opaque): New.
5104         (dv_onepart_p): New.
5105         (dv_pool): New.
5106         (IS_DECL_CODE): New.
5107         (check_value_is_not_decl): New.
5108         (dv_from_decl): New.
5109         (dv_from_value): New.
5110         (dv_htab_hash): New.
5111         (variable_htab_hash): Use it.
5112         (variable_htab_eq): Support values.
5113         (variable_htab_free): Free from the right pool.
5114         (attrs_list_member, attrs_list_insert): Use decl_or_value.
5115         (attrs_list_union): Adjust.
5116         (attrs_list_mpdv_union): New.
5117         (tie_break_pointers): New.
5118         (canon_value_cmp): New.
5119         (unshare_variable): Return possibly-modified slot.
5120         (vars_copy_1): Adjust.
5121         (var_reg_decl_set): Adjust.  Split out of...
5122         (var_reg_set): ... this.
5123         (get_init_value): Adjust.
5124         (var_reg_delete_and_set): Adjust.
5125         (var_reg_delete): Adjust.
5126         (var_regno_delete): Adjust.
5127         (var_mem_decl_set): Split out of...
5128         (var_mem_set): ... this.
5129         (var_mem_delete_and_set): Adjust.
5130         (var_mem_delete): Adjust.
5131         (val_store): New.
5132         (val_reset): New.
5133         (val_resolve): New.
5134         (variable_union): Adjust.  Speed up merge of 1-part vars.
5135         (variable_canonicalize): Use unshared slot.
5136         (VALUED_RECURSED_INTO): New.
5137         (find_loc_in_1pdv): New.
5138         (struct dfset_merge): New.
5139         (insert_into_intersection): New.
5140         (intersect_loc_chains): New.
5141         (loc_cmp): New.
5142         (canonicalize_loc_order_check): New.
5143         (canonicalize_values_mark): New.
5144         (canonicalize_values_star): New.
5145         (variable_merge_over_cur): New.
5146         (variable_merge_over_src): New.
5147         (dataflow_set_merge): New.
5148         (dataflow_set_equiv_regs): New.
5149         (remove_duplicate_values): New.
5150         (struct dfset_post_merge): New.
5151         (variable_post_merge_new_vals): New.
5152         (variable_post_merge_perm_vals): New.
5153         (dataflow_post_merge_adjust): New.
5154         (find_mem_expr_in_1pdv): New.
5155         (dataflow_set_preserve_mem_locs): New.
5156         (dataflow_set_remove_mem_locs): New.
5157         (dataflow_set_clear_at_call): New.
5158         (onepart_variable_different_p): New.
5159         (variable_different_p): Use it.
5160         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
5161         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
5162         if not needed.
5163         (track_loc_p): Pass it true.
5164         (struct count_use_info): New.
5165         (find_use_val): New.
5166         (replace_expr_with_values): New.
5167         (log_op_type): New.
5168         (use_type): New, partially split out of...
5169         (count_uses): ... this.  Count new micro-ops.
5170         (count_uses_1): Adjust.
5171         (count_stores): Adjust.
5172         (count_with_sets): New.
5173         (VAL_NEEDS_RESOLUTION): New.
5174         (VAL_HOLDS_TRACK_EXPR): New.
5175         (VAL_EXPR_IS_COPIED): New.
5176         (VAL_EXPR_IS_CLOBBERED): New.
5177         (add_uses): Adjust.  Generate new micro-ops.
5178         (add_uses_1): Adjust.
5179         (add_stores): Generate new micro-ops.
5180         (add_with_sets): New.
5181         (find_src_status): Adjust.
5182         (find_src_set_src): Adjust.
5183         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
5184         Handle new micro-ops.  Canonicalize value equivalances.
5185         (vt_find_locations): Compute total size of hash tables for
5186         dumping.  Perform merge for var-tracking-assignments.  Don't
5187         disregard single-block loops.
5188         (dump_attrs_list): Handle decl_or_value.
5189         (dump_variable): Take variable.  Deal with decl_or_value.
5190         (dump_variable_slot): New.
5191         (dump_vars): Use it.
5192         (dump_dataflow_sets): Adjust.
5193         (set_slot_part): New, extended to support one-part variables
5194         after splitting out of...
5195         (set_variable_part): ... this.
5196         (clobber_slot_part): New, split out of...
5197         (clobber_variable_part): ... this.
5198         (delete_slot_part): New, split out of...
5199         (delete_variable_part): .... this.
5200         (check_wrap_constant): New.
5201         (vt_expand_loc_callback): New.
5202         (vt_expand_loc): New.
5203         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
5204         EMIT_NOTE_AFTER_CALL_INSN.
5205         (emit_notes_for_differences_1): Adjust.  Handle values.
5206         (emit_notes_for_differences_2): Likewise.
5207         (emit_notes_for_differences): Adjust.
5208         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
5209         Adjust.  Handle new micro-ops.
5210         (vt_add_function_parameters): Adjust.  Create and bind values.
5211         (vt_initialize): Adjust.  Initialize scratch_regs and
5212         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
5213         operations.  Move some code to count_with_sets and add_with_sets.
5214         (delete_debug_insns): New.
5215         (vt_debug_insns_local): New.
5216         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
5217         cselib.
5218         (var_tracking_main): If var-tracking-assignments is enabled
5219         but var-tracking isn't, delete debug insns and leave.  Likewise
5220         if we exceed limits or fail the stack adjustments tests, and
5221         after all var-tracking processing.
5222         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
5223         (dataflow_set): Add traversed_vars.
5224         (value_chain, const_value_chain): New typedefs.
5225         (value_chain_pool, value_chains): New variables.
5226         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
5227         add_value_chains, add_cselib_value_chains, remove_value_chain,
5228         remove_value_chains, remove_cselib_value_chains): New functions.
5229         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
5230         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
5231         static inlines.
5232         (shared_hash_find_slot_unshare, shared_hash_find_slot,
5233         shared_hash_find_slot_noinsert, shared_hash_find): Update.
5234         (dst_can_be_shared): New variable.
5235         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
5236         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
5237         different from set->vars, look up slot again instead of using the
5238         passed in slot.
5239         (dataflow_set_init): Initialize traversed_vars.
5240         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
5241         lookup if set->vars is shared.  Don't keep slot cleared before
5242         calling unshare_variable.  Unshare set->vars if needed.  Adjust
5243         unshare_variable callers.  Clear dst_can_be_shared if needed.
5244         Even ->refcount == 1 vars must be unshared if set->vars is shared
5245         and var needs to be modified.
5246         (dataflow_set_union): Set traversed_vars during canonicalization.
5247         (VALUE_CHANGED, DECL_CHANGED): Define.
5248         (set_dv_changed, dv_changed_p): New static inlines.
5249         (track_expr_p): Clear DECL_CHANGED.
5250         (dump_dataflow_sets): Set it.
5251         (variable_was_changed): Call set_dv_changed.
5252         (emit_note_insn_var_location): Likewise.
5253         (changed_variables_stack): New variable.
5254         (check_changed_vars_1, check_changed_vars_2): New functions.
5255         (emit_notes_for_changes): Do nothing if changed_variables is
5256         empty.  Traverse changed_variables with check_changed_vars_1,
5257         call check_changed_vars_2 on each changed_variables_stack entry.
5258         (emit_notes_in_bb): Add SET argument.  Just clear it at the
5259         beginning, use it instead of local &set, don't destroy it at the end.
5260         (vt_emit_notes): Call dataflow_set_clear early on all
5261         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
5262         computed set, dataflow_set_clear also VTI(bb)->in when we are
5263         done with the basic block.  Initialize changed_variables_stack,
5264         free it afterwards.  If ENABLE_CHECKING verify that after noting
5265         differences to an empty set value_chains hash table is empty.
5266         (vt_initialize): Initialize value_chains and value_chain_pool.
5267         (vt_finalize): Delete value_chains htab, free value_chain_pool.
5268         (variable_tracking_main): Call dump_dataflow_sets before calling
5269         vt_emit_notes, not after it.
5270         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
5271         (propagate_var_def_into_debug_stmts): Declare.
5272         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
5273         (df_set_note): Reject debug insns.
5274         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
5275         add notes to debug insns.
5276         (df_note_bb_compute): Adjust.  Likewise.
5277         (df_simulate_uses): Skip debug insns.
5278         (df_simulate_initialize_backwards): Likewise.
5279         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
5280         (subst_stack_regs_pat): Reject debug insns.
5281         (convert_regs_1): Handle debug insns.
5282         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
5283         (print-rtl.o): Depend on cselib.h.
5284         (cselib.o): Depend on TREE_PASS_H.
5285         (var-tracking.o): Depend on cselib.h and TARGET_H.
5286         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
5287         (init_ready_list): Skip boundary debug insns.
5288         (add_branch_dependences): Skip debug insns.
5289         (free_block_dependencies): Check for blocks with only debug insns.
5290         (compute_priorities): Likewise.
5291         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
5292         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
5293         all callers.
5294         (gimple_build_debug_bind_stat): New.
5295         (empty_body_p): Skip debug stmts.
5296         (gimple_has_side_effects): Likewise.
5297         (gimple_rhs_has_side_effects): Likewise.
5298         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
5299         (gimple_build_debug_bind_stat): Declare.
5300         (gimple_build_debug_bind): Define.
5301         (is_gimple_debug): New.
5302         (gimple_debug_bind_p): New.
5303         (gimple_debug_bind_get_var): New.
5304         (gimple_debug_bind_get_value): New.
5305         (gimple_debug_bind_get_value_ptr): New.
5306         (gimple_debug_bind_set_var): New.
5307         (gimple_debug_bind_set_value): New.
5308         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
5309         (gimple_debug_bind_reset_value): New.
5310         (gimple_debug_bind_has_value_p): New.
5311         (gsi_next_nondebug): New.
5312         (gsi_prev_nondebug): New.
5313         (gsi_start_nondebug_bb): New.
5314         (gsi_last_nondebug_bb): New.
5315         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
5316         (print_insn): Handle DEBUG_INSN.
5317         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
5318         of first insn prevail.
5319         (first_stmt): Skip debug stmts.
5320         (first_non_label_stmt): Likewise.
5321         (last_stmt): Likewise.
5322         (has_zero_uses_1): New.
5323         (single_imm_use_1): New.
5324         (verify_gimple_debug): New.
5325         (verify_types_in_gimple_stmt): Handle debug stmts.
5326         (verify_stmt): Likewise.
5327         (debug_loop_num): Skip debug stmts.
5328         (remove_edge_and_dominated_blocks): Remove dominators last.
5329         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
5330         (linearize_expr): Likewise.
5331         * config/i386/i386.c (ix86_delegitimize_address): Call
5332         default implementation.
5333         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
5334         (group_barrier_needed): Skip debug insns.
5335         (emit_insn_group_barriers): Likewise.
5336         (emit_all_insn_group_barriers): Likewise.
5337         (ia64_variable_issue): Handle debug insns.
5338         (ia64_dfa_new_cycle): Likewise.
5339         (final_emit_insn_group_barriers): Skip debug insns.
5340         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
5341         def cfa without frame.
5342         (process_set): Likewise.
5343         (process_for_unwind_directive): Pass frame on.
5344         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
5345         (rs6000_delegitimize_address): New.
5346         (rs6000_debug_adjust_cost): Handle debug insns.
5347         (is_microcoded_insn): Likewise.
5348         (is_cracked_insn): Likewise.
5349         (is_nonpipeline_insn): Likewise.
5350         (insn_must_be_first_in_group): Likewise.
5351         (insn_must_be_last_in_group): Likewise.
5352         (force_new_group): Likewise.
5353         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
5354         contains only debug insns.
5355         (rtl_merge_blocks): Skip debug insns.
5356         (purge_dead_edges): Likewise.
5357         (rtl_block_ends_with_call_p): Skip debug insns.
5358         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
5359         (mark_reg_dependencies): Skip debug insns.
5360         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
5361         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
5362         * tree-ssa-threadedge.c
5363         (record_temporary_equivalences_from_stmts): Skip debug stmts.
5364         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
5365         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
5366         (copyprop_hardreg_forward_1): Handle debug insns.
5367         * reload1.c (reload): Skip debug insns.  Replace unassigned
5368         pseudos in debug insns with their equivalences.
5369         (eliminate_regs_in_insn): Skip debug insns.
5370         (emit_input_reload_insns): Skip debug insns at first, adjust
5371         them later.
5372         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
5373         (get_indirect_ref_operands): Pass opf_no_vops on.
5374         (get_expr_operands): Likewise.  Skip debug stmts.
5375         (parse_ssa_operands): Scan debug insns with opf_no_vops.
5376
5377 2009-09-01  Richard Henderson  <rth@redhat.com>
5378
5379         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
5380         stmt_ends_pp_p statements at least once.
5381         * tree-vrp.c (vrp_initialize): Likewise.
5382         (vrp_visit_stmt): Be prepared for non-interesting stmts.
5383
5384 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
5385
5386         PR bootstrap/41205
5387         Fix AIX bootstrap after PR debug/30161
5388         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
5389         that is a GNU extension.
5390         (tmpl_value_parm_die_table): Move the definition of this global
5391         outside #ifdef DWARF2_DEBUGGING_INFO region.
5392
5393 2009-09-01  Richard Guenther  <rguenther@suse.de>
5394
5395         * tree.c (tree_expr_size): New function.
5396         * tree.h (tree_expr_size): Declare.
5397         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
5398         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
5399         * langhooks.c (lhd_expr_size): Remove.
5400         * langhooks.h (struct lang_hooks): Remove expr_size.
5401         * explow.c (expr_size): Use tree_expr_size.
5402         (int_expr_size): Likewise.
5403         * langhooks-def.h (lhd_expr_size): Remove.
5404         (LANG_HOOKS_EXPR_SIZE): Likewise.
5405         (LANG_HOOKS_INITIALIZER): Adjust.
5406
5407 2009-09-01  Richard Guenther  <rguenther@suse.de>
5408
5409         * tree-flow.h (mark_addressable): Move declaration ...
5410         * tree.h (mark_addressable): ... here.
5411         * stmt.c (expand_asm_operands): Use mark_addressable, not
5412         lang_hooks.mark_addressable.
5413         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
5414         LANG_HOOKS_MARK_ADDRESSABLE.
5415         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
5416         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
5417
5418 2009-08-31  Chris Demetriou  <cgd@google.com>
5419
5420         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
5421         vectorize if not TARGET_SSE2.
5422
5423 2009-08-31  DJ Delorie  <dj@redhat.com>
5424
5425         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
5426         registers if no coprocessor is enabled.
5427
5428 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
5429
5430         PR debug/30161
5431         * cgraph.h (cgraph_get_node): Declare ...
5432         * cgraph.c (cgraph_get_node): ... new function.
5433         * dwarf2out.c (gen_generic_params_dies,
5434         generic_parameter_die, tree_add_const_value_attribute_for_decl,
5435         make_ith_pack_parameter_name,
5436         append_entry_to_tmpl_value_parm_die_table,
5437         gen_remaining_tmpl_value_param_die_attribute): New functions.
5438         (gen_subprogram_die): Generate debug info for template parameters
5439         if debug info level is higher than DINFO_LEVEL_TERSE.
5440         Use tree_add_const_value_attribute_for_decl instead of
5441         tree_add_const_value_attribute.
5442         (gen_const_die): Use tree_add_const_value_attribute_for_decl
5443         instead of tree_add_const_value_attribute.
5444         (gen_struct_or_union_type_die): Generate debug
5445         info for template parameters if debug info level is higher than
5446         DINFO_LEVEL_TERSE.
5447         (tree_add_const_value_attribute): Handle integral and pointer
5448         constants. Update comment.
5449         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
5450         (dwarf_attr_name): Support DW_AT_GNU_template_name.
5451         (reference_to_unused): Fix thinko. Remove redundant predicates from
5452         tests.
5453         (tree_add_const_value_attribute): Make this work for constant
5454         expressions only.
5455         tree_add_const_value_attribute_for_decl is to be used for variable
5456         DECLs now.
5457         (add_location_or_const_value_attribute): Use
5458         tree_add_const_value_attribute_for_decl now.
5459         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
5460         DW_TAG_template_value_param DIEs after function DIEs have been
5461         emitted.
5462         * langhooks.h (lang_hooks_for_types): Add
5463         get_argument_pack_elems.
5464         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
5465         (lang_hooks): Added get_innermost_generic_parms,
5466         get_innermost_generic_args.
5467         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
5468         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
5469         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
5470         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
5471
5472 2009-08-31  DJ Delorie  <dj@redhat.com>
5473
5474         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
5475         it once we start generating the prologue or epilogue.
5476         (mep_call_saves_register): If the frame is locked, re-use
5477         cached values.
5478         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
5479         (mep_expand_prologue): Call it.
5480         (mep_expand_epilogue): Likewise.
5481         (mep_start_function): Use the same logic as mep_expand_prologue.
5482         (mep_pass_by_reference): Make logic more readable.
5483         (mep_return_in_memory): Zero-sized objects are passed in memory.
5484         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
5485
5486 2009-08-31  Richard Guenther  <rguenther@suse.de>
5487
5488         * builtins.c (fold_builtin_memory_op): Use the alias oracle
5489         to query if the memory regions for memmove overlap.
5490         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
5491         asserts on pointers, instead deal with odd trees.
5492         (ptr_derefs_may_alias_p): Likewise.
5493         (refs_may_alias_p_1): Constructor bases also never alias.
5494
5495 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
5496
5497         * doc/install.texi (Final install): Adjust reference on where to
5498         order printed manuals.
5499
5500 2009-08-30  Olivier Hainque  <hainque@adacore.com>
5501
5502         * dwarf2out.c (switch_to_frame_table_section): Move
5503         definition prior to first use.
5504
5505 2009-08-30  Richard Guenther  <rguenther@suse.de>
5506
5507         PR tree-optimization/41186
5508         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
5509         (ao_ref_init_from_ptr_and_size): New function.
5510         (ref_maybe_used_by_call_p_1): Be more precise tracking
5511         used ranges for builtin functions.
5512         (ref_maybe_used_by_call_p): Adjust.
5513         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
5514         ranges for builtin functions.
5515         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
5516
5517 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
5518
5519         PR target/41081
5520         * fwprop.c (get_reg_use_in): Delete.
5521         (free_load_extend): New function.
5522         (forward_propagate_subreg): Use it.
5523
5524 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
5525
5526         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
5527
5528 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
5529
5530         PR/41184
5531         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
5532         padding.
5533
5534 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
5535
5536         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
5537         fini or fini_array section.
5538
5539 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5540
5541         * graphite-dependences.c (graphite_legal_transform_bb): Call
5542         pbb_remove_duplicate_pdrs.
5543         * graphite-poly.c (can_collapse_pdr): Removed.
5544         (pdr_find_duplicate): Removed.
5545         (can_collapse_pdrs): New.
5546         (pbb_remove_duplicate_pdrs): New.
5547         (new_poly_dr): Do not look for duplicates.
5548         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
5549         (PBB_PDR_DUPLICATES_REMOVED): New.
5550         (pbb_remove_duplicate_pdrs): Declared.
5551
5552 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5553
5554         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
5555         the strides by multiplying by PDR_NB_REFS.
5556         * graphite-poly.c (can_collapse_pdr): New.
5557         (pdr_find_duplicate): New.
5558         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
5559         Initialize PDR_NB_REFS.
5560         * graphite-poly.h (struct poly_dr): Add field nb_refs.
5561         (PDR_NB_REFS): New.
5562         (new_poly_dr): Number of subscripts is a graphite_dim_t.
5563
5564 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5565
5566         PR middle-end/40965
5567         * graphite-poly.c (apply_poly_transforms): Remove legality test before
5568         any transform.
5569
5570 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5571
5572         * graphite-dependences.c (pddr_original_scattering): Return NULL
5573         for read-read dependence relations.
5574         * graphite-poly.h (enum poly_dr_type): Fix comment.
5575         (pdr_read_p): New.
5576         (pdr_write_p): New.
5577         (pdr_may_write_p): New.
5578
5579 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5580
5581         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
5582         (struct poly_dr): Same.
5583         (new_poly_dr): Same.
5584         * graphite-poly.c (new_poly_dr): Same.
5585         * graphite-dependences.c (dot_deps): Disable call to system.
5586
5587 2009-08-28  Cary Coutant  <ccoutant@google.com>
5588
5589         PR debug/41063
5590         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
5591         struct/union/enum types local to a function.
5592
5593 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
5594             Sebastian Pop  <sebastian.pop@amd.com>
5595
5596         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
5597         pbb_strip_mine_time_depth.  Changed the implementation so that
5598         transformation is expressed as a transformation on
5599         time (scatttering) dimensions.  Also, ensures that the 2d+1
5600         scheduling format is preserved.
5601         (pbb_strip_mine_profitable_p): Profitability is based on the
5602         iteration number of a given time (scattering) dimension,
5603         and not on a original loop depth dimension.
5604         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
5605         (pbb_do_strip_mine): Call psct_dynamic_dim.
5606         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
5607         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
5608         (pbb_nb_dynamic_scattering_transform): New.
5609         (psct_dynamic_dim): New.
5610
5611 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
5612
5613         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
5614         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
5615         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
5616         * graphite-interchange.c (build_linearized_memory_access): Same.
5617         (memory_stride_in_loop): Same.
5618
5619 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5620
5621         * graphite-dependences.c (pddr_original_scattering): New.
5622         (graphite_legal_transform_dr): Call pddr_original_scattering.
5623         (dot_deps_1): New.
5624         (dot_deps): New.
5625         * graphite-dependences.h (dot_deps): Declared.
5626         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
5627         (print_pdr): Print PDR_ID.
5628         * graphite-poly.h (struct poly_dr): Add field id.
5629         (PDR_ID): New.
5630         (pbb_index): New.
5631         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
5632
5633 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5634
5635         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
5636         not delete the original dependence relation.
5637
5638 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5639
5640         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
5641         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
5642         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
5643         (free_poly_ddr): New.
5644         (pddr_is_empty): New.
5645         (dependence_polyhedron_1): Now returns a poly_ddr_p.
5646         (dependence_polyhedron): Same.  Remove useless gcc_assert.
5647         Remove fprintfs.
5648         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
5649         (graphite_carried_dependence_level_k): Call pddr_is_empty.
5650         * graphite-dependences.h (enum poly_dependence_kind): New.
5651         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
5652         (PDRP_SOURCE): Renamed PDDR_SOURCE.
5653         (PDRP_SINK): Renamed PDDR_SINK.
5654         (PDRP_DDP): Renamed PDDR_DDP.
5655         (PDDR_KIND): New.
5656         (free_poly_ddr): Declared.
5657         * graphite-poly.c (new_scop): Use the new hash function names.
5658         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
5659         into original_pddrs.
5660         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
5661
5662 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5663
5664         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
5665         bounds with LT_EXPR to make niter analysis more precise on code
5666         generated by Graphite.
5667
5668 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5669
5670         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
5671         (graphite_legal_transform_bb): Same.
5672         (poly_drs_may_alias_p): Same.
5673
5674 2009-08-28  Richard Guenther  <rguenther@suse.de>
5675
5676         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
5677
5678 2009-08-28  Jan Beulich  <jbeulich@novell.com>
5679
5680         * config/i386/netware.c: Include langhooks.h.
5681         (i386_nlm_encode_section_info): Simplify.
5682         (netware_override_options): Delete.
5683         * config/i386/netware.h (netware_override_options): Delete
5684         declaration.
5685         (OVERRIDE_OPTIONS): Delete definition.
5686         (SUBTARGET_OVERRIDE_OPTIONS): Define.
5687         (ASM_COMMENT_START): Define.
5688         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
5689
5690 2009-08-28  Jan Beulich  <jbeulich@novell.com>
5691
5692         * configure.ac: For in-tree ld, do a plain version check to
5693         determine whether comdat groups are supported.
5694         * configure: Regenerate.
5695
5696 2009-08-28  Olivier Hainque  <hainque@adacore.com>
5697
5698         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
5699         always defined.  Reflect definition or absence of such for
5700         COLLECT_EXPORT_LIST.  Readability helper.
5701         (scanfilter): New enum, to help control what symbols
5702         are to be considered or ignored by scan_prog_file.
5703         (enum pass): Rename as "scanpass", moved together with scanfilter
5704         prior to scan_prog_file's prototype.
5705         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
5706         Group prototype with the scanpass/scanfilter definitions, factorize
5707         head comments for the several implementations at the prototype.
5708         (main): Reorganize the first pass link control to let AIX
5709         drag only the needed frame tables in executables.  Prevent
5710         frame tables collection during the scan aimed at static ctors.
5711         Pre-link and scan for frame tables later to compensate.
5712         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
5713         A C statement to issue assembly directives that create a reference
5714         to the given DWARF table identifier label from the current function
5715         section.
5716         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
5717         to differentiate first time section entry.  Only emit a .data
5718         tables start identifier label the first time around.
5719         (switch_to_frame_table_section): New function.  Helper for
5720         output_call_frame_info to switch possibly BACK into the eh_frame
5721         or the debug_frame section depending on FOR_EH.
5722         (output_call_frame_info): Use helper to first enter the proper
5723         frame section.
5724         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
5725         emit a link to the frame table start label from each function
5726         section.
5727         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
5728         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
5729         * config/rs6000/rs6000-protos.h: Declare it.
5730         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
5731
5732 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
5733
5734         * config/sh/sh.c (split_branches): Check the result of
5735         next_active_insn.
5736
5737 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
5738
5739         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
5740         using -pthread -fopenmp
5741
5742 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
5743
5744         * doc/service.texi (service directory): Update URL.
5745
5746 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
5747
5748         PR rtl-optimization/40861
5749         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
5750         extract word from a multi-word subreg for negative byte positions.
5751
5752 2009-08-27  Tristan Gingold  <gingold@adacore.com>
5753             Douglas B Rupp  <rupp@gnat.com>
5754
5755         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
5756         (SECTION_VMS_OVERLAY): Define.
5757         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
5758         attribute.
5759         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
5760         for common_object.
5761         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
5762         common_object declarations.
5763         (ia64_section_type_flags): Set section flag for common_object.
5764         * config/ia64/ia64-protos.h
5765         (ia64_vms_output_aligned_decl_common): Declare.
5766         (ia64_vms_elf_asm_named_section): Declare.
5767
5768 2009-08-27  Michael Matz  <matz@suse.de>
5769
5770         * expr.c (expand_expr_real_2): New function taking exploded
5771         unary or binary expression, split out from ...
5772         (expand_expr_real_1): ... here.  Move over all unary/binary
5773         switch parts to above function, in particular these codes:
5774         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
5775         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
5776         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
5777         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
5778         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
5779         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
5780         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
5781         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
5782         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
5783         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
5784         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
5785         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
5786         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
5787         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
5788         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
5789         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
5790         VEC_PACK_FIX_TRUNC_EXPR.
5791         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
5792         full expression.
5793
5794 2009-08-27  Richard Guenther  <rguenther@suse.de>
5795
5796         * gengtype.c (main): Handle uint64_t.
5797         * ipa-utils.c (get_base_var): Indent properly.
5798         * tree-ssa-live.c (debug_scope_block): New function.
5799         * tree-flow.h (debug_scope_block): Declare.
5800         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
5801         * basic-block.h (enum profile_status): Rename to
5802         enum profile_status_d.
5803         (x_profile_status): Adjust type.
5804
5805 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
5806
5807         PR debug/41170
5808         * dwarf2out.c (get_context_die): Declare this static function.
5809         (gen_type_die_with_usage): Make sure a DIE is a generated for
5810         the context of a typedef.
5811
5812 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
5813
5814         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
5815         switch.
5816
5817 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
5818
5819         * config/mips/mips-protos.h (mips_output_sync): Declare.
5820         (mips_sync_loop_insns): Likewise.
5821         (mips_output_sync_loop): Replace first two parameters with an rtx.
5822         * config/mips/mips.c (mips_multi_member): New structure.
5823         (mips_multi_members): New variable.
5824         (mips_multi_start): New function.
5825         (mips_multi_add): Likewise.
5826         (mips_multi_add_insn): Likewise.
5827         (mips_multi_add_label): Likewise.
5828         (mips_multi_last_index): Likewise.
5829         (mips_multi_copy_insn): Likewise.
5830         (mips_multi_set_operand): Likewise.
5831         (mips_multi_write): Likewise.
5832         (mips_print_operand_punctuation): Remove '%|' and '%-'.
5833         (mips_init_print_operand_punct): Update accordingly.
5834         (mips_start_ll_sc_sync_block): New function.
5835         (mips_end_ll_sc_sync_block): Likewise.
5836         (mips_output_sync): Likewise.
5837         (mips_sync_insn1_template): Likewise.
5838         (mips_sync_insn2_template): Likewise.
5839         (mips_get_sync_operand): Likewise.
5840         (mips_process_sync_loop): Likewise.
5841         (mips_output_sync_loop): Use mips_process_sync_loop.
5842         (mips_sync_loop_insns): New function.
5843         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
5844         (MIPS_COMPARE_AND_SWAP_12): Likewise.
5845         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
5846         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
5847         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
5848         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
5849         (MIPS_SYNC_OLD_OP_12): Likewise.
5850         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
5851         (MIPS_SYNC_NEW_OP_12): Likewise.
5852         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
5853         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
5854         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
5855         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
5856         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
5857         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
5858         * config/mips/mips.md (sync_mem): New attribute.
5859         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
5860         (sync_exclusive_mask, sync_required_oldval): Likewise.
5861         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
5862         (sync_release_barrier): Likewise.
5863         (length): Handle sync loops.
5864         (sync): Use mips_output_sync.
5865         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
5866         (sync_compare_and_swap<mode>): Set the new sync_* attributes
5867         and use mips_output_sync_loop.
5868         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
5869         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
5870         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
5871         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
5872         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
5873         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
5874         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
5875         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
5876         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
5877
5878 2009-08-26  Richard Guenther  <rguenther@suse.de>
5879
5880         PR middle-end/41163
5881         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
5882         the types to not match.
5883         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
5884         verification.
5885         * tree-ssa.c (useless_type_conversion_p): Conversions to
5886         pointers to unprototyped functions are useless.
5887
5888 2009-08-26  Richard Guenther  <rguenther@suse.de>
5889
5890         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
5891         whole-program condition, prepare to be called for non-globals.
5892         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
5893         params build a representative with known type and track its fields.
5894
5895 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
5896
5897         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
5898         clearing by a taken branch.
5899         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
5900         effectively after bbro pass.
5901         (sync_nand<mode>): Ditto.
5902         (sync_old_<fetchop_name><mode>): Ditto.
5903         (sync_old_nand<mode>): Ditto.
5904         (sync_new_<fetchop_name><mode>): Dito.
5905         (sync_new_nand<mode>): Ditto.
5906         (sync_compare_and_swap<mode>_1): Ditto.
5907         (*sync_compare_and_swap<mode>): Ditto.
5908         (sync_lock_test_and_set<mode>_1): Ditto.
5909         ("sync_lock_test_and_set<mode>): Ditto.
5910
5911 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
5912
5913         * hwint.h (HOST_LONG_FORMAT): New macro
5914         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
5915         Use HOST_PTR_PRINTF.
5916         * system.h (HOST_PTR_PRINTF): Resurrect old macro
5917         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
5918         (HOST_PTR_PRINTF): Document.
5919
5920 2009-08-25 Jan Hubicka  <jh@suse.cz>
5921
5922         * config/i386/bmmintrin.h: Replace by #error.
5923
5924         Revert:
5925         Michael Meissner  <michael.meissner@amd.com>
5926         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
5927         Tony Linthicum  <tony.linthicum@amd.com>
5928
5929         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
5930         (TARGET_ROUND): New macro for the round/ptest instructions which
5931         are shared between SSE4.1 and SSE5.
5932         (OPTION_MASK_ISA_ROUND): Ditto.
5933         (OPTION_ISA_ROUND): Ditto.
5934         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
5935         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
5936
5937         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
5938         (-mfused-madd): New switch to give users control over whether the
5939         compiler optimizes to use the multiply/add SSE5 instructions.
5940
5941         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
5942         (ix86_handle_option): Turn off 3dnow if -msse5.
5943         (override_options): Add SSE5 support.
5944         (print_operand): %Y prints comparison codes for SSE5 com/pcom
5945         instructions.
5946         (ix86_expand_sse_movcc): Add SSE5 support.
5947         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
5948         vector type to the next largest size.
5949         (ix86_expand_sse5_pack): New function to use pperm to pack a
5950         vector type to the next smallest size.
5951         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
5952         (IX86_BUILTIN_FMADDSD): Ditto.
5953         (IX86_BUILTIN_FMADDPS): Ditto.
5954         (IX86_BUILTIN_FMADDPD): Ditto.
5955         (IX86_BUILTIN_FMSUBSS): Ditto.
5956         (IX86_BUILTIN_FMSUBSD): Ditto.
5957         (IX86_BUILTIN_FMSUBPS): Ditto.
5958         (IX86_BUILTIN_FMSUBPD): Ditto.
5959         (IX86_BUILTIN_FNMADDSS): Ditto.
5960         (IX86_BUILTIN_FNMADDSD): Ditto.
5961         (IX86_BUILTIN_FNMADDPS): Ditto.
5962         (IX86_BUILTIN_FNMADDPD): Ditto.
5963         (IX86_BUILTIN_FNMSUBSS): Ditto.
5964         (IX86_BUILTIN_FNMSUBSD): Ditto.
5965         (IX86_BUILTIN_FNMSUBPS): Ditto.
5966         (IX86_BUILTIN_FNMSUBPD): Ditto.
5967         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
5968         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
5969         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
5970         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
5971         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
5972         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
5973         (IX86_BUILTIN_PPERM): Ditto.
5974         (IX86_BUILTIN_PERMPS): Ditto.
5975         (IX86_BUILTIN_PERMPD): Ditto.
5976         (IX86_BUILTIN_PMACSSWW): Ditto.
5977         (IX86_BUILTIN_PMACSWW): Ditto.
5978         (IX86_BUILTIN_PMACSSWD): Ditto.
5979         (IX86_BUILTIN_PMACSWD): Ditto.
5980         (IX86_BUILTIN_PMACSSDD): Ditto.
5981         (IX86_BUILTIN_PMACSDD): Ditto.
5982         (IX86_BUILTIN_PMACSSDQL): Ditto.
5983         (IX86_BUILTIN_PMACSSDQH): Ditto.
5984         (IX86_BUILTIN_PMACSDQL): Ditto.
5985         (IX86_BUILTIN_PMACSDQH): Ditto.
5986         (IX86_BUILTIN_PMADCSSWD): Ditto.
5987         (IX86_BUILTIN_PMADCSWD): Ditto.
5988         (IX86_BUILTIN_PHADDBW): Ditto.
5989         (IX86_BUILTIN_PHADDBD): Ditto.
5990         (IX86_BUILTIN_PHADDBQ): Ditto.
5991         (IX86_BUILTIN_PHADDWD): Ditto.
5992         (IX86_BUILTIN_PHADDWQ): Ditto.
5993         (IX86_BUILTIN_PHADDDQ): Ditto.
5994         (IX86_BUILTIN_PHADDUBW): Ditto.
5995         (IX86_BUILTIN_PHADDUBD): Ditto.
5996         (IX86_BUILTIN_PHADDUBQ): Ditto.
5997         (IX86_BUILTIN_PHADDUWD): Ditto.
5998         (IX86_BUILTIN_PHADDUWQ): Ditto.
5999         (IX86_BUILTIN_PHADDUDQ): Ditto.
6000         (IX86_BUILTIN_PHSUBBW): Ditto.
6001         (IX86_BUILTIN_PHSUBWD): Ditto.
6002         (IX86_BUILTIN_PHSUBDQ): Ditto.
6003         (IX86_BUILTIN_PROTB): Ditto.
6004         (IX86_BUILTIN_PROTW): Ditto.
6005         (IX86_BUILTIN_PROTD): Ditto.
6006         (IX86_BUILTIN_PROTQ): Ditto.
6007         (IX86_BUILTIN_PROTB_IMM): Ditto.
6008         (IX86_BUILTIN_PROTW_IMM): Ditto.
6009         (IX86_BUILTIN_PROTD_IMM): Ditto.
6010         (IX86_BUILTIN_PROTQ_IMM): Ditto.
6011         (IX86_BUILTIN_PSHLB): Ditto.
6012         (IX86_BUILTIN_PSHLW): Ditto.
6013         (IX86_BUILTIN_PSHLD): Ditto.
6014         (IX86_BUILTIN_PSHLQ): Ditto.
6015         (IX86_BUILTIN_PSHAB): Ditto.
6016         (IX86_BUILTIN_PSHAW): Ditto.
6017         (IX86_BUILTIN_PSHAD): Ditto.
6018         (IX86_BUILTIN_PSHAQ): Ditto.
6019         (IX86_BUILTIN_FRCZSS): Ditto.
6020         (IX86_BUILTIN_FRCZSD): Ditto.
6021         (IX86_BUILTIN_FRCZPS): Ditto.
6022         (IX86_BUILTIN_FRCZPD): Ditto.
6023         (IX86_BUILTIN_CVTPH2PS): Ditto.
6024         (IX86_BUILTIN_CVTPS2PH): Ditto.
6025         (IX86_BUILTIN_COMEQSS): Ditto.
6026         (IX86_BUILTIN_COMNESS): Ditto.
6027         (IX86_BUILTIN_COMLTSS): Ditto.
6028         (IX86_BUILTIN_COMLESS): Ditto.
6029         (IX86_BUILTIN_COMGTSS): Ditto.
6030         (IX86_BUILTIN_COMGESS): Ditto.
6031         (IX86_BUILTIN_COMUEQSS): Ditto.
6032         (IX86_BUILTIN_COMUNESS): Ditto.
6033         (IX86_BUILTIN_COMULTSS): Ditto.
6034         (IX86_BUILTIN_COMULESS): Ditto.
6035         (IX86_BUILTIN_COMUGTSS): Ditto.
6036         (IX86_BUILTIN_COMUGESS): Ditto.
6037         (IX86_BUILTIN_COMORDSS): Ditto.
6038         (IX86_BUILTIN_COMUNORDSS): Ditto.
6039         (IX86_BUILTIN_COMFALSESS): Ditto.
6040         (IX86_BUILTIN_COMTRUESS): Ditto.
6041         (IX86_BUILTIN_COMEQSD): Ditto.
6042         (IX86_BUILTIN_COMNESD): Ditto.
6043         (IX86_BUILTIN_COMLTSD): Ditto.
6044         (IX86_BUILTIN_COMLESD): Ditto.
6045         (IX86_BUILTIN_COMGTSD): Ditto.
6046         (IX86_BUILTIN_COMGESD): Ditto.
6047         (IX86_BUILTIN_COMUEQSD): Ditto.
6048         (IX86_BUILTIN_COMUNESD): Ditto.
6049         (IX86_BUILTIN_COMULTSD): Ditto.
6050         (IX86_BUILTIN_COMULESD): Ditto.
6051         (IX86_BUILTIN_COMUGTSD): Ditto.
6052         (IX86_BUILTIN_COMUGESD): Ditto.
6053         (IX86_BUILTIN_COMORDSD): Ditto.
6054         (IX86_BUILTIN_COMUNORDSD): Ditto.
6055         (IX86_BUILTIN_COMFALSESD): Ditto.
6056         (IX86_BUILTIN_COMTRUESD): Ditto.
6057         (IX86_BUILTIN_COMEQPS): Ditto.
6058         (IX86_BUILTIN_COMNEPS): Ditto.
6059         (IX86_BUILTIN_COMLTPS): Ditto.
6060         (IX86_BUILTIN_COMLEPS): Ditto.
6061         (IX86_BUILTIN_COMGTPS): Ditto.
6062         (IX86_BUILTIN_COMGEPS): Ditto.
6063         (IX86_BUILTIN_COMUEQPS): Ditto.
6064         (IX86_BUILTIN_COMUNEPS): Ditto.
6065         (IX86_BUILTIN_COMULTPS): Ditto.
6066         (IX86_BUILTIN_COMULEPS): Ditto.
6067         (IX86_BUILTIN_COMUGTPS): Ditto.
6068         (IX86_BUILTIN_COMUGEPS): Ditto.
6069         (IX86_BUILTIN_COMORDPS): Ditto.
6070         (IX86_BUILTIN_COMUNORDPS): Ditto.
6071         (IX86_BUILTIN_COMFALSEPS): Ditto.
6072         (IX86_BUILTIN_COMTRUEPS): Ditto.
6073         (IX86_BUILTIN_COMEQPD): Ditto.
6074         (IX86_BUILTIN_COMNEPD): Ditto.
6075         (IX86_BUILTIN_COMLTPD): Ditto.
6076         (IX86_BUILTIN_COMLEPD): Ditto.
6077         (IX86_BUILTIN_COMGTPD): Ditto.
6078         (IX86_BUILTIN_COMGEPD): Ditto.
6079         (IX86_BUILTIN_COMUEQPD): Ditto.
6080         (IX86_BUILTIN_COMUNEPD): Ditto.
6081         (IX86_BUILTIN_COMULTPD): Ditto.
6082         (IX86_BUILTIN_COMULEPD): Ditto.
6083         (IX86_BUILTIN_COMUGTPD): Ditto.
6084         (IX86_BUILTIN_COMUGEPD): Ditto.
6085         (IX86_BUILTIN_COMORDPD): Ditto.
6086         (IX86_BUILTIN_COMUNORDPD): Ditto.
6087         (IX86_BUILTIN_COMFALSEPD): Ditto.
6088         (IX86_BUILTIN_COMTRUEPD): Ditto.
6089         (IX86_BUILTIN_PCOMEQUB): Ditto.
6090         (IX86_BUILTIN_PCOMNEUB): Ditto.
6091         (IX86_BUILTIN_PCOMLTUB): Ditto.
6092         (IX86_BUILTIN_PCOMLEUB): Ditto.
6093         (IX86_BUILTIN_PCOMGTUB): Ditto.
6094         (IX86_BUILTIN_PCOMGEUB): Ditto.
6095         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
6096         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
6097         (IX86_BUILTIN_PCOMEQUW): Ditto.
6098         (IX86_BUILTIN_PCOMNEUW): Ditto.
6099         (IX86_BUILTIN_PCOMLTUW): Ditto.
6100         (IX86_BUILTIN_PCOMLEUW): Ditto.
6101         (IX86_BUILTIN_PCOMGTUW): Ditto.
6102         (IX86_BUILTIN_PCOMGEUW): Ditto.
6103         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
6104         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
6105         (IX86_BUILTIN_PCOMEQUD): Ditto.
6106         (IX86_BUILTIN_PCOMNEUD): Ditto.
6107         (IX86_BUILTIN_PCOMLTUD): Ditto.
6108         (IX86_BUILTIN_PCOMLEUD): Ditto.
6109         (IX86_BUILTIN_PCOMGTUD): Ditto.
6110         (IX86_BUILTIN_PCOMGEUD): Ditto.
6111         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
6112         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
6113         (IX86_BUILTIN_PCOMEQUQ): Ditto.
6114         (IX86_BUILTIN_PCOMNEUQ): Ditto.
6115         (IX86_BUILTIN_PCOMLTUQ): Ditto.
6116         (IX86_BUILTIN_PCOMLEUQ): Ditto.
6117         (IX86_BUILTIN_PCOMGTUQ): Ditto.
6118         (IX86_BUILTIN_PCOMGEUQ): Ditto.
6119         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
6120         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
6121         (IX86_BUILTIN_PCOMEQB): Ditto.
6122         (IX86_BUILTIN_PCOMNEB): Ditto.
6123         (IX86_BUILTIN_PCOMLTB): Ditto.
6124         (IX86_BUILTIN_PCOMLEB): Ditto.
6125         (IX86_BUILTIN_PCOMGTB): Ditto.
6126         (IX86_BUILTIN_PCOMGEB): Ditto.
6127         (IX86_BUILTIN_PCOMFALSEB): Ditto.
6128         (IX86_BUILTIN_PCOMTRUEB): Ditto.
6129         (IX86_BUILTIN_PCOMEQW): Ditto.
6130         (IX86_BUILTIN_PCOMNEW): Ditto.
6131         (IX86_BUILTIN_PCOMLTW): Ditto.
6132         (IX86_BUILTIN_PCOMLEW): Ditto.
6133         (IX86_BUILTIN_PCOMGTW): Ditto.
6134         (IX86_BUILTIN_PCOMGEW): Ditto.
6135         (IX86_BUILTIN_PCOMFALSEW): Ditto.
6136         (IX86_BUILTIN_PCOMTRUEW): Ditto.
6137         (IX86_BUILTIN_PCOMEQD): Ditto.
6138         (IX86_BUILTIN_PCOMNED): Ditto.
6139         (IX86_BUILTIN_PCOMLTD): Ditto.
6140         (IX86_BUILTIN_PCOMLED): Ditto.
6141         (IX86_BUILTIN_PCOMGTD): Ditto.
6142         (IX86_BUILTIN_PCOMGED): Ditto.
6143         (IX86_BUILTIN_PCOMFALSED): Ditto.
6144         (IX86_BUILTIN_PCOMTRUED): Ditto.
6145         (IX86_BUILTIN_PCOMEQQ): Ditto.
6146         (IX86_BUILTIN_PCOMNEQ): Ditto.
6147         (IX86_BUILTIN_PCOMLTQ): Ditto.
6148         (IX86_BUILTIN_PCOMLEQ): Ditto.
6149         (IX86_BUILTIN_PCOMGTQ): Ditto.
6150         (IX86_BUILTIN_PCOMGEQ): Ditto.
6151         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
6152         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
6153         (enum multi_arg_type): New enum for describing the various SSE5
6154         intrinsic argument types.
6155         (bdesc_multi_arg): New table for SSE5 intrinsics.
6156         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
6157         (ix86_expand_multi_arg_builtin): New function for creating SSE5
6158         intrinsics.
6159         (ix86_expand_builtin): Add SSE5 intrinsic support.
6160         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
6161         operand instructions.
6162         (ix86_expand_sse5_multiple_memory): New function to split the
6163         second memory reference from SSE5 instructions.
6164         (type_has_variadic_args_p): Delete in favor of stdarg_p.
6165         (ix86_return_pops_args): Use stdarg_p to determine if the function
6166         has variable arguments.
6167         (ix86_setup_incoming_varargs): Ditto.
6168         (x86_this_parameter): Ditto.
6169
6170         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
6171         declaration.
6172         (ix86_expand_sse5_pack): Ditto.
6173         (ix86_sse5_valid_op_p): Ditto.
6174         (ix86_expand_sse5_multiple_memory): Ditto.
6175
6176         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
6177         constant for SSE5 support.
6178         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
6179         (UNSPEC_SSE5_TRUEFALSE): Ditto.
6180         (UNSPEC_SSE5_PERMUTE): Ditto.
6181         (UNSPEC_SSE5_ASHIFT): Ditto.
6182         (UNSPEC_SSE5_LSHIFT): Ditto.
6183         (UNSPEC_FRCZ): Ditto.
6184         (UNSPEC_CVTPH2PS): Ditto.
6185         (UNSPEC_CVTPS2PH): Ditto.
6186         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
6187         (PCOM_TRUE): Ditto.
6188         (COM_FALSE_S): Ditto.
6189         (COM_FALSE_P): Ditto.
6190         (COM_TRUE_S): Ditto.
6191         (COM_TRUE_P): Ditto.
6192         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
6193         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
6194         types.
6195         (memory attribute): Ditto.
6196         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
6197         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
6198         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
6199         (floor<mode>2): Ditto.
6200         (ceil<mode>2): Ditto.
6201         (btrunc<mode>2): Ditto.
6202         (nearbyintdf2): Ditto.
6203         (nearbyintsf2): Ditto.
6204         (sse_setccsf): Disable if SSE5.
6205         (sse_setccdf): Ditto.
6206         (sse5_setcc<mode>): New support for SSE5 conditional move.
6207         (sse5_pcmov_<mode>): Ditto.
6208
6209         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
6210         (SSEMODEF4): Ditto.
6211         (SSEMODEF2P): Ditto.
6212         (ssemodesuffixf4): New mode attribute for SSE5.
6213         (ssemodesuffixf2s): Ditto.
6214         (ssemodesuffixf2c): Ditto.
6215         (sserotatemax): Ditto.
6216         (ssescalarmode): Ditto.
6217         (sse_maskcmpv4sf3): Disable if SSE5.
6218         (sse_maskcmpv2df3): Ditto.
6219         (sse_vmmaskcmpv4sf3): Ditto.
6220         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
6221         (sse5_vmfmadd<mode>4): Ditto.
6222         (sse5_fmsub<mode>4): Ditto.
6223         (sse5_vmfmsub<mode>4): Ditto.
6224         (sse5_fnmadd<mode>4): Ditto.
6225         (sse5_vmfnmadd<mode>4): Ditto.
6226         (sse5_fnmsub<mode>4): Ditto.
6227         (sse5_vmfnmsub<mode>4): Ditto.
6228         (sse5i_fmadd<mode>4): Ditto.
6229         (sse5i_fmsub<mode>4): Ditto.
6230         (sse5i_fnmadd<mode>4): Ditto.
6231         (sse5i_fnmsub<mode>4): Ditto.
6232         (sse5i_vmfmadd<mode>4): Ditto.
6233         (sse5i_vmfmsub<mode>4): Ditto.
6234         (sse5i_vmfnmadd<mode>4): Ditto.
6235         (sse5i_vmfnmsub<mode>4): Ditto.
6236         (mulv16qi3): Add SSE5 support.
6237         (mulv4si3): Ditto.
6238         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
6239         (sse2_mulv4si3): Disable if SSE5.
6240         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
6241         (sse4_1_roundps): Ditto.
6242         (sse4_1_roundsd): Ditto.
6243         (sse4_1_roundss): Ditto.
6244         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
6245         be generated.
6246         (sse_maskcmpsf3): Ditto.
6247         (sse_vmmaskcmpv4sf3): Ditto.
6248         (sse2_maskcmpv2df3): Ditto.
6249         (sse2_maskcmpdf3): Ditto.
6250         (sse2_vmmaskcmpv2df3): Ditto.
6251         (sse2_eq<mode>3): Ditto.
6252         (sse2_gt<mode>3): Ditto.
6253         (sse5_pcmov_<mode>): Add SSE5 support.
6254         (vec_unpacku_hi_v16qi): Ditto.
6255         (vec_unpacks_hi_v16qi): Ditto.
6256         (vec_unpacku_lo_v16qi): Ditto.
6257         (vec_unpacks_lo_v16qi): Ditto.
6258         (vec_unpacku_hi_v8hi): Ditto.
6259         (vec_unpacks_hi_v8hi): Ditto.
6260         (vec_unpacku_lo_v8hi): Ditto.
6261         (vec_unpacks_lo_v8hi): Ditto.
6262         (vec_unpacku_hi_v4si): Ditto.
6263         (vec_unpacks_hi_v4si): Ditto.
6264         (vec_unpacku_lo_v4si): Ditto.
6265         (vec_unpacks_lo_v4si): Ditto.
6266         (sse5_pmacsww): New SSE5 intrinsic insn.
6267         (sse5_pmacssww): Ditto.
6268         (sse5_pmacsdd): Ditto.
6269         (sse5_pmacssdd): Ditto.
6270         (sse5_pmacssdql): Ditto.
6271         (sse5_pmacssdqh): Ditto.
6272         (sse5_pmacsdqh): Ditto.
6273         (sse5_pmacsswd): Ditto.
6274         (sse5_pmacswd): Ditto.
6275         (sse5_pmadcsswd): Ditto.
6276         (sse5_pmadcswd): Ditto.
6277         (sse5_pcmov_<move>): Conditional move support on SSE5.
6278         (sse5_phaddbw): New SSE5 intrinsic insn.
6279         (sse5_phaddbd): Ditto.
6280         (sse5_phaddbq): Ditto.
6281         (sse5_phaddwd): Ditto.
6282         (sse5_phaddwq): Ditto.
6283         (sse5_phadddq): Ditto.
6284         (sse5_phaddubw): Ditto.
6285         (sse5_phaddubd): Ditto.
6286         (sse5_phaddubq): Ditto.
6287         (sse5_phadduwd): Ditto.
6288         (sse5_phadduwq): Ditto.
6289         (sse5_phaddudq): Ditto.
6290         (sse5_phsubbw): Ditto.
6291         (sse5_phsubwd): Ditto.
6292         (sse5_phsubdq): Ditto.
6293         (sse5_pperm): Ditto.
6294         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
6295         (sse5_pperm_zero_v16qi_v8hi): Ditto.
6296         (sse5_pperm_sign_v8hi_v4si): Ditto.
6297         (sse5_pperm_zero_v8hi_v4si): Ditto.
6298         (sse5_pperm_sign_v4si_v2di): Ditto.
6299         (sse5_pperm_sign_v4si_v2di): Ditto.
6300         (sse5_pperm_pack_v2di_v4si): Ditto.
6301         (sse5_pperm_pack_v4si_v8hi): Ditto.
6302         (sse5_pperm_pack_v8hi_v16qi): Ditto.
6303         (sse5_perm<mode>): New SSE5 intrinsic insn.
6304         (rotl<mode>3): Ditto.
6305         (sse5_rotl<mode>3): Ditto.
6306         (sse5_ashl<mode>3): Ditto.
6307         (sse5_lshl<mode>3): Ditto.
6308         (sse5_frcz<mode>2): Ditto.
6309         (sse5s_frcz<mode>2): Ditto.
6310         (sse5_cvtph2ps): Ditto.
6311         (sse5_cvtps2ph): Ditto.
6312         (sse5_vmmaskcmp<mode>3): Ditto.
6313         (sse5_com_tf<mode>3): Ditto.
6314         (sse5_maskcmp<mode>3): Ditto.
6315         (sse5_maskcmp_uns<mode>3): Ditto.
6316         (sse5_maskcmp_uns2<mode>3): Ditto.
6317         (sse5_pcom_tf<mode>3): Ditto.
6318
6319         * config/i386/predicates.md (sse5_comparison_float_operator):
6320         New predicate to match the comparison operators supported by
6321         the SSE5 com instruction.
6322         (ix86_comparison_int_operator): New predicate to match just the
6323         signed int comparisons.
6324         (ix86_comparison_uns_operator): New predicate to match just the
6325         unsigned int comparisons.
6326
6327         * doc/invoke.texi (-msse5): Add documentation.
6328         (-mfused-madd): Ditto.
6329
6330         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
6331
6332         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
6333         mmintrin-common.h.
6334         (x86_64-*-*): Ditto.
6335
6336         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
6337
6338         * config/i386/bmmintrin.h: New file, provide common x86 compiler
6339         intrinisics for SSE5.
6340
6341         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
6342         mmintrin-common.h.
6343
6344         * config/i386/mmintrin-common.h: New file, to contain common
6345         instructions between SSE4.1 and SSE5.
6346
6347         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
6348         FOREACH_FUNCTION_ARGS to iterate over the argument list.
6349         (gen_regparm_prefix): Ditto.
6350
6351         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
6352         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
6353         prototype_p to determine if a function is prototyped.
6354
6355 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
6356
6357         * c-common.c (c_common_reswords) add the alignof keyword,
6358         with same RID as __alignof and __alignof__
6359
6360 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
6361
6362         * hooks.h (hook_bool_const_int_const_int_true): Declare.
6363         * hooks.c (hook_bool_const_int_const_int_true): New function.
6364         * target.h (struct gcc_target): Add can_eliminate field.
6365         * target-def.h (TARGET_CAN_ELIMINATE): Define.
6366         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
6367         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
6368         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
6369         (elim_table): Revise comment.
6370         * system.h (CAN_ELIMINATE): Poison.
6371         * defaults.h (CAN_ELIMINATE): Remove.
6372         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
6373
6374         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
6375         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
6376         Define macro.
6377         (alpha_vms_can_eliminate): Declare as static, change return type to
6378         bool.
6379         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
6380
6381         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
6382         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
6383         (arm_can_eliminate): New function.
6384
6385         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
6386         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
6387         (avr_can_eliminate): Declare as static.
6388         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
6389
6390         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
6391         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
6392         (bfin_can_eliminate): New function.
6393
6394         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
6395         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
6396         (crx_can_eliminate): New function.
6397
6398         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
6399         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
6400         (fr30_can_eliminate): New function.
6401
6402         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
6403         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
6404         (frv_can_eliminate): New function.
6405
6406         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
6407         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
6408         (h8300_can_eliminate): New function.
6409
6410         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
6411         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
6412         (i386_can_eliminate): Declare as static, change return type to bool.
6413         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
6414
6415         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
6416         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
6417         (ia64_can_eliminate): New function.
6418
6419         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
6420         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
6421         (iq2000_can_eliminate): New function.
6422
6423         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
6424         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
6425         (m32r_can_eliminate): New function.
6426
6427         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
6428         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
6429         (m68hc11_can_eliminate): New function.
6430
6431         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
6432         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
6433         (m68k_can_eliminate): New function.
6434
6435         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
6436         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
6437         (mep_can_eliminate): New function.
6438
6439         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
6440         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
6441         (mips_can_eliminate): New function.
6442
6443         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
6444         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
6445         (rs6000_can_eliminate): New function.
6446
6447         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
6448         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
6449         (s390_can_eliminate): Declare as static.
6450         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
6451
6452         * config/score/score.h (CAN_ELIMINATE): Remove macro.
6453         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
6454         (score_can_eliminate): New function.
6455
6456         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
6457         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
6458         (sparc_can_eliminate): Declare as static.
6459         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
6460
6461         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
6462         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
6463         (xstormy16_can_eliminate): New function.
6464
6465         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
6466         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
6467         (v850_can_eliminate): New function.
6468
6469 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
6470
6471         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
6472         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
6473         (*movdfcc_ext[1234]): Disable for IEEE mode.
6474
6475 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
6476
6477         * gimplify.c (prepare_gimple_addressable): New static function.
6478         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
6479         it addressable.
6480         (gimplify_addr_expr): Invoke it similarly on the operand instead of
6481         manually fiddling with it.
6482
6483 2009-08-25  Michael Matz  <matz@suse.de>
6484
6485         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
6486         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
6487         full expression.
6488         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
6489         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
6490         (do_jump): Split out code for simple binary comparisons into ...
6491         (do_jump_1): ... this, taking the individual operands and code.
6492         Change callers to helper function above accordingly.
6493         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
6494         comparisons.
6495
6496 2009-08-25  Michael Matz  <matz@suse.de>
6497
6498         * expr.h (struct separate_ops, sepops): New type for passing
6499         around an exploded simple expression.
6500         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
6501         Use this structure instead of expression tree.
6502         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
6503         expression, only its type.
6504         (expand_vec_cond_expr): Take type and individual operands instead
6505         of full expression.
6506         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
6507         expand_vec_shift_expr): Change prototype accordingly.
6508         * tree-vect-stmts.c (vectorizable_condition): Change call of
6509         expand_vec_cond_expr_p to pass only type.
6510         * expr.c (do_store_flags): Change prototype and implementation
6511         to take an exploded expression.
6512         (expand_expr_real_1): New local ops initialized with details
6513         of the full expression.  Use it instead of full
6514         expression in calls to do_store_flags, expand_vec_cond_expr,
6515         expand_widen_pattern_expr and expand_vec_shift_expr.
6516
6517 2009-08-25  Michael Matz  <matz@suse.de>
6518
6519         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
6520         treeop2 initialized with first three operands of the full expression.
6521         Substitute all TREE_OPERAND (exp, [012]) calls with them.
6522
6523 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
6524
6525         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
6526         (__gthread_objc_condition_allocate): Mark arguments as unused.
6527         (__gthread_objc_condition_deallocate): Likewise.
6528         (__gthread_objc_condition_wait): Likewise.
6529         (__gthread_objc_condition_broadcast): Likewise.
6530         (__gthread_objc_condition_signal): Likewise.
6531         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
6532         (__gthread_objc_thread_id): Likewise.
6533
6534 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
6535
6536         PR middle-end/41149
6537         * tree-pretty-print.c (print_call_name): Print the correct call name
6538         for procedure pointer components.
6539
6540 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
6541
6542         * config/ia64/ia64.c (ia64_promote_function_mode): Call
6543         default_promote_function_mode when not VMS.
6544
6545 2009-08-24  Olivier Hainque  <hainque@adacore.com>
6546
6547         * convert.c (convert_to_integer): Don't assume an input pointer is
6548         POINTER_SIZE wide.  Fetch from the type instead.
6549
6550 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6551
6552         * configure.ac (AC_PREREQ): Bump to 2.64.
6553
6554 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
6555
6556         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
6557         (process_command): Don't search standard_exec_prefix_1 and
6558         standard_exec_prefix_2.
6559
6560 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6561
6562         * config/arm/arm.c (output_return_instruction): Handle for
6563         unified syntax.
6564
6565 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6566
6567         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
6568
6569 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6570
6571         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
6572         (*arm_movdf_vfp): Likewise.
6573
6574 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6575
6576         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
6577         (vashr<mode>3): Rename from ashr<mode>3.
6578         (vlshr<mode>3): Rename from lshr<mode>3.
6579
6580 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
6581
6582         PR/40786
6583         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
6584         (check_format_info_main): Use scalar_identify_flag.
6585         (check_format_types): Check for scalar size identity if
6586         scalar_identify_flag is set.
6587         (printf_length_specs): Extend by new field.
6588         (asm_fprintf_length_specs): Likewise.
6589         (gcc_diag_length_specs): Likewise.
6590         (scanf_length_specs): Likewise.
6591         (strfmon_length_specs): Likewise.
6592         (gcc_gfc_length_specs): Likewise.
6593         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
6594         (ms_printf_flag_specs): Likewise.
6595         * c-format.h (format_length_info): Add new member scalar_identity_flag.
6596
6597 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
6598
6599         PR target/40718
6600         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
6601         (*call_value_pop_1): Ditto.
6602         (*sibcall_pop_1): New insn pattern.
6603         (*sibcall_value_pop_1): Ditto.
6604
6605 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
6606
6607         PR target/41081
6608         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
6609         ashrsi3_64): New.
6610
6611 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
6612
6613         PR target/41081
6614         * fwprop.c (try_fwprop_subst): Allow multiple sets.
6615         (get_reg_use_in): New function.
6616         (forward_propagate_subreg): Propagate through subreg of zero_extend
6617         or sign_extend.
6618
6619 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
6620
6621         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
6622         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
6623
6624 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6625
6626         * configure.ac: Remove --with-datarootdir, --with-docdir,
6627         --with-htmldir switches.  No need to call AC_SUBST for
6628         datarootdir, docdir, htmldir any more.
6629         * configure: Regenerate.
6630         * doc/install.texi (Configuration): Document --datarootdir,
6631         --docdir, --htmldir, --pdfdir; update documentation for
6632         --infodir, --mandir.
6633         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
6634         M4 to 1.4.6.
6635
6636         * aclocal.m4: Regenerate.
6637         * config.in: Regenerate.
6638         * configure: Regenerate.
6639
6640 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
6641             Olivier Hainque  <hainque@adacore.com>
6642
6643         * config/ia64/ia64.c: Include libfuncs.h.
6644         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
6645         (ia64_expand_call): Use reg 25 on VMS.
6646         (ia64_initialize_trampoline): Fix for VMS ABI.
6647         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
6648         (ia64_function_arg): Initialize reg 25 on VMS.
6649         Fix OpenVMS ABI issues for varargs.
6650         For OpenVMS, emit the Argument Information register set in the
6651         incoming/sibcall case as well.
6652         (ia64_arg_type): New function.
6653         (ia64_function_arg_advance): Keep track of cum->words.
6654         Fix OpenVMS ABI issues for varargs.
6655         (ia64_function_value): On VMS, promote mode of non-aggregate types.
6656         (ia64_override_options): Set flag_no_common on VMS.
6657         (ia64_init_builtins): Disable FWRITE builtin.
6658         (ia64_asm_output_external): Call DO_CRTL_NAMES.
6659         (ia64_vms_init_libfuncs): Add decc$ routines.
6660         (ia64_vms_valid_pointer_mode): New function.
6661         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
6662         (ia64_promote_function_mode): New function
6663         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
6664         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
6665         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
6666         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
6667         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
6668         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
6669         Suppress trailing '#' if VALUE is numeric.
6670         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
6671         ia64_promote_function_mode.
6672         (TARGET_VALID_POINTER_MODE): Define.
6673
6674 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6675
6676         PR target/40671
6677         * config/rs6000/rs6000.c (rs6000_override_options): Use
6678         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
6679
6680         PR target/41145
6681         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
6682         reporting of vector + decimal/boolean/complex error.
6683
6684 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
6685
6686         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
6687         __vector double TYPE_DECL.
6688
6689 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
6690
6691         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
6692         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
6693         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
6694         to pointer to enum machine_mode.  Update all callers as needed.
6695
6696 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
6697
6698         * config/alpha/alpha.md (exception_receiver): Emit alternative
6699         GP load sequence if flag_reorder_blocks_and_partition is set.
6700         (*exception_receiver_2): Also enable when
6701         flag_reorder_blocks_and_partition is set.
6702
6703 2009-08-20  Matt Rice  <ratmice@gmail.com>
6704             Diego Novillo  <dnovillo@google.com>
6705
6706         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
6707         tree-ssa-sccvn.h.
6708
6709 2009-08-20  Richard Guenther  <rguenther@suse.de>
6710
6711         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
6712         * c-tree.h (c_dup_lang_specific_decl): Remove.
6713         (struct lang_decl, struct lang_type): Move definitions ...
6714         * c-lang.h: ... here.  New file.
6715         * c-decl.c: Include c-lang.h.
6716         (c_dup_lang_specific_decl): Remove.
6717         * c-typeck.c: Include c-lang.h.
6718         * Makefile.in (c-decl.o): Add c-lang.h dependency.
6719         (c-typeck.o): Likewise.
6720         * c-config-lang.in (gtfiles): Add c-lang.h.
6721         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
6722         like c-tree.h.
6723
6724 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
6725
6726         * config/alpha/alpha.c (alpha_end_function): Do not clear
6727         crtl->emit structure and free insn locators if cfun->is_thunk is true,
6728         this is now handled in generic code.
6729
6730 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
6731
6732         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
6733         (s390_z10_fix_long_loop_prediction): New function.
6734         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
6735         (s390_reorg): Walk over the INSNs and invoke
6736         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
6737
6738 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
6739
6740         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
6741         "*brx_64bit", "*brx_31bit"): New patterns.
6742         * config/s390/s390.c ('E'): New output modifier.
6743
6744 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6745             Richard Earnshaw  <richard.earnshaw@arm.com>
6746
6747         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
6748         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
6749
6750 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6751
6752         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
6753         patterns.
6754         * pa.c (emit_move_sequence): Check if address of operand1 is valid
6755         for mode mode of operand0 when doing secondary reload for SAR.
6756
6757 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
6758
6759         PR middle-end/41123
6760         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
6761         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
6762
6763 2009-08-19  Jason Merrill  <jason@redhat.com>
6764
6765         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
6766         supported template depth in C++0x.
6767
6768 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
6769
6770         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
6771         free_after_compilation.
6772         * config/score/score7.c (score7_output_mi_thunk): Likewise.
6773         * config/score/score3.c (score3_output_mi_thunk): Likewise.
6774         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
6775         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
6776         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
6777         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
6778         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
6779
6780 2009-08-19  Ian Lance Taylor  <iant@google.com>
6781
6782         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
6783         of (plus (mult (neg B) C) A).
6784
6785 2009-08-18  Michael Matz  <matz@suse.de>
6786
6787         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
6788         instead of comparing TYPE_MAIN_VARIANT for equality.
6789         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
6790         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
6791         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
6792         * gimplify.c (goa_lhs_expr_p): Ditto and use
6793         STRIP_USELESS_TYPE_CONVERSION.
6794
6795 2009-08-18  Michael Matz  <matz@suse.de>
6796
6797         * tree-ssa-structalias.c (create_variable_info_for): Also mark
6798         first field in a struct.
6799         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
6800
6801 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
6802
6803         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
6804         locators before emit_insn is called.  Remove assert that
6805         cfun->is_thunk.
6806         (alpha_end_function): Clear crtl->emit structure and free insn
6807         locators if cfun->is_thunk is true.
6808
6809 2009-08-18  Jason Merrill  <jason@redhat.com>
6810
6811         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
6812         type if available.
6813         * configure.ac: Test for it.
6814         * configure, config.in: Regenerate.
6815         * doc/install.texi: Document --enable-gnu-unique-object.
6816
6817 2009-08-18  Richard Guenther  <rguenther@suse.de>
6818
6819         PR middle-end/41094
6820         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
6821         pow(x,y*z) only if x is nonnegative.
6822
6823 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
6824
6825         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
6826         on jumps.
6827
6828         PR target/40971
6829         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
6830         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
6831
6832 2009-08-17  DJ Delorie  <dj@redhat.com>
6833
6834         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
6835         * config/m32c/prologue.md (epilogue_freit): New.
6836         (fset_b): New.
6837         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
6838         (bank_switch_p): Likewise.
6839         (fast_interrupt_p): Likewise.
6840         (interrupt_p): Likewise.
6841         (m32c_conditional_register_usage): Round memregs size up.
6842         (need_to_save): We only need to save $a0 when we use ENTER.
6843         (interrupt_p): Check for fast_interrupt too.
6844         (bank_switch_p): New.
6845         (fast_interrupt_p): New.
6846         (m32c_attribute_table): Add bank_switch and fast_interrupt.
6847         (m32c_emit_prolog): Support bank switching and fast interrupts.
6848         * doc/extend.texi (Function Attributes): Add bank_switch and
6849         fast_interrupt.
6850
6851 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
6852
6853         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
6854         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
6855
6856 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
6857
6858         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
6859         (menu): Add IA-64/VMS Options.
6860         (IA-64/VMS Options): Likewise.
6861
6862 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
6863
6864         PR target/38599
6865         * config/mips/mips.md (*lwxs): Use :P for pointer values.
6866
6867 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
6868
6869         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
6870         (mips_pop_asm_switch): Likewise.
6871         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
6872         with...
6873         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
6874         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
6875         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
6876         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
6877         instead of set_noreorder.
6878         (mips_output_function_prologue): Use the new functions.
6879         (mips_output_function_epilogue): Likewise.
6880         (mips_need_noat_wrapper_p): New function, split out from...
6881         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
6882         Use mips_push_asm_switch and mips_pop_asm_switch.
6883         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
6884         and mips_pop_asm_switch.
6885         (ASM_OUTPUT_REG_POP): Likewise.
6886         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
6887         Use mips_pop_asm_switch.
6888         (mips_asm_switch): New structure.
6889         (set_noreorder, set_nomacro): Replace with...
6890         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
6891         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
6892         instead of set_nomacro.
6893         (fix_truncsfsi2_macro): Likewise.
6894         (cprestore): Likewise.
6895         (hazard): Use mips_noreorder instead of set_noreorder.
6896         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
6897
6898 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
6899
6900         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
6901         from prev_active_insn.
6902
6903 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
6904
6905         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
6906         * config/avr/avr.c (avr_override_options): Initialize
6907         avr_current_arch variable.
6908         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
6909         __AVR_HAVE_16BIT_SP__ according to the device type.
6910         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
6911         TARGET_TINY_STACK.
6912         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
6913         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
6914
6915 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
6916
6917         PR debug/37801
6918         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
6919         generating inlined subroutine die only. We shouldn't be
6920         called for anything else.
6921         (gen_block_die): Don't generate inline subroutine debug info for
6922         abstract blocks.
6923
6924 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
6925
6926         * graphite-poly.c (print_pbb): Print PBB index.
6927
6928 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
6929
6930         PR middle-end/40981
6931         * graphite-interchange.c (ppl_max_for_le): Moved...
6932         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
6933         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
6934         ppl_Pointset_Powerset_C_Polyhedron_maximize.
6935         * graphite-ppl.h (ppl_max_for_le): Declared.
6936
6937 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
6938
6939         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
6940         supported on all platforms.
6941         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
6942         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
6943         * c-pragma.c: Likewise.
6944         * target-def.h (TARGET_INITIALIZER): Remove
6945         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
6946         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
6947
6948 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
6949
6950         * config/ia64/fde-vms.c: New file.
6951         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
6952         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
6953         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
6954         (uw_frame_state_for): Only register a personality routine if it is
6955         known to be compatible with our expectations.
6956         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
6957         Declare unw_table_entry stack variable and
6958         mod all calls to _Unwind_FindTableEntry to add arg.
6959         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
6960         (_Unwind_FindTableEntry): Add arg to prototype.
6961
6962 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
6963
6964         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
6965         field 'signal_pfs_loc'.
6966         (uw_frame_state_for): Remove duplicate code dealing with leaf
6967         procedures without unwind info.
6968         If in the frame after unwinding through a signal handler, restore
6969         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
6970         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
6971         'pfs_loc' to the AR.PFS location in the signal context; instead
6972         set 'signal_pfs_loc'.
6973         Manually generate the unwind info for the AR.PFS register.
6974         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
6975         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
6976         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
6977         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
6978         instead set 'signal_pfs_loc'.
6979         Remove code preventing the AR.PFS register from being restored
6980         from the signal context.
6981
6982 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
6983             Tristan Gingold  <gingold@adacore.com>
6984
6985         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
6986         * config/ia64/t-vms: New file.
6987         * config/ia64/vms64.h: New file.
6988         * config/ia64/vms.h: New file.
6989         * config/ia64/vms-crtinit.asm: New file.
6990         * config/ia64/vms_symvec_libgcc_s.opt: New file.
6991         * config/ia64/vms-unwind.h: New file.
6992
6993 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
6994
6995         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
6996         TFmode compares.
6997
6998 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6999
7000         PR middle-end/30789
7001         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
7002         Move declaration...
7003         * real.h (do_mpc_arg2): ... here.
7004         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
7005         and RDIV_EXPR.
7006
7007 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
7008
7009         * final.c (add_debug_prefix_map): Don't use GC memory for
7010         old_prefix and new_prefix.
7011
7012 2009-08-14  Richard Guenther  <rguenther@suse.de>
7013
7014         * ipa-prop.c (compute_complex_pass_through): If we cannot
7015         compute a non-varying offset for IPA_JF_ANCESTOR punt.
7016
7017 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7018
7019         * c-lex.c (c_lex_with_flags): Increase size of local variable
7020         to avoid memory clobber.
7021
7022 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
7023
7024         PR target/40934
7025         * config/i386/i386.c (ix86_fp_comparison_strategy):
7026         Only enable/disable sahf at function granularity.
7027
7028 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
7029
7030         PR rtl-optimization/41064
7031         * reload1.c (reload_as_needed): Don't call extract_insn
7032         for known invalid replacements after calling
7033         validate_replace_rtx_group and verify_changes.
7034
7035 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
7036
7037         PR target/41019
7038         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
7039         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
7040         ix86_expand_fp_vcond.
7041         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
7042         Assert that operation is supported by ix86_expand_int_vcond.
7043         (vcondu<SSEMODE124C8:mode>): Ditto.
7044
7045 2009-08-13  DJ Delorie  <dj@redhat.com>
7046
7047         * config/i386/djgpp-stdint.h: New.
7048         * config.gcc (djgpp): Use it.
7049
7050 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
7051
7052         * config/sh/sh.c (sh_override_options): When flag_exceptions or
7053         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
7054
7055 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
7056
7057         * tree-ssa-loop-prefetch.c
7058         (prune_ref_by_group_reuse): Enhance probabilistic analysis
7059         for long-stride pruning.
7060         (compute_miss_rate): New function to compute the probability
7061         that two memory references access different cache lines.
7062
7063 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
7064
7065         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
7066
7067 2009-08-13  Richard Guenther  <rguenther@suse.de>
7068
7069         PR middle-end/41047
7070         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
7071         use the constant pointer type.
7072         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
7073         of CV qualifiers on the target pointer type.
7074         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
7075         conversion check before restrict check.
7076
7077 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7078
7079         PR target/41029
7080         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
7081
7082 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7083
7084         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
7085
7086 2009-08-12  Richard Guenther  <rguenther@suse.de>
7087
7088         PR tree-optimization/41011
7089         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
7090         and reference constructing.
7091
7092 2009-08-12  Xinliang David Li  <davidxl@google.com>
7093
7094         PR tree-optimization/41012
7095         * tree-flow.h : New external interface.
7096         * gimple-low.c (check_call_arg): Change to public function.
7097         Remove argument mismatch check in lowering.
7098         * tree-inline.h (tree_can_inline_p): Interface change.
7099         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
7100         into this function.
7101         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
7102         Call change to tree_can_inline_p function.
7103         (cgraph_decide_inlining_incrementally): Ditto.
7104
7105 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
7106
7107         PR tree-optimization/41031
7108         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
7109         on the partition variable rather than promote_mode on the source
7110         type.  Assert that the partition variable's type has the same
7111         mode as the source value's.
7112
7113 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
7114
7115         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
7116         for for_return == 2.
7117         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
7118         comments.
7119         * calls.c (expand_call): Fix typo.
7120         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
7121         and PARM_DECL.
7122         * stmt.c (expand_value_return): Use promote_function_mode to copy out
7123         of pseudo.
7124         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
7125         * config/cris/cris.c (cris_promote_function_mode): Likewise.
7126         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
7127         * config/pa/pa.c (pa_promote_function_mode): Likewise.
7128
7129 2009-08-12  Andrew Haley  <aph@redhat.com>
7130
7131         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
7132
7133 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7134
7135         PR bootstrap/40103
7136         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
7137
7138 2009-08-12  Richard Guenther  <rguenther@suse.de>
7139
7140         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
7141         * gimplify.c (gimplify_modify_expr): Do not use
7142         lang_hooks.types_compatible_p.
7143         * tree-ssa.c (useless_type_conversion_p): For aggregates
7144         just return false if the canonical types differ.
7145
7146 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7147
7148         PR middle-end/40980
7149         * sese.c (convert_for_phi_arg): New.
7150         (add_guard_exit_phis): Use convert_for_phi_arg.
7151
7152 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7153
7154         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
7155         unknown subscript upper bounds.
7156
7157 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7158             Pranav Garg  <pranav.garg2107@gmail.com>
7159
7160         * graphite-interchange.c (gather_access_strides): Removed.
7161         (ppl_max_for_le): New.
7162         (build_linearized_memory_access): New.
7163         (memory_stride_in_loop): New.
7164         (pbb_interchange_profitable_p): Reimplemented.
7165         * graphite-ppl.h (ppl_new_id_map): New.
7166         (ppl_interchange): New.
7167
7168 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7169
7170         * graphite-interchange.c (compute_subscript): Removed.
7171         (compute_array_size_cstr): Removed.
7172         (compute_array_size_poly): Removed.
7173         (compute_array_size): Removed.
7174         (gather_access_strides_poly): Removed.
7175         (gather_access_strides): Empty.
7176
7177 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7178
7179         * graphite-dependences.c (dependence_polyhedron_1): Replace
7180         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
7181         (graphite_legal_transform_dr): Same.
7182         (graphite_carried_dependence_level_k): Same.
7183         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
7184         Initialize PDR_NB_SUBSCRIPTS.
7185         (print_pdr_access_layout): Replace pdr_nb_subscripts with
7186         PDR_NB_SUBSCRIPTS.
7187         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
7188         (PDR_NB_SUBSCRIPTS): New.
7189         (pdr_nb_subscripts): Removed.
7190         (pdr_dim): Simplified.
7191         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
7192         with PDR_NB_SUBSCRIPTS.
7193
7194 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7195
7196         * graphite-interchange.c (compute_array_size): Remove use of
7197         PDR_DATA_CONTAINER.
7198         * graphite-poly.c (new_poly_dr): Remove argument data_container.
7199         Do not initialize PDR_DATA_CONTAINER.
7200         (print_pdr): Do not print PDR_DATA_CONTAINER.
7201         * graphite-poly.h (struct poly_dr): Remove data_container field.
7202         (PDR_DATA_CONTAINER): Removed.
7203         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
7204         PDR_DATA_CONTAINER.
7205         (build_poly_dr): Same.
7206
7207 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
7208             Sebastian Pop  <sebastian.pop@amd.com>
7209
7210         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
7211         copy of the dependence polyhedron.  Free the temporary objects.
7212         (graphite_carried_dependence_level_k): Free unused objects before
7213         returning.
7214
7215 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7216
7217         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
7218         Early return without analyzing the data dependences if no
7219         transform has been done.  Call restore_scattering if the transform
7220         is not legal.
7221         (graphite-interchange.c): Same.
7222         * graphite-poly.c (print_scattering_function): Test for
7223         PBB_TRANSFORMED.
7224         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
7225         (apply_poly_transforms): Do not gcc_assert that
7226         the transform is legal.
7227         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
7228         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
7229         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
7230         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
7231         * graphite-poly.h (struct poly_scattering): New.
7232         (struct poly_bb): Add original, transformed, and saved fields.
7233         Remove transformed_scattering, original_scattering,
7234         nb_local_variables and nb_scattering_transform fields.
7235         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
7236         (poly_scattering_new): New.
7237         (poly_scattering_free): New.
7238         (poly_scattering_copy): New.
7239         (store_scattering_pbb): New.
7240         (store_scattering): New.
7241         (restore_scattering_pbb): New.
7242         (restore_scattering): New.
7243         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
7244         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
7245
7246 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7247
7248         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
7249         (print_scop): Same.
7250
7251 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7252
7253         * Makefile.in (graphite.o): Depends on PREDICT_H.
7254         * graphite.c: Include predict.h.
7255         (graphite_finalize): Call tree_estimate_probability.
7256         * predict.c (predict_loops): Do not call scev_initialize and
7257         scev_finalize.
7258         (tree_estimate_probability_bb): New.
7259         (tree_estimate_probability): Do not initialize loops: move that
7260         code to the driver.  Call tree_estimate_probability_bb.
7261         (tree_estimate_probability_driver): New.
7262         (pass_profile): Use tree_estimate_probability_driver.
7263         * predict.h (tree_estimate_probability): Declared.
7264
7265 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7266
7267         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
7268         * graphite-dependences.c (graphite_legal_transform): Add time to
7269         TV_GRAPHITE_DATA_DEPS.
7270         (dependency_between_pbbs_p): Same.
7271         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
7272
7273 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
7274
7275         PR rtl-optimization/41033
7276         * alias.c (nonoverlapping_component_refs_p): Punt when strict
7277         aliasing is disabled.
7278
7279 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
7280
7281         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
7282         si_mask_operand, and_load_operand, low_bitmask_operand,
7283         and_reg_operand, and_operand): New predicates.
7284         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
7285         * config/mips/mips.c (and_operands_ok): New function.
7286         * config/mips/mips-protos.h (and_operands_ok): Declare it.
7287         * config/mips/mips.md (move_type): Add ext_ins and logical.
7288         (type): Handle them.
7289         (and<mode>3): Use and_reg_operand as the second operand's predicate.
7290         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
7291         shift_shift.  Remove commutative constraint modifier.
7292         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
7293         shift_shift.
7294         (*clear_upper32_dext): Remove define_insn_and_split.
7295         (*clear_upper32): Turn this define_insn_and_split ...
7296         (splitter for ANDing register with 0xffff_ffff): .. into this.
7297
7298 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
7299
7300         * combine.c (try_widen_shift_mode): Factor out code to check if an
7301         integer constant is a low-order bitmask from here ...
7302         * rtlanal.c (low_bitmask_len): ... to here.
7303         * rtl.h (low_bitmask_len): Declare.
7304
7305 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
7306
7307         PR target/8603
7308         * config/alpha/alpha.md (addsi3): Remove expander.
7309         (addsi3): Rename from *addsi3_internal insn pattern.
7310         (subsi3): Remove expander.
7311         (subsi3): Rename from *subsi3_internal insn pattern.
7312
7313 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
7314
7315         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
7316         FWRITE_UNLOCKED.
7317
7318 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
7319             Eric Botcazou  <botcazou@adacore.com>
7320             Douglas B Rupp  <rupp@gnat.com>
7321
7322         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
7323         that records that fit in 64 bits are returned by immediate value,
7324         as required by OpenVMS Calling Standard.
7325         (function_value): Adjust for above modification.
7326         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
7327         virtual_incoming_args_rtx as base object, not next_arg.
7328         * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
7329
7330 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7331
7332         * reload.c (find_reloads_subreg_address): Check the original
7333         req_equiv_mem address to detect the case where an address is
7334         not valid in the outer mode.
7335
7336 2009-08-11  Richard Guenther  <rguenther@suse.de>
7337
7338         PR bootstrap/40788
7339         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
7340
7341 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
7342
7343         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
7344         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
7345
7346 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
7347             Douglas B Rupp  <rupp@gnat.com>
7348
7349         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
7350         PT_STACK when frame_pointer_needed on OpenVMS.
7351         (alpha_pv_save_size, alpha_using_fp): Remove.
7352         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
7353         with proper processing for PT_NULL.
7354         (alpha_vms_initial_elimination_offset): New function. Support for
7355         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
7356         (alpha_sa_size): Force procedure type to PT_STACK when
7357         frame_pointer_needed on OpenVMS.
7358         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
7359         (alpha_using_fp): Likewise.
7360         (alpha_vms_can_eliminate): Add prototype.
7361         (alpha_vms_initial_elimination_offset): Likewise.
7362         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
7363         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
7364
7365 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
7366             Douglas B Rupp  <rupp@gnat.com>
7367
7368         * config/alpha/alpha.c (common_object_handler): New function.
7369         (vms_attribute_table): Declare a single attribute "common_object".
7370         (vms_output_aligned_decl_common): New global function.
7371         (SECTION_VMS_OVERLAY): Delete.
7372         (SECTION_VMS_GLOBAL): Likewise.
7373         (SECTION_VMS_INITIALIZE): Likewise.
7374         (vms_asm_named_section): Remove support for above flags.
7375         (vms_section_type_flags): Delete.
7376         (TARGET_SECTION_TYPE_FLAGS): Likewise.
7377         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
7378         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
7379         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
7380
7381 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7382
7383         PR target/41015
7384         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
7385         (sub_ddmmss): Likewise.
7386
7387 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
7388
7389         PR bootstrap/41018
7390         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
7391         year.
7392
7393 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7394
7395         PR target/37053
7396         * reload1.c (reload_as_needed): Use cancel_changes to completely
7397         undo a failed replacement attempt.
7398
7399 2009-08-10  Richard Guenther  <rguenther@suse.de>
7400
7401         PR middle-end/41006
7402         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
7403         (useless_type_conversion_p): ... here.  Require pointer targets
7404         to be compatible.
7405
7406 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
7407
7408         PR c++/40866
7409         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
7410         loose the original type of the statement list.
7411
7412 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7413
7414         * config/alpha/alpha.c: Include libfuncs.h
7415         (avms_asm_output_extern): New function.
7416         (alpha_init_libfuncs): Init some decc libfuncs.
7417         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
7418         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
7419         (DO_CRTL_NAMES): Define.
7420         (LIB_SPEC): Remove.
7421         * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
7422         (LONG_TYPE_SIZE): Define.
7423         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
7424         (SUBTARGET_SWITCHES): Define malloc64 switch.
7425         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
7426         (MASK_RETURN_ADDR): Define.
7427         doc/invoke.texi (mmalloc64): Document switch.
7428
7429 2009-08-09  Olivier Hainque  <hainque@adacore.com>
7430             Douglas B Rupp  <rupp@gnat.com>
7431
7432         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
7433         uses_condition_handler.
7434         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
7435         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
7436         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
7437         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
7438         (code_for_builtin): New insn codes for the new alpha_builtins.
7439         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
7440         (alpha_sa_size): Account for uses_condition_handler.
7441         (alpha_expand_prologue): Likewise.
7442         (alpha_start_function): Likewise.
7443         (alpha_expand_epilogue): Likewise.
7444         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
7445         establish/revert expanders.
7446         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
7447         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
7448         New expander, resorting to the alpha.c associated function.
7449         (builtin_revert_vms_condition_handler): Likewise.
7450         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
7451         __gcc_shell_handler, the static VMS condition handler used as
7452         an indirection wrapper to the current dynamically established
7453         handler.
7454         * config/alpha/vms-unwind.h: Complete rewrite.
7455         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
7456         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
7457
7458 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
7459             Douglas B Rupp  <rupp@gnat.com>
7460
7461         * config/alpha/alpha.c (alpha_links): Add 'target' field.
7462         (alpha_need_linkage): Handle aliases.  Return function symbol.
7463         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
7464         Use ultimate alias target for the linkage name.
7465         * config/alpha/alpha.md (movmemdi): Use the symbol returned
7466         by alpha_need_linkage for the function symbol.
7467         (setmemdi): Likewise.
7468
7469 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7470
7471         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
7472         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
7473         (ASM_WEAKEN_LABEL): Define.
7474         (CRT_CALL_STATIC_FUNCTION): Define.
7475         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
7476         (ENDFILE_SPEC): Define.
7477         (INIT_SECTION_ASM_OP): Define.
7478         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
7479         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
7480         crtend.o crtendS.o.
7481         (MULTILIB_OSDIRNAMES): Define.
7482         (shlib_version): Define.
7483         (SHLIB_EXT): Define.
7484         (SHLIB_OBJS): Define.
7485         (SHLIB_NAME): Define.
7486         (SHLIB_MULTILIB): Define.
7487         (SHLIB_INSTALL): Define.
7488         (SHLIB_SYMVEC): Define.
7489         (SHLIB_SYMVECX2): Define.
7490         (SHLIB_LINK): Define.
7491
7492 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7493
7494         * config/alpha/alpha.c (alpha_initialize_trampoline):
7495         Initialize VMS trampoline IAW ABI for bounded procedure calls.
7496         (alpha_start_function): Emit transfer address on nested functions
7497         for VMS trampoline call.
7498         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
7499         since no longer used.
7500         * config/alpha/vms-tramp.asm: Remove.
7501         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
7502         since now only data initialized at runtime.
7503
7504 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7505
7506         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
7507         (LINK_GCC_C_SEQUENCE_SPEC): Define.
7508         (MD_EXEC_PREFIX): Remove, no longer used.
7509         (MD_STARTFILE_PREFIX): Likewise.
7510         (INCLUDE_DEFAULTS): Likewise.
7511         * config/alpha/t-vms:
7512         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
7513
7514 2009-08-09  Richard Guenther  <rguenther@suse.de>
7515
7516         PR tree-optimization/41016
7517         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
7518         (operand_precision): Remove.
7519         (integral_operand_p): Likewise.
7520         (recognize_single_bit_test): Adjust.
7521
7522 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
7523
7524         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
7525         operation overflows.  Likewise non-cast unary arithmetic.
7526         If one arm of a conditional expression is always taken,
7527         inhibit evaluation warnings for the other arm.  Likewise inhibit
7528         evaluation warnings for the second && or || operand if the first
7529         operand is enough to determine the result.
7530         * c-typeck.c (build_conditional_expr): Apply the same inhibition
7531         rules here.
7532         (build_binary_op): Prevent duplicate evaluation warnings.
7533
7534 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
7535
7536         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
7537         and destination have different modes, Use promote_mode to
7538         determine the signedness of the conversion.  Assert that the
7539         promoted source mode matches the destination mode.  Don't pass
7540         the destination and destination mode to expand_expr if the source
7541         mode is different.  Simplify conversion logic.
7542
7543 2009-08-09  Ira Rosen  <irar@il.ibm.com>
7544
7545         PR tree-optimization/41008
7546         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
7547         from condition only in case it's a comparison. Adjust checks.
7548
7549 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
7550
7551         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
7552         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
7553         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
7554         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
7555         (dump_cand): Handle them.
7556         (struct iv_cand): New members COST_STEP and AINC_USE.
7557         (stmt_after_increment): Likewise.
7558         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
7559         callers changed.  Use gimple_uid comparison instead of scanning.
7560         (add_candidate_1): When looking for identical candidates, take
7561         AINC_USE into account.  Set it for new candidates.
7562         (force_expr_to_var_cost): Cast target_spill_cost to int.
7563         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
7564         All callers changed.  Check for availability of autoinc addressing
7565         modes, both in general for a given mode, and in the specific use case.
7566         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
7567         changed.
7568         (get_computation_cost): Likewise.
7569         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
7570         add_autoinc_candidates): New static functions.
7571         (add_candidate): Call add_autoinc_candidates for candidates based on
7572         a USE_ADDRESS use.
7573         (find_iv_candidates): Call set_autoinc_for_original_candidates.
7574         (determine_use_iv_cost_address): If we have an autoinc candidate at
7575         the matching use, verify autoinc is possible and subtract the cost
7576         of the candidate's step from the cost.
7577         (determine_iv_cost): Record the cost of the increment in the COST_STEP
7578         member of the candidate.
7579         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
7580         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
7581
7582 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7583
7584         * config.build (ia64-hp-*vms*): New target.
7585         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
7586         with ia64-hp-*vms*.
7587         * config.gcc (ia64-hp-*vms*): New target.
7588         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
7589         with ia64-hp-*vms*.
7590         * config.host (ia64-hp-*vms*): New target.
7591         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
7592         with ia64-hp-*vms*.
7593
7594 2009-08-08  Richard Guenther  <rguenther@suse.de>
7595
7596         PR tree-optimization/40991
7597         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
7598
7599 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
7600
7601         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
7602         mode check.  Do truncations in an integer mode.
7603         (force_to_mode): Handle subregs for all mode types.  Only do
7604         arithmetic simplifications on integer modes.
7605
7606 2009-08-07  Richard Guenther  <rguenther@suse.de>
7607
7608         PR tree-optimization/40999
7609         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
7610         (maybe_fold_reference): Lookup constant initializers.
7611         (fold_gimple_assign): Likewise.
7612
7613 2009-08-07  Richard Guenther  <rguenther@suse.de>
7614
7615         * tree-ssa.c (useless_type_conversion_p_1): Only for types
7616         that require structural equality defer to the langhook.
7617
7618 2009-08-07  Martin Jambor  <mjambor@suse.cz>
7619
7620         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
7621         comments.
7622         (struct ipa_pass_through_data): New type.
7623         (struct ipa_ancestor_jf_data): New type.
7624         (union jump_func_value): Removed field formal_id, added fields
7625         pass_through and ancestor.
7626         (struct ipa_param_call_note): Changed type of formal_id to int from
7627         unsigned.
7628         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
7629         operations jump functions and ancestor jump functions.
7630         (compute_complex_pass_through): New function.
7631         (compute_scalar_jump_functions): Call compute_complex_pass_through,
7632         reflect changes in the jump function strucutre.
7633         (update_jump_functions_after_inlining): Ignore complex pass-through
7634         and ancestor jump functions.
7635         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
7636         polynomial pass-through with operation jump functions.
7637
7638 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
7639
7640         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
7641         fde->dw_fde_begin as begin label instead of hot/cold label.
7642         Use LLSDAC label instead of LLSDA for second section lsda.
7643         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
7644         label instead of LLSDA if it is true.
7645         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
7646         callers.
7647         * except.c (add_call_site, dw2_size_of_call_site_table): Add
7648         SECTION argument.  Use it as index into crtl->eh.call_site_record
7649         array.
7650         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
7651         use it to determine how to print table entries instead of using
7652         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
7653         label instead of normal begin label as base.
7654         (sjlj_assign_call_site_values): Adjust add_call_site caller.
7655         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
7656         ensure no EH range spans between sections and that landing pads
7657         are always in the corresponding section.
7658         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
7659         for crtl->eh.call_site_record being an array rather than scalar.
7660         (output_one_function_exception_table): New function, copied
7661         from output_function_exception_table.  Adjust
7662         dw2_size_of_call_site_table, dw2_output_call_site_table
7663         callers.  For SECOND section use *C suffixed labels.
7664         (output_function_exception_table): Call
7665         output_one_function_exception_table and, when doing hot/cold
7666         partitioning, also another time for the second section.
7667         * opts.c: Include except.h.
7668         (decode_options): Allow -freorder-blocks-and-partition with
7669         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
7670         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
7671         * function.h (struct rtl_eh): Change call_site_record from
7672         scalar into array of 2 elements.
7673
7674 2009-08-07  Martin Jambor  <mjambor@suse.cz>
7675
7676         * ipa-prop.c (count_formal_params_1): New function.
7677         (ipa_get_vector_of_formal_parms): New function.
7678         (get_vector_of_formal_parm_types): New function.
7679         (ipa_modify_formal_parameters): New function.
7680         (ipa_modify_call_arguments): New function.
7681         (index_in_adjustments_multiple_times_p): New function.
7682         (ipa_combine_adjustments): New function.
7683         (ipa_dump_param_adjustments): New function.
7684         * ipa-prop.h (struct ipa_parm_adjustment): New type.
7685         (ipa_get_vector_of_formal_parms): Declare.
7686         (ipa_modify_formal_parameters): Declare.
7687         (ipa_modify_call_arguments): Declare.
7688         (ipa_combine_adjustments): Declare.
7689         (ipa_dump_param_adjustments): Declare.
7690         (build_ref_for_offset): Declare.
7691         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
7692         * tree-sra.c: Include ipa-prop.c.
7693         (build_ref_for_offset): Make public.
7694
7695 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
7696
7697         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
7698
7699 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
7700
7701         * gcc/doc/extend.texi (__builtin_extract_return_address)
7702         (__builtin_frob_return_address): Document.
7703
7704 2009-08-06  Paul Brook  <paul@codesourcery.com>
7705
7706         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
7707         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
7708         implementation on ARMv6-M.
7709
7710 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
7711
7712         * doc/extend.texi (pcs): Document new attribute for ARM.
7713
7714 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
7715
7716         * arm.c (pcs_attribute_args): Comment out unsupported attribute
7717         variants.
7718
7719 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
7720
7721         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
7722         warning ().
7723
7724 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
7725
7726         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
7727
7728 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
7729
7730         Merge ARM/hard_vfp_branch to trunk.
7731
7732         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
7733
7734         * arm.c (libcall_eq): New function.
7735         (libcall_hash): New function.
7736         (add_libcall): New function.
7737         (arm_libcall_uses_aapcs_base): New function.
7738         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
7739         libcalls using the base PCS.
7740         (arm_init_cumulative_args): Likewise.
7741
7742         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
7743
7744         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
7745         Use base ABI for conversion libfuncs between HFmode and SFmode.
7746
7747         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
7748
7749         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
7750         V4SImode as representatives of all 64-bit and 128-bit vector
7751         types.  Allow vector types without vector modes.
7752         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
7753         without vector modes like BLKmode.
7754         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
7755         BLKmode.  Avoid unsupported vector modes or TImode moves for
7756         non-TARGET_NEON.
7757         (aapcs_vfp_allocate_return_reg): Likewise.
7758         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
7759         V8QImode if TARGET_NEON || TARGET_IWMMXT.
7760
7761         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
7762
7763         * config/arm/arm.c (arm_handle_pcs_attribute): New.
7764         (arm_get_pcs_model): Pass attribute arguments to
7765         arm_pcs_from_attribute.
7766         (arm_init_cumulative_args): Use base AAPCS for conversions from
7767         floating-point types to DImode.
7768         (arm_attribute_table): Add pcs attribute.
7769         (arm_handle_pcs_attribute): New.
7770         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
7771         conversions from floating-point types to DImode, also declare them
7772         to use base AAPCS and declare functions they call to use base
7773         AAPCS and their RTABI names.
7774
7775         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
7776
7777         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
7778         -mfloat-abi=hard not being supported for VFP.
7779
7780         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
7781
7782         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
7783         SYMBOL_REF to hard_libcall_value.
7784
7785         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
7786             Richard Earnshaw  <rearnsha@arm.com>
7787
7788         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
7789         has been put on the stack, all remaining co-processory arguments for
7790         that co-processor also go on the stack.
7791
7792         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
7793
7794         * config/arm/arm.c (arm_return_in_memory): Handle returning
7795         vectors of suitable size in registers also for AAPCS case.
7796
7797         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
7798
7799         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
7800
7801         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
7802
7803         ARM Hard-VFP calling convention
7804         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
7805         * target.h (gcc_target): Add libcall_value to table of call hooks.
7806         * targhooks.h (default_libcall_value): Default implementation.
7807         * targhooks.c (default_libcall_value): Likewise.
7808         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
7809         * optabs.c (expand_unop): Use it.
7810         * expr.h (hard_libcall_value): Pass the function RTX through.
7811         * calls.c (emit_library_call_value_1): Update call to
7812         hard_libcall_value.
7813         * explow.c (hard_libcall_value): Use new target hook.
7814         * testsuite/lib/target-supports.exp
7815         (check_effective_target_arm_hard_vfp_ok): New hook.
7816         (check_effective_target_arm_neon_ok): Improve test for neon
7817         availability.
7818         * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
7819         * config/arm/arm.c: Include cgraph.h
7820         (TARGET_FUNCTION_VALUE): Override default hook.
7821         (arm_pcs_default): New variable.
7822         (arm_override_options): Don't fault hard calling convention with VFP.
7823         Add support for AAPCS variants.
7824         (arm_function_value): Make static.  Handle AAPCS variants.
7825         (arm_libcall_value): New function.
7826         (arm_apply_result_size): Handle VFP registers in results.
7827         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
7828         conventions.
7829         (pcs_attribute_args): New variable.
7830         (arm_pcs_from_attribute): New function.
7831         (arm_get_pcs_model): New function.
7832         (aapcs_vfp_cum_init): New function.
7833         (aapcs_vfp_sub_candidate): New function.
7834         (aapcs_vfp_is_return_candidate): New function.
7835         (aapcs_vfp_is_call_candidate): New function.
7836         (aapcs_vfp_allocate): New function.
7837         (aapcs_vfp_allocate_return_reg): New function.
7838         (aapcs_vfp_advance): New function.
7839         (aapcs_cp_arg_layout): New variable.
7840         (aapcs_select_call_coproc): New function.
7841         (aapcs_select_return_coproc): New function.
7842         (aapcs_allocate_return_reg): New function.
7843         (aapcs_libcall_value): New function.
7844         (aapcs_layout_arg): New function.
7845         (arm_init_cumulative_args): Initialize AAPCS args data.
7846         (arm_function_arg): Handle AAPCS variants using new interface.
7847         (arm_arg_parital_bytes): Likewise.
7848         (arm_function_arg_advance): New function.
7849         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
7850         calling conventions.
7851         (arm_setup_incoming_varargs): Handle new AAPCS args data.
7852         * arm.h (NUM_VFP_ARG_REGS): Define.
7853         (LIBCALL_VALUE): Update.
7854         (FUNCTION_VALUE): Delete.
7855         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
7856         (arm_pcs): New enum.
7857         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
7858         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
7859         (FUNCTION_ARG_REGNO_P): Add VFP regs.
7860         * arm-protos.h (arm_function_arg_advance): Add.
7861         (aapcs_libcall_value): Add.
7862         (arm_function_value): Delete.
7863
7864 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
7865             H.J. Lu  <hongjiu.lu@intel.com>
7866
7867         PR target/40957
7868         * config/i386/i386.c (standard_sse_mode_p): Remove.
7869         (standard_sse_constant_p): Return 2 for integer mode
7870         vector_all_ones_operand when SSE2 is enabled.
7871         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
7872         (ix86_expand_vector_move): Do not check for negative values from
7873         standard_sse_constant_p.
7874
7875 2009-08-06  Richard Guenther  <rguenther@suse.de>
7876
7877         * tree-ssa.c (useless_type_conversion_p_1): Make function and
7878         array type comparisons frontend independent.
7879         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
7880         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
7881         out array reference lower bound and element size operands.
7882         (ao_ref_init_from_vn_reference): Properly compute the offset
7883         for ARRAY_RANGE_REF.
7884         (vn_reference_fold_indirect): Fill out array reference lower
7885         bound and element size operands.
7886         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
7887         a non gimple valued reference operand which can happen for
7888         array reference lower bound or element size.
7889         (create_component_ref_by_pieces_1): Properly generate the
7890         element size operand for array references.
7891
7892 2009-08-06  Richard Guenther  <rguenther@suse.de>
7893
7894         PR tree-optimization/40964
7895         * tree.c (iterative_hash_host_wide_int): Export.
7896         * tree.h (iterative_hash_host_wide_int): Declare.
7897         * tree-ssa-structalias.c (heapvar_map): New struct.
7898         (heapvar_map_eq): New function.
7899         (heapvar_map_hash): Likewise.
7900         (heapvar_lookup): Adjust.
7901         (heapvar_insert): Likewise.
7902         (make_constraint_from_heapvar): Allow multiple heap variables
7903         per decl at different offsets.
7904         (init_alias_heapvars): Adjust.
7905
7906 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
7907
7908         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
7909         * mips_output_sync_loop (mips_output_sync_loop): Only emit
7910         trailing sync if TARGET_SYNC_AFTER_SC.
7911
7912 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
7913
7914         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
7915         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
7916         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
7917         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
7918         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
7919         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
7920         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
7921         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
7922         test_and_set_12): Rewrite calls to mips_output_sync_loop.
7923         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
7924         the prototype declaration match the definition.
7925         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
7926         instructions explicitly.  Add barrier_before and operands
7927         parameters.
7928         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
7929         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
7930         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
7931         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
7932         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
7933         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
7934
7935 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
7936
7937         * tree-ssa-alias.c: Fix intervals to use [) syntax.
7938
7939 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
7940             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
7941
7942         PR target/40906
7943         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
7944         source operand.
7945
7946 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
7947
7948         PR rtl-optimization/40924
7949         * dse.c (canon_address): Before calling cselib_expand_value_rtx
7950         make sure canon_rtx (mem_address) isn't simpler than
7951         canon_rtx (expanded_mem_address).
7952
7953 2009-08-05  Li Feng  <nemokingdom@gmail.com>
7954
7955         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
7956         for each poly_bb_p.
7957         (build_scop_drs): Build alias set for each SCoP.
7958
7959 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
7960
7961         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
7962         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
7963         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
7964         (MIPS_ARCH_FLOAT_SPEC): Likewise.
7965         (BASE_DRIVER_SELF_SPECS): Likewise.
7966
7967 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
7968
7969         * tree-ssa-alias.c: Fix some comment typos.
7970
7971 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
7972
7973         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
7974         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
7975
7976 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
7977
7978         PR c/39902
7979         * simplify-rtx.c (simplify_binary_operation_1): Disable
7980         simplifications for decimal float operations.
7981
7982 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
7983
7984         PR middle-end/40943
7985         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
7986         operand of INDIRECT_REF.
7987
7988 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
7989
7990         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
7991         constants referencing TLS symbols.
7992
7993 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7994
7995         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
7996         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
7997
7998 2009-08-03  Richard Guenther  <rguenther@suse.de>
7999
8000         * tree.c (make_vector_type): Build a main variant first,
8001         get the canonical one and then build the variant.
8002         * tree-ssa.c (useless_type_conversion_p_1): Handle
8003         fixed-point types.
8004         (useless_type_conversion_p): Conversions to pointers to
8005         incomplete record types are useless.
8006
8007 2009-08-03  Richard Guenther  <rguenther@suse.de>
8008
8009         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
8010         file will be created.
8011         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
8012         * toplev.c (compile_file): Adjust comment.
8013
8014 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
8015
8016         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
8017         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
8018         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8019         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8020         (sh_promote_function_mode): Fix typo.
8021
8022 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
8023
8024         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
8025
8026 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8027
8028         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
8029         declaration arguments.
8030
8031 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
8032
8033         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
8034         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
8035         (ix86_split_ashl): Ditto.
8036         (ix86_expand_vector_init_one_nonzero): Ditto.
8037         (ix86_expand_vector_set): Ditto.
8038         (ix86_expand_reduc_v4sf): Ditto.
8039
8040 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
8041
8042         * explow.c (promote_function_mode): Remove assert.
8043         * config/sh/sh.c (sh_promote_function_mode): Declare.
8044
8045 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8046
8047         * config/pa/pa.c (pa_promote_function_mode): Declare.
8048         Change to static.  Fix promote_mode call.
8049
8050         * gthr-dce.h (CONST_CAST2): Define if not defined.
8051         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
8052
8053         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
8054
8055 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
8056
8057         * expr.c (store_constructor): Use promote_decl_mode.  Remove
8058         now write-only variable unsignedp.
8059         (expand_expr_real_1): Use promote_decl_mode.
8060         * expr.h (promote_function_mode, promote_decl_mode): New.
8061         (promote_mode): Remove last argument.
8062         * function.c (assign_temp): Drop last argument of promote_mode.
8063         (assign_parm_find_data_types): Use promote_function_mode.
8064         (assign_parm_setup_reg): Likewise.
8065         (expand_function_end): Use promote_function_mode.
8066         * calls.c (initialize_argument_information): Use promote_function_mode.
8067         (precompute_arguments): Use promote_mode instead of checking if
8068         only PROMOTE_FUNCTION_MODE is defined.
8069         (expand_call): When making sibcall decisions, use promote_function_mode.
8070         Below, remove an if for targetm.calls.promote_function_return and
8071         and use promote_function_mode.
8072         (emit_library_call_value_1): Use promote_function_mode, fix bug
8073         where promote_mode was passed FOR_CALL == 0 for a return value in an
8074         assertion.
8075         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
8076         * explow.c (promote_function_mode, promote_decl_mode): New.
8077         (promote_mode): Keep only the FOR_CALL == 0 case.
8078         * combine.c (setup_incoming_promotion): Remove test of
8079         promote_function_args.  Use promote_function_mode.
8080         * stmt.c (expand_value_return): Use promote_decl_mode.
8081         (expand_decl): Use promote_decl_mode.
8082
8083         * expr.c (store_constructor): Use promote_decl_mode.  Remove
8084         now write-only variable unsignedp.
8085         (expand_expr_real_1): Use promote_decl_mode.
8086         * expr.h (promote_function_mode, promote_decl_mode): New.
8087         (promote_mode): Remove last argument.
8088         * function.c (assign_temp): Drop last argument of promote_mode.
8089         (assign_parm_find_data_types): Use promote_function_mode.
8090         (assign_parm_setup_reg): Likewise.
8091         (expand_function_end): Use promote_function_mode.
8092         * calls.c (initialize_argument_information): Use promote_function_mode.
8093         (precompute_arguments): Use promote_mode instead of checking if
8094         only PROMOTE_FUNCTION_MODE is defined.
8095         (expand_call): When making sibcall decisions, use promote_function_mode.
8096         Below, remove an if for targetm.calls.promote_function_return and
8097         and use promote_function_mode.
8098         (emit_library_call_value_1): Use promote_function_mode, fix bug
8099         where promote_mode was passed FOR_CALL == 0 for a return value in an
8100         assertion.
8101         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
8102         * explow.c (promote_function_mode, promote_decl_mode): New.
8103         (promote_mode): Keep only the FOR_CALL == 0 case.
8104         * combine.c (setup_incoming_promotion): Remove test of
8105         promote_function_args.  Use promote_function_mode.
8106         * stmt.c (expand_value_return): Use promote_decl_mode.
8107         (expand_decl): Use promote_decl_mode.
8108
8109         * explow.c (promote_function_mode): Just call the target hook.
8110         * targhooks.c (default_promote_function_mode,
8111         default_promote_function_mode_always_promote): New.
8112         * targhooks.h (default_promote_function_mode,
8113         default_promote_function_mode_always_promote): Declare.
8114         * target.h (promote_function_args, promote_function_return): Remove.
8115         (promote_function_mode): New.
8116         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
8117         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8118         (TARGET_PROMOTE_FUNCTION_MODE): New.
8119         (TARGET_CALLS): Adjust.
8120         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
8121         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
8122
8123         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
8124         * config/s390/s390.c (s390_promote_function_mode): ... here,
8125         with pointer handling.
8126         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8127         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8128
8129         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
8130         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
8131         with pointer handling.
8132         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8133         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8134
8135         * config/sh/sh-protos.h (sh_promote_function_mode): New.
8136         * config/sh/sh.c (sh_promote_function_mode): New.
8137         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8138         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8139
8140         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
8141         * config/cris/cris.c (cris_promote_function_mode): ... here.
8142         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8143         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8144
8145         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
8146         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
8147         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8148         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8149
8150         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
8151         * config/arm/arm.c (arm_promote_function_mode): ... here, without
8152         complex type handling.
8153         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8154         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8155
8156         * config/pa/pa.c (pa_promote_function_mode): New.
8157         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8158         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8159
8160         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
8161         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8162         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
8163         * config/xtensa/xtensa.c: Likewise.
8164         * config/stormy16/stormy16.c: Likewise.
8165         * config/iq2000/iq2000.c: Likewise.
8166         * config/rs6000/rs6000.c: Likewise.
8167         * config/picochip/picochip.c: Likewise.
8168         * config/arc/arc.c: Likewise.
8169         * config/mcore/mcore.c: Likewise.
8170         * config/score/score.c: Likewise.
8171         * config/mips/mips.c: Likewise.
8172         * config/bfin/bfin.c: Likewise.
8173         * config/ia64/ia64.c: Likewise (disabled though).
8174
8175         * config/frv/frv.h: Remove pointless remark.
8176
8177         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
8178         TARGET_PROMOTE_FUNCTION_ARGS,
8179         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
8180         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
8181
8182 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
8183
8184         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
8185         -floop-parallelize-all.
8186         * toplev.c (process_options): Rename flag_graphite_force_parallel to
8187         flag_loop_parallelize_all.
8188         * tree-ssa-loop.c (gate_graphite_transforms): Same.
8189         * graphite.c (graphite_transform_loops): Same.
8190         * common.opt: Same.
8191         * graphite-poly.c (apply_poly_transforms): Same.
8192
8193 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
8194
8195         PR tree-optimization/40914
8196         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
8197         if set, then check the delta field of the PMF record.
8198         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
8199         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
8200         call is stored in the delta.
8201
8202 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
8203
8204         * config/mips/mips.md (*clear_upper32_dext): New pattern.
8205
8206 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
8207
8208         * config/i386/bsd.h (ASM_BYTE): New define.
8209         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
8210         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
8211         .byte.  Use fputs or putc instead of fprintf where appropriate.
8212         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
8213         fputs or putc instead of fprintf where appropriate.
8214         * config/i386/i386elf.h: Ditto.
8215         * config/i386/sysv4.h: Ditto.
8216
8217         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
8218         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
8219         (*tls_global_dynamic_64): Ditto.
8220
8221 2009-07-31  Christian Bruel  <christian.bruel@st.com>
8222
8223         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
8224
8225 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8226
8227         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
8228         Remove dead code for MINUS.
8229
8230 2009-07-31  Anthony Green  <green@moxielogic.com>
8231
8232         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
8233         $r12 in prologue.
8234         (moxie_expand_epilogue): Ditto for epilogue.
8235         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
8236         incoming arguments.
8237         (moxie_function_arg): Ditto.
8238         (moxie_pass_by_reference): Ditto.
8239         (moxie_arg_partial_bytes): Ditto.
8240         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
8241         (FUNCTION_ARG_ADVANCE) Ditto.
8242         (REG_PARM_STACK_SPACE) Ditto.
8243         (FUNCTION_ARG_REGNO_P) Dito.
8244
8245         * config.gcc: Add moxie linux config support.
8246         * gcc/config/moxie/uclinux.h: New file.
8247
8248 2009-07-31  DJ Delorie  <dj@redhat.com>
8249
8250         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
8251         (UNSPECV_SP_SWITCH_E): New.
8252         (sp_switch_1): Change to an unspec.
8253         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
8254         replace $r15.
8255         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
8256         reference the new stack's address
8257
8258 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8259
8260         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
8261         graphite-clast-to-gimple.o, graphite-dependences.o,
8262         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
8263         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
8264         (graphite-blocking.o,
8265         graphite-clast-to-gimple.o, graphite-dependences.o,
8266         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
8267         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
8268         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
8269         * cfgloop.h (struct loop): Add can_be_parallel field.
8270         * common.opt (fgraphite-identity): Moved up.
8271         (fgraphite-force-parallel): New flag.
8272         * graphite.c: Rewrite.
8273         * graphite.h: Rewrite.
8274         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
8275         after Graphite.
8276         * toplev.c (graphite_out_file): New file descriptor.
8277         (graphite_in_file): New.
8278         (process_options): flag_graphite_force_parallel cannot be used without
8279         Graphite.
8280         * tree-ssa-loop.c: Include toplev.h.
8281         (gate_graphite_transforms): Enable flag_graphite for
8282         flag_graphite_force_parallel.
8283
8284 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8285
8286         * ChangeLog.graphite: New.
8287         * graphite-blocking.c: New.
8288         * graphite-clast-to-gimple.c: New.
8289         * graphite-clast-to-gimple.h: New.
8290         * graphite-dependences.c: New.
8291         * graphite-dependences.h: New.
8292         * graphite-interchange.c: New.
8293         * graphite-poly.c: New.
8294         * graphite-poly.h: New.
8295         * graphite-ppl.c: New.
8296         * graphite-ppl.h: New.
8297         * graphite-scop-detection.c: New.
8298         * graphite-scop-detection.h: New.
8299         * graphite-sese-to-poly.c: New.
8300         * graphite-sese-to-poly.h: New.
8301         * sese.c: New.
8302         * sese.h: New.
8303
8304 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8305
8306         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
8307         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
8308
8309 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8310
8311         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
8312         (scev_is_linear_expression): Return false if the evolution is not
8313         affine multivariate.
8314
8315 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8316
8317         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
8318         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
8319
8320 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8321
8322         * tree-data-ref.c (debug_data_references): New.
8323         (debug_data_reference): New.
8324         * tree-data-ref.h (debug_data_references): Declared.
8325         (debug_data_reference): Declared.
8326
8327 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8328
8329         * tree-data-ref.c (stmt_simple_memref_p: Removed.
8330         * tree-data-ref.h (scop_p): Removed.
8331         (struct data_reference): Remove field scop.
8332         (DR_SCOP): Removed.
8333         (stmt_simple_memref_p): Removed.
8334
8335 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8336
8337         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
8338         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
8339         basic block empty.
8340
8341 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8342
8343         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
8344
8345 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8346
8347         * doc/invoke.texi (-fgraphite-identity): Documented.
8348
8349 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8350
8351         * tree-scalar-evolution.c: Fix comment.
8352         (instantiate_scev_1): Return unknow from scev instantiation if the
8353         result is not above instantiate_below.
8354
8355 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8356
8357         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
8358         static anymore.  Instantiate the symbols that may have been introduced
8359         by chrec_apply.
8360         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
8361         Declared.
8362
8363 2009-07-30  DJ Delorie  <dj@redhat.com>
8364
8365         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
8366         .vliw directive to VLIW sections.
8367
8368 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8369
8370         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
8371         New variables.
8372         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
8373         (AUTOHEADER): New variable.
8374         ($(srcdir)/cstamp-h.in): Use it.
8375
8376 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
8377             Pat Haugen  <pthaugen@us.ibm.com>
8378             Revital Eres <ERES@il.ibm.com>
8379
8380         * config/rs6000/vector.md (VEC_F): Add VSX support.
8381         (VEC_A): Ditto.
8382         (VEC_N): Ditto.
8383         (mov<mode>): Ditto.
8384         (vector_load_<mode>): Ditto.
8385         (vector_store_<mode>): Ditto.
8386         (vector GPR move split): Ditto.
8387         (vec_reload_and_plus_<mptrsize>): Ditto.
8388         (vec_reload_and_reg_<mptrsize>): Ditto.
8389         (add<mode>3): Ditto.
8390         (sub<mode>3): Ditto.
8391         (mul<mode>3): Ditto.
8392         (neg<mode>2): Ditto.
8393         (abs<mode>2): Ditto.
8394         (smin<mode>3): Ditto.
8395         (smax<mode>3): Ditto.
8396         (vector_eq<mode>): Ditto.
8397         (vector_gt<mode>): Ditto.
8398         (vector_ge<mode>): Ditto.
8399         (vector_gtu<mode>): Ditto.
8400         (vector_select_<mode>_uns): Ditto.
8401         (vector_eq_<mode>_p): Ditto.
8402         (vector_gt_<mode>_p): Ditto.
8403         (vector_ge_<mode>_p): Ditto.
8404         (vector_gtu_<mode>_p): Ditto.
8405         (cr6_test_for_zero): Ditto.
8406         (cr6_test_for_zero_reverse): Ditto.
8407         (cr6_test_for_lt): Ditto.
8408         (cr6_test_for_lt_reverse): Ditto.
8409         (xor<mode>3): Ditto.
8410         (ior<mode>3): Ditto.
8411         (and<mode>3): Ditto.
8412         (one_cmpl<mode>2): Ditto.
8413         (nor<mode>2): Ditto.
8414         (andc<mode>2): Ditto.
8415         (float<VEC_int<mode>2): Ditto.
8416         (unsigned_float<VEC_int><mode>2): Ditto.
8417         (fix_trunc<mode><VEC_int>2): Ditto.
8418         (fixuns_trunc<mode><VEC_int>2): Ditto.
8419         (vec_init<mode>):
8420         (vec_set<mode>): Ditto.
8421         (vec_extract<mode>): Ditto.
8422         (vec_interleave_highv4sf): Ditto.
8423         (vec_interleave_lowv4sf): Ditto.
8424         (vec_realign_load_<mode>): Ditto.
8425         (vec_shl_<mode>): Ditto.
8426         (vec_shr_<mode>): Ditto.
8427         (div<mode>3): New patterns for VSX.
8428         (vec_interleave_highv2df): Ditto.
8429         (vec_interleave_lowv2df): Ditto.
8430         (vec_pack_trunc_v2df): Ditto.
8431         (vec_pack_sfix_trunc_v2df): Ditto.
8432         (vec_pack_ufix_trunc_v2df): Ditto.
8433         (vec_unpacks_hi_v4sf): Ditto.
8434         (vec_unpacks_lo_v4sf): Ditto.
8435         (vec_unpacks_float_hi_v4si): Ditto.
8436         (vec_unpacks_float_lo_v4si): Ditto.
8437         (vec_unpacku_float_hi_v4si): Ditto.
8438         (vec_unpacku_float_lo_v4si): Ditto.
8439         (movmisalign<mode>): Ditto.
8440         (vector_ceil<mode>2): New patterns for vectorizing math library.
8441         (vector_floor<mode>2): Ditto.
8442         (vector_btrunc<mode>2): Ditto.
8443         (vector_copysign<mode>3): Ditto.
8444
8445         * config/rs6000/predicates.md (easy_vector_constant_msb): New
8446         predicate for setting the high bit in each word, used for copysign.
8447
8448         * config/rs6000/ppc-asm.h (f19): Whitespace.
8449         (f32-f63): Define if VSX.
8450         (v0-v31): Define if Altivec.
8451         (vs0-vs63): Define if VSX.
8452
8453         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
8454
8455         * config/rs6000/power7.md: New file, provide tuning parameters for
8456         -mcpu=power7.
8457
8458         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
8459         (rs6000_cpu_cpp_builtins): Ditto.
8460         (altivec_overloaded_builtins): Ditto.
8461         (altivec_resolve_overloaded_builtin): Ditto.
8462
8463         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
8464         debug switch to disable vectorizing simple math builtin
8465         functions.
8466
8467         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
8468         Vectorize simple math builtin functions.
8469         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
8470         hook to vectorize math builtins.
8471         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
8472         (rs6000_builtin_conversion): Add VSX/power7 support.
8473         (rs6000_builtin_vec_perm): Ditto.
8474         (vsplits_constant): Add support for loading up a vector constant
8475         with just the high bit set in each part.
8476         (rs6000_expand_vector_init): Add VSX/power7 support.
8477         (rs6000_expand_vector_set): Ditto.
8478         (rs6000_expand_vector_extract): Ditto.
8479         (rs6000_emit_move): Ditto.
8480         (bdesc_3arg): Ditto.
8481         (bdesc_2arg): Ditto.
8482         (bdesc_1arg): Ditto.
8483         (rs6000_expand_ternop_builtin): Ditto.
8484         (altivec_expand_builtin): Ditto.
8485         (rs6000_expand_unop_builtin): Ditto.
8486         (rs6000_init_builtins): Ditto.
8487         (altivec_init_builtins): Ditto.
8488         (builtin_function_type): Ditto.
8489         (rs6000_common_init_builtins): Ditto.
8490         (rs6000_handle_altivec_attribute); Ditto.
8491         (rs6000_mangle_type): Ditto.
8492         (rs6000_vector_mode_supported_p): Ditto.
8493         (rs6000_mode_dependent_address): Altivec addresses with AND -16
8494         are mode dependent.
8495
8496         * config/rs6000/vsx.md: New file for VSX support.
8497
8498         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
8499         identifing values with just the most significant bit set.
8500         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
8501         vectorized builtins.
8502
8503         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
8504         (UNSPEC_VRFIM): Delete.
8505         (splitter for loading up vector with most significant bit): New
8506         splitter for vectorizing copysign.
8507         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
8508         vectorizing simple math functions.
8509         (altivec_vrfip): Add support for vectorizing simple math functions.
8510         (altivec_vrfim): Ditto.
8511         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
8512
8513         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
8514         (power7.md, vsx.md): Include for power7 support.
8515         (copysigndf3): Use VSX instructions if -mvsx.
8516         (negdf2_fpr): Ditto.
8517         (absdf2_fpr): Ditto.
8518         (nabsdf2_fpr): Ditto.
8519         (adddf3_fpr): Ditto.
8520         (subdf3_fpr): Ditto.
8521         (muldf3_fpr): Ditto.
8522         (divdf3_fpr): Ditto.
8523         (fix_truncdfdi2_fpr): Ditto.
8524         (cmpdf_internal1): Ditto.
8525         (fred, fred_fpr): Convert into expander/insn to add VSX support.
8526         (btruncdf2, btruncdf2_fpr): Ditto.
8527         (ceildf2, ceildf2_fpr): Ditto.
8528         (floordf2, floordf2_fpr): Ditto.
8529         (floatdidf2, floatdidf2_fpr): Ditto.
8530         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
8531         (fmsubdf4_fpr): Ditto.
8532         (fnmadddf4_fpr_1): Ditto.
8533         (fnmadddf4_fpr_2): Ditto.
8534         (fnmsubdf4_fpr_1): Ditto.
8535         (fnmsubdf4_fpr_2): Ditto.
8536         (fixuns_truncdfdi2): Add expander for VSX support.
8537         (fix_truncdfdi2): Ditto.
8538         (fix_truncdfsi2): Ditto.
8539         (ftruncdf2): Ditto.
8540         (btruncsf2): Whitespace.
8541         (movdf_hardfloat32): Add support for VSX registers.
8542         (movdf_softfloat32): Ditto.
8543         (movdf_hardfloat64): Ditto.
8544         (movdf_hardfloat64_mfpgpr): Ditto.
8545         (movdf_softfloat64): Ditto.
8546         (movti splitters): Add check for vector registers supporting
8547         TImode in the future.
8548         (bpermd): Add power7 bpermd instruction.
8549
8550         * config/rs6000/altivec.h (vec_div): Define if VSX.
8551         (vec_mul): Ditto.
8552         (vec_msub): Ditto.
8553         (vec_nmadd): Ditto.
8554         (vec_nearbyint): Ditto.
8555         (vec_rint): Ditto.
8556         (vec_sqrt): Ditto.
8557         (all predicates): Use the generic builtin function, and not the V4SF
8558         specific function so that the predicates will work with VSX's V2DF.
8559         (vec_all_*): Ditto.
8560         (vec_any_*): Ditto.
8561
8562         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
8563         Document new VSX functions and types.
8564
8565         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
8566         switches.
8567
8568         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
8569         "wa", and "j" constraints.  Modify "v" to talk about Altivec
8570         instead of just vector.
8571
8572 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
8573
8574         PR debug/26475
8575         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
8576         location for phi arguments.
8577         (rewrite_update_phi_arguments): Find locations for reaching defs.
8578         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
8579         Add location to add_phi_arg calls.
8580         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
8581         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
8582         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
8583         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
8584         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
8585         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
8586         * tree-phinodes.c (make_phi_node): Initialize location.
8587         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
8588         (add_phi_arg): Add location parameter.
8589         (remove_phi_arg_num): Move location when moving phi argument.
8590         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
8591         location.
8592         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
8593         slpeel_update_phi_nodes_for_guard1,
8594         slpeel_update_phi_nodes_for_guard2,
8595         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
8596         vect_loop_versioning): Set locations.
8597         * tree-parloops.c (create_phi_for_local_result,
8598         transform_to_exit_first_loop, create_parallel_loop): Add locations.
8599         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
8600         * tree-vect-loop.c (get_initial_def_for_induction,
8601         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
8602         locations.
8603         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
8604         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
8605         (gimple_phi_arg_set_location): New.  Set locus.
8606         (gimple_phi_arg_has_location): New.  Check for locus.
8607         (redirect_edge_var_map_location): New.  Return locus from var_map.
8608         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
8609         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
8610         combining PHI arguments.
8611         (cond_store_replacement): Set location.
8612         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
8613         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
8614         scop_add_exit_phis_edge): Add locations.
8615         * tree-cfgcleanup.c (remove_forwarder_block,
8616         remove_forwarder_block_with_phi): Add locations.
8617         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
8618         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
8619         locations.
8620         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
8621         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
8622         flush_pending_stmts): Add source location.
8623         * lambda-code.c (perfect_nestify): Maintain location stack with argument
8624         stack to preserve locations.
8625         * tree-vect-stmts.c (vectorizable_load): Add location.
8626         * tree-inline.c (copy_phis_for_bb): Copy locus.
8627         (setup_one_parameter): Add call locus to inlined parameter stmts.
8628         (initialize_inlined_parameters): Pass in call location as parameter
8629         assignment locus.
8630         (tree_function_versioning): Pass location to setup_one_parameter.
8631         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
8632         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
8633         copy and edge lists.
8634         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
8635         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
8636         locus parameter and override the stmt default if provided.
8637         (new_elim_graph, clear_elim_graph, delete_elim_graph,
8638         elim_graph_add_edge, elim_graph_remove_succ_edge,
8639         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
8640         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
8641         eliminate_phi):  Add locus info in elimination graph for each edge and
8642         value copy.
8643         (insert_backedge_copies): Copy locus if present.
8644         * tree-flow.h (struct _edge_var_map): Add locus field.
8645         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
8646         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
8647         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
8648         locations.
8649         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
8650
8651 2009-07-30  Martin Jambor  <mjambor@suse.cz>
8652
8653         PR tree-optimization/40570
8654         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
8655         use inlining loops.
8656
8657 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
8658
8659         * ssa-loop-manip.c: Include langhooks.h.
8660         (rewrite_phi_with_iv): New.
8661         (rewrite_all_phi_nodes_with_iv): New.
8662         (canonicalize_loop_ivs): Move here from tree-parloops.c.
8663         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
8664         * tree-parloops.c (loop_parallel_p): Move out all conditions
8665         except dependency check.
8666         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
8667         (gen_parallel_loop): Call canonicalize_loop_ivs without
8668         reduction_list argument.
8669         (build_new_reduction): New.
8670         (gather_scalar_reductions): New.
8671         (try_get_loop_niter): New.
8672         (try_create_reduction_list): New.
8673         (parallleize_loops): Change the parallel conditions check.
8674         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
8675         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
8676
8677 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
8678
8679         * opt-functions.awk (opt_args): Allow argument to be enclosed in
8680         curly braces.
8681         * doc/options.texi (Option properties):  Mention new quoting syntax.
8682
8683 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
8684
8685         * config/alpha/alpha.c (alpha_start_function):
8686         Handle VMS_DEBUG_MAIN_POINTER
8687         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
8688         * doc/invoke.texi: Document -mdebug-main switch.
8689
8690 2009-07-29  Richard Henderson  <rth@redhat.com>
8691
8692         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
8693         (cgraph_create_edge_including_clones): Likewise.
8694         * tree-inline.c (copy_bb): Operate on the correct edges
8695         when updating the callgraph.
8696
8697 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
8698
8699         * config/alpha/vms-cc.c: Deleted.
8700         * config/alpha/vms-ld.c: Deleted.
8701         * config/alpha/t-vms64: Moved to config/vms
8702         * config/alpha/vms-crt0-64.c: Moved to config/vms
8703         * config/alpha/vms-crt0.c: Moved to config/vms
8704         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
8705         * config/alpha/vms-psxcrt0.c: Moved to config/vms
8706         * config/alpha/xm-vms.h: Moved to config/vms
8707         * config/alpha/x-vms: Moved to config/vms
8708         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
8709         config/vms/t-vms.
8710         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
8711         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
8712         (version): Set.
8713         * config/vms/t-vms64: Moved here from config/alpha
8714         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
8715         (argc,argv,envp): Enforce 32bit malloc'ing.
8716         * config/vms/vms-psxcrt0-64.c: Likewise.
8717         * config/vms/vms-crt0.c: Moved here from config/alpha.
8718         * config/vms/vms-psxcrt0.c: Likewise.
8719         * config/vms/vms-crtl-64.h: New file.
8720         * config/vms/vms-crtl.h: New file.
8721         * config/vms/vms.opt: New file.
8722         * config/vms/xm-vms64.h: New file.
8723         * config/vms/xm-vms.h: Moved here from config/alpha.
8724         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
8725         Set.
8726         * config/vms/x-vms: Moved here from config/alpha.
8727         (version, VMS_EXTRA_PARTS): Moved to t-vms.
8728         (vms-ld.o, vms-cc.o): Removed.
8729         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
8730
8731 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
8732
8733         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
8734         correct stack (obvious VMS fix).
8735
8736 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
8737
8738         * dwarf2out.c (output_file_names): Output VMS style file name, size,
8739         date, version info if VMS_DEBUGGING_INFO defined.
8740         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
8741         size, date calculating code moved here.
8742
8743 2009-07-29  Paul Brook  <paul@codesourcery.com>
8744
8745         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
8746         do_push/do_pop.
8747
8748 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
8749
8750         PR target/40577
8751         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
8752         to DImode when generating insq_le insn.
8753
8754 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
8755
8756         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
8757         New macro set for VMS_DEBUGGGING_INFO.
8758         (AT_string_form): Use it.
8759
8760 2009-07-28  DJ Delorie  <dj@redhat.com>
8761
8762         * config/mep/mep.c (vtext_section): New.
8763         (vftext_section): New.
8764         (ftext_section): New.
8765         (mep_select_section): Add support for functions.
8766         (mep_unique_section): Likewise.
8767         (mep_asm_init_sections): Likewise.
8768         (mep_encode_section_info): Remove it from here.
8769
8770         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
8771
8772 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
8773
8774         * tree.h (TREE_DEPRECATED): Document it is used for types too.
8775         (TYPE_VECTOR_OPAQUE): Use default_def_flag
8776
8777 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
8778
8779         * dwarf2out.c (output_file_names): Test new macro
8780         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
8781         (add_comp_dir_attribute): Likewise.
8782
8783 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
8784
8785         * config/i386/mingw-w64.h (LINK_SPEC): Add
8786         separating space between commands.
8787
8788 2009-07-28  Jan Hubicka  <jh@suse.cz>
8789
8790         PR tree-optimization/40759
8791         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
8792         for renaming.
8793
8794 2009-07-27  DJ Delorie  <dj@redhat.com>
8795
8796         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
8797         types are dword-aligned.
8798         (mep_expand_va_start): Likewise.
8799
8800 2009-07-27  Olivier Hainque  <hainque@adacore.com>
8801             Douglas B Rupp  <rupp@gnat.com>
8802
8803         * convert.c (convert_to_pointer): Don't assume the target
8804         pointer type is POINTER_SIZE long. Fetch its precision instead.
8805
8806 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
8807
8808         * system.h (fopen): Undefine if macro.
8809
8810 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
8811
8812         * dwarf2out.c (output_cfi_p): Removed.
8813         (output_cfis): New function.
8814         (output_fde): New function, split from output_call_frame_info.
8815         (output_call_frame_info): Use it.
8816         (dwarf2out_switch_text_section): Use output_cfis.
8817
8818 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
8819
8820         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
8821         TARGET_BI_ARCH is specified without enabling SJLJ.
8822         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
8823         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
8824
8825 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
8826
8827         * arm.md (negdi2): Use DImode if forcing a value into a register.
8828
8829 2009-07-26  Ira Rosen  <irar@il.ibm.com>
8830
8831         PR tree-optimization/40801
8832         * tree-vect-stmts.c (vectorizable_call): Get previous copy
8833         of vector operand from the previous copy of vector statement.
8834         Pass the correct definition type value to
8835         vect_get_vec_def_for_stmt_copy().
8836
8837 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8838
8839         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
8840         const char ** conversion.
8841
8842 2009-07-25 David Daney <ddaney@caviumnetworks.com>
8843
8844         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
8845         fancy_abort() if !ENABLE_ASSERT_CHECKING.
8846         (gcc_unreachable): Invoke __builtin_unreachable() if
8847         !ENABLE_ASSERT_CHECKING.
8848
8849 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
8850
8851         PR rtl-optimization/40445
8852         * emit-rtl.c (next_nonnote_insn_bb): New function.
8853         * rtl.h (next_nonnote_insn_bb): Declare new function.
8854         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
8855         with no successors that is the successor of the ENTRY_BLOCK.
8856         Continue from the top after removing an empty fallthrough block.
8857         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
8858         of next_nonnote_insn.
8859
8860 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
8861
8862         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
8863
8864 2009-07-25  Martin Jambor  <mjambor@suse.cz>
8865
8866         * c-common.c (c_common_attribute_table): New element for noclone.
8867         (handle_noclone_attribute): New function. Forward-declare.
8868         * tree-inline.c (tree_versionable_function_p): Check for noclone
8869         attribute.
8870         * doc/extend.texi (Labels as Values): Document need for noclone.
8871         (Function Attributes): Document noclone attribute.
8872
8873 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
8874
8875         PR rtl-optimization/34999
8876         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
8877         and dw_fde_switched_cold_to_hot fields.
8878         (output_cfi_p): New function.
8879         (output_call_frame_info): If fde->dw_fde_switched_sections,
8880         output 2 FDEs instead of one with corrupted header.
8881         (dwarf2out_do_cfi_startproc): New function.
8882         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
8883         and fde->dw_fde_switched_cold_to_hot.
8884         (dwarf2out_switch_text_section): Compute
8885         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
8886         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
8887         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
8888         Otherwise, compute fde->dw_fde_switch_cfi.
8889
8890 2009-07-24  Cary Coutant  <ccoutant@google.com>
8891
8892         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
8893
8894 2009-07-24  Cary Coutant  <ccoutant@google.com>
8895
8896         * cfghooks.c (split_block): Copy discriminator to new block.
8897         * tree-cfg.c (assign_discriminator): Check location of last
8898         instruction in block as well as first.
8899
8900 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
8901
8902         * config/i386/linux.c: Use fputs or putc instead of fprintf
8903         where appropriate.
8904         * config/i386/gas.h: Ditto.
8905         * config/i386/x86-64.h: Ditto.
8906         * config/i386/att.h: Ditto.
8907
8908 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8909
8910         * expmed.c (emit_store_flag): Use a recursive call to optimize the
8911         xor case.
8912
8913 2009-07-24  Martin Jambor  <mjambor@suse.cz>
8914
8915         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
8916         (ipa_push_func_to_list_1): Declare.
8917         (ipa_push_func_to_list): New function.
8918
8919         * ipa-prop.c (ipa_push_func_to_list_1): New function.
8920         (ipa_init_func_list): Call ipa_push_func_to_list_1.
8921         (ipa_push_func_to_list): Removed.
8922         (ipa_pop_func_from_list): Clear node_enqueued flag.
8923
8924 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
8925
8926         * config/s390/s390.c (override_options): Default
8927         max-unrolled-insns to 100 for z10 tuning.
8928
8929 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
8930
8931         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
8932         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
8933         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
8934         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
8935         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
8936         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
8937         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
8938
8939 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
8940
8941         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
8942         use default set in mingw32.h header.
8943         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
8944         64-bit /mingw/include path.
8945         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
8946         path.
8947
8948 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
8949
8950         PR rtl-optimization/40209
8951         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
8952
8953 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
8954
8955         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
8956         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
8957         with the rest of string where appropriate.  Use fputs or putc
8958         instead of fprintf where appropriate.
8959
8960 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
8961             Pat Haugen  <pthaugen@us.ibm.com>
8962             Revital Eres <ERES@il.ibm.com>
8963
8964         * config/rs6000/vector.md: New file.  Move most of the vector
8965         expander support here from altivec.md to allow for the VSX vector
8966         unit in the future.  Add support for secondary_reload patterns.
8967         Rewrite the patterns for vector comparison, and vector comparison
8968         predicate instructions so that the RTL expresses the desired
8969         behavior, instead of using unspec.
8970
8971         * config/rs6000/constraints.md ("f" constraint): Use
8972         rs6000_constraints to hold the precalculated register class.
8973         ("d" constraint): Ditto.
8974         ("wd" constraint): New constraint for VSX.
8975         ("wf" constraint): Ditto.
8976         ("ws" constraint): Ditto.
8977         ("wa" constraint): Ditto.
8978         ("wZ" constraint): Ditto.
8979         ("j" constraint): Ditto.
8980
8981         * config/rs6000/predicates.md (vsx_register_operand): New
8982         predicate for VSX.
8983         (vfloat_operand): New predicate for vector.md.
8984         (vint_operand): Ditto.
8985         (vlogical_operand): Ditto.
8986         (easy_fp_constant): If VSX, 0.0 is an easy constant.
8987         (easy_vector_constant): Add VSX support.
8988         (altivec_indexed_or_indirect_operand): New predicate for
8989         recognizing Altivec style memory references with AND -16.
8990
8991         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
8992         for vector secondary reload support.
8993         (rs6000_vector_reg_class): Delete, replacing it with
8994         rs6000_constraints.
8995         (rs6000_vsx_reg_class): Ditto.
8996         (rs6000_constraints): New array to hold the register classes of
8997         each of the register constraints that can vary at runtime.
8998         (builtin_mode_to_type): New static array for builtin function type
8999         creation.
9000         (builtin_hash_table): New static hash table for builtin function
9001         type creation.
9002         (TARGET_SECONDARY_RELOAD): Define target hook.
9003         (TARGET_IRA_COVER_CLASSES): Ditto.
9004         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
9005         registers are 128 bits if VSX memory reference instructions are used.
9006         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
9007         unit is being used.
9008         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
9009         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
9010         Print several of the scheduling related parameters.
9011         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
9012         rs6000_constraints instead of rs6000_vector_reg_class.  Move
9013         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
9014         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
9015         Altivec.  Add VSX support.  Setup for secondary reload support on
9016         Altivec/VSX registers.
9017         (rs6000_override_options): Make power7 set the scheduling groups
9018         like the power5.  Add support for new debug switches to override
9019         the scheduling defaults.  Temporarily disable -mcpu=power7 from
9020         setting -mvsx.  Add support for debug switches -malways-hint,
9021         -msched-groups, and -malign-branch-targets.
9022         (rs6000_buitlin_conversion): Add support for returning unsigned
9023         vector conversion functions to fix regressions due to stricter
9024         type checking.
9025         (rs6000_builtin_mul_widen_even): Ditto.
9026         (rs6000_builtin_mul_widen_odd): Ditto.
9027         (rs6000_builtin_vec_perm): Ditto.
9028         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
9029         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
9030         to zero a register.
9031         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
9032         generated upstream.
9033         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
9034         VSX types for bit operations.  Changes to accomidate vector.md.
9035         (bdesc_2arg): Ditto.
9036         (bdesc_1arg): Ditto.
9037         (struct builtin_description_predicates): Rewrite predicate
9038         handling so that RTL describes the operation, instead of passing
9039         the instruction to be used as a string argument.
9040         (bdesc_altivec_preds): Ditto.
9041         (altivec_expand_predicate_builtin): Ditto.
9042         (altivec_expand_builtin): Ditto.
9043         (rs6000_expand_ternop_builtin): Use a switch instead of an if
9044         statement for vsldoi support.
9045         (altivec_expand_ld_builtin): Change to use new names from vector.md.
9046         (altivec_expand_st_builtin): Ditto.
9047         (paired_expand_builtin): Whitespace changes.
9048         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
9049         builtin_mode_to_type table for secondary reload.  Call
9050         builtin_function_type to build random builtin functions.
9051         (altivec_init_builtins): Change to use builtin_function_type to
9052         create builtin function types dynamically as we need them.
9053         (builtin_hash_function): New support for hashing the tree types
9054         for builtin function as we need it, rather than trying to build
9055         all of the trees that we need.  Add initial preliminary VSX support.
9056         (builtin_function_type): Ditto.
9057         (builtin_function_eq): Ditto.
9058         (builtin_hash_struct): Ditto.
9059         (rs6000_init_builtins): Ditto.
9060         (rs6000_common_init_builtins): Ditto.
9061         (altivec_init_builtins): Ditto.
9062         (rs6000_common_init_builtins): Ditto.
9063         (enum reload_reg_type): New enum for simplifing reg classes.
9064         (rs6000_reload_register_type): Simplify register classes into GPR,
9065         Vector, and other registers.  Altivec and VSX addresses in reload.
9066         (rs6000_secondary_reload_inner): Ditto.
9067         (rs6000_ira_cover_classes): New target hook, that returns the
9068         appropriate cover classes, based on -mvsx being used or not.
9069         (rs6000_secondary_reload_class): Add VSX support.
9070         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
9071         (get_vsel_insn): Ditto.
9072         (rs6000_emit_vector_compare): Rewrite vector conditional support
9073         so that where we can, we use RTL operators, instead of blindly use
9074         UNSPEC.
9075         (rs6000_emit_vector_select): Ditto.
9076         (rs6000_emit_vector_cond_expr): Ditto.
9077         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
9078         (create_TOC_reference): Add -mdebug=addr support.
9079         (emit_frame_save): VSX loads/stores need register indexed addressing.
9080
9081         * config/rs6000/rs6000.md: Include vector.md.
9082
9083         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
9084
9085         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9086         support for V2DI, V2DF in logical, permute, select operations.
9087
9088         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
9089         switch for vsx/power7.
9090         (-mvsx-scalar-memory): Ditto.
9091         (-mvsx-align-128): Ditto.
9092         (-mallow-movmisalign): Ditto.
9093         (-mallow-df-permute): Ditto.
9094         (-msched-groups): Ditto.
9095         (-malways-hint): Ditto.
9096         (-malign-branch-targets): Ditto.
9097
9098         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
9099         hook instead.
9100         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
9101         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
9102         (rs6000_vector_reg_class): Delete.
9103         (rs6000_vsx_reg_class): Ditto.
9104         (enum rs6000_reg_class_enum): New enum for the constraints that
9105         vary based on target switches.
9106         (rs6000_constraints): New array to hold the register class for all
9107         of the register constraints that vary based on the switches used.
9108         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
9109         (enum rs6000_builtins): Add unsigned varients for the builtin
9110         declarations returned by target hooks for expanding multiplies,
9111         select, and permute operations.  Add VSX builtins.
9112         (enum rs6000_builtin_type_index): Add entries for VSX.
9113         (V2DI_type_node): Ditto.
9114         (V2DF_type_node): Ditto.
9115         (unsigned_V2DI_type_node): Ditto.
9116         (bool_long_type_node): Ditto.
9117         (intDI_type_internal_node): Ditto.
9118         (uintDI_type_internal_node): Ditto.
9119         (double_type_internal_node): Ditto.
9120
9121         * config/rs6000/altivec.md (whole file): Move all expanders to
9122         vector.md from altivec.md.  Rename insn matching functions to be
9123         altivec_foo.
9124         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
9125         (altivec_vcmp*): Ditto.
9126         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
9127         (VM): New iterator for moves that includes the VSX types.
9128         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
9129         (altivec_vperm_<mode>_uns): New, for unsigned types.
9130         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
9131         (altivec_eq<mode>): Ditto.
9132         (altivec_gt<mode>): Ditto.
9133         (altivec_gtu<mode>): Ditto.
9134         (altivec_eqv4sf): Ditto.
9135         (altivec_gev4sf): Ditto.
9136         (altivec_gtv4sf): Ditto.
9137         (altivec_vcmpbfp_p): Ditto.
9138
9139 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
9140
9141         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
9142         unsigned HWI.
9143
9144 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
9145
9146         PR target/40832
9147         * config/i386/i386.c (output_387_ffreep): Rewrite to use
9148         ASM_SHORT instead of .word.
9149         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
9150         instead of .word in asm template.
9151
9152 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
9153
9154         PR target/37488
9155         * ira-lives.c (bb_has_abnormal_call_pred): New function.
9156         (process_bb_node_lives): Use it.
9157
9158         * ira.c (setup_cover_and_important_classes): Don't setup
9159         ira_important_class_nums.  Add cover classes to the end of
9160         important classes.
9161         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
9162         New.
9163         (find_reg_class_closure): Use reorder_important_classes.
9164
9165         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
9166
9167         * config/i386/i386.c (i386_ira_cover_classes): New function.
9168         (TARGET_IRA_COVER_CLASSES): Redefine.
9169
9170         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
9171         importance of order of cover classes in the array.
9172
9173 2009-07-22  Diego Novillo  <dnovillo@google.com>
9174
9175         * tree-pass.h (TDF_EH): Define.
9176         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
9177         contains TDF_EH, print the EH region number holding GS.
9178         * tree-dump.c (dump_options): Add "eh".
9179         * doc/invoke.texi: Document it.
9180
9181 2009-07-22  Doug Kwan  <dougkwan@google.com>
9182
9183         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
9184
9185 2009-07-22  Michael Matz  <matz@suse.de>
9186
9187         PR tree-optimization/35229
9188         PR tree-optimization/39300
9189
9190         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
9191         (inhibit_phi_insertion): New function.
9192         (insert_into_preds_of_block): Call it for REFERENCEs.
9193         (init_pre): Initialize and finalize scalar evolutions.
9194         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
9195
9196 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
9197
9198         * config/i386/predicates.md (zero_extended_scalar_load_operand):
9199         Use CONST_VECTOR_NUNITS to determine number of elements.
9200
9201 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
9202
9203         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
9204         (U, W): Constraints are now deprecated and will be removed if we
9205         run out of letters.
9206         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
9207         the file.
9208         ("prefetch"): Add the stcmh instruction for prefetching.
9209         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
9210         changes.
9211         (s390_short_displacement): Return always true if compiling for
9212         machines not providing the long displacement facility.
9213         (s390_mem_constraint): Support the new constraint letter Z.
9214         (s390_check_qrst_address): New function.
9215
9216 2009-07-21  DJ Delorie  <dj@redhat.com>
9217
9218         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
9219         alone too.
9220
9221 2009-07-21  Jason Merrill  <jason@redhat.com>
9222
9223         * c-common.c (max_tinst_depth): Increase default to 1024.
9224
9225 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
9226
9227         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
9228         (vec_unpacku_float_lo_v4si): Ditto.
9229
9230 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
9231
9232         PR target/40811
9233         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
9234         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
9235         (builtin_description): Add __builtin_ia32_cvtudq2ps.
9236         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
9237
9238 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
9239
9240         PR tree-optimization/40813
9241         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
9242         it.
9243
9244 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
9245
9246         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
9247         with a NOP_EXPR if needed.
9248
9249 2009-07-21  Paul Brook <paul@codesourcery.com>
9250
9251         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
9252         Terminate debug dump with newline.
9253
9254 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9255
9256         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
9257         Cast "1" to unsigned HOST_WIDE_INT.
9258         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
9259         deposit length to the maximum length - lsb.  Extend length if
9260         HOST_BITS_PER_WIDE_INT is 32.
9261
9262 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
9263
9264         * cgraph.h (constant_pool_htab): New function.
9265         (constant_descriptor_tree): Move from varasm.c.
9266         * varasm.c (constant_pool_htab): New function.
9267         (constant_descriptor_tree): Move to cgraph.h.
9268
9269 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
9270
9271         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
9272
9273 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
9274
9275         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
9276         $(VARRAY_H).
9277
9278 2009-07-20  Xinliang David Li  <davidxl@google.com>
9279
9280         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
9281
9282 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9283
9284         * config/mips/mips.md (move_type): Add arith.
9285         (type): Handle arith.
9286         (zero_extendsidi2): Rename this into ...
9287         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
9288         (zero_extendsidi2): New expander.
9289         (*zero_extendsidi2_dext): New pattern.
9290
9291 2009-07-20  Nick Clifton  <nickc@redhat.com>
9292
9293         * config.gcc (mips64-*-*): Add definition of tm_defines in order
9294         to set MIPS_ABI_DEFAULT.
9295         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
9296
9297 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
9298
9299         * tree-object-size.c (addr_object_size): Handle unions with
9300         array in it as last field of structs in __bos (, 1) as __bos (, 0).
9301
9302         PR tree-optimization/40792
9303         * tree.c (build_function_type_skip_args): Remove bogus assert.
9304
9305 2009-07-20  Jan Hubicka  <jh@suse.cz>
9306             Martin Jambor  <mjambor@suse.cz>
9307
9308         * cgraph.h (combined_args_to_skip): New field.
9309         * cgraph.c (cgraph_create_virtual_clone): Properly handle
9310         combined_args_to_skip and args_to_skip.
9311         * tree-inline.c (update_clone_info): New function.
9312         (tree_function_versioning): Call update_clone_info.
9313         * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
9314         functions.
9315         (cgraph_materialize_all_clones): More extensive dumping, working
9316         with combined_args_to_skip rather than args_to_skip.
9317
9318 2009-07-20  Ira Rosen  <irar@il.ibm.com>
9319
9320         * tree-vectorizer.h (vectorizable_condition): Add parameters.
9321         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
9322         (get_initial_def_for_reduction): Likewise.
9323         (vectorizable_reduction): Skip the check of first operand in case
9324         of COND_EXPR. Add check that it is outer loop vectorization if
9325         nested cycle was detected. Call vectorizable_condition() for
9326         COND_EXPR. If reduction epilogue cannot be created do not fail for
9327         nested cycles (if it is not double reduction). Assert that there
9328         is only one type in the loop in case of COND_EXPR. Call
9329         vectorizable_condition() to vectorize COND_EXPR.
9330         * tree-vect-stmts.c (vectorizable_condition): Update comment.
9331         Add parameters. Allow nested cycles if called from
9332         vectorizable_reduction(). Use reduction vector variable if provided.
9333         (vect_analyze_stmt): Call vectorizable_reduction() before
9334         vectorizable_condition().
9335         (vect_transform_stmt): Update call to vectorizable_condition().
9336
9337 2009-07-20  Christian Bruel  <christian.bruel@st.com>
9338
9339         * config/sh/sh.opt (-mfmovd): Resurrect and document.
9340         * doc/invoke.texi (-mfmovd): Likewise.
9341         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
9342
9343 2009-07-20  Jan Hubicka  <jh@suse.cz>
9344
9345         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
9346         when handling SSA name.
9347
9348 2009-07-19  Jan Hubicka  <jh@suse.cz>
9349
9350         PR tree-optimization/40676
9351         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
9352         virtual PHIs in empty BBs.
9353
9354 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
9355
9356         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
9357         re-expanded the compound use gen_lowpart instead to convert to the
9358         desired mode.
9359
9360 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
9361
9362         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
9363         OUTER_CONST arguments.
9364         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
9365         the new wider mode will be masked off.
9366         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
9367
9368 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
9369
9370         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
9371         high-order bits are zero.
9372
9373 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
9374
9375         * combine.c (simplify_shift_const_1): Split code to determine
9376         shift_mode into ...
9377         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
9378         new bits shifted in are identical to the old sign bit.
9379
9380 2009-07-18  Richard Guenther  <rguenther@suse.de>
9381
9382         PR c/40787
9383         * gimplify.c (gimplify_call_expr): Reject code using results from
9384         functions returning void.
9385
9386 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
9387
9388         * doc/md.texi: Document the new PowerPC "es" constraint.
9389         Document that "m" can include automodified addresses on this target,
9390         and explain how %U must be used.  Extend the "Q" and "Z" documentation
9391         to suggest "es" as well as "m".
9392         * config/rs6000/constraints.md (es): New memory constraint.
9393         (Q, Z): Update strings to match new documentation.
9394
9395 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
9396
9397         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
9398         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
9399         * config/rs6000/predicates.md (volatile_mem_operand): Use
9400         offsettable_nonstrict_memref_p.
9401         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
9402         (*floatunssidf2_internal): Likewise.
9403         (*fix_truncdfsi2_internal): Likewise.
9404         (*fix_trunctfsi2_internal): Likewise.
9405
9406 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
9407
9408         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
9409         atmega32u2 devices.
9410         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
9411
9412 2009-07-17  Richard Guenther  <rguenther@suse.de>
9413
9414         PR c/40401
9415         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
9416         (pass_warn_unused_result): Likewise.
9417         (TODO_set_props): Remove.
9418         * omp-low.c (diagnose_omp_structured_block_errors): Change to
9419         run as a pass.
9420         (pass_diagnose_omp_blocks): Define.
9421         * c-decl.c (pop_file_scope): Do not finalize the CU here.
9422         (c_gimple_diagnostics_recursively): Remove.
9423         (finish_function): Do not call it.
9424         (c_write_global_declarations): Continue after errors.
9425         Finalize the CU here.
9426         * c-gimplify.c (c_genericize): Do not gimplify here.
9427         * c-common.c (c_warn_unused_result): Move ...
9428         * tree-cfg.c (do_warn_unused_result): ... here.
9429         (run_warn_unused_result): New function.
9430         (gate_warn_unused_result): New function.
9431         (pass_warn_unused_result): New pass.
9432         * c-common.h (c_warn_unused_result): Remove.
9433         * flags.h (flag_warn_unused_result): Declare.
9434         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
9435         * opts.c (flag_warn_unused_result): Initialize to false.
9436         * toplev.c (compile_file): Add comment.
9437         * omp-low.c (create_omp_child_function): Do not register
9438         the function with the frontend.
9439         (diagnose_omp_structured_block_errors): Prepare to be
9440         called as optimization pass.
9441         (gate_diagnose_omp_blocks): New function.
9442         (pass_diagnose_omp_blocks): New pass.
9443         * cgraph.h (cgraph_optimize): Remove.
9444         (cgraph_analyze_function): Likewise.
9445         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
9446         * cgraphunit.c (cgraph_lower_function): Lower nested functions
9447         before their parents here.
9448         (cgraph_finalize_function): Not here.
9449         (cgraph_analyze_function): Gimplify functions here.
9450         (cgraph_finalize_compilation_unit): Continue after errors.
9451         Optimize the callgraph from here.
9452         (cgraph_optimize): Make static.
9453         * langhooks.c (write_global_declarations): Finalize the CU.
9454         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
9455         (gimplify_function_tree): Assert we gimplify only once.
9456         Set PROP_gimple_any property.
9457         * tree-nested.c (gimplify_all_functions): New function.
9458         (lower_nested_functions): Gimplify all nested functions.
9459         * gimple.h (diagnose_omp_structured_block_errors): Remove.
9460         * passes.c (init_optimization_passes): Add pass_warn_unused_result
9461         and pass_diagnose_omp_blocks after gimplification.  Do not
9462         set TODO_set_props on all_lowering_passes.
9463         (execute_one_pass): Do not handle TODO_set_props.
9464         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
9465         (gimplify.o): Add tree-pass.h dependency.
9466         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
9467         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
9468         (unsave_r): Likewise.
9469         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
9470         temporary variable.
9471
9472 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
9473
9474         * doc/service.texi (Service): Restore previously removed link,
9475         which isn't broken after all.
9476
9477 2009-07-17  Richard Guenther  <rguenther@suse.de>
9478
9479         PR tree-optimization/40321
9480         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
9481         PHI nodes to the maximal set.
9482         (make_values_for_phi): Add PHI arguments to the maximal set.
9483         (execute_pre): Dump PHI_GEN and the maximal set.
9484
9485 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
9486
9487         PR c++/40780
9488         * gimplify.c (gimplify_conversion): Don't change non-conversions into
9489         VIEW_CONVERT_EXPR.
9490
9491 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
9492
9493         * doc/extend.texi (Nested Functions): Replace broken link with
9494         textual reference.
9495         * doc/service.texi (Service): Remove broken link.
9496
9497 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
9498
9499         PR bootstrap/40781
9500         * builtins.c (expand_builtin_memcmp): Use loc instead of
9501         EXPR_LOCATION (exp).
9502         (expand_builtin_strncmp): Likewise.
9503
9504 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
9505             Manuel López-Ibáñez  <manu@gcc.gnu.org>
9506
9507         PR 40435
9508         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
9509         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
9510         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
9511         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
9512         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
9513         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
9514         tree-inline.c, c-common.c, c-common.h, gimple.c,
9515         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
9516         convert.c: Add location argument to fold_{unary,binary,ternary},
9517         fold_build[123], build_call_expr, build_size_arg,
9518         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
9519         fold_build1_initializer, fold_build2_initializer,
9520         fold_build3_initializer, fold_build_call_array,
9521         fold_build_call_array_initializer, fold_single_bit_test,
9522         omit_one_operand, omit_two_operands, invert_truthvalue,
9523         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
9524         combine_comparisons, fold_builtin_*, fold_call_expr,
9525         build_range_check, maybe_fold_offset_to_address, round_up,
9526         round_down.
9527
9528 2009-07-16  Jason Merrill  <jason@redhat.com>
9529
9530         PR libstdc++/37907
9531         * c-common.c (c_common_reswords): Add __is_standard_layout
9532         and __is_trivial.
9533         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
9534         * doc/implement-cxx.texi: New.
9535         * doc/gcc.texi: Include it.
9536
9537 2009-07-16  DJ Delorie  <dj@redhat.com>
9538
9539         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
9540         compares that may be indirectly affected by previous instructions.
9541
9542 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9543
9544         * builtins.c (do_mpc_arg2): New.
9545         (fold_builtin_2): Fold builtin cpow.
9546         * real.h (HAVE_mpc_pow): New.
9547
9548 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
9549
9550         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
9551         comparison to skip unprofitable schedule
9552
9553 2009-07-16  Simon Baldwin  <simonb@google.com>
9554
9555         * gcc.c (option_map): New flag -no-canonical-prefixes.
9556         * (display_help): Print help text for new flag.
9557         * (process_command): Move options translation and language specifics
9558         and handle new flag early.  Use it to set a function pointer to a
9559         prefix builder.  Replace make_relative_prefix calls with calls to
9560         the function pointed to.  Ignore new flag in regular options handling.
9561         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
9562
9563 2009-07-15  DJ Delorie  <dj@redhat.com>
9564
9565         * config/mep/mep.md (sibcall_internal): Change register to avoid
9566         argument registers.
9567         (sibcall_value_internal): Likewise.
9568
9569 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
9570
9571         PR rtl-optimization/40710
9572         * resource.c (mark_target_live_regs): Reset DF problem to LR.
9573
9574 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
9575
9576         * config/mips/mips.md (*extenddi_truncate<mode>,
9577         *extendsi_truncate<mode>): Change type attribute to move_type
9578         with shift_shift.  Split out code handling exts from here ...
9579         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
9580         pattern.
9581         (*extendhi_truncateqi): Change type attribute to move_type with
9582         shift_shift.  Split out code handling exts from here ...
9583         (*extendhi_truncateqi_exts): ... to this new pattern.
9584
9585 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
9586
9587         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
9588         instead of "and" with inverted sign bit mask value.  Use
9589         "nonimmediate_operand" for operand 1 and operand 2 predicate.
9590         Allocate registers only for operand 4 and operand 5.
9591
9592 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
9593
9594         PR middle-end/40747
9595         * fold-const.c (fold_cond_expr_with_comparison): When folding
9596         < and <= to MIN, make sure the MIN uses the same type as the
9597         comparison's operands.
9598
9599 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
9600
9601         * arm.md (ior_xor): New code iterator.
9602         (split for ior/xor with shift and zero-extend): New split pattern.
9603         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
9604
9605 2009-07-15  Richard Guenther  <rguenther@suse.de>
9606
9607         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
9608         offset member.
9609
9610 2009-07-15  Richard Guenther  <rguenther@suse.de>
9611
9612         PR middle-end/40753
9613         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
9614
9615 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9616
9617         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
9618         handle 2.6.30 kernel.
9619
9620 2009-07-15  DJ Delorie  <dj@redhat.com>
9621
9622         * config/mep/mep.md (sibcall_internal): Change register to allow
9623         for 24-bit addresses.
9624         (sibcall_value_internal): Likewise.
9625
9626 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
9627
9628         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
9629         that are enabled/disabled by the flags introduced by a previous patch.
9630
9631 2009-07-14  DJ Delorie  <dj@redhat.com>
9632
9633         * config/mep/mep.md (sibcall_internal): Include non-toggling
9634         non-jmp case.
9635         (sibcall_value_internal): Likewise.
9636
9637 2009-07-14  Taras Glek  <tglek@mozilla.com>
9638             Rafael Espindola  <espindola@google.com>
9639
9640         * doc/sourcebuild.texi: Document install-plugin target.
9641         * configure.ac: Added install-plugin target to language makefiles.
9642         * configure: Regenerate.
9643         * Makefile.in: (install-plugin): Install more headers,
9644         depend on lang.install-plugin.
9645
9646 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9647
9648         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
9649         translation.
9650
9651 2009-07-14  DJ Delorie  <dj@redhat.com>
9652
9653         * config/mep/mep.c (mep_vliw_jmp_match): New function.
9654         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
9655         * config/mep/mep.md (sibcall_internal): Change test from
9656         mep_vliw_mode_match to mep_vliw_jmp_match.
9657         (sibcall_value_internal): Likewise.
9658
9659 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
9660
9661         * config/i386/sse.md (copysign<mode>3): New expander.
9662         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
9663         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
9664         Use ix86_build_const_vector.
9665         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
9666         IX86_BUILTIN_CPYSGNPD.
9667         (builtin_description): Add __builtin_ia32_copysignps and
9668         __builtin_ia32_copysignpd.
9669         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
9670         and BUILT_IN_COPYSIGNF.
9671
9672 2009-07-13  Jason Merrill  <jason@redhat.com>
9673
9674         * builtins.c (can_trust_pointer_alignment): New fn.
9675         (get_pointer_alignment): Factor it out from here.
9676         * tree.h: Declare it.
9677
9678 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
9679
9680         * config/rs6000/predicates.md (offsettable_mem_operand): Test
9681         RTX_AUTOINC class.
9682
9683 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
9684
9685         PR debug/40705
9686         PR c++/403057
9687         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
9688
9689 2009-07-14  Richard Guenther  <rguenther@suse.de>
9690             Andrey Belevantsev <abel@ispras.ru>
9691
9692         PR middle-end/40745
9693         * cfgexpand.c (partition_stack_vars): Do not bother to update
9694         alias information when not optimizing.
9695
9696 2009-07-14  Richard Guenther  <rguenther@suse.de>
9697             Andrey Belevantsev <abel@ispras.ru>
9698
9699         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
9700         (pt_solution_set): Likewise.
9701         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
9702         * tree-ssa-structalias.c (pt_solution_set): New function.
9703         * final.c (rest_of_clean_state): Free SSA data structures.
9704         * print-rtl.c (print_decl_name): Remove.
9705         (print_mem_expr): Implement in terms of print_generic_expr.
9706         * alias.c (ao_ref_from_mem): New function.
9707         (rtx_refs_may_alias_p): Likewise.
9708         (true_dependence): Query alias-export info.
9709         (canon_true_dependence): Likewise.
9710         (write_dependence_p): Likewise.
9711         * tree-dfa.c (get_ref_base_and_extent): For void types leave
9712         size unknown.
9713         * emit-rtl.c (component_ref_for_mem_expr): Remove.
9714         (mem_expr_equal_p): Use operand_equal_p.
9715         (set_mem_attributes_minus_bitpos): Do not use
9716         component_ref_for_mem_expr.
9717         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
9718         (update_alias_info_with_stack_vars): Likewise.
9719         (partition_stack_vars): Call update_alias_info_with_stack_vars.
9720         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
9721         explicitly nor clear stmt operands.
9722         Free the decl-to-pointer map.
9723         * tree-optimize.c (execute_free_datastructures): Do not free
9724         SSA data structures here.
9725         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
9726         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
9727         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
9728         dependencies.
9729         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
9730
9731 2009-07-13  DJ Delorie  <dj@redhat.com>
9732
9733         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
9734         unrolling at the right iteration count.
9735
9736         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
9737         calculations.
9738
9739 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
9740
9741         * haifa-sched.c (rank_for_schedule): Introduced flags to
9742         enable/disable individual scheduling heuristics.
9743         * common.opt: Introduced flags to enable/disable individual
9744         heuristics in the scheduler.
9745         * doc/invoke.texi: Introduced flags to enable/disable individual
9746         heuristics in the scheduler.
9747
9748 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
9749
9750         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
9751         config/i386/mingw-tls.c.
9752         * config/i386/mingw-tls.c: Removed.
9753
9754 2009-07-13  Ira Rosen  <irar@il.ibm.com>
9755
9756         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
9757         checks access only relevant statements.
9758         (vectorizable_reduction): Likewise.
9759
9760 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
9761
9762         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
9763         just for 32-bit case.
9764
9765 2009-07-12  Jan Hubicka  <jh@suse.cz>
9766
9767         PR tree-optimization/40585
9768         * except.c (expand_resx_expr): When there already is resume
9769         instruction, produce linked list.
9770         (build_post_landing_pads): Assert that resume is empty.
9771         (connect_post_landing_pads): Handle resume lists.
9772         (dump_eh_tree): Dump resume list.
9773
9774 2009-07-12  Ira Rosen  <irar@il.ibm.com>
9775
9776         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
9777         with additional argument.
9778         * tree-vectorizer.h (enum vect_def_type): Add
9779         vect_double_reduction_def.
9780         (vect_is_simple_reduction): Add argument.
9781         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
9782         indentation.
9783         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
9784         vect_is_simple_reduction with additional argument.
9785         (vect_analyze_loop_operations): Handle exit phi nodes in case of
9786         double reduction.
9787         (reduction_code_for_scalar_code): Handle additional codes by
9788         returning ERROR_MARK for them. Fix comment and indentation.
9789         (vect_is_simple_reduction): Fix comment, add argument to specify
9790         double reduction. Detect double reduction.
9791         (get_initial_def_for_induction): Fix indentation.
9792         (get_initial_def_for_reduction): Fix comment and indentation.
9793         Handle double reduction. Create initial definitions that do not
9794         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
9795         (vect_create_epilog_for_reduction): Fix comment, add argument to
9796         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
9797         epilogue result extraction. Create double reduction phi node and
9798         replace relevant uses.
9799         (vectorizable_reduction): Call vect_is_simple_reduction with
9800         additional argument. Fix indentation. Update epilogue code treatment
9801         according to the changes in reduction_code_for_scalar_code. Check
9802         for double reduction. Call vect_create_epilog_for_reduction with
9803         additional argument.
9804         * tree-vect-stmts.c (process_use): Handle double reduction, update
9805         documentation.
9806         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
9807         (vect_get_vec_def_for_operand): Likewise.
9808
9809 2009-07-12  Danny Smith  <dansmister@gmail.com>
9810
9811         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
9812         dllexport if !TREE_PUBLIC.
9813         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
9814
9815 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
9816
9817         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
9818         (avr_extra_arch_macro) Remove declatation.
9819         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
9820         (avr_extra_arch_macro) Declare as static.
9821         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
9822
9823 2009-07-11  Jan Hubicka  <jh@suse.cz>
9824
9825         PR middle-end/48388
9826         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
9827
9828 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
9829
9830         PR debug/40713
9831         * dwarf2out.c (dw_fde_struct): Add in_std_section and
9832         cold_in_std_section bits.
9833         (dwarf2out_begin_prologue): Initialize them.
9834         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
9835         if already covered by text_section or cold_text_section range.
9836
9837         PR rtl-optimization/40667
9838         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
9839         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
9840         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
9841         * config/i386/i386.c (ix86_minimum_alignment): New function.
9842         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
9843         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
9844         * emit-rtl.c (gen_reg_rtx): Likewise.
9845         * function.c (assign_parms): Likewise.  If nominal_type needs
9846         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
9847         rather than passed_type's alignment.
9848
9849         PR target/40668
9850         * function.c (assign_parm_setup_stack): Adjust
9851         MEM_OFFSET (data->stack_parm) if promoted_mode is different
9852         from nominal_mode on big endian.
9853
9854 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
9855
9856         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
9857
9858 2009-07-10  DJ Delorie  <dj@redhat.com>
9859
9860         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
9861
9862 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
9863
9864         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
9865         attribute.
9866         (thumb2_cbnz): Likewise.
9867
9868 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
9869
9870         PR target/39079
9871         * config.gcc (supported_defaults): Add synci.
9872         (with_synci): Add validation.
9873         (all_defaults): Add synci.
9874         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
9875         ISA_HAS_SYNCI.
9876         (synci): Same.
9877         * config/mips/mips.opt (msynci): New option.
9878         * config/mips/mips.c (mips_override_options): Warn on use of
9879         -msynci for targets that do now support it.
9880         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
9881         msynci.
9882         * gcc/doc/invoke.texi (-msynci): Document the new option.
9883         * doc/install.texi (--with-synci): Document the new option.
9884
9885 2009-07-10  Richard Guenther  <rguenther@suse.de>
9886
9887         PR tree-optimization/40496
9888         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
9889         the PHI result with a compatible type.
9890
9891 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9892
9893         PR 25509
9894         PR 40614
9895         * c.opt (Wunused-result): New.
9896         * doc/invoke.texi: Document it.
9897         * c-common.c (c_warn_unused_result): Use it.
9898
9899 2009-07-09  DJ Delorie  <dj@redhat.com>
9900
9901         * targhooks.c (default_target_can_inline_p): Rename from
9902         default_target_option_can_inline_p.
9903         * targhooks.h (default_target_can_inline_p): Likewise.
9904         * target-def.h (TARGET_CAN_INLINE_P): Rename from
9905         TARGET_OPTION_CAN_INLINE_P.
9906         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
9907         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
9908         (mep_target_can_inline_p): Rename from
9909         mep_target_option_can_inline_p.
9910
9911         PR target/40626
9912         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
9913         registers used to pass vectors.
9914
9915         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
9916
9917 2009-07-09  Tom Tromey  <tromey@redhat.com>
9918
9919         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
9920         * config/mmix/mmix.c: Include dwarf2.h.
9921         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
9922         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
9923         * config/sh/sh.c: Include dwarf2.h.
9924         * config/i386/i386.c: Include dwarf2.h.
9925         * Makefile.in (DWARF2_H): Remove 'elf'.
9926         * except.c: Include dwarf2.h.
9927         * unwind-dw2.c: Include dwarf2.h.
9928         * dwarf2out.c: Include dwarf2.h.
9929         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
9930         * unwind-dw2-fde.c: Include dwarf2.h.
9931         * dwarf2asm.c: Include dwarf2.h.
9932
9933 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
9934
9935         * haifa-sched.c (insn_finishes_cycle_p): New static function.
9936         (max_issue): Use it.
9937         * sched-int.h (struct sched_info: insn_finishes_block_p): New
9938         scheduler hook.
9939         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
9940         (region_sched_info): Update.
9941         * sched-ebb.c (ebb_sched_info): Update.
9942         * modulo-sched.c (sms_sched_info): Update.
9943         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
9944
9945 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
9946
9947         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
9948
9949 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
9950
9951         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
9952
9953 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
9954
9955         PR middle-end/40692
9956         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
9957         arg1 with arg01 if arg1 is already INTEGER_CST.
9958
9959 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
9960
9961         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
9962         Transform (and (truncate)) into (truncate (and)).
9963
9964 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
9965
9966         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
9967         creating LHS paradoxical subregs.  Fix surrounding returns to
9968         use NULL_RTX rather than 0.
9969
9970 2009-07-08  DJ Delorie  <dj@redhat.com>
9971
9972         * config/mep/mep.c: (mep_option_can_inline_p): New.
9973         (TARGET_OPTION_CAN_INLINE_P): Define.
9974
9975 2009-07-08  Mark Wielaard  <mjw@redhat.com>
9976
9977         PR debug/40659
9978         * dwarf2out.c (add_data_member_location_attribute): When we have
9979         only a constant offset don't emit a new location description using
9980         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
9981         dwarf_version > 2.
9982
9983 2009-07-08  Richard Henderson  <rth@redhat.com>
9984
9985         PR target/38900
9986         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
9987         (enum reg_class): Add CLOBBERED_REGS.
9988         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
9989         * config/i386/i386.c (ix86_conditional_register_usage): Moved
9990         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
9991         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
9992         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
9993         force 64-bit sibcalls into R11.
9994         * config/i386/constraints.md (U): New constraint.
9995         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
9996         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
9997         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
9998
9999 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
10000
10001         * basic-block.h (dump_regset, debug_regset): Remove duplicate
10002         prototypes.
10003         * c-objc-common.h (c_initialize_diagnostics): Ditto.
10004         * ebitmap.h (dump_ebitmap): Ditto.
10005         * optabs.h (optab_libfunc): Ditto.
10006         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
10007         * tree-flow.h (vect_can_force_dr_alignment_p,
10008         get_vectype_for_scalar_type): Ditto.
10009         (vectorize_loops): Move prototype to ...
10010         * tree-vectorizer.h: ... here. Also, adjust comment.
10011         (vect_set_verbosity_level): Remove duplicate prototype.
10012         * tree-ssa-loop.c: Include tree-vectorizer.h.
10013         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
10014
10015 2009-07-08  Nick Clifton  <nickc@redhat.com>
10016
10017         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
10018         forward slash.
10019
10020 2009-07-08  DJ Delorie  <dj@redhat.com>
10021
10022         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
10023         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
10024         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
10025         written to.
10026         * config/mep/intrinsics.md: Regenerated.
10027         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
10028         registers when asm() or calls are detected.
10029
10030 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10031
10032         PR c++/31246
10033         * gimplify.c (gimplify_expr): Propagate no_warning flag when
10034         gimplifying.
10035         * gimple (gimple_build_call_from_tree): Likewise.
10036         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
10037         no_warning flag before warning.
10038
10039 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10040
10041         * tree.c (set_expr_locus): Remove.
10042         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
10043         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
10044         EXPR_LOCATION.
10045         * gimplify.c (internal_get_tmp_var): Likewise.
10046         (gimplify_call_expr): Likewise.
10047         (gimplify_one_sizepos): Likewise.
10048
10049 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
10050
10051         PR debug/40666
10052         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
10053         to variables for debugging purposes.
10054
10055 2009-06-23  Mark Loeser  <mark@halcy0n.com>
10056
10057         PR build/40010
10058         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
10059
10060 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10061
10062         * pretty-print.c (pp_base_format): Remove %J.
10063         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10064         gcc_cxxdiag_char_table): Likewise.
10065         (init_dynamic_diag_info): Likewise.
10066
10067 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10068
10069         * pretty-print.c (pp_base_format): Remove %H.
10070         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10071         gcc_cxxdiag_char_table): Likewise.
10072         (init_dynamic_diag_info): Likewise.
10073         * config/mep/mep.c (mep_select_section): Likewise.
10074
10075 2009-07-07  Duncan Sands  <baldrick@free.fr>
10076
10077         * final.c (pass_clean_state): Give the pass a name.
10078         * passes.c (pass_rest_of_compilation): Likewise.
10079         * tree-optimize.c (pass_all_optimizations): Likewise.
10080
10081 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
10082
10083         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
10084         an extra 'decl' for error_at.
10085
10086 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
10087
10088         PR middle-end/40669
10089         * tree-tailcall.c (adjust_return_value_with_ops,
10090         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
10091         if it has complex or vector type.
10092
10093 2009-07-07  Olivier Hainque  <hainque@adacore.com>
10094
10095         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
10096         pthread symbols.
10097
10098 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
10099
10100         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
10101
10102 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10103
10104         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
10105         * c-decl.c: Likewise.
10106         * function.c: Likewise.
10107         * varasm.c: Likewise.
10108         * tree-ssa.c: Likewise.
10109         * c-common.c: Likewise.
10110         * tree-cfg.c: Likewise.
10111         * config/spu/spu.c: Likewise.
10112         * config/ia64/ia64.c: Likewise.
10113         * config/v850/v850.c: Likewise.
10114
10115 2009-07-06  DJ Delorie  <dj@redhat.com>
10116
10117         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
10118         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
10119         unspecified accesses to control registers.
10120         * config/mep/intrinsics.md: Regenerate.
10121         * config/mep/intrinsics.h: Regenerate.
10122         * config/mep/mep-intrin.h: Regenerate.
10123
10124 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10125
10126         * c-lex.c: Replace %H by an explicit location. Update all calls.
10127         * c-common.c: Likewise.
10128         * c-decl.c: Likewise.
10129         * c-typeck.c: Likewise.
10130         * fold-const.c: Likewise.
10131         * gimplify.c: Likewise.
10132         * stmt.c: Likewise.
10133         * tree-cfg.c: Likewise.
10134         * tree-ssa-loop-niter.c: Likewise.
10135         * tree-vrp.c: Likewise.
10136         * value-prof.c: Likewise.
10137
10138 2009-07-06  Diego Novillo  <dnovillo@google.com>
10139
10140         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
10141         if it has one.  Handle cases where VAR does not have an
10142         annotation or cfun is NULL.
10143
10144 2009-07-06  Diego Novillo  <dnovillo@google.com>
10145
10146         * tree.c: Include debug.h.
10147         (initialize_tree_contains_struct): New.
10148         (init_ttree): Call it.
10149         (tree_node_structure_for_code): Factor out of ...
10150         (tree_node_structure): ... here.
10151         * treestruct.def (TS_PHI_NODE): Remove.
10152         (TS_GIMPLE_STATEMENT): Remove.
10153
10154 2009-07-06  Diego Novillo  <dnovillo@google.com>
10155
10156         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
10157         (debug_tree_chain): Handle cycles.
10158
10159 2009-07-06  Nick Clifton  <nickc@redhat.com>
10160             DJ Delorie  <dj@redhat.com>
10161
10162         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
10163         __FMOVD_ENABLED__ is defined.
10164         * config/sh/sh.h
10165         (TARGET_FMOVD): Provide a default definition.
10166         (MASK_FMOVD): Likewise.
10167         (TARGET_CPU_CPP_BUILTINS): Define
10168         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
10169         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
10170         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
10171         (split for DF load from memory into register): Also handle
10172         MEMs which consist of REG+DISP addressing.
10173         (split for DF store from register to memory): Likewise.
10174         (movsf_ie): Always use single fp_mode.
10175         * config/sh/sh.c (sh_override_options): Do not automatically
10176         enable TARGET_MOVD for the SH2A when supporting doubles - leave
10177         that to the -mfmovd command line switch.
10178         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
10179         (fldi_ok): Always allow.
10180         * config/sh/sh.opt (mfmovd): Remove this switch.
10181         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
10182
10183 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
10184             Kaz Kojima  <kkojima@gcc.gnu.org>
10185
10186         PR rtl-optimization/30807
10187         * postreload.c (reload_combine): For every new use of REG_SUM,
10188         record the use of BASE.
10189
10190 2009-07-06  Jan Hubicka  <jh@suse.cz>
10191
10192         * params.def: Revert my accidental commit at 2009-06-30.
10193
10194 2009-07-04  Ian Lance Taylor  <iant@google.com>
10195
10196         PR target/40636
10197         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
10198         EXPORTED_CONST.
10199         (mingw_format_attribute_overrides): Likewise.
10200
10201 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
10202
10203         PR debug/40596
10204         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
10205         don't check cfa.reg.  Instead of cfa.indirect use
10206         fde && fde->drap_reg != INVALID_REGNUM test.
10207
10208 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
10209
10210         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
10211
10212 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
10213
10214         PR target/40587
10215         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
10216
10217 2009-07-03  Richard Guenther  <rguenther@suse.de>
10218
10219         PR tree-optimization/40640
10220         * tree-switch-conversion.c (build_arrays): Perform arithmetic
10221         in original type.
10222
10223 2009-07-03  Jan Hubicka  <jh@suse.cz>
10224
10225         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
10226         for size, reduce amount of inlining.
10227
10228 2009-07-03  Richard Guenther  <rguenther@suse.de>
10229
10230         PR middle-end/34163
10231         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
10232         if t +- x is known to not overflow and the conversion widens the
10233         operation.
10234         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
10235
10236 2009-07-03  Jan Hubicka  <jh@suse.cz>
10237
10238         * ipa-pure-const.c (analyze): Update loop optimizer init.
10239         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
10240         try_remove_empty_loop, remove_empty_loops): Remove.
10241         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
10242         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
10243         to mark regular loops as neccesary.
10244         (degenerate_phi_p): New function.
10245         (propagate_necessity, remove_dead_phis): Use it.
10246         (forward_edge_to_pdom): Likewise.
10247         (eliminate_unnecessary_stmts): Take care to remove uses of results of
10248         virtual PHI nodes that became unreachable.
10249         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
10250         * tree-flow.h (remove_empty_loops): Remove.
10251         * passes.c (init_optimization_passes): Remove.
10252
10253 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
10254
10255         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
10256         can_create_pseudo_p.
10257         (*fix_trunc<mode>_i387_1): Ditto.
10258         (*floathi<mode>2_1): Ditto.
10259         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
10260         (*fistdi2_1): Ditto.
10261         (*fist<mode>2_1): Ditto.
10262         (frndintxf2_floor): Ditto.
10263         (*fist<mode>2_floor_1): Ditto.
10264         (frndintxf2_ceil): Ditto.
10265         (*fist<mode>2_ceil_1): Ditto.
10266         (frndintxf2_trunc): Ditto.
10267         (frndintxf2_mask_pm): Ditto.
10268         (fxam<mode>2_i387_with_temp): Ditto.
10269         * config/i386/sse.md (mulv16qi3): Ditto.
10270         (*sse2_mulv4si3): Ditto.
10271         (mulv2di3): Ditto.
10272         (sse4_2_pcmpestr): Ditto.
10273         (sse4_2_pcmpistr): Ditto.
10274
10275 2009-07-03  Jan Hubicka  <jh@suse.cz>
10276
10277         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
10278         (mark_stmt_necessary): Set it.
10279         (mark_operand_necessary): Set it.
10280         (mark_control_dependent_edges_necessary): Set it.
10281         (mark_virtual_phi_result_for_renaming): New function.
10282         (get_live_post_dom): New function.
10283         (forward_edge_to_pdom): New function.
10284         (remove_dead_stmt): Fix handling of control dependences.
10285         (tree_dce_init): Init new bitmap.
10286         (tree_dce_done): Free it.
10287
10288 2009-07-02  Richard Guenther  <rguenther@suse.de>
10289
10290         PR bootstrap/40617
10291         * tree-ssa-structalias.c (new_var_info): Initialize
10292         is_restrict_var.
10293
10294 2009-07-02  Jan Hubicka  <jh@suse.cz>
10295
10296         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
10297         local.
10298
10299 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
10300
10301         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
10302         instead of recomputing it.  Adjust calls.
10303         (emit_store_flag): Adjust recursive calls.
10304
10305 2009-07-02  Richard Guenther  <rguenther@suse.de>
10306
10307         * tree-ssa-live.c (remove_unused_locals): Do not remove
10308         heap variables.
10309         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
10310         of DECL_EXTERNAL for HEAP variables.
10311         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
10312         HEAP variables.  Do not adjust RESTRICT vars.
10313         (find_what_var_points_to): Nobody cares if something
10314         points to READONLY.
10315
10316 2009-07-02  Ben Elliston  <bje@au.ibm.com>
10317
10318         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
10319         pc_low and pc_high declarations to the top of the function.
10320
10321 2009-07-01  DJ Delorie  <dj@redhat.com>
10322
10323         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
10324         registers as fixed.
10325         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
10326         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
10327         unspecified accesses to control registers.
10328         * config/mep/intrinsics.md: Regenerate.
10329         * config/mep/intrinsics.h: Regenerate.
10330         * config/mep/mep-intrin.h: Regenerate.
10331
10332 2009-07-01  Anthony Green  <green@moxielogic.com>
10333
10334         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
10335         instruction when possible.
10336         (moxie_expand_prologue): Ditto.  Also, save an instruction and
10337         some complexity by popping off of $r12 instead of $sp.
10338         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
10339         operands.
10340
10341 2009-07-01  Richard Henderson  <rth@redhat.com>
10342
10343         PR bootstrap/40347
10344         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
10345         contained no insns, reposition note before last insn.
10346
10347 2009-07-01  Richard Henderson  <rth@redhat.com>
10348
10349         PR debug/40431
10350         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
10351         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
10352
10353 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
10354
10355         PR bootstrap/40558
10356         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
10357         darwin9 for printing reg addresses with %y.
10358
10359 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
10360
10361         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
10362         truncation from operands in binary operations.
10363
10364 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
10365
10366         Revert:
10367         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
10368         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
10369         subreg of op0 to the original op0.
10370
10371         * expmed.c (store_bit_field_1): Use a temporary as the destination
10372         instead of a paradoxical subreg when we need to truncate the result.
10373
10374 2009-07-01  DJ Delorie  <dj@redhat.com>
10375
10376         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
10377         names to VLIW variants.
10378         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
10379         * config/mep/intrinsics.md: Regenerate.
10380         * config/mep/intrinsics.h: Regenerate.
10381         * config/mep/mep-intrin.h: Regenerate.
10382
10383 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
10384
10385         PR debug/40462
10386         * jump.c (returnjump_p): Revert last patch.
10387         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
10388
10389 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10390
10391         PR target/40575
10392         * pa.md (casesi32p): Use jump table label to determine the offset
10393         of the jump table.
10394         (casesi64p): Likewise.
10395
10396         * pa.c (forward_branch_p): Return bool type.  Use instruction
10397         addresses when available.  Assert that INSN has a jump label.
10398         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
10399         have a jump label.
10400
10401 2009-07-01  Richard Guenther  <rguenther@suse.de>
10402
10403         PR tree-optimization/19831
10404         * tree-ssa-dce.c (propagate_necessity): Calls to functions
10405         that only act as barriers do not make any previous stores necessary.
10406         * tree-ssa-structalias.c (handle_lhs_call): Delay making
10407         HEAP variables global, do not add a constraint from nonlocal.
10408         (find_func_aliases): Handle escapes through return statements.
10409         (compute_points_to_sets): Make escaped HEAP variables global.
10410
10411 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
10412
10413         PR bootstrap/40597
10414         * expmed.c (emit_store_flag): Perform a conversion if necessary,
10415         after reducing a DImode cstore to SImode.
10416
10417 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
10418
10419         * expr.c (expand_expr_real_1): Reinstate fallthrough to
10420         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
10421
10422 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
10423
10424         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
10425         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
10426         to 0.
10427         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
10428         and umod_optab if TARGET_BSD_DIVMOD.
10429         * config/vax/lib1funcs.asm: New file.
10430         * config/vax/t-linux: New file.
10431         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
10432
10433 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
10434
10435         PR c++/40566
10436         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
10437         to type arguments that have void type.
10438
10439         PR debug/40573
10440         * dwarf2out.c (gen_formal_parameter_die): Call
10441         equate_decl_number_to_die if node is different from origin.
10442
10443 2009-06-30  Anthony Green  <green@moxielogic.com>
10444
10445         Clean up moxie port for --enable-build-with-cxx.
10446         * config/moxie/moxie.c (moxie_function_value): First two
10447         parameters are const_tree, not tree.
10448         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
10449         (REG_CLASS_NAMES): Ditto.
10450         (REGNO_REG_CLASS): Ditto.
10451         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
10452         (moxie_function_value): Fix constyness of arguments.
10453
10454 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
10455
10456         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
10457         finalize_size_functions before further processing.
10458         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
10459         (variable_size): Call self_referential_size on size expressions
10460         that contain a PLACEHOLDER_EXPR.
10461         (size_functions): New static variable.
10462         (copy_self_referential_tree_r): New static function.
10463         (self_referential_size): Likewise.
10464         (finalize_size_functions): New global function.
10465         * tree.c: Include tree-inline.h.
10466         (push_without_duplicates): New static function.
10467         (find_placeholder_in_expr): New global function.
10468         (substitute_in_expr) <tcc_declaration>: Return the replacement object
10469         on equality.
10470         <tcc_expression>: Likewise.
10471         <tcc_vl_exp>: If the replacement object is a constant, try to inline
10472         the call in the expression.
10473         * tree.h (finalize_size_functions): Declare.
10474         (find_placeholder_in_expr): Likewise.
10475         (FIND_PLACEHOLDER_IN_EXPR): New macro.
10476         (substitute_placeholder_in_expr): Update comment.
10477         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
10478         is true.
10479         (copy_tree_body_r): Likewise.
10480         (copy_tree_body): New static function.
10481         (maybe_inline_call_in_expr): New global function.
10482         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
10483         (maybe_inline_call_in_expr): Declare.
10484         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
10485         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
10486         GIMPLE_H.
10487
10488 2009-06-30  Richard Guenther  <rguenther@suse.de>
10489
10490         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
10491         continue walking.
10492         (propagate_necessity): Do not mark reaching defs of stores
10493         as necessary.
10494
10495 2009-06-30  Jan Hubicka  <jh@suse.cz>
10496
10497         * cfgloopanal.c (check_irred): Move into ...
10498         (mark_irreducible_loops): ... here; return true if ireducible
10499         loops was found.
10500         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
10501         (analyze_function): Try to prove loop finiteness.
10502         * cfgloop.h (mark_irreducible_loops): Update prototype.
10503         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
10504
10505 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
10506
10507         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
10508
10509 2009-06-30  Ira Rosen  <irar@il.ibm.com>
10510
10511         PR tree-optimization/40542
10512         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
10513         types.
10514
10515 2009-06-30  Martin Jambor  <mjambor@suse.cz>
10516
10517         PR tree-optimization/40582
10518         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
10519         than useless_type_conversion_p.
10520         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
10521         proper place.
10522
10523 2009-06-30  Martin Jambor  <mjambor@suse.cz>
10524
10525         PR middle-end/40554
10526         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
10527
10528 2009-06-30  Richard Guenther  <rguenther@suse.de>
10529
10530         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
10531         use ao_ref references.
10532         (walk_aliased_vdefs): Likewise.
10533         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
10534         * tree-ssa-dce.c (struct ref_data): Remove.
10535         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
10536         (mark_aliased_reaching_defs_necessary): Adjust.
10537         (mark_all_reaching_defs_necessary_1): Likewise.
10538
10539 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
10540
10541         PR boostrap/40597
10542         * expmed.c (emit_cstore): New name of emit_store_flag_1.
10543         (emit_store_flag_1): Extract from emit_store_flag, adjust
10544         calls to (what now is) emit_cstore.
10545         (emit_store_flag): Call emit_store_flag_1 and also use it
10546         for what used to be recursive calls.
10547
10548 2009-06-30  Wei Guozhi  <carrot@google.com>
10549
10550         PR/40416
10551         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
10552         if the target bb post dominates from bb.
10553         * config/i386/i386.c (memory_address_length): Check existence of base
10554         register before using it.
10555
10556 2009-06-30  Nick Clifton  <nickc@redhat.com>
10557             DJ Delorie  <dj@redhat.com>
10558
10559         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
10560         __FMOVD_ENABLED__ is defined.
10561         * config/sh/sh.h
10562         (TARGET_FMOVD): Provide a default definition.
10563         (MASK_FMOVD): Likewise.
10564         (TARGET_CPU_CPP_BUILTINS): Define
10565         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
10566         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
10567         two fmov instructions depending upon whether TARGET_FMOVD is
10568         enabled.
10569         (split for DF load from memory into register): Also handle
10570         MEMs which consist of REG+DISP addressing.
10571         (split for DF store from register to memory): Likewise.
10572         * config/sh/sh.opt (mfmovd): Remove this switch.
10573         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
10574         * config/sh/sh.c (sh_override_options): Do not automatically
10575         enable TARGET_MOVD for the SH2A when supporting doubles - leave
10576         that to the -mfmovd command line switch.
10577
10578         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
10579         the SH4 and SH4A.
10580         (fldi_ok): Always allow.
10581         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
10582
10583 2009-06-29  DJ Delorie  <dj@redhat.com>
10584
10585         * doc/install.texi (mep-x-elf): Correct chip's full name.
10586
10587 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
10588
10589         * doc/extend.texi: Fix typo.
10590
10591 2009-06-29  Tom Tromey  <tromey@redhat.com>
10592
10593         * dwarf2.h: Remove.
10594         * Makefile.in (DWARF2_H): New variable.
10595         (except.o): Use it.
10596         (dwarf2out.o): Likewise.
10597         (dwarf2asm.o): Likewise.
10598         * config/i386/t-i386: Use DWARF2_H.
10599         * except.c: Include elf/dwarf2.h.
10600         * unwind-dw2.c: Include elf/dwarf2.h.
10601         * dwarf2out.c: Include elf/dwarf2.h.
10602         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
10603         <dtprel>: New field.
10604         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
10605         (size_of_loc_descr): Likewise.
10606         (output_loc_operands_raw): Likewise.
10607         (output_loc_operands): Handle new dtprel field.
10608         (loc_checksum): Update.
10609         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
10610         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
10611         * unwind-dw2-fde.c: Include elf/dwarf2.h.
10612         * dwarf2asm.c: Include elf/dwarf2.h.
10613         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
10614         * config/mmix/mmix.c: Include elf/dwarf2.h.
10615         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
10616         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
10617         * config/sh/sh.c: Include elf/dwarf2.h.
10618         * config/i386/i386.c: Include elf/dwarf2.h.
10619
10620 2009-06-29  DJ Delorie  <dj@redhat.com>
10621
10622         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
10623
10624         * doc/extend.texi: Add MeP attributes and pragmas.
10625         * doc/invoke.text: Add MeP Options.
10626         * doc/contrib.texi: Add MeP contribution.
10627         * doc/md.texi: Add MeP constraints.
10628         * doc/install.texi: Add MeP target.
10629
10630 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
10631
10632         * target.h (struct gcc_target): Add frame_pointer_required field.
10633         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
10634         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
10635         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
10636         hook.
10637         * reload1.c (update_eliminables): (Ditto.).
10638         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
10639         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
10640         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
10641
10642         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
10643
10644         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
10645         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
10646         (arm_frame_pointer_required): New function.
10647
10648         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
10649         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10650         (avr_frame_pointer_required_p): Declare as static.
10651         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
10652
10653         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
10654         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
10655         (bfin_frame_pointer_required): Make as static, change return type
10656         to bool.
10657         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
10658
10659         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
10660         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10661         (cris_frame_pointer_required): New function.
10662
10663         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
10664
10665         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
10666         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10667         (fr30_frame_pointer_required): New function.
10668
10669         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
10670         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
10671         (frv_frame_pointer_required): Make as static, change return type
10672         to bool.
10673         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
10674
10675         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
10676         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10677         (ix86_frame_pointer_required): Make as static, change return type to
10678         bool.
10679         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
10680
10681         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
10682         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10683
10684         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
10685
10686         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
10687
10688         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
10689
10690         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
10691         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10692         (mips_frame_pointer_required): Make as static.
10693         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
10694
10695         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
10696         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10697         (mmix_frame_pointer_required): Mew function.
10698
10699         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
10700         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10701
10702         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
10703
10704         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
10705
10706         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
10707
10708         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
10709         (CAN_ELIMINATE): Redefine.
10710         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10711         (sparc_frame_pointer_required): New function.
10712         (sparc_can_eliminate): New function.
10713         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
10714
10715         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
10716         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
10717
10718         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
10719         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
10720         (xtensa_frame_pointer_required): Make as static, change return type
10721         to bool.
10722         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
10723         Remove.
10724
10725 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
10726
10727         * doc/plugins.texi: Document PLUGIN_START_UNIT.
10728         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
10729         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
10730         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
10731         (register_callback): Handle PLUGIN_START_UNIT.
10732         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
10733
10734 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
10735
10736         * tree.c (process_call_operands): Propagate TREE_READONLY from the
10737         operands.
10738         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
10739         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
10740
10741 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
10742
10743         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
10744         move cost.
10745
10746 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
10747
10748         * doc/extend.texi (Additional Floating Types): __float128 is also
10749         supported on i386 targets.
10750
10751 2009-06-29  Richard Guenther  <rguenther@suse.de>
10752
10753         PR middle-end/14187
10754         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
10755         flag.
10756         (pt_solutions_same_restrict_base): Declare.
10757         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
10758         flag.
10759         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
10760         (make_constraint_from, make_copy_constraint): Move earlier.
10761         (make_constraint_from_heapvar): New function.
10762         (make_constraint_from_restrict): Likewise.
10763         (handle_lhs_call): Use it.
10764         (find_func_aliases): Use it to track conversions to restrict
10765         qualified pointers.
10766         (struct fieldoff): Add only_restrict_pointers flag.
10767         (push_fields_onto_fieldstack): Initialize it.
10768         (create_variable_info_for): Track global restrict qualified pointers.
10769         (intra_create_variable_infos): Use make_constraint_from_heapvar.
10770         Track restrict qualified pointer arguments.
10771         (set_uids_in_ptset): Use varinfo is_global_var flag.
10772         (find_what_var_points_to): Set the vars_contains_restrict flag.
10773         Always create the points-to solution for sets including restrict tags.
10774         (pt_solutions_same_restrict_base): New function.
10775         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
10776         qualified pointers use pt_solutions_same_restrict_base as
10777         additional source for disambiguation.
10778
10779 2009-06-29  Richard Guenther  <rguenther@suse.de>
10780
10781         PR middle-end/38212
10782         * alias.c (find_base_decl): Remove.
10783         (get_deref_alias_set_1): Remove restrict handling.
10784         * c-common.c (c_apply_type_quals_to_decl): Do not set
10785         DECL_POINTER_ALIAS_SET.
10786         * gimplify.c (find_single_pointer_decl_1): Remove.
10787         (find_single_pointer_decl): Likewise.
10788         (internal_get_tmp_var): Remove restrict handling.
10789         (gimple_regimplify_operands): Likewise.
10790         * omp-low.c (expand_omp_atomic_pipeline): Do not set
10791         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
10792         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
10793         * tree.c (restrict_base_for_decl): Remove.
10794         (init_ttree): Do not allocate it.
10795         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
10796         LABEL_DECL_UID for label decls.
10797         (copy_node_stat): Do not copy restrict information.
10798         (decl_restrict_base_lookup): Remove.
10799         (decl_restrict_base_insert): Likewise.
10800         (print_restrict_base_statistics): Likewise.
10801         (dump_tree_statistics): Do not call print_restrict_base_statistics.
10802         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
10803         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
10804         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
10805         (LABEL_DECL_UID): Adjust.
10806         (DECL_BASED_ON_RESTRICT_P): Remove.
10807         (DECL_GET_RESTRICT_BASE): Likewise.
10808         (SET_DECL_RESTRICT_BASE): Likewise.
10809         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
10810
10811         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
10812         instead of DECL_POINTER_ALIAS_SET.
10813         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
10814         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
10815         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
10816
10817 2009-06-29  Richard Guenther  <rguenther@suse.de>
10818
10819         PR tree-optimization/40579
10820         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
10821         the IL to simplify has constants that overflowed.
10822
10823 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
10824
10825         PR tree-optimization/40550
10826         * tree-vect-generic.c (expand_vector_operations_1): Compute in
10827         vector_compute_type only when the size of vector_compute_type is
10828         less than the size of type.
10829
10830 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
10831
10832         * fold-const.c (contains_label_1): Fix comments.
10833         (contains_label_p): Do not walk trees multiple time.
10834
10835 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
10836
10837         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
10838         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
10839         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
10840         ix86_fp_comparison_operator.
10841         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
10842         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
10843         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
10844         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
10845         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
10846         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
10847         (related splits): Change predicate to ix86_fp_comparison_operator.
10848         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
10849         instead of ix86_fp_comparison_codes.
10850         (ix86_trivial_fp_comparison_operator,
10851         ix86_fp_comparison_operator): New.
10852         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
10853         (ix86_expand_compare): Eliminate last two parameters.
10854         (ix86_fp_jump_nontrivial_p): Kill.
10855         * config/i386/i386.c (put_condition_code): Eliminate call to
10856         ix86_fp_comparison_codes and subsequent assertion.
10857         (ix86_fp_comparison_codes): Eliminate.
10858         (ix86_fp_swap_condition): New.
10859         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
10860         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
10861         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
10862         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
10863         and ix86_fp_swap_condition.
10864         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
10865         Use ix86_fp_comparison_strategy.
10866         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
10867         (ix86_fp_jump_nontrivial_p): Eliminate.
10868         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
10869         call to ix86_expand_compare.
10870         (ix86_split_fp_branch, ix86_expand_setcc,
10871         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
10872         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
10873
10874 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
10875
10876         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
10877         related to jump_clobbers.
10878         * config/arm/arm.md (conds): Remove jump_clob case.
10879         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
10880         splits): Change comparison_operator to arm_comparison_operator.
10881         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
10882         Eliminate.
10883
10884 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
10885
10886         * dojump.c (do_compare_rtx_and_jump): Try swapping the
10887         condition for floating point modes.
10888         * expmed.c (emit_store_flag_1): Move here a bigger part
10889         of emit_store_flag.
10890         (emit_store_flag): Try swapping the condition for floating point
10891         modes.
10892         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
10893
10894 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
10895
10896         * expr.c (expand_expr_real_1): Just use do_store_flag.
10897         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
10898         emit_store_flag_force.
10899         * expmed.c (emit_store_flag_force): Copy here trick
10900         previously in expand_expr_real_1.  Try reversing the comparison.
10901         (emit_store_flag_1): Work if target is NULL.
10902         (emit_store_flag): Work if target is NULL, using the result mode
10903         from the comparison.  Use split_comparison, restructure final part
10904         to simplify conditionals.
10905
10906 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
10907
10908         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
10909         * dojump.c (do_jump): Change handling of floating-point
10910         ops to use just do_compare_and_jump.
10911         (split_comparison): New.
10912         (do_compare_rtx_and_jump): Add here logic coming previously
10913         in do_jump, using split_comparison.
10914
10915 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
10916
10917         PR target/40489
10918         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
10919
10920 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
10921
10922         * tree-ssa-alias.c: Fix unintentional commit.
10923
10924 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
10925
10926         * passes.c (execute_one_pass): Fix unintentional commit.
10927
10928 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
10929
10930         * df-problems.c (df_set_seen, df_unset_seen): Delete.
10931         (df_rd_local_compute, df_md_local_compute): Inline them.
10932
10933         (df_md_scratch): New.
10934         (df_md_alloc, df_md_free): Allocate/free it.
10935         (df_md_local_compute): Only include live registers in init.
10936         (df_md_transfer_function): Prune the in-set computed by
10937         the confluence function, and the gen-set too.
10938
10939 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
10940
10941         PR rtl-optimization/26854
10942         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
10943         * df-problems.c (df_rd_add_problem): Fix comment.
10944         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
10945         df_md_simulate_artificial_defs_at_top,
10946         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
10947         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
10948         df_md_transfer_function, df_md_init, df_md_confluence_0,
10949         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
10950         problem_MD, df_md_add_problem): New.
10951         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
10952         df_md_get_bb_info): New.
10953         (DF_LAST_PROBLEM_PLUS1): Adjust.
10954
10955         * Makefile.in (fwprop.o): Include domwalk.h.
10956         * fwprop.c: Include domwalk.h.
10957         (reg_defs, reg_defs_stack): New.
10958         (bitmap_only_bit_between): Remove.
10959         (process_defs): New.
10960         (process_uses): Use reg_defs and local_md instead of
10961         bitmap_only_bit_between and local_rd.
10962         (single_def_use_enter_block): New, from build_single_def_use_links.
10963         (single_def_use_leave_block): New.
10964         (build_single_def_use_links): Remove code moved to
10965         single_def_use_enter_block, invoke domwalk.
10966         (use_killed_between): Adjust comment.
10967
10968 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
10969
10970         * bitmap.h (bitmap_ior_and_into): New.
10971         * bitmap.c (bitmap_ior_and_into): New.
10972
10973 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
10974
10975         * domwalk.h (struct dom_walk_data): Remove all callbacks except
10976         before_dom_children_before_stmts and after_dom_children_after_stmts.
10977         Rename the two remaining callbacks to just before_dom_children and
10978         after_dom_children. Remove other GIMPLE statement walking bits.
10979         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
10980         * graphite.c: Do not include domwalk.h.
10981         * tree-into-ssa.c (interesting_blocks): New global.
10982         (struct mark_def_sites_global_data): Remove it and names_to_rename.
10983         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
10984         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
10985         now that they're not domwalk callbacks.
10986         (rewrite_initialize_block): Rename to...
10987         (rewrite_enter_block): ... this, place after called functions.  Test
10988         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
10989         (rewrite_finalize_block): Rename to...
10990         (rewrite_leave_block): ... this, place after called functions.
10991         (rewrite_update_init_block): Rename to...
10992         (rewrite_update_enter_block): ... this, place after called functions.
10993         Test interesting_blocks, call rewrite_update_stmt and
10994         rewrite_update_phi_arguments.
10995         (rewrite_update_fini_block): Rename to...
10996         (rewrite_leave_block): ... this, place after called functions.
10997         (rewrite_blocks): Remove last argument, simplify initialization of
10998         walk_data.
10999         (mark_def_sites_initialize_block): Rename to...
11000         (mark_def_sites_block): ... this, call mark_def_sites.
11001         (mark_def_sites_blocks): Remove argument, simplify initialization of
11002         walk_data.
11003         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
11004         (update_ssa): Likewise.
11005         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
11006         callback.
11007         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
11008         (dom_opt_initialize_block): Rename to...
11009         (dom_opt_enter_block): ... this, place after called functions.  Walk
11010         statements here, inline propagate_to_outgoing_edges.
11011         (dom_opt_finalize_block): Rename to...
11012         (dom_opt_leave_block): ... this, place after called functions.
11013         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
11014         domwalk callback.
11015         (dse_enter_block, dse_record_phi): New.
11016         (dse_record_phis): Delete.
11017         (dse_finalize_block): Rename to...
11018         (dse_leave_block): ... this.
11019         (tree_ssa_dse): Simplify initialization of walk_data.
11020         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
11021         Adjust initialization of walk_data.
11022         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
11023         * tree-ssa-loop-phiopt.c (get_non_trapping):
11024         Adjust initialization of walk_data.
11025         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
11026         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
11027         it's not a domwalk callback.
11028         (uncprop_initialize_block): Rename to...
11029         (dse_enter_block): ... this, call uncprop_into_successor_phis.
11030         (dse_finalize_block): Rename to...
11031         (dse_leave_block): ... this.
11032         (tree_ssa_uncprop): Simplify initialization of walk_data.
11033         * Makefile.in: Adjust dependencies.
11034
11035 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
11036
11037         * arm.md (casesi): Fix test for Thumb1.
11038         (thumb1_casesi_internal_pic): Likewise.
11039         (thumb1_casesi_dispatch): Likewise.
11040
11041 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
11042
11043         * config/arm/arm-cores.def: Added core cortex-m0.
11044         * config/arm/arm-tune.md: Regenerated.
11045         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
11046
11047 2009-06-26  DJ Delorie  <dj@redhat.com>
11048
11049         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
11050
11051         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
11052         the scheduler doesn't tag jump insns.
11053
11054 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
11055
11056         * c-decl.c (merge_decls): Re-indent.
11057
11058 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
11059
11060         PR c/39902
11061         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
11062         Special-case decimal float constants.
11063
11064 2009-06-26  Richard Henderson  <rth@redhat.com>
11065
11066         * function.h (struct function): Add cannot_be_copied_reason,
11067         and cannot_be_copied_set.
11068         * tree-inline.c (has_label_address_in_static_1): Rename from
11069         inline_forbidden_p_2; don't set inline_forbidden_reason here.
11070         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
11071         don't set inline_forbidden_reason.
11072         (copy_forbidden): New function, split out of inline_forbidden_p.
11073         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
11074         (inline_forbidden_p): Use copy_forbidden.
11075         (tree_versionable_function_p): Likewise.
11076         (inlinable_function_p): Merge into tree_inlinable_function_p.
11077         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
11078         * ipa-cp.c (ipcp_versionable_function_p): New function.
11079         (ipcp_cloning_candidate_p): Use it.
11080         (ipcp_node_modifiable_p): Likewise.
11081
11082 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
11083
11084         * builtins.c (expand_builtin_alloca): Handle builtin alloca
11085         that is marked not to be inlined. Remove flag_mudflap use.
11086         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
11087         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
11088
11089 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
11090
11091         PR bootstrap/40338
11092         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
11093         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
11094
11095 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
11096
11097         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
11098         shared libgcc.
11099         (__mingwthr_remove_key_dtor): Likewise.
11100
11101 2009-06-26  Richard Guenther  <rguenther@suse.de>
11102
11103         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
11104
11105 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
11106
11107         PR middle-end/40525
11108         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
11109         try the non-cond_exec path also.
11110
11111 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11112
11113         PR target/40468
11114         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
11115         (output_cbranch): Use new functions.
11116         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
11117         Likewise.
11118
11119 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
11120             Pat Haugen  <pthaugen@us.ibm.com>
11121             Revital Eres <ERES@il.ibm.com>
11122
11123         * config/rs6000/rs6000.c (print_operand): Correct lossage message
11124         for %c error.  Add %x support to print VSX registers as a unified
11125         register set, instead of separate float and altivec registers.
11126         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
11127         %y case, and add support for VSX pre-modify addresses.
11128         (output_toc): Add assert for CONST containing an integer constant
11129         in the PLUS case.
11130         (rs6000_adjust_cost): Add POWER7 support.
11131         (insn_must_be_first_in_group): Ditto.
11132         (insn_must_be_last_in_group): Ditto.
11133         (rs6000_emit_popcount): Ditto.
11134         (rs6000_vector_mode_supported_p): Ditto.
11135
11136         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
11137         Change some of the functions called by macros to being called
11138         through a pointer, so debug functions can be inserted if
11139         -mdebug=addr or -mdebug=cost.
11140         (rs6000_preferred_reload_class_ptr): Ditto.
11141         (rs6000_secondary_reload_class_ptr): Ditto.
11142         (rs6000_secondary_memory_needed_ptr): Ditto.
11143         (rs6000_cannot_change_mode_class_ptr): Ditto.
11144         (rs6000_secondary_reload_inner): Ditto.
11145         (rs6000_legitimize_reload_address): Ditto.
11146         (rs6000_legitimize_reload_address_ptr): Ditto.
11147         (rs6000_mode_dependent_address): Ditto.
11148         (rs6000_mode_dependent_address_ptr): Ditto.
11149
11150         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
11151         function to return true if the mode allows reg + integer
11152         addresses.
11153         (virtual_stack_registers_memory_p): New function to return true if
11154         the address refers to a virtual stack register.
11155         (rs6000_legitimate_offset_address_p): Move code to say whether a
11156         mode supports reg+int addressing to reg_offset_addressing_ok_p and
11157         call it.
11158         (rs6000_legitimate_address_p): Add checks for modes that only can
11159         do reg+reg addressing.  Start adding VSX support.
11160         (rs6000_legitimize_reload_address): Ditto.
11161         (rs6000_legitimize_address): Ditto.
11162         (rs6000_debug_legitimate_address_p): New debug functions for
11163         -mdebug=addr and -mdebug=cost.
11164         (rs6000_debug_rtx_costs): Ditto.
11165         (rs6000_debug_address_costs): Ditto.
11166         (rs6000_debug_adjust_cost): Ditto.
11167         (rs6000_debug_legitimize_address): Ditto.
11168         (rs6000_legitimize_reload_address_ptr): Point to call normal
11169         function or debug function.  Make functions called via pointer
11170         static.
11171         (rs6000_mode_dependent_address_ptr): Ditto.
11172         (rs6000_secondary_reload_class_ptr): Ditto.
11173         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
11174         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
11175         into a friendlier error.
11176         (rs6000_init_builtins): Add initial VSX support.
11177         (rs6000_adjust_cost): Fix some spacing issues.
11178
11179         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
11180         (REG_CLASS_NAMES): Ditto.
11181         (REG_CLASS_CONTENTS): Ditto.
11182         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
11183         pointer, to add -mdebug=addr support.
11184         (CANNOT_CHANGE_MODE_CLASS): Ditto.
11185         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
11186         -mdebug=addr support.
11187         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
11188         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
11189         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
11190
11191         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
11192         16-bit values.
11193         (bswapsi*): Set attribute types for load/store.  Add combiner
11194         patterns to eliminate zero extend on 64-bit.
11195         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
11196         stdbrx if the hardware supports those instructions.
11197
11198 2009-06-25  Ian Lance Taylor  <iant@google.com>
11199
11200         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
11201         (Link Options): Document -static-libstdc++.
11202
11203 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11204
11205         PR target/38731
11206         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
11207         DATA_ALIGNMENT instead.
11208
11209 2009-06-25  Richard Guenther  <rguenther@suse.de>
11210
11211         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
11212         indirect references against the callused/escaped solutions.
11213         (call_may_clobber_ref_p_1): Likewise.
11214
11215 2009-06-25  Martin Jambor  <mjambor@suse.cz>
11216
11217         PR tree-optimization/40493
11218         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
11219         (enum unscalarized_data_handling): New type.
11220         (handle_unscalarized_data_in_subtree): Return what has been done.
11221         (load_assign_lhs_subreplacements): Handle left flushes differently.
11222         (sra_modify_assign): Use unscalarized_data_handling, simplified
11223         condition determining whether to remove the statement.
11224
11225 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
11226
11227         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
11228         excerpt - @ should be doubled for texinfo.
11229
11230 2009-06-24  Ian Lance Taylor  <iant@google.com>
11231
11232         * config/arc/arc.c: Include "df.h".
11233         (arc_attribute_table): Make static.  Move higher in file.
11234         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
11235         (output_shift): Initialize n later to avoid warning.
11236         * config/arm/arm.c (arm_attribute_table): Make static.  Move
11237         higher in file.
11238         * config/avr/avr.c (avr_attribute_table): Make static.  Move
11239         higher in file.
11240         (reg_class_tab): Change array type from int to enum reg_class.
11241         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
11242         LABEL_REF.
11243         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
11244         (lshrhi3_out): Likewise.
11245         (class_likely_spilled_p): Change return type to bool.
11246         (avr_rtx_costs): Use local code variable with enum type.
11247         * config/avr/avr.md (movmemhi): Use add_reg_note.
11248         (andhi3, andsi3): Don't use AS2 with "and".
11249         (iorhi3, iorsi3): Don't use AS2 with "or".
11250         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
11251         * config/crx/crx.c: Include "df.h".
11252         (crx_attribute_table): Make static.
11253         * config/m32r/m32r.c: Include "df.h".
11254         (m32r_attribute_table): Make static.  Move higher in file.
11255         (pop): Use add_reg_note.
11256         (block_move_call): Change 0 to LCT_NORMAL in function call.
11257         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
11258         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
11259         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
11260         declare, not just when TREE_CODE is defined.
11261         * config/m68hc11/m68hc11.c: Include "expr.h".
11262         (m68hc11_attribute_table): Make static.  Move higher in file.
11263         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
11264         function call.
11265         (m68hc11_register_indirect_p): Likewise.
11266         (m68hc11_function_arg_padding): Change return type to enum
11267         direction.
11268         (emit_move_after_reload): Use add_reg_note.
11269         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
11270         (m68hc11_split_logical): Likewise.
11271         (m68hc11_rtx_costs): Add local code_and outer_code variables with
11272         enum type.
11273         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
11274         to VOIDmode in function call.
11275         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
11276         tree is defined.
11277         (m68hc11_split_logical): Update declaration.
11278         (m68hc11_function_arg_padding): Update declaration.
11279         * config/mcore/mcore.c (regno_reg_class): Change form array of int
11280         to array of enum reg_class.
11281         (mcore_attribute_table): Make static.  Move higher in file.
11282         (mcore_rtx_costs): Add cast to enum type.
11283         * config/mcore/mcore.h (regno_reg_class): Update declaration.
11284         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
11285         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
11286         in file.
11287         * config/sh/predicates.md (trapping_target_operand): Rename and to
11288         and_expr.
11289         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
11290         higher in file.
11291         * config/spu/spu.c (spu_attribute_table): Make static.  Move
11292         higher in file.
11293         * config/v850/v850.c (v850_attribute_table): Make static.  Move
11294         higher in file.
11295         (v850_rtx_costs): Use local code with enum type.
11296         (expand_epilogue): Add cast.
11297         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
11298
11299 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
11300
11301         PR target/40515
11302         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
11303         -m2a-single-only and -m2a-nofpu.
11304         * config/sh/sh.opt: Document m2a generates FPU code.
11305
11306 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
11307
11308         * defaults.h (CAN_ELIMINATE): Provide default.
11309         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
11310         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
11311         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
11312         * config/spu/spu.h (CAN_ELIMINATE): Delete.
11313         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
11314         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
11315         * config/cris/cris.h (CAN_ELIMINATE): Delete.
11316         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
11317         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
11318         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
11319
11320 2009-06-24  DJ Delorie  <dj@redhat.com>
11321
11322         * mep-ext-cop.cpu: Fix copyright notice.
11323         * mep-default: Fix copyright notice.
11324         * mep-core: Fix copyright notice.
11325         * mep: Fix copyright notice.
11326         * mep-ivc2: Fix copyright notice.
11327         * mep-c5: Fix copyright notice.
11328
11329 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
11330
11331         * doc/contrib.texi (Contributors):
11332
11333 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
11334
11335         PR middle-end/40501
11336         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
11337         src and dst operands if necessary.
11338
11339 2009-06-23  DJ Delorie  <dj@redhat.com>
11340
11341         Add MeP port.
11342         * config.gcc: Add mep support.
11343         * recog.c: Resurrect validate_replace_rtx_subexp().
11344         * recog.h: Likewise.
11345         * config/mep/: Add new port:
11346         * config/mep/constraints.md: New file.
11347         * config/mep/default.h: New file.
11348         * config/mep/intrinsics.h: New file.
11349         * config/mep/intrinsics.md: New file.
11350         * config/mep/ivc2-template.h: New file.
11351         * config/mep/mep-c5.cpu: New file.
11352         * config/mep/mep-core.cpu: New file.
11353         * config/mep/mep-default.cpu: New file.
11354         * config/mep/mep-ext-cop.cpu: New file.
11355         * config/mep/mep-intrin.h: New file.
11356         * config/mep/mep-ivc2.cpu: New file.
11357         * config/mep/mep-lib1.asm: New file.
11358         * config/mep/mep-lib2.c: New file.
11359         * config/mep/mep-pragma.c: New file.
11360         * config/mep/mep-protos.h: New file.
11361         * config/mep/mep-tramp.c: New file.
11362         * config/mep/mep.c: New file.
11363         * config/mep/mep.cpu: New file.
11364         * config/mep/mep.h: New file.
11365         * config/mep/mep.md: New file.
11366         * config/mep/mep.opt: New file.
11367         * config/mep/predicates.md: New file.
11368         * config/mep/t-mep: New file.
11369
11370 2009-06-23  Ian Lance Taylor  <iant@google.com>
11371
11372         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
11373         from loose_warn into c_loose_warn and from strict_warn into
11374         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
11375         --enable-build-with-cxx.  Set and substitute
11376         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
11377         * Makefile.in (CXXFLAGS): New variable.
11378         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
11379         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
11380         the default is the same as $(STRICT_WARN).
11381         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
11382         (CXX): New variable.
11383         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
11384         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
11385         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
11386         (HOST_LIBS): New variable.
11387         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
11388         (ALL_CXXFLAGS): New variable.
11389         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
11390         * doc/install.texi (Configuration): Document
11391         --enable-build-with-cxx, --with-stage1-ldflags,
11392         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
11393         * configure: Rebuild.
11394
11395 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11396
11397         * config/arm/arm.c (arm_override_options): Fix braces and formatting
11398         from previous commit.
11399
11400 2009-06-23  Ian Lance Taylor  <iant@google.com>
11401
11402         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
11403
11404 2009-06-23  Ian Lance Taylor  <iant@google.com>
11405
11406         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
11407         with ATTRIBUTE_UNUSED.
11408
11409 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11410             Pat Haugen  <pthaugen@us.ibm.com>
11411             Revital Eres  <eres@il.ibm.com>
11412
11413         * config.in (HAVE_AS_POPCNTD): Add default definition.
11414         (HAVE_AS_LWSYNC): Ditto.
11415
11416         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
11417         release number.
11418         (gcc_cv_as_powerpc_cmpb): Ditto.
11419         (gcc_cv_as_powerpc_dfp): Ditto.
11420         (gcc_cv_as_powerpc_vsx): Ditto.
11421         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
11422         supporting the popcntd/lwsync instructions.
11423         (gcc_cv_as_powerpc_lwsync): Ditto.
11424         * configure: Regenerate.
11425
11426         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
11427         -mcpu=native and -mcpu=power7.
11428         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
11429
11430         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
11431         a variable instead of a mask to reduce the number of mask bits.
11432         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
11433         (-mbit-word): Ditto.
11434         (-mregnames): Ditto.
11435         * config/rs6000/rs6000.opt (-mupdate): Ditto.
11436         (-mfused-madd): Ditto.
11437
11438         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
11439         2.06 instructions.
11440         (-mvsx): New switch for VSX instructions.
11441         (-misel): Move from a variable to a mask to allow it to be set by
11442         -mcpu=.
11443
11444         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
11445         function declaration to an array declaration.
11446         (rs6000_hard_regno_nregs): New external array declaration.
11447
11448         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
11449         files included by rs6000.md.
11450
11451         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
11452         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
11453
11454         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
11455         a target mask.
11456         (rs6000_debug_reg): New -mdebug= variables.
11457         (rs6000_debug_addr): Ditto.
11458         (rs6000_debug_cost): Ditto.
11459         (rs6000_pmode): New variable to hold Pmode.
11460         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
11461         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
11462         calculated at compiler start.
11463         (rs6000_hard_regno_nregs): Change function to an array which holds
11464         HARD_REGNO_NREGS calculated at compiler start.
11465         (rs6000_explicit_options): Delete isel field.
11466         (rs6000_vector_unit): New array to hold which vector unit
11467         supports arithmetic options for a given type.
11468         (rs6000_vector_mem): New array to hold which vector unit supports
11469         memory reference operations for a given type.
11470         (rs6000_vector_align): New array to given the alignment of each
11471         vector type.
11472         (power7_cost): New basic costs for power7.
11473         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
11474         (rs6000_hard_regno_nregs_internal): New function, moved from
11475         HARD_REGNO_NREGS, to calculate the number of registers each hard
11476         register takes for each type.
11477         (rs6000_debug_reg_print): New function for -mdebug=reg support.
11478         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
11479         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
11480         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
11481         unit information here so it is calculated once at compiler startup
11482         time.
11483         (rs6000_override_options): Make -misel a target mask.  Add more
11484         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
11485         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
11486         -mdebug=cost.
11487         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
11488         (rs6000_handle_option): Move -misel from variable to target mask.
11489         (rs6000_builtin_mask_for_load): Add VSX support.
11490         (rs6000_conditional_register_usage): Ditto.
11491         (USE_ALTIVEC_FOR_ARG_P): Ditto.
11492         (function_arg_boundary): Ditto.
11493         (rs6000_expand_builtin): Ditto.
11494         (def_builtin): Make abort message a little friendlier.
11495         (rs6000_emit_int_cmove): Add support for 64-bit isel.
11496
11497         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
11498         assembler support the popcntd instruction instead of a vsx
11499         instruction to enable power7 support.
11500         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
11501         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
11502         option to the assembler if -mcpu=native.
11503         (ASM_CPU_NATIVE_SPEC): Ditto.
11504         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
11505         ISA 2.06 features.
11506         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
11507         the lwsync instruction.
11508         (enum processor_type): Add PROCESSOR_POWER7.
11509         (rs6000_debug_reg): New -mdebug= options.
11510         (rs6000_debug_addr): Ditto.
11511         (rs6000_debug_cost): Ditto.
11512         (rs6000_isel): Delete.
11513         (enum rs6000_vector): New enum to say what vector unit we have.
11514         (VECTOR_UNIT_*): New macros to say which vector unit has
11515         arithmetic operations for a given type.
11516         (VECTOR_MEM_*): New macros to say which vector unit has memory
11517         operations for a given type.
11518         (TARGET_LDBRX): Whether the machine supports the ldbrx
11519         instruction.
11520         (TARGET_ISEL): Delete, -misel moved to be a mask.
11521         (TARGET_ISEL64): New macro for 64-bit isel support.
11522         (UNITS_PER_VSX_WORD): New macro.
11523         (POINTER_SIZE): Move to be an external variable, rather than
11524         calculating whether we are generating 32 ot 64-bit code.
11525         (Pmode): Ditto.
11526         (STACK_BOUNDARY): Add VSX support.
11527         (LOCAL_ALIGNMENT): Ditto.
11528         (SLOW_UNALIGNED_ACCESS): Ditto.
11529         (VSX_REGNO_P): New macro for VSX support.
11530         (VFLOAT_REGNO_P): Ditto.
11531         (VINT_REGNO_P): Ditto.
11532         (VLOGICAL_REGNO_P): Ditto.
11533         (VSX_VECTOR_MODE): Ditto.
11534         (VSX_SCALAR_MODE): Ditto.
11535         (VSX_MODE): Ditto.
11536         (VSX_MOVE_MODE): Ditto.
11537         (VSX_REG_CLASS_P): Ditto.
11538         (HARD_REGNO_NREGS): Instead of calling a function, use an array
11539         lookup.
11540         (UNITS_PER_SIMD_WORD): Add VSX support.
11541         (MODES_TIEABLE_P): Ditto.
11542         (STARTING_FRAME_OFFSET): Ditto.
11543         (STACK_DYNAMIC_OFFSET): Ditto.
11544         (EPILOGUE_USES): Ditto.
11545         (REGNO_REG_CLASS): Move to array lookup.
11546         (CLASS_MAX_NREGS): Ditto.
11547         (rs6000_vector_reg_class): Add declaration.
11548         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
11549         overlap with the floating point and Altivec registers.
11550
11551         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
11552
11553         * config/rs6000/driver-rs6000.c (asm_names): New static array to
11554         give the appropriate asm switches if -mcpu=native.
11555         (host_detect_local_cpu): Add support for "asm".
11556         (host_detect_local_cpu): Follow GNU code guidelines for name.
11557
11558         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
11559         -mbit-word to a variable instead of being a target mask.
11560
11561         * config/rs6000/sync.md (lwsync): If the assembler supports it,
11562         emit the lwsync instruction instead of emitting the instruction as
11563         an integer constant.
11564
11565         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
11566         fixuns_trundfsi2, move expander into rs6000.md.
11567
11568         * config/rs6000/rs6000.md (cpu): Add power7.
11569         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
11570         (logical predicate patterns): Change the single instruction
11571         primitives that set CR0 to be fast_compare instead of compare.
11572         (norsi*): Ditto.
11573         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
11574         (popcntddi2): Ditto.
11575         (popcount<mode>): Ditto.
11576         (floating multiply/add insns): Name the floating point
11577         multiply/add insns.
11578         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
11579         (isel_unsigned_<mode>): Ditto.
11580         (fixuns_trundfsi2): Move expander here from spe.md.
11581         (smindi3): Define if we have -misel on 64-bit systems.
11582         (smaxdi3): Ditto.
11583         (umindi3): Ditto.
11584         (umaxdi3): Ditto.
11585
11586 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
11587
11588         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
11589         extra_objs.
11590         * config/avr/avr.c (avr_current_device): New variable.
11591         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
11592         (avr_arch, mcu_type_s): Move to avr.h.
11593         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
11594         default_data_section_start fields.
11595         (avr_arch): Moved from avr.c.
11596         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
11597         library_name fields.
11598         (avr_current_device, avr_mcu_types, avr_arch_types,
11599         avr_device_to_arch, avr_device_to_data_start,
11600         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
11601         (EXTRA_SPEC_FUNCTIONS): Define.
11602         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
11603         options mapping. Use device_to_arch and device_to_data_start insted.
11604         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
11605         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
11606         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
11607         * config/avr/driver-avr.c: New file.
11608         * config/avr/avr-devices.c: New file.
11609
11610 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
11611
11612         * var-tracking.c (unshare_variable): Force initialized to
11613         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
11614         (set_variable_part): Likewise.
11615         (struct variable_union_info): Remove pos_src field.
11616         (vui_vec, vui_allocated): New variables.
11617         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
11618         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
11619         == 1 use a simpler sorting algorithm.  Compute pos field right
11620         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
11621         Avoid quadratic comparison if !flag_var_tracking_uninit.
11622         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
11623         unshare_variable unconditionally.
11624         (dataflow_set_different_2): Removed.
11625         (dataflow_set_different): Don't traverse second hash table.
11626         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
11627         unconditionally to var_reg_set or var_mem_set.
11628         (emit_notes_in_bb): Likewise.
11629         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
11630         unshare_variable.
11631         (emit_note_insn_var_location): Don't set initialized to
11632         VAR_INIT_STATUS_INITIALIZED early.
11633         (vt_finalize): Free vui_vec if needed, clear vui_vec and
11634         vui_allocated.
11635         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
11636
11637         * tree-object-size.c (addr_object_size): Instead of checking
11638         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
11639         are no FIELD_DECLs following it.
11640
11641 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
11642
11643         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
11644         order to match bswaps with signed source operands.
11645
11646 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11647
11648         * sdbout.c (sdbout_one_type): Fix braces in switch.
11649
11650 2009-06-23  Richard Guenther  <rguenther@suse.de>
11651
11652         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
11653         member.
11654         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
11655         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
11656         var_callused, callused_tree, var_storedanything, storedanything_tree,
11657         var_integer, integer_tree): Remove global variables.
11658         (new_var_info): Do not pass new id, append the new var to the
11659         global variable vector.
11660         (do_ds_constraint): Use is_global_var member of the variable-info.
11661         (new_scalar_tmp_constraint_exp): Adjust.
11662         (create_function_info_for): Likewise.
11663         (create_variable_info_for): Likewise.
11664         (find_what_var_points_to): Remove dead code.
11665         (init_base_vars): Simplify.
11666         (compute_points_to_sets): Adjust.
11667
11668 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
11669
11670         * combine.c (try_combine): Dump information about the insns we're
11671         combining.
11672
11673 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
11674
11675         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
11676         check when calling force_to_mode on TRUNCATE's operand.
11677
11678 2009-06-22  Ian Lance Taylor  <iant@google.com>
11679
11680         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
11681
11682 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
11683
11684         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
11685
11686 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11687
11688         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
11689         override library linkage flags such as -static-libgcc or
11690         -shared-libgcc.
11691
11692 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
11693
11694         * config/m68k/m68k-devices.def: Add line for MCF5221x.
11695
11696 2009-06-22  Ian Lance Taylor  <iant@google.com>
11697
11698         * config/linux.opt: Put mglibc ahead of muclibc.
11699
11700         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
11701         for duplicate decls.
11702
11703 2009-06-22  Matthias Klose  <doko@ubuntu.com>
11704
11705         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
11706
11707 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
11708
11709         PR objc/28050
11710         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
11711         instead of NULL if a parser error occurs.
11712
11713 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11714
11715         * dwarf2out.c (dwarf2_debug_hooks): Initialize
11716         non-DWARF2_DEBUGGING_INFO version.
11717
11718 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
11719
11720         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
11721         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
11722
11723         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
11724         (LIBGCC2_TF_CEXT): Define.
11725         (TF_SIZE): Define.
11726
11727 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11728
11729         PR target/40463
11730         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
11731
11732 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11733
11734         * config/arm/arm.c (arm_override_options): Disable
11735         -mcaller-super-interworking and -mcallee-super-interworking.
11736         * doc/invoke.texi (ARM Options): Document this.
11737
11738 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
11739
11740         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
11741         * config/arm/constraints.md (j): New constraint for movw operands.
11742         (N): Remove thumb2 meaning.
11743         * config/arm/arm.md (*arm_movw): Delete.
11744         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
11745         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
11746         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
11747
11748 2009-06-22  Martin Jambor  <mjambor@suse.cz>
11749
11750         PR tree-optimization/40492
11751         * tree-sra.c (sra_modify_assign): Pass zero offsets to
11752         build_ref_for_offset.
11753
11754 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
11755
11756         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
11757         JUMP_TABLE_DATA_P predicates where applicable.
11758         * auto-inc-dec.c: Ditto.
11759         * builtins.c: Ditto.
11760         * caller-save.c: Ditto.
11761         * calls.c: Ditto.
11762         * cfgcleanup.c: Ditto.
11763         * cfglayout.c: Ditto.
11764         * cfgrtl.c: Ditto.
11765         * combine.c: Ditto.
11766         * combine-stack-adj.c: Ditto.
11767         * cse.c: Ditto.
11768         * cselib.c: Ditto.
11769         * dbxout.c: Ditto.
11770         * df-scan.c: Ditto.
11771         * dse.c: Ditto.
11772         * dwarf2asm.c: Ditto.
11773         * dwarf2out.c: Ditto.
11774         * emit-rtl.c: Ditto.
11775         * except.c: Ditto.
11776         * explow.c: Ditto.
11777         * expmed.c: Ditto.
11778         * expr.c: Ditto.
11779         * final.c: Ditto.
11780         * function.c: Ditto.
11781         * fwprop.c: Ditto.
11782         * gcse.c: Ditto.
11783         * genpreds.c: Ditto.
11784         * genrecog.c: Ditto.
11785         * ifcvt.c: Ditto.
11786         * ira-costs.c: Ditto.
11787         * ira-lives.c: Ditto.
11788         * jump.c: Ditto.
11789         * loop-iv.c: Ditto.
11790         * lower-subreg.c: Ditto.
11791         * modulo-sched.c: Ditto.
11792         * optabs.c: Ditto.
11793         * postreload.c: Ditto.
11794         * print-rtl.c: Ditto.
11795         * recog.c: Ditto.
11796         * reginfo.c: Ditto.
11797         * regmove.c: Ditto.
11798         * reload1.c: Ditto.
11799         * reload.c: Ditto.
11800         * reorg.c: Ditto.
11801         * rtlanal.c: Ditto.
11802         * rtl.c: Ditto.
11803         * sched-vis.c: Ditto.
11804         * sdbout.c: Ditto.
11805         * sel-sched-ir.c: Ditto.
11806         * simplify-rtx.c: Ditto.
11807         * targhooks.c: Ditto.
11808         * var-tracking.c: Ditto.
11809         * vmsdbgout.c: Ditto.
11810
11811 2009-06-22  Matthias Klose  <doko@ubuntu.com>
11812
11813         * Makefile.in (install-plugin): Always use DESTDIR.
11814
11815 2009-06-22  Olivier Hainque  <hainque@adacore.com>
11816
11817         * config/pa/pa.c (output_call): Don't optimize post call jumps
11818         into return address adjustments if the call may throw.
11819
11820 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
11821
11822         * arm.c (thumb1_output_casesi): New function.
11823         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
11824         optimizing for size or PIC.
11825         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
11826         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
11827         (casesi): Handle Thumb-1 when optimizing for size or PIC.
11828         (thumb1_casesi_internal_pic): New expand rule.
11829         (thumb1_casesi_dispatch): New pattern.
11830         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
11831         thumb-1 mode.
11832         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
11833         in the text seciton when PIC or optimizing for size.
11834         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
11835         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
11836         preservation properties of code.
11837         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
11838         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
11839         (__gnu_thumb1_case_si): New function.
11840         * t-arm (LIB1ASMSRC): Define here.
11841         (LIB1ASMFUNCS): Add some common functions.
11842         * t-arm-elf (LIB1ASMSRC): Delete.
11843         (LIB1ASMFUNCS): Append to existing set.
11844         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
11845         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
11846         * t-symbian (LIB1ASMFUNCS): Likewise.
11847         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
11848         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
11849
11850 2009-06-21  Richard Guenther  <rguenther@suse.de>
11851
11852         PR tree-optimization/38729
11853         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
11854         to loops with a single exit if -fno-expensive-optimizations.
11855
11856 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
11857
11858         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
11859         (dataflow_set): Change vars type from htab_t to shared_hash.
11860         (shared_hash_pool, empty_shared_hash): New variables.
11861         (vars_clear): Removed.
11862         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
11863         shared_hash_find_slot_unshare, shared_hash_find_slot,
11864         shared_hash_find_slot_noinsert, shared_hash_find): New
11865         static inlines.
11866         (shared_hash_unshare, shared_hash_destroy): New functions.
11867         (unshare_variable): Unshare set->vars if shared, use
11868         shared_hash_htab.
11869         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
11870         (get_init_value, find_src_set_src, dump_dataflow_set,
11871         clobber_variable_part, emit_notes_for_differences): Use
11872         shared_hash_htab.
11873         (dataflow_set_init): Remove second argument, set vars to
11874         empty_shared_hash instead of creating a new htab.
11875         (dataflow_set_clear): Call shared_hash_destroy and set vars
11876         to empty_shared_hash instead of calling vars_clear.
11877         (dataflow_set_copy): Don't call vars_copy, instead just share
11878         the src htab with dst.
11879         (variable_union): Use shared_hash_*, use initially NO_INSERT
11880         lookup if set->vars is shared.  Don't keep slot cleared before
11881         calling unshare_variable.  Unshare set->vars if needed.
11882         Even ->refcount == 1 vars must be unshared if set->vars is shared
11883         and var needs to be modified.
11884         (variable_canonicalize): New function.
11885         (dataflow_set_union): If dst->vars is empty, just share src->vars
11886         with dst->vars and traverse with variable_canonicalize to canonicalize
11887         and unshare what is needed.
11888         (dataflow_set_different): If old_set and new_set use the same shared
11889         htab, they aren't different.  If number of htab elements is different,
11890         htabs are different.  Use shared_hash_*.
11891         (dataflow_set_destroy): Call shared_hash_destroy instead of
11892         htab_delete.
11893         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
11894         second argument to dataflow_set_init.
11895         (vt_initialize): Likewise.  Initialize shared_hash_pool and
11896         empty_shared_hash, move bb in/out initialization afterwards.
11897         Use variable_htab_free instead of NULL as changed_variables del hook.
11898         (variable_was_changed): Change type of second argument to pointer to
11899         dataflow_set.  When inserting var into changed_variables, bump
11900         refcount.  Unshare set->vars if set is shared htab and slot needs to
11901         be cleared.
11902         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
11903         lookup if set->vars is shared.  Unshare set->vars if needed.
11904         Even ->refcount == 1 vars must be unshared if set->vars is shared
11905         and var needs to be modified.  Adjust variable_was_changed caller.
11906         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
11907         vars must be unshared if set->vars is shared and var needs to be
11908         modified.  Adjust variable_was_changed caller.
11909         (emit_note_insn_var_location): Don't pool_free var.
11910         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
11911         instead of 1.
11912         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
11913         free_alloc_pool on shared_hash_pool.
11914
11915 2009-06-20  Anthony Green  <green@moxielogic.com>
11916
11917         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
11918         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
11919
11920 2009-06-20  Richard Guenther  <rguenther@suse.de>
11921
11922         * tree-ssa-structalias.c (find_func_aliases): For memset use
11923         a constraint from NULL if we memset to zero.
11924         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
11925         we explicitly handle that do not read from memory.
11926         (call_may_clobber_ref_p_1): Properly handle builtins that may
11927         set errno.
11928
11929 2009-06-20  Richard Guenther  <rguenther@suse.de>
11930
11931         PR tree-optimization/40495
11932         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
11933         (new_scalar_tmp_constraint_exp): New function.
11934         (process_constraint): Do not create temporary decls.
11935         (process_all_all_constraints): Likewise.
11936         (handle_const_call): Likewise.
11937         (create_function_info_for): Do not set decl.
11938
11939 2009-06-19  Ian Lance Taylor  <iant@google.com>
11940
11941         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
11942         (rs6000_attribute_table): Make static; move before use.
11943
11944 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
11945
11946         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
11947         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
11948         Propagate the TREE_READONLY flag without overwriting it.
11949         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
11950         Propagate the TREE_READONLY flag onto the result.
11951         (process_call_operands): Move around.  Use correct constant value.
11952
11953 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11954
11955         PR target/40482
11956         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
11957         * config/arm/arm.md: Likewise.
11958
11959 2009-06-19  Ian Lance Taylor  <iant@google.com>
11960
11961         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
11962         to GIMPLE_ERROR_MARK.
11963
11964         * c-typeck.c (build_conditional_expr): Add op1_original_type and
11965         op2_original_type parameters.  Warn about using different enum types.
11966         * c-parser.c (c_parser_conditional_expression): Pass original
11967         types to build_conditional_expr.
11968         * c-tree.h (build_conditional_expr): Update declaration.
11969
11970 2009-06-19  Ian Lance Taylor  <iant@google.com>
11971
11972         * config/i386/i386.c (ix86_function_specific_save): Test that
11973         fields match values, rather than testing the values are in a
11974         certain range.
11975
11976 2009-06-19  Richard Guenther  <rguenther@suse.de>
11977
11978         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
11979         ADDR_EXPR pointers.
11980         (ptr_derefs_may_alias_p): Likewise.
11981         (ptr_deref_may_alias_ref_p_1): New function.
11982         (ptr_deref_may_alias_ref_p): Likewise.
11983         (ref_maybe_used_by_call_p_1): Handle builtins that are not
11984         covered by looking at the ESCAPED solution.
11985         (call_may_clobber_ref_p_1): Likewise.
11986         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
11987         Handle NULL_TREE offset.  Do not produce redundant constraints.
11988         (process_all_all_constraints): New helper function.
11989         (do_structure_copy): Use it.
11990         (handle_lhs_call): Likewise.
11991         (find_func_aliases): Handle some builtins with pointer arguments
11992         and/or return values explicitly.
11993
11994 2009-06-19  Ian Lance Taylor  <iant@google.com>
11995
11996         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
11997
11998 2009-06-19  Ian Lance Taylor  <iant@google.com>
11999
12000         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
12001
12002 2009-06-19  Ian Lance Taylor  <iant@google.com>
12003
12004         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
12005         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
12006         version.
12007
12008         * c-decl.c (finish_decl): If -Wc++-compat, warn about
12009         uninitialized const.
12010
12011 2009-06-19  Ian Lance Taylor  <iant@google.com>
12012
12013         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
12014         all uses.
12015
12016         * c-decl.c (in_struct, struct_types): Remove.
12017         (struct c_binding): Add in_struct field.
12018         (c_binding_ptr): Define type, along with VEC.
12019         (struct c_struct_parse_info): Define.
12020         (struct_parse_info): New static variable.
12021         (bind): Initialize in_struct field.
12022         (start_struct): Remove enclosing_in_struct and
12023         enclosing_struct_types parameters.  Add
12024         enclosing_struct_parse_info parameter.  Change all callers.  Set
12025         struct_parse_info rather than in_struct and struct_types.
12026         (grokfield): If -Wc++-compat and there is a symbol binding for the
12027         field name, set the in_struct flag and push it on the
12028         struct_parse_info->fields vector.
12029         (warn_cxx_compat_finish_struct): New static function.
12030         (finish_struct): Remove enclosing_in_struct and
12031         enclosing_struct_types parameters.  Add
12032         enclosing_struct_parse_info parameter.  Change all callers.  Don't
12033         set C_TYPE_DEFINED_IN_STRUCT here.  Call
12034         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
12035         parameter.  Only push on struct_types if warn_cxx_compat.
12036         (finish_enum): Only push on struct_types if warn_cxx_compat.
12037         (declspecs_add_type): Add loc parameter.  Change all callers.
12038         Change all error calls to error_at.  Pass loc, not input_location,
12039         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
12040         defined in a struct.  If -Wc++-compat and parsing a struct, record
12041         that a typedef name was used.
12042         * c-parser.c (c_parser_declspecs): Get location to pass to
12043         declspecs_add_type.
12044         (c_parser_struct_or_union_specifier): Update calls to start_struct
12045         and finish_struct.
12046         * c-tree.h (struct c_struct_parse_info): Declare.
12047         (finish_struct, start_struct): Update declarations.
12048         (declspecs_add_type): Update declaration.
12049
12050 2009-06-19  Ian Lance Taylor  <iant@google.com>
12051
12052         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
12053         variable with an anonymous type.
12054
12055 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
12056
12057         * see.c: Remove for real.
12058
12059 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
12060
12061         * optabs.h (enum optab_index): Add new OTI_significand.
12062         (significand_optab): Define corresponding macro.
12063         * optabs.c (init_optabs): Initialize significand_optab.
12064         * genopinit.c (optabs): Implement significand_optab using
12065         significand?f2 patterns.
12066         * builtins.c (expand_builtin_mathfn): Handle
12067         BUILT_IN_SIGNIFICAND{,F,L}.
12068         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
12069         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
12070
12071         * config/i386/i386.md (significandxf2, significand<mode>2): New
12072         expanders to implement significandf, significand and significandl
12073         built-ins as inline x87 intrinsics.
12074
12075 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
12076
12077         * config/avr/avr.c (avr_override_options): Remove setting value of
12078         PARAM_INLINE_CALL_COST.
12079
12080 2009-06-18  Richard Henderson  <rth@redhat.com>
12081
12082         PR 40488
12083         * tree-pass.h (TDF_ASMNAME): New.
12084         * tree-dump.c (dump_options): Add asmname.
12085         * doc/invoke.texi: Document it.
12086
12087         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
12088         (dump_decl_name): ...here.
12089         (dump_function_name): New flags arg; mind TDF_ASMNAME.
12090         (dump_generic_node): Update dump_function_name calls.
12091         (print_call_name): New flags arg; update all dump calls.
12092         * diagnostic.h (print_call_name): Update.
12093         * gimple-pretty-print.c (dump_gimple_call): Update.
12094
12095 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
12096
12097         PR target/40470
12098         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
12099
12100 2009-06-18  Diego Novillo  <dnovillo@google.com>
12101
12102         * doc/plugins.texi: Document plugin_is_GPL_compatible.
12103         * plugin.c (str_license): Declare.
12104         (try_init_one_plugin): Assert that the symbol
12105         'plugin_is_GPL_compatible' exists.
12106
12107 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
12108
12109         * see.c: Remove.
12110         * Makefile.in (OBJS-common): Remove see.o.
12111         (see.o): Remove.
12112         * common.opt (fsee): Mark as preserved for backward compatibility.
12113         * opts.c (common_handle_option): Add OPT_fsee to the backward
12114         compatibility section.
12115         * passes.c (init_optimization_passes, pass_see): Remove pass.
12116         * timevar.def (TV_SEE): Remove.
12117         * tree-pass.h (pass_see): Remove declaration.
12118         * doc/invoke.texi (-fsee): Remove documentation.
12119
12120 2009-06-18  Martin Jambor  <mjambor@suse.cz>
12121
12122         * tree-sra.c: Include statistics.h
12123         (sra_stats): New variable.
12124         (sra_initialize): Clear sra_stats.
12125         (create_access_replacement): Increment sra_stats.replacements.
12126         (get_access_replacement): Do not return twice.
12127         (analyze_all_variable_accesses): Increment statistics counter by the
12128         number of scalarized aggregates.
12129         (generate_subtree_copies): Increment sra_stats.subtree_copies.
12130         (sra_modify_expr): Increment sra_stats.exprs.
12131         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
12132         (sra_modify_assign): Increment sra_stats.exprs,
12133         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
12134         (perform_intra_sra): Update statistics counters.
12135         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
12136
12137 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
12138
12139         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
12140         (arm_scalar_mode_supported_p): New function.
12141
12142 2009-06-18  Paul Brook  <paul@codesourcery.com>
12143             Sandra Loosemore  <sandra@codesourcery.com>
12144
12145         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
12146         (__extendhfsf2, __truncsfhf2): Define.
12147         * config/arm/fp16.c: New file.
12148         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
12149         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
12150
12151 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
12152
12153         * doc/extend.texi (Half-Precision): New section.
12154         * doc/invoke.texi (Option Summary): List -mfp16-format.
12155         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
12156         * config/arm/arm.opt (mfp16-format=): New.
12157         * config/arm/arm.c: Include intl.h.
12158         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
12159         (TARGET_INVALID_RETURN_TYPE): Redefine.
12160         (TARGET_PROMOTED_TYPE): Redefine.
12161         (TARGET_CONVERT_TO_TYPE): Redefine.
12162         (arm_fp16_format): Define.
12163         (all_fpus): Add entry for neon-fp16.
12164         (fp_model_for_fpu): Likewise.
12165         (struct fp16_format): Declare.
12166         (all_fp16_formats): Define.
12167         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
12168         functions.
12169         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
12170         and no ldrh.
12171         (arm_legitimate_index_p): Treat HFmode like HImode.
12172         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
12173         (coproc_secondary_reload_class): Special-case HFmode.
12174         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
12175         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
12176         (arm_init_fp16_builtins): New.
12177         (arm_init_builtins): Call it.
12178         (arm_invalid_parameter_type): New.
12179         (arm_invalid_return_type): New.
12180         (arm_promoted_type): New.
12181         (arm_convert_to_type).
12182         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
12183         format.
12184         (arm_emit_fp16_const): New function.
12185         (arm_mangle_type): Mangle __fp16 as "Dh".
12186         * config/arm/arm.h (TARGET_VFPD32): Make it know about
12187         FPUTYPE_NEON_FP16.
12188         (TARGET_NEON_FP16): New.
12189         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
12190         (enum fputype): Add FPUTYPE_NEON_FP16.
12191         (enum arm_fp16_format_type): Declare.
12192         (arm_fp16_format): Declare.
12193         (LARGEST_EXPONENT_IS_NORMAL): Define.
12194         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
12195         * config/arm/arm-modes.def (HFmode): Define.
12196         * config/arm/vfp.md: (*movhf_vfp): New.
12197         (extendhfsf2): New.
12198         (truncsfhf2): New.
12199         * config/arm/arm.md: (fpu): Add neon_fp16.
12200         (floatsihf2, floatdihf2): New.
12201         (fix_trunchfsi2, fix_trunchfdi2): New.
12202         (truncdfhf2): New.
12203         (extendhfdf2): New.
12204         (movhf): New.
12205         (*arm32_movhf): New.
12206         (*thumb1_movhf): New.
12207         (consttable_2): Add check for HFmode constants.
12208         (consttable_4): Handle HFmode constants.
12209
12210 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
12211
12212         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
12213
12214 2009-06-17  Olivier Hainque  <hainque@adacore.com>
12215
12216         * collect2.c (main): Use CONST_CAST2 to perform char ** to
12217         const char ** conversion in AIX specific section.
12218
12219 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
12220
12221         * config/i386/i386.c (ix86_special_builtin_type): Remove
12222         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
12223         (bdesc_special_args): Updated.
12224         (ix86_init_mmx_sse_builtins): Likewise.
12225         (ix86_expand_special_args_builtin): Likewise.
12226
12227 2009-06-17  Richard Henderson  <rth@redhat.com>
12228
12229         * tree-pretty-print.c (maybe_dump_asm_name): New.
12230         (dump_decl_name): Use it.
12231         (PRINT_FUNCTION_NAME): Merge into...
12232         (dump_function_name): ... here.  Use maybe_dump_asm_name.
12233
12234 2009-06-17  Cary Coutant  <ccoutant@google.com>
12235
12236         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
12237         Change caller.
12238         * debug.c (struct gcc_debug_hooks): Change placeholder for
12239         source_line hook.
12240         (debug_nothing_int_charstar_int): Replaced by...
12241         (debug_nothing_int_charstar_int_bool): ...this.
12242         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
12243         source_line prototype.
12244         (debug_nothing_int_charstar_int): Replaced by...
12245         (debug_nothing_int_charstar_int_bool): ...this.
12246         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
12247         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
12248         Output is_stmt operand when necessary.
12249         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
12250         (notice_source_line): Add is_stmt parameter.
12251         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
12252         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
12253         Change callers.
12254         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
12255         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
12256
12257 2009-06-17  Ian Lance Taylor  <iant@google.com>
12258
12259         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
12260         Change all uses.
12261         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
12262         call uses.
12263
12264 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
12265
12266         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
12267         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
12268         tree_strip_sign_nop_conversions and
12269         tree_ssa_strip_useless_type_conversions rather than stripping
12270         the operations here.
12271         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
12272         Declare them.
12273         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
12274         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
12275         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
12276         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
12277         functions.
12278
12279 2009-06-17  Michael Eager  <eager@eagercon.com>
12280
12281         * config/rs6000/constraints.md (register_constraint "d"): New.
12282         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
12283         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
12284         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
12285         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
12286         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
12287         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
12288         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
12289         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
12290         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
12291         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
12292         __fctiwz): Same.
12293         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
12294         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
12295         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
12296         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
12297         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
12298         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
12299         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
12300         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
12301         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
12302         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
12303         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
12304         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
12305         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
12306         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
12307
12308 2009-06-16  Ian Lance Taylor  <iant@google.com>
12309
12310         * profile.c (total_num_never_executed): Don't define.
12311         (compute_branch_probabilities): Don't count or print
12312         num_never_executed.
12313         (init_branch_prob): Don't set total_num_never_executed.
12314         (end_branch_prob): Don't print total_num_never_executed.
12315
12316 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
12317
12318         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
12319
12320 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
12321
12322         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
12323         (nabstd2_fpr): Same.
12324
12325 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
12326
12327         * expr.c (expand_assignment): Change complex type check.
12328
12329 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
12330
12331         * doc/plugins.texi (Building GCC plugins): Added new section.
12332
12333 2009-06-17  Ian Lance Taylor  <iant@google.com>
12334
12335         * c-pch.c (get_ident): Don't set size of templ array.
12336         (pch_init): Don't set size of partial_pch array.
12337
12338         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
12339         string constant to intialize an array whose size is the length of
12340         the string.
12341
12342 2009-06-17  Richard Guenther  <rguenther@suse.de>
12343
12344         PR tree-optimization/40389
12345         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
12346         to addressable types.
12347         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
12348
12349 2009-06-17  Richard Guenther  <rguenther@suse.de>
12350
12351         PR middle-end/40460
12352         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
12353         if there is no evolution of left in the loop bail out.
12354         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
12355         chrec_fold_multiply.
12356
12357 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
12358             Janis Johnson  <janis187@us.ibm.com>
12359
12360         PR target/39254
12361         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
12362         for the symbol ref of a constant that is the source of a move
12363         - nor for any other not-obvious-label-ref constants.
12364
12365 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
12366
12367         * plugin.c (position_pass): Skip newly inserted pass during list
12368         traversal to avoid repeated insertion.
12369
12370 2009-06-16  Ian Lance Taylor  <iant@google.com>
12371
12372         * vec.h (VEC_stack_alloc): Define different version if
12373         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
12374         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
12375         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
12376         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
12377
12378 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
12379
12380         * config.gcc (extra_headers): Add ia32intrin.h for x86.
12381
12382         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
12383         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
12384         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
12385         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
12386         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
12387         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
12388         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
12389         (bdesc_special_args): Add __builtin_ia32_rdtsc and
12390         __builtin_ia32_rdtscp.
12391         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
12392         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
12393         and __builtin_ia32_rorhi.
12394         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
12395         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
12396         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
12397         (ix86_expand_args_builtin): Likewise.
12398         (ix86_expand_special_args_builtin): Likewise.
12399
12400         * config/i386/i386.md (UNSPECV_RDTSCP): New.
12401         (UNSPECV_RDTSC): Likewise.
12402         (UNSPECV_RDPMC): Likewise.
12403         (*bsr): Renamed to ...
12404         (bsr): This
12405         (*bsr_rex64): Renamed to ...
12406         (bsr_rex64): This.
12407         (rdpmc): New.
12408         (*rdpmc): Likewise.
12409         (*rdpmc_rex64): Likewise.
12410         (rdtsc): Likewise.
12411         (*rdtsc): Likewise.
12412         (*rdtsc_rex64): Likewise.
12413         (rdtscp): Likewise.
12414         (*rdtscp): Likewise.
12415         (*rdtscp_rex64): Likewise.
12416
12417         * config/i386/ia32intrin.h: New.
12418
12419         * config/i386/x86intrin.h: Include <ia32intrin.h>.
12420
12421 2009-06-16  Ian Lance Taylor  <iant@google.com>
12422
12423         * ira-build.c (copy_info_to_removed_store_destinations):
12424         Initialize parent_a.
12425
12426 2009-06-16  Ian Lance Taylor  <iant@google.com>
12427
12428         * c-decl.c (grokdeclarator): Change size_varies to bool.
12429
12430 2009-06-16  Ian Lance Taylor  <iant@google.com>
12431
12432         * sel-sched.c: Make forward declarations of move_op_hooks and
12433         fur_hooks explicitly extern.
12434
12435 2009-06-16  Ian Lance Taylor  <iant@google.com>
12436
12437         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
12438         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
12439
12440 2009-06-16  Ian Lance Taylor  <iant@google.com>
12441
12442         * resource.c (mark_referenced_resources): Change
12443         include_delayed_effects parameter to bool.  Change all callers.
12444         (mark_end_of_function_resources): Likewise.
12445         * reorg.c (insn_references_resource_p): Likewise.
12446         (insn_sets_resource_p): Likewise.
12447         * resource.h (mark_referenced_resources): Update declaration.
12448         (mark_end_of_function_resources): Update declaration.
12449
12450 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
12451
12452         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
12453
12454 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
12455
12456         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
12457         GCC can bootstrap on AIX with GNU Binutils 2.20.
12458
12459 2009-06-16  Ian Lance Taylor  <iant@google.com>
12460
12461         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
12462
12463 2009-06-16  Ian Lance Taylor  <iant@google.com>
12464
12465         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
12466         inline, not extern inline.
12467         (exact_log2): Likewise.
12468         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
12469         test CLZ_HWI.
12470         (exact_log2): Likewise, but don't test CTZ_HWI.
12471
12472 2009-06-16  Ian Lance Taylor  <iant@google.com>
12473
12474         * bitmap.c (bitmap_clear): Don't declare as inline.
12475         * gimple.c (gimplify_assign): Likewise.
12476         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
12477         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
12478         (sched_scan_info): Remove duplicate definition.
12479
12480 2009-06-16  Ian Lance Taylor  <iant@google.com>
12481
12482         * c-common.c (skip_evaluation): Don't define.
12483         (c_inhibit_evaluation_warnings): Define global variable.
12484         (overflow_warning): Check c_inhibit_evaluation_warnings rather
12485         than skip_evaluation.
12486         (convert_and_check, warn_for_div_by_zero): Likewise.
12487         * c-common.h (skip_evaluation): Don't declare.
12488         (c_inhibit_evaluation_warnings): Declare.
12489         * c-parser.c (c_parser_typeof_specifier): Set
12490         c_inhibit_evaluation_warnings rather than skip_evaluation.
12491         (c_parser_conditional_expression): Likewise.
12492         (c_parser_binary_expression): Likewise.
12493         (c_parser_sizeof_expression): Likewise.
12494         (c_parser_alignof_expression): Likewise.
12495         * c-typeck.c (build_indirect_ref): Check
12496         c_inhibit_evaluation_warnings rather than skip_evaluation.
12497         (build_conditional_expr, build_binary_op): Likewise.
12498
12499 2009-06-16  Richard Guenther  <rguenther@suse.de>
12500
12501         * tree-ssa-alias.c (is_escape_site): Remove.
12502         * tree-ssa-alias.h (enum escape_type): Remove.
12503         (is_escape_site): Likewise.
12504         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
12505         via casts and asms without deferring to is_escape_site.
12506
12507 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
12508
12509         PR middle-end/40446
12510         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
12511         use gen_lowpart if op0 has complex mode.
12512
12513 2009-06-16  Richard Guenther  <rguenther@suse.de>
12514
12515         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
12516         variables add them to ESCAPED.
12517         (find_func_aliases): Do not make all indirectly stored values escaped.
12518
12519 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
12520
12521         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
12522         make_decl_one_only.
12523
12524 2009-06-16  Martin Jambor  <mjambor@suse.cz>
12525
12526         PR tree-optimization/40432
12527         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
12528         check whether we need to force gimple register operand.
12529
12530 2009-06-16  Martin Jambor  <mjambor@suse.cz>
12531
12532         PR tree-optimization/40413
12533         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
12534         build_ref_for_offset.
12535         (propagate_subacesses_accross_link): Fix a typo in a comment.
12536
12537 2009-06-16  Ira Rosen  <irar@il.ibm.com>
12538
12539         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
12540         with additional parameter.
12541         * tree-vectorizer.h (enum vect_def_type): Add new value
12542         vect_nested_cycle.
12543         (enum vect_relevant): Add comments.
12544         (vect_is_simple_reduction): Add new argument.
12545         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
12546         Detect nested cycles.
12547         (vect_is_simple_reduction): Update documentation, add an argument to
12548         distinguish inner-loop reduction from nested cycle, detect nested
12549         cycles, fix printings and indentation, don't swap operands in case
12550         of nested cycle.
12551         (get_initial_def_for_reduction): Handle subtraction.
12552         (vect_create_epilog_for_reduction): Add new argument to specify
12553         reduction variable.
12554         (vect_finalize_reduction): Handle subtraction, fix comments.
12555         (vectorizable_reduction): Handle nested cycles. In case of nested
12556         cycle keep track of the reduction variable position. Call
12557         vect_is_simple_reduction with additional parameter. Use original
12558         statement code in reduction epilogue for nested cycle. Call
12559         vect_create_epilog_for_reduction with additional parameter.
12560         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
12561         inner-loop vectorization.
12562         (vect_recog_widen_sum_pattern): Likewise.
12563         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
12564         and reductions.
12565         (vect_mark_stmts_to_be_vectorized): Likewise.
12566         (vect_get_vec_def_for_operand): Handle nested cycles.
12567
12568 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12569
12570         * doc/invoke.texi (Debugging Options): Fix option index entries
12571         for -fdump-statistics, -frandom-seed add entries for
12572         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
12573         (FRV Options): Fix entries for -mTLS, -mtls.
12574         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
12575         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
12576         (M68hc1x Options): Fix @itemx for -mnominmax.
12577         (MCore Options): Fix entry for -mno-lsim.
12578         (MMIX Options): Fix entry for -mabi=mmixware.
12579         (PDP-11 Options): Fix entry for -mbcopy-builtin.
12580
12581 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
12582
12583         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
12584         Mention the plugin mode of gengtype.
12585         * doc/gty.texi (Source Files Containing Type Information): Likewise.
12586         * gengtype.c: Updated copyright.
12587         (plugin_files, nb_plugin_files) Added new static variables.
12588         (measure_input_list) Care about plugin_files.
12589         (write_rtx_next): Added early return in plugin mode.
12590         (create_file): Updated copyright year in generated file. Added
12591         asserts.
12592         (oprintf): Added early return if NULL outf.
12593         (get_output_file_with_visibility): Care of plugin_files.
12594         (get_output_file_name): May return null.
12595         (write_local): Added early return.
12596         (put_mangled_filename): Ditto.
12597         (finish_root_table): Added check for base_files.
12598         (write_roots): Care about null when plugins.
12599         (main): Added plugin mode.
12600
12601 2009-06-15  Ian Lance Taylor  <iant@google.com>
12602
12603         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
12604         * gcov.c (read_count_file): Add braces around variables declared
12605         before label.
12606
12607         * c.opt (Wjump-misses-init): New warning.
12608         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
12609         -Wall and -Wc++-compat if not already set.
12610         (c_common_post_options): Clear warn_jump_misses_init if it was not
12611         set.
12612         * c-decl.c (struct c_binding): Change type field to a union with
12613         new label field.  Make it the first field in the struct.  Update
12614         references to type to use u.type instead.
12615         (struct c_spot_bindings): Define.
12616         (struct c_goto_bindings): Define.
12617         (c_goto_bindings_p): Define, along with VECs.
12618         (struct c_label_vars): Define.
12619         (struct c_scope): Add has_label_bindings field.
12620         (bind_label, set_spot_bindings): New static functions.
12621         (decl_jump_unsafe, update_spot_bindings): New static functions.
12622         (update_label_decls): New static function.
12623         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
12624         Update binding u.label field to shadowed field.
12625         (c_binding_start_stmt_expr): New function.
12626         (c_binding_end_stmt_expr): New function.
12627         (pushdecl): Don't call c_begin_vm_scope.
12628         (make_label): Add defining and p_label_vars parameters.  Change
12629         all callers.
12630         (lookup_label): Correct test for whether a label has not yet been
12631         defined.  Call bind_label rather than bind.
12632         (warn_about_goto): New static function.
12633         (lookup_label_for_goto): New function.
12634         (declare_label): Call bind_label rather than bind.
12635         (check_earlier_gotos): New static function.
12636         (define_label): Don't give errors about jumping into statement
12637         expressions or scopes of variably modified types.  Call
12638         set_spot_bindings and check_earlier_gotos.  Call bind_label
12639         instead of bind.  Don't set label_context_stack_se or
12640         label_context_stack_vm.
12641         (c_get_switch_bindings): New function.
12642         (c_release_switch_bindings): New function.
12643         (c_check_switch_jump_warnings): New function.
12644         (start_function): Don't set label_context_stack_se or
12645         label_context_stack_vm.
12646         (finish_function): Likewise.
12647         * c-typeck.c (label_context_stack_se): Don't define.
12648         (label_context_stack_vm): Don't define.
12649         (c_finish_goto_label): Call lookup_label_for_goto rather than
12650         lookup_label.  Don't give errors about jumping into a statement
12651         expression or the scope of a variably modified type.  Don't set
12652         label_context_stack_se or label_context_stack_vm.
12653         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
12654         fields.  Add bindings field.
12655         (c_start_case): Don't set deleted fields.  Set bindings field.
12656         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
12657         or blocked_vm.  Call c_check_switch_jump_warnings.
12658         (c_finish_case): Don't test blocked_stmt_expr field.  Call
12659         c_release_switch_bindings.
12660         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
12661         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
12662         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
12663         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
12664         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
12665         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
12666         (c_begin_vm_scope, c_end_vm_scope): Don't define.
12667         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
12668         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
12669         (C_DECL_UNJUMPABLE_VM): Don't define.
12670         (C_DECL_UNDEFINABLE_VM): Don't define.
12671         (struct c_label_list): Don't define.
12672         (struct c_label_context_se): Don't define.
12673         (struct c_label_context_vm): Don't define.
12674         (struct c_spot_bindings): Declare.
12675         (c_bindings_start_stmt_expr): Declare.
12676         (c_bindings_end_stmt_expr): Declare.
12677         (lookup_label_for_goto): Declare.
12678         (c_get_switch_bindings, c_release_switch_bindings): Declare.
12679         (c_check_switch_jump_warnings): Declare.
12680         (label_context_stack_se, label_context_stack_vm): Don't declare.
12681         (c_finish_goto_label): Update declaration.
12682         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
12683         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
12684         (Warning Options): Document -Wjump-misses-init.
12685
12686 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
12687
12688         * tree-object-size.c (addr_object_size): Fix a pasto in the last
12689         change.
12690
12691 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
12692
12693         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
12694
12695 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
12696
12697         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
12698
12699 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
12700
12701         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
12702
12703 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
12704
12705         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
12706         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
12707         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
12708         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
12709         * dwarf2asm.c (dw2_force_const_mem): Update call to
12710         make_decl_one_only.
12711         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
12712         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
12713         * langhooks.c (lhd_comdat_group): Remove.
12714         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
12715         * tree.h (DECL_COMDAT_GROUP): New.
12716         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
12717         (tree_decl_with_vis): Add comdat_group. Remove one_only.
12718         (make_decl_one_only): Change signature.
12719         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
12720         make_decl_one_only.
12721         (make_decl_one_only): Change signature.
12722         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
12723
12724 2009-06-15  Richard Guenther  <rguenther@suse.de>
12725
12726         PR middle-end/40439
12727         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
12728
12729 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12730
12731         * tree-ssa-math-opts.c: Remove extra divide.
12732
12733 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12734
12735         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
12736
12737 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12738
12739         * passes.c: Add bswap pass.
12740         * tree-pass.h: Add pass_optimize_bswap declaration.
12741         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
12742         Include rtl.h, expr.h and optabs.h for optab_handler check.
12743         (struct symbolic_number, pass_optimize_bswap): New definition.
12744         (do_shift_rotate, verify_symbolic_number_p): New functions.
12745         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
12746         (gate_optimize_bswap): New function.
12747         * tree.c (widest_int_cst_value): New function.
12748         * tree.h (widest_int_cst_value): Prototype added.
12749
12750 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
12751
12752         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
12753         REG_EQUAL/REG_EQUIV notes.
12754
12755 2009-06-14  Richard Guenther  <rguenther@suse.de>
12756
12757         PR middle-end/40389
12758         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
12759         has its address taken if NRV was applied and it is addressable.
12760         * tree-ssa-structalias.c (get_constraint_for_address_of): New
12761         function split out from ...
12762         (get_constraint_for_1): ... here.
12763         (handle_rhs_call): Use it to mark the return slot escaped if
12764         it is addressable and NRV was applied.
12765
12766 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
12767
12768         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
12769         Change first argument type to location_t.
12770         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
12771         Do not set input_location.
12772         Use loc instead of input_location throughout.
12773
12774 2009-06-13  Richard Guenther  <rguenther@suse.de>
12775
12776         PR tree-optimization/40421
12777         * tree-predcom.c (should_unroll_loop_p): Remove.
12778         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
12779
12780 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
12781
12782         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12783         Add location argument.
12784
12785 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
12786
12787         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
12788         build_decl.
12789         * config/s390/s390.c (s390_build_builtin_va_list): Same.
12790         (s390_gimplify_va_arg): Pass location to create_artificial_label.
12791         * config/spu/spu-protos.h: Add location to
12792         spu_resolve_overloaded_builtin.
12793         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
12794         spu_build_builtin_va_list.
12795         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
12796         argument.  Pass location to build_function_call_vec.
12797         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
12798         build_decl.
12799         (emit_fpu_switch): Same.
12800         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
12801         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
12802         to build_decl and create_artificial_label.
12803         (xtensa_gimplify_va_arg_expr): Same.
12804         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
12805         (xstormy16_gimplify_va_arg_expr): Same.
12806         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
12807         * config/arm/arm.c (arm_build_builtin_va_list): Same.
12808         * config/mips/mips.c (mips_build_builtin_va_list): Same.
12809         (mips16_build_function_stub): Same.
12810         (mips16_build_call_stub): Same.
12811
12812 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
12813
12814         PR target/40327
12815         * arm/constraints.md (Pa, Pb): New constraints.
12816         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
12817         split pattern to deal with them.
12818
12819 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
12820
12821         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
12822         fix index entry for -Xpreprocessor.
12823
12824 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
12825
12826         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12827         Add location argument to build_decl call.
12828         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
12829         (rs6000_init_builtins): Same.
12830         (spe_init_builtins): Same.
12831         (rs6000_gimplify_va_arg): Add location argument to
12832         create_artificial_label call.
12833
12834 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
12835
12836         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
12837         * combine-stack-adj.c (pass_stack_adjustments): Use it.
12838         * Makefile.in: Fix GGC dependency for gcse.o.
12839
12840 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
12841
12842         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
12843         * gimple-pretty-print.c (dump_gimple_stmt): Same.
12844         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
12845         created.
12846         * c-parser.c (c_parser_binary_expression): Use current column while
12847         building binary operations.
12848         * common.opt (fshow-column): Enable by default.
12849         * tree-vrp.c (check_array_ref): Use warning_at.
12850         (check_array_bounds): Use location from call back if expr has no
12851         location.
12852         * tree.h: Add location argument to maybe_fold_*.
12853         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
12854         (maybe_fold_offset_to_array_ref): Add location argument and use it.
12855         (maybe_fold_offset_to_component_ref): Same.
12856         (maybe_fold_offset_to_reference): Same.
12857         (maybe_fold_offset_to_address): Same.
12858         (maybe_fold_stmt_indirect): Same.
12859         (maybe_fold_stmt_addition): Same.
12860         (fold_stmt_r): Pass location to maybe_fold_*.
12861         (fold_gimple_assign): Same.
12862         * c-tree.h: Add location argument to finish_decl,
12863         default_function_array_conversion, store_init_value.
12864         * c-decl.c (define_label): Use error_at.
12865         (c_make_fname_decl): Pass location to finish_decl.
12866         (finish_decl): New location argument.
12867         (build_compound_literal): Pass location to store_init_value.
12868         (grokdeclarator): Pass location to finish_decl.
12869         (grokfield): Same.
12870         * c-typeck.c (array_to_pointer_conversion): New location argument.
12871         (function_to_pointer_conversion): Same.
12872         (default_function_array_conversion): Same.
12873         (parser_build_unary_op): Pass location to overflow_warning.
12874         (parser_build_binary_op): Same.  Use warning_at.
12875         (build_unary_op): Pass location to array_to_pointer_conversion.
12876         (build_c_cast): Pass location to digest_init.
12877         (build_modify_expr): New location argument.
12878         (convert_for_assignment): Same.
12879         (store_init_value): Same.
12880         (digest_init): Same.
12881         (output_init_element): Pass location to digest_init and
12882         array_to_pointer_conversion.
12883         (c_finish_return): Pass location to convert_for_assignment.
12884         * gimplify.c (gimplify_conversion): Pass location to
12885         maybe_fold_offset_to_address.
12886         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
12887         to maybe_fold_stmt_addition.
12888         * c-omp.c (c_finish_omp_atomic): Pass new location to
12889         build_modify_expr.
12890         (c_finish_omp_for): Same.
12891         * c-common.c (overflow_warning): New argument.
12892         * c-common.h: New argument to build_modify_expr, overflow_warning.
12893         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
12894         finish_decl.
12895         (c_parser_initializer): Pass location to
12896         default_function_array_conversion.
12897         (c_parser_initelt): Same.
12898         (c_parser_initval): Same.
12899         (c_parser_asm_operands): Same.
12900         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
12901         (c_parser_conditional_expression): Same.
12902         (c_parser_binary_expression): Add location info to stack.  Use it.
12903         (c_parser_unary_expression): Pass location to
12904         default_function_array_conversion, parser_build_unary_op,
12905         build_indirect_ref, c_parser_postfix_expression_after_primary.
12906         (c_parser_postfix_expression_after_primary): New location argument.
12907         Use it.
12908         (c_parser_expression_conv): Pass location to
12909         default_function_array_conversion.
12910         (c_parser_expr_list): Same.
12911         (c_parser_omp_atomic): Same.
12912         (c_parser_omp_for_loop): Same.
12913         * c-tree.h: (struct c_declarator): Add comment to id_loc.
12914         (build_array_declarator): New argument.
12915         * c-decl.c (build_array_declarator): Add location argument.
12916         (grokdeclarator): Set id_loc for cdk_array.
12917         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
12918         build_array_declarator.
12919         * tree.c (build_omp_clause): Add location argument.
12920         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
12921         (OMP_CLAUSE_LOCATION): New macro.
12922         (struct tree_omp_clause): Add location field.
12923         (build_omp_clause): Add argument.
12924         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
12925         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
12926         build_omp_clause.
12927         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
12928         (cp_parser_omp_clause_collapse): Same.
12929         (cp_parser_omp_clause_default): Same.
12930         (cp_parser_omp_clause_if): Same.
12931         (cp_parser_omp_clause_nowait): Same.
12932         (cp_parser_omp_clause_num_threads): Same.
12933         (cp_parser_omp_clause_ordered): Same.
12934         (cp_parser_omp_clause_schedule): Same.
12935         (cp_parser_omp_clause_untied): Same.
12936         (cp_parser_omp_for_loop): Same.
12937         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
12938         * c-tree.h (c_start_case): Add location argument.
12939         (c_process_expr_stmt): Same.
12940         (c_finish_goto_*): Same.
12941         * tree-parloops.c (initialize_reductions): Pass location to
12942         build_omp_clause.
12943         (create_parallel_loop): Same.
12944         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
12945         (gfc_trans_omp_reduction_list): Same.
12946         (gfc_trans_omp_clauses): Same.
12947         (gfc_trans_omp_do): Same.
12948         * c-typeck.c (c_finish_goto_label): Same.
12949         (c_finish_goto_ptr): New location argument.
12950         (c_start_case): Same.
12951         (emit_side_effect_warnings): Same.
12952         (c_process_expr_stmt): Same.
12953         (c_finish_stmt_expr): Same.
12954         (c_finish_omp_clauses): Use error_at instead of error.
12955         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
12956         build_omp_clause.
12957         * c-omp.c (c_split_parallel_clauses): New location argument.
12958         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
12959         to build_omp_clause.
12960         (convert_local_reference_stmt): Same.
12961         (convert_gimple_call): Same.
12962         * c-common.h (c_split_parallel_clauses): New argument.
12963         * c-parser.c (c_parser_statement_after_labels): Pass location to
12964         c_finish_goto_label.
12965         (c_parser_switch_statement): Pass location to c_start_case.
12966         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
12967         and c_process_expr_stmt.
12968         (c_parser_omp_variable_list): Add location argument.
12969         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
12970         (c_parser_omp_clause_default): Same.
12971         (c_parser_omp_clause_if): Same.
12972         (c_parser_omp_clause_num_threads): Same.
12973         (-c_parser_omp_clause_ordered): Same.
12974         (c_parser_omp_clause_reduction): Pass location to
12975         c_parser_omp_variable_list.
12976         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
12977         (c_parser_omp_clause_untied): Same.
12978         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
12979         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
12980
12981         * c-tree.h (check_for_loop_decls, undeclared_variable,
12982         build_component_ref, build_array_ref, build_external_ref,
12983         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
12984         build_conditional_expr, build_compound_expr, c_cast_expr,
12985         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
12986         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
12987         argument.
12988         * c-semantics.c (build_stmt): Same.
12989         (build_case_label): Same.
12990         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
12991         (undeclared_variable): New argument.
12992         (make_label): Same.
12993         (lookup_label): Pass location on down.
12994         (define_label): Same.
12995         (finish_decl): Same.
12996         (build_compound_literal): Same.
12997         (finish_struct): Same.
12998         (finish_function): Do not set location here.
12999         (check_for_loop_decls): New argument.
13000         * tree.c (save_expr): Set location.
13001         (build_empty_stmt): New argument.
13002         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
13003         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
13004         * builtins.c (gimplify_va_arg_expr): Use locations.
13005         (expand_builtin_sync_operation): Same.
13006         * c-typeck.c (build_component_ref): New argument.
13007         (build_array_ref): Same.
13008         (build_external_ref): Same.
13009         (c_expr_sizeof_expr): Same.
13010         (c_expr_sizeof_type): Same.
13011         (parser_build_unary_op): Same.
13012         (build_conditional_expr): Same.
13013         (build_compound_expr): Pass location on down.
13014         (build_compound_expr): New argument.
13015         (build_c_cast): Same.
13016         (c_cast_expr): Same.
13017         (build_asm_expr): Same.
13018         (c_finish_return): Same.
13019         (c_process_expr_stmt): Pass location on down.
13020         (c_finish_stmt_expr): New argument.
13021         (push_clenaup): Same.
13022         (c_finish_omp_parallel): Same.
13023         (c_finish_omp_task): Same.
13024         * gimplify.c (gimplify_call_expr): Pass location on down.
13025         * c-omp.c (c_finish_omp_master): New argument.
13026         (c_finish_omp_critical): Same.
13027         (c_finish_omp_ordered): Same.
13028         (c_finish_omp_barrier): Same.
13029         (-c_finish_omp_taskwait): Same.
13030         (c_finish_omp_atomic): Same.
13031         (c_finish_omp_flush): Same.
13032         * tree-inline.c (copy_tree_body_r): Pass location on down.
13033         (inline_forbidden_p): Remove use of input_location.
13034         * c-gimplify.c (c_build_bind_expr): New argument.
13035         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
13036         (c_sizeof_or_alignof_type): New argument.
13037         (c_alignof_expr): Same.
13038         (build_va_arg): Same.
13039         (c_add_case_label): Same.
13040         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
13041         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
13042         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
13043         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
13044         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
13045         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
13046         New argument.
13047         * stub-objc.c (objc_build_selector_expr): Same.
13048         (objc_build_throw_stmt): Same.
13049         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
13050         (c_parser_initelt): Same.
13051         (c_parser_compound_statement): Same.
13052         (c_parser_compound_statement_nostart): Same.
13053         (c_parser_label): Same.
13054         (c_parser_statement_after_labels): Same.
13055         (c_parser_if_body): Same.
13056         (c_parser_else_body): Same.
13057         (c_parser_if_statement): Same.
13058         (c_parser_switch_statement): Same.
13059         (c_parser_while_statement): Same.
13060         (c_parser_do_statement): Same.
13061         (c_parser_for_statement): Same.
13062         (c_parser_asm_statement): Same.
13063         (c_parser_conditional_expression): Same.
13064         (c_parser_binary_expression): Same.
13065         (c_parser_cast_expression): Same.
13066         (c_parser_unary_expression): Same.
13067         (c_parser_sizeof_expression): Same.
13068         (c_parser_alignof_expression): Same.
13069         (c_parser_postfix_expression): Same.
13070         (c_parser_expression): Same.
13071         (c_parser_objc_receiver): Same.
13072         (c_parser_omp_variable_list): Same.
13073         (c_parser_omp_structured_block): Same.
13074         (c_parser_omp_atomic): New argument.
13075         (c_parser_omp_barrier): Same.
13076         (c_parser_omp_critical): Same.
13077         (c_parser_omp_flush): Pass location on down.
13078         (c_parser_omp_for_loop): New argument.
13079         (c_parser_omp_for): Same.
13080         (c_parser_omp_master): Same.
13081         (c_parser_omp_ordered): Same.
13082         (c_parser_omp_sections_scope): Same.
13083         (c_parser_omp_sections): Same.
13084         (c_parser_omp_parallel): Same.
13085         (c_parser_omp_single): Same.
13086         (c_parser_omp_task): Same.
13087         (c_parser_omp_taskwait): Pass location on down.
13088         (c_parser_omp_construct): Same.
13089         (c_parser_omp_threadprivate): Same.
13090         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
13091         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
13092         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
13093         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
13094         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
13095         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
13096         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
13097         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
13098         config/i386/i386.c, stmt.c:
13099         Add location argument to the following function definitions and/or
13100         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
13101         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
13102         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
13103         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
13104         do_case, c_finish_bc_stmt, build_compound_literal,
13105         build_function_call.
13106         * c-decl.c (build_compound_literal): Add location argument.
13107         Make all diagnostic calls use location.
13108         (start_struct): Same.
13109         (finish_struct): Same.
13110         (start_enum): Same.
13111         (build_enumerator): Same.
13112         (start_function): Same.
13113         (grokdeclarator): Make all diagnostic calls use location.
13114         (store_parm_decls_oldstyle): Same.
13115         * c-typeck.c (build_function_call): Add location argument.
13116         Make all diagnostic calls use location.
13117         (do_case): Same.
13118         (c_finish_bc_stmt): Same.
13119         * tree-nested.c (get_trampoline_type): Add argument.
13120         Pass location to build_decl.
13121         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
13122         * rtl.h (RTL_LOCATION): New.
13123         * c-common.c (c_add_case_label): Add location argument.
13124         Make all diagnostic calls use location.
13125         * c-common.h: Add location argument to make_fname_decl, do_case,
13126         c_add_case_label, build_function_call, resolve_overloaded_builtin.
13127         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
13128         Set it appropriately for every case.  Pass enum_loc to start_enum
13129         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
13130         parser_xref_tag.
13131         (c_parser_struct_or_union_specifier): Save location.  Use it for
13132         start_struct, finish_struct, and parser_xref_tag.
13133
13134 2009-06-12  Ian Lance Taylor  <iant@google.com>
13135
13136         * fold-const.c (fold_unary): Rename local variable and to and_expr.
13137
13138         * c-opts.c (c_common_handle_option): For -Wc++-compat set
13139         cpp_opts->warn_cxx_operator_names.
13140
13141 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13142
13143         PR tree-opt/38865
13144         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
13145         is returns NULL and OP is a VCE, look through the VCE.
13146
13147 2009-06-12  Ian Lance Taylor  <iant@google.com>
13148
13149         PR bootstrap/40430
13150         * collect2.c (main): Use CONST_CAST2 in code inside #if
13151         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
13152
13153 2009-06-12  Joey Ye  <joey.ye@intel.com>
13154
13155         PR middle-end/39146
13156         * cfgexpand.c (get_decl_align_unit): Update
13157         max_used_stack_slot_alignment with align instead of
13158         stack_alignment_needed.
13159
13160         * function.c (assign_stack_local_1): Update
13161         max_used_stack_slot_alignment with alignment_in_bits instead
13162         of stack_alignment_needed.
13163         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
13164         here.
13165
13166 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
13167
13168         * dwarf2out.c (last_var_location_insn): New variable.
13169         (dwarf2out_end_epilogue): Clear last_var_location_insn.
13170         (dwarf2out_var_location): Don't record anything after last real
13171         insn.  Only change labels if there were any real instructions
13172         in between last note and this one, or if changed sections.
13173
13174 2009-06-11  Richard Henderson  <rth@redhat.com>
13175
13176         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
13177         note when storing the frame pointer in a register.
13178         (FRP): Don't redefine to nothing for epilogue.
13179         (alpha_expand_epilogue): Mark register and sp restores.
13180         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
13181
13182         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
13183         when gen_lowpart is needed.
13184
13185 2009-06-11  Richard Henderson  <rth@redhat.com>
13186
13187         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
13188
13189         * dwarf2out.c (need_data_align_sf_opcode): New.
13190         (div_data_align): Move earlier.
13191         (def_cfa_1, reg_save): Use it.
13192
13193 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
13194
13195         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
13196         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
13197         (ix86_handle_option): Handle OPT_mcrc32.
13198         (ix86_target_string): Add -mcrc32.
13199         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
13200
13201         * config/i386/i386.h (TARGET_CRC32): New.
13202
13203         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
13204         (sse4_2_crc32di): Likewise.
13205
13206         * config/i386/i386.opt (mcrc32): New.
13207
13208         * doc/invoke.texi: Document -mcrc32.
13209
13210 2009-06-11  Richard Henderson  <rth@redhat.com>
13211
13212         * common.opt (gdwarf-): Accept a version number.
13213         * doc/invoke.texi (gdwarf-): Update docs.
13214         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
13215         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
13216         version level, and record it.
13217
13218         * dwarf2.h (DW_CIE_VERSION): Remove.
13219         * dwarf2out.c (DWARF_VERSION): Remove.
13220         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
13221         (output_call_frame_info): Use CIE version 3 for dwarf3,
13222         or if the return register column is out of range for version 1.
13223         (dwarf_stack_op_name): Add all dwarf3 values.
13224         (DEBUG_PUBTYPES_SECTION): New.
13225         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
13226         encoding change for dwarf3.
13227         (output_die) [dw_val_class_die_ref]: Likewise.
13228         (output_compilation_unit_header): Emit correct version for dwarf3.
13229         (output_line_info): Likewise.
13230         (output_pubnames): Update for DWARF_VERSION removal.
13231         (output_aranges): Likewise.
13232         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
13233         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
13234         (dwarf2out_finish): Likewise.
13235
13236 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
13237
13238         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
13239         in r148403.
13240
13241 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
13242
13243         PR c/39252
13244         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
13245         * builtins.c (expand_builtin_unreachable): New function.
13246         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
13247         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
13248         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
13249         successors.
13250         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
13251         searching for missing barriers.
13252
13253 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13254
13255         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
13256         when -fprofile-generate* was passed.
13257         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
13258
13259 2009-06-11  Anthony Green  <green@moxielogic.com>
13260
13261         * config/moxie/moxie.md: Define length attribute for all instructions.
13262         (rCC): Define.
13263         (*b<cond:code>): Support limited branch ranges for new PC-relative
13264         branch instructions.
13265         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
13266
13267 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
13268
13269         * config/i386/i386.c (min_insn_size): Use get_attr_length
13270         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
13271         For __asm return 0.
13272
13273         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
13274         instead of emit_insn_before.
13275
13276 2009-06-10  Ian Lance Taylor  <iant@google.com>
13277
13278         PR bootstrap/40408
13279         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
13280         GIMPLE_SWITCH.
13281
13282 2009-06-10  Revital Eres  <eres@il.ibm.com>
13283
13284         * passes.c (init_optimization_passes): Reschedule
13285         predictive-commoning pass before complete unroll pass.
13286
13287 2009-06-10  Martin Jambor  <mjambor@suse.cz>
13288
13289         * cgraph.c (cgraph_node_can_be_local_p): New function.
13290         (cgraph_make_node_local): New function.
13291         * cgraph.h (cgraph_node_can_be_local_p): Declare.
13292         (cgraph_make_node_local): Declare.
13293
13294 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
13295
13296         * tree.h (tree_base): Add packed_flag and user_align fields.
13297         Decrease size of spare field.
13298         (TYPE_USER_ALIGN): Use user_align from tree_base.
13299         (DECL_USER_ALIGN): Likewise.
13300         (TYPE_PACKED): Use packed_flag from tree_base.
13301         (DECL_PACKED): Likewise.
13302         (tree_type): Delete packed_flag and user_align fields.  Widen
13303         precision field.  Widen mode field and shuffle fields to align
13304         mode on an 8-bit boundary.
13305         (tree_decl_common): Delete decl_flag_1 and user_align fields.
13306         Renumber decl_flag_* fields.  Fix comments.  Widen
13307         decl_common_unused field.
13308         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
13309         (DECL_EXTERNAL): Likewise.
13310         (DECL_BIT_FIELD): Likewise.
13311         (DECL_NONADDRESSABLE_P): Likewise.
13312         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
13313         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
13314
13315 2009-06-10  Ian Lance Taylor  <iant@google.com>
13316
13317         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
13318         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
13319         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
13320         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
13321         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
13322         DEF_VEC_ALLOC_FUNC_P.
13323         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
13324         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
13325         DEF_VEC_ALLOC_FUNC_O.
13326         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
13327         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
13328         DEF_VEC_ALLOC_FUNC_I.
13329         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
13330         (vec_stack_p_reserve_exact_1): Declare.
13331         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
13332         (vec_stack_free): Declare.
13333         (VEC_stack_alloc): Define.
13334         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
13335         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
13336         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
13337         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
13338         for void_p.
13339         (stack_vecs): New static variable.
13340         (vec_stack_p_reserve_exact_1): New function.
13341         (vec_stack_o_reserve_1): New static function.
13342         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
13343         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
13344         (vec_stack_free): New function.
13345         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
13346         (VEC_df_ref_stack_alloc): Define.
13347         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
13348         DEF_VEC_ALLOC_P_STACK.
13349         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
13350         (struct df_collection_rec): Change _vec fields to VEC.  Remove
13351         _use fields.
13352         (df_free_collection_rec): Adjust for new fields.
13353         (df_insn_rescan): Use new df_collection_rec fields.
13354         (df_notes_rescan, df_canonize_collection_rec): Likewise.
13355         (df_ref_create_structure, df_ref_record): Likewise.
13356         (df_get_conditional_uses, df_get_call_refs): Likewise.
13357         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
13358         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
13359         (df_record_exit_block_uses, df_bb_verify): Likewise.
13360         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
13361         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
13362         Remove count parameter.  Change return type to void.  Change all
13363         callers.
13364         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
13365         Remove count parameter.  Change return type to void.  Change all
13366         callers.
13367         (df_install_refs): Change old_vec parameter to VEC.  Remove count
13368         parameter.  Change all callers.
13369         (df_install_mws): Change old_vec parameter to VEC.  Remove count
13370         parameter.  Change all callers.
13371         (df_refs_verify): Change new_rec parameter to VEC.  Change call
13372         callers.
13373         (df_mws_verify): Likewise.
13374
13375 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
13376
13377         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
13378
13379 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
13380
13381         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
13382
13383 2009-06-10  Anthony Green  <green@moxielogic.com>
13384
13385         * config/moxie/crti.asm: New file.
13386         * config/moxie/crtn.asm: New file.
13387         * config/moxie/moxie.c: New file.
13388         * config/moxie/moxie.h: New file.
13389         * config/moxie/sfp-machine.h: New file.
13390         * config/moxie/moxie-protos.h: New file.
13391         * config/moxie/t-moxie: Created.
13392         * config/moxie/t-moxie-softfp: Created.
13393         * config/moxie/moxie.md: Created.
13394         * config/moxie/constraints.md: Created.
13395         * config.gcc: Add moxie support.
13396         * doc/md.texi (Machine Constraints): Add moxie constraints.
13397         * doc/contrib.texi (Contributors): Mention moxie port.
13398         * doc/install.texi (Specific): Mention the moxie port.
13399
13400 2009-06-09  Ian Lance Taylor  <iant@google.com>
13401
13402         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
13403         compiling with C++.
13404         * optabs.c (optab_table): Only use designated initializers if
13405         HAVE_DESIGNATED_INITIALIZERS is defined.
13406         (convert_optab_table): Likewise.
13407         (init_optabs): Always call init_insn_codes if
13408         HAVE_DESIGNATED_INITIALIZERS is not defined.
13409
13410 2009-06-09  Ian Lance Taylor  <iant@google.com>
13411
13412         * targhooks.c (default_builtin_vectorized_function): Change fn
13413         parameter to unsigned int.
13414         (default_builtin_vectorized_conversion): Change code parameter to
13415         unsigned int.
13416         (default_builtin_reciprocal): Change fn parameter to unsigned int.
13417         * targhooks.h: Update declarations.
13418         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
13419         parameter to unsigned int.
13420
13421         * c-typeck.c (comptypes_check_enum_int): New static function.
13422         (comptypes_internal): Add enum_and_int_p parameter.  Change all
13423         callers.
13424         (comp_target_types): Add location parameter.  Change all callers.
13425         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
13426         Change all callers.
13427         (function_types_compatible_p, type_lists_compatible_p): Likewise.
13428         (build_conditional_expr): Add colon_loc parameter.  Change all
13429         callers.
13430         (convert_for_assignment): Add location parameter.  Change all callers.
13431         * c-parser.c (c_parser_conditional_expression): Pass location of
13432         colon to build_conditional_expr.
13433         * c-tree.h (build_conditional_expr): Update declaration.
13434
13435 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
13436
13437         * graphite.c: Revert previous patch.
13438
13439 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
13440
13441         PR bootstrap/40103
13442         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
13443
13444 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
13445
13446         * tree-ssa-loop-prefetch.c
13447         (loop_prefetch_arrays): Fixed a portability problem in printf format
13448         string.
13449
13450 2009-06-09  Martin Jambor  <mjambor@suse.cz>
13451
13452         PR tree-optimization/40351
13453         * tree-sra.c (propagate_subacesses_accross_link): Check that a
13454         refrence to a potential artifical subaccess can be constructed.
13455
13456 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
13457
13458         * config/sh/sh-protos.h (sh_optimization_options): Declare.
13459         (sh_override_options): Likewise.
13460         * config/sh/sh.c: Include params.h.
13461         (sh_optimization_options): New.
13462         (sh_override_options): Likewise.
13463         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
13464         (OVERRIDE_OPTIONS): Use sh_override_options.
13465
13466 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
13467
13468         * dwarf2out.c (emit_cfa_remember): New variable.
13469         (add_fde_cfi): If emit_cfa_remember, recurse to add
13470         DW_CFA_remember_state first.
13471         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
13472         instead just set emit_cfa_remember.
13473
13474 2009-06-08  Jan Hubicka  <jh@suse.cz>
13475
13476         PR debug/40126
13477         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
13478
13479 2009-06-08  Jan Hubicka  <jh@suse.cz>
13480
13481         PR middle-end/39834
13482         * cgraphunit.c (save_inline_function_body): Do not copy transform
13483         hooks for saved inline bodies.
13484         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
13485         for given function.
13486
13487 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
13488
13489         * jump.c (returnjump_p): Handle delayed branches.  Add missing
13490         function comment.
13491
13492 2009-06-08  Jan Hubicka  <jh@suse.cz>
13493
13494         PR middle-end/40102
13495         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
13496         original node might've been modified.
13497         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
13498
13499 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
13500
13501         * tree-object-size.c (addr_object_size): Add OSI argument.
13502         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
13503         (compute_builtin_object_size, expr_object_size): Adjust callers.
13504         (plus_stmt_object_size): Call addr_object_size instead of
13505         compute_builtin_object_size.
13506
13507 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
13508             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
13509
13510         * tree-ssa-loop-prefetch.c
13511         (gather_memory_references): Introduced a counter for the number of
13512         memory references.
13513         (anything_to_prefetch_p): Introduced a counter for the number of
13514         prefetches.
13515         (is_loop_prefetching_profitable): New function with a cost model
13516         for prefetching.
13517         (loop_prefetch_arrays): Use the new cost model to determine if
13518         prefetching is profitable.
13519         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
13520         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
13521         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
13522         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
13523         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
13524         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
13525
13526 2009-06-08  Michael Matz  <matz@suse.de>
13527
13528         PR debug/40012
13529         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
13530         partitions use the same.
13531         (expand_one_var): Deal with DECL_RTL sometimes begin set also
13532         for basevars of SSA_NAMEs.
13533         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
13534         to not expand them twice.
13535         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
13536         multiple places.
13537
13538 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
13539
13540         * common.opt (fcompare-debug=, fcompare-debug-second): New.
13541         (fdump-final-insns=, gtoggle): New.
13542         * doc/invoke.texi: Document them.
13543         * final.c (rest_of_clean_state): Dump final insn stream.
13544         * gcc.c (invoke_as): Hook in -fcompare-debug.
13545         (static_spec_functions): Add compare-debug-dump-opt,
13546         compare-debug-self-opt and compare-debug-auxbase-opt.
13547         (compare_debug, compare_debug_second, compare_debug_opt): New.
13548         (switches_debug_check, n_switches_debug_check): New.
13549         (debug_auxbase_opt, debug_check_temp_file): New.
13550         (process_command): Handle -fno-compare-debug, -fcompare-debug and
13551         -fcompare-debug=*.
13552         (do_self_spec): Handle arguments after switches.
13553         (do_spec_1): Add .gk extension to temp file basenames for compare.
13554         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
13555         (cc1_options): Use it instead of normal auxbase computation for
13556         the second compare-debug compilation.
13557         (compare_files): New.
13558         (main): Set up and implement compare debug mode.
13559         (compare_debug_dump_opt_spec_function): New.
13560         (compare_debug_self_opt_spec_function): New.
13561         (compare_debug_auxbase_opt_spec_function): New.
13562         * toplev.c (process_options): Handle flag_gtoggle,
13563         flag_dump_final_insns.
13564         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
13565         during -fcompare-debug-second compilation.
13566
13567 2009-06-07  Ian Lance Taylor  <iant@google.com>
13568
13569         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
13570         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
13571
13572         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
13573         with no default node.  Change warning with %H to warning_at.
13574         Don't clear warn_switch around case checking.
13575         * doc/invoke.texi (Warning Options): Clarify distinction between
13576         -Wswitch and -Wswitch-enum.
13577
13578 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13579
13580         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
13581
13582 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13583
13584         * gbl-ctors.h: Add header guard.
13585
13586 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13587
13588         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
13589         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
13590         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
13591         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
13592         prototypes for removed functions.
13593         (expressions_equal_p): Move to ...
13594         * tree-ssa-sccvn.h: ... here and ...
13595         * matrix-reorg.c: ... adjust includes.
13596
13597 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13598
13599         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
13600
13601 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13602
13603         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
13604         (finish_function): Remove erroneous whitespace.
13605
13606 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13607
13608         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
13609         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
13610
13611 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13612
13613         * errors.c (internal_error): Commentary typo fix.
13614         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
13615         * tree-ssa-pre.c: Ditto.
13616
13617 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13618
13619         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
13620         them is supposed to hold actual statements.
13621
13622 2009-06-06  Ian Lance Taylor  <iant@google.com>
13623
13624         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
13625         empty statements can now have attributes.
13626
13627 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
13628
13629         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
13630         * config/mips/mips.md: Ditto.
13631
13632 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
13633
13634         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
13635         _RELOCATABLE.
13636         (__eabi_uconvert): Likewise.
13637
13638 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
13639
13640         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
13641         CFI_* definitions with IN_GCC.
13642
13643 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
13644
13645         * xcoffout.h (xcoffout_source_line): Update prototype.
13646
13647 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13648
13649         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
13650         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
13651
13652 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
13653
13654         PR middle-end/40340
13655         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
13656         inlined_function_outer_scope_p blocks for artificial inlines
13657         even at -g0/-g1.
13658         * tree.c (tree_nonartificial_location): Rewrite using
13659         block_nonartificial_location.
13660
13661 2009-06-05  Revital Eres  <eres@il.ibm.com>
13662             Leehod Baruch  <leehod@il.ibm.com>
13663
13664         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
13665         (expand_expr_real_1): Remove comment.
13666         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
13667         Vectorize misaligned access when the target supports it.
13668         (vect_supportable_dr_alignment): Check for unaligned access support.
13669         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
13670         and remove asset.
13671
13672 2009-06-05  Julian Brown  <julian@codesourcery.com>
13673
13674         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
13675         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
13676
13677 2009-06-05  Richard Guenther  <rguenther@suse.de>
13678
13679         PR bootstrap/40350
13680         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
13681         as possibly unused.
13682
13683 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
13684
13685         * config/s390/s390.c (global_not_special_regno_p): New static inline.
13686         (save_gprs): Don't tell unwinder when a global register is saved.
13687         (s390_emit_epilogue): Emit needed epilogue unwind info.
13688
13689 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
13690
13691         * dwarf2out.c (deferred_asm_name): New.
13692         (add_name_and_src_coords_attributes): Defer creation of
13693         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
13694         computed yet.
13695         (move_linkage_attr): New.
13696         (dwarf2out_finish): Revisit deferrals and emit attributes at the
13697         right place.
13698
13699 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
13700
13701         * tree-nested.c (finalize_nesting_tree_1): Declare the
13702         frame_decl in the binding tree.
13703
13704 2009-06-04  Cary Coutant  <ccoutant@google.com>
13705
13706         * basic-block.h (struct basic_block_def): Add discriminator field.
13707         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
13708         callers.
13709         * debug.c (do_nothing_debug_hooks): Add additional entry.
13710         (debug_nothing_int_charstar_int): New function.
13711         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
13712         (debug_nothing_int_charstar_int): New declaration.
13713         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
13714         discriminator value in .loc directive.
13715         * final.c (last_discriminator): New variable.
13716         (discriminator): New variable.
13717         (final_start_function): Initialize above variables, pass current
13718         discriminator to debug hook.
13719         (notice_source_line): Check for discriminator change.
13720         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
13721         * sdbout.c (sdbout_source_line): New parameter.
13722         * tree-cfg.c (struct locus_discrim_map): New structure type.
13723         (discriminator_per_locus): New hash table.
13724         (build_gimple_cfg): Allocate and free discriminator hash table.
13725         (make_edges): Call assign_discriminator.
13726         (locus_map_hash): New function.
13727         (locus_map_eq): New function.
13728         (next_discriminator_for_locus): New function.
13729         (same_line_p): New function.
13730         (assign_discriminator): New function.
13731         (make_cond_expr_edges): Call assign_discriminator.
13732         (make_gimple_switch_edges): Likewise.
13733         (first_non_label_stmt): New function.
13734         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
13735         all callers.
13736         * xcoffout.c (xcoffout_source_line): Add new parameter.
13737
13738         * configure.ac (gcc_cv_as_discriminator): New configury check for
13739         gas support for discriminator.
13740         * configure: Regenerate.
13741         * config.in: Regenerate.
13742
13743 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13744
13745         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
13746         val after checking for integers.
13747
13748 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
13749
13750         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
13751         X64_REGPARM_MAX.
13752         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
13753         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
13754         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
13755         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
13756         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
13757         X64_SSE_REGPARM_MAX.
13758         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
13759         X64_SSE_REGPARM_MAX.
13760
13761 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
13762
13763         * gcc.c (report_times_to_file): New.
13764         (execute): Implement it.
13765         (process_command): Support -time=.
13766         * doc/invoke.texi: Document it.
13767
13768 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
13769
13770         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
13771         that have value exprs.
13772
13773 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
13774
13775         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
13776         declarations for constants until...
13777         (dw2_output_indirect_constant_1): ... this point.
13778
13779 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
13780
13781         PR target/10242
13782         * arm.md (arm_addsi3): Don't try to split an add with an
13783         eliminable register until after reload has completed.
13784
13785 2009-06-03  Ian Lance Taylor  <iant@google.com>
13786
13787         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
13788         * genattrtab.c (write_length_unit_log): Likewise.
13789         * genchecksum.c (dosum): Likewise.
13790         * gengtype.c (write_rtx_next): Likewise.
13791         (finish_root_table, write_roots): Likewise.
13792         * gimple.c (gimple_ops_offset_): Likewise.
13793         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
13794         * config/arc/arc.c (arc_attribute_table): Likewise.
13795         * config/arm/arm.c (arm_attribute_table): Likewise.
13796         * config/avr/avr.c (avr_attribute_table): Likewise.
13797         * config/crx/crx.c (crx_attribute_table): Likewise.
13798         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
13799         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
13800         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
13801         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
13802         * config/sh/sh.c (sh_attribute_table): Likewise.
13803         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
13804         * config/spu/spu.c (spu_attribute_table): Likewise.
13805         * config/v850/v850.c (v850_attribute_table): Likewise.
13806
13807         * config/alpha/alpha.c (vms_attribute_table): Make static.
13808         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
13809         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
13810         * config/mips/mips.c (mips_attribute_table): Likewise.
13811
13812         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
13813         $(SYSTEM_H).
13814         (cc1-checksum.o): Likewise.
13815
13816 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
13817
13818         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
13819
13820 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
13821
13822         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
13823         insn if it is changing sp.  Use gen_add3_insn instead of
13824         conditionally gen_addsi3 and gen_adddi3.
13825         (offset_below_red_zone_p): New static inline function.
13826         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
13827         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
13828         * config/rs6000/ppc-asm.h: Include auto-host.h.
13829         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
13830         CFI_RESTORE): Define.
13831         * config/rs6000/crtresxgpr.asm: Add unwind info.
13832         * config/rs6000/crtresxfpr.asm: Likewise.
13833         * config/rs6000/crtresgpr.asm: Likewise.
13834         * config/rs6000/crtresfpr.asm: Likewise.
13835         * config/rs6000/crtsavgpr.asm: Likewise.
13836         * config/rs6000/crtsavfpr.asm: Likewise.
13837
13838         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
13839         argument of DWARF2_FRAME_REG_OUT macros.
13840
13841 2009-06-03  Julian Brown  <julian@codesourcery.com>
13842
13843         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
13844         words or less (including TImode) in core registers.
13845
13846 2009-06-03  Richard Guenther  <rguenther@suse.de>
13847
13848         PR middle-end/40328
13849         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
13850
13851 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
13852
13853         * statistics.c (statistics_counter_event): Do not record event
13854         in pass dump if its number == -1.
13855         (curr_statistics_hash): Add assert that we never get passes
13856         with static number == -1.
13857
13858 2009-06-03  Richard Guenther  <rguenther@suse.de>
13859             Andrey Belevantsev  <abel@ispras.ru>
13860
13861         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
13862         non-BLKmode arrays addressable.
13863
13864 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
13865
13866         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
13867         * config/m68k/m68k.h: ... here.
13868
13869 2009-06-03  Martin Jambor  <mjambor@suse.cz>
13870
13871         PR tree-optimization/40323
13872         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
13873         assignment.
13874
13875 2009-06-03  Richard Guenther  <rguenther@suse.de>
13876
13877         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
13878         consistently.
13879
13880 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
13881
13882         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
13883         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
13884         JUMP_TABLE_DATA_P where applicable.
13885         * config/sh/sh.c: Ditto.
13886         * config/sh/sh.h: Ditto.
13887         * config/sh/sh.md: Ditto.
13888         * config/sh/symbian.c: Ditto.
13889
13890 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
13891
13892         * config/i386/driver-i386.c (describe_cache): Optimize
13893         concatenation of strings.  Use snprintf instead of sprintf.
13894         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
13895         target when not compiling with GCC.
13896
13897 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
13898
13899         * config/sh/sh.c: Revert last change.
13900         (sh_expand_epilogue): Emit a blockage insn before the frame
13901         pointer adjustment unconditionally.
13902
13903 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
13904
13905         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
13906         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
13907         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
13908         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
13909         to COLLECT_GCC_OPTIONS.
13910
13911 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
13912
13913         * collect2.c (target_system_root): New variable.
13914         (main): Handle --sysroot=.
13915         (ignore_library): Strip the sysroot from the library path.
13916
13917 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
13918
13919         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
13920         (collect2.o): Depend on collect2-aix.h.
13921         (collect2-aix.o): New rule.
13922         * collect2-aix.h: New file.
13923         * collect2-aix.c: Likewise.
13924         * collect2.c: Include collect2-aix.h.  Don't undefine
13925         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
13926         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
13927         Use TARGET_AIX_VERSION instead of _AIX51.
13928         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
13929         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
13930         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
13931         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
13932         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
13933
13934 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
13935
13936         * collect2.c (ignore_library): Avoid premature post-increment
13937         and null deference.
13938
13939 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
13940
13941         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
13942         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
13943         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
13944         CROSS_DIRECTORY_STRUCTURE too.
13945         (LINK_LIBG_SPEC): Likewise.
13946         (LIB_SPEC): Add %R to sysroot paths.
13947         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
13948         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
13949         * config/rs6000/aix51.h: As for aix43.h.
13950         * config/rs6000/aix52.h: Likewise.
13951         * config/rs6000/aix53.h: Likewise.
13952         * config/rs6000/aix61.h: Likewise.
13953         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
13954         to the beginning of sysroot paths.
13955
13956 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13957
13958         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
13959         INSN_LISTs that are out of the REG_NOTE range.
13960
13961 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13962
13963         * loop-unroll.c (struct iv_to_split): Add pointer to next.
13964         (struct var_to_expand): Likewise.
13965         (struct opt_info): Add head and tail for linked lists of the above.
13966         (analyze_insn_to_expand_var): Initialize next.
13967         (analyze_iv_to_split_insn): Likewise.
13968         (analyze_insns_in_loop): Create linked lists.
13969         (allocate_basic_variable): Simplify for use without hash table.
13970         (insert_var_expansion_initialization): Likewise, make it type-safer.
13971         (combine_var_copies_in_loop_exit): Likewise.
13972         (apply_opt_in_copies): Walk lists rather than hash tables.
13973         (release_var_copies): Simplified and inlined by hand into...
13974         (free_opt_info): ... this function.
13975
13976 2009-06-02  Richard Guenther  <rguenther@suse.de>
13977
13978         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
13979         for field decls.
13980
13981 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13982
13983         * cfgexpand.c (gimple_expand_cfg): Discard the source location
13984         only for builtins that are not overridden.
13985
13986 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13987
13988         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
13989         label string.
13990
13991 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13992
13993         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
13994
13995 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13996
13997         * combine.c (move_deaths): Compare LUIDs within the same BB only.
13998
13999 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14000
14001         * common.opt (fdump-unnumbered-links): New.
14002         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
14003         * print-rtl.c (flag_dump_unnumbered_links): New.
14004         (print_rtx): Test it.
14005
14006 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
14007
14008         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
14009         push/pop multiple to 8-byte alignment.
14010
14011 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
14012
14013         * config/i386/i386.c (queued_cfa_restores): New static variable.
14014         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
14015         functions.
14016         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
14017         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
14018         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
14019         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
14020         note unconditionally.
14021         (ix86_emit_restore_regs_using_mov): Likewise.
14022         (ix86_emit_restore_sse_regs_using_mov): Likewise.
14023         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
14024         it through to ix86_emit_restore_reg_using_pop.
14025         (ix86_emit_leave): Add RED_OFFSET argument.  Call
14026         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
14027         instead of adding REG_CFA_OFFSET note unconditionally.
14028         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
14029         the above functions.  Call ix86_add_queued_cfa_restore_notes when
14030         needed.
14031
14032         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
14033         force output of the label even for dwarf2out_do_cfi_asm.
14034         (add_fde_cfi): If -g2 and above and cfi might change CFA,
14035         force creation of CFI label and chain DW_CFA_set_loc jumping to it
14036         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
14037         caller.
14038         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
14039         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
14040         dwarf2out_cfi_label callers.
14041         * tree.h (dwarf2out_cfi_label): Adjust prototype.
14042         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
14043         Adjust dwarf2out_cfi_label callers.
14044         * config/vax/vax.c (vax_output_function_prologue): Likewise.
14045
14046         * config/i386/i386.h (struct machine_cfa_state,
14047         struct machine_function): Guard with ifndef USED_FOR_TARGET
14048         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
14049
14050         PR other/40024
14051         * emutls.c (__emutls_get_address): Change arr->size to mean number
14052         of allocated arr->data entries instead of # of slots + 1.
14053
14054         PR middle-end/40316
14055         * recog.c (peep2_reinit_state): New function.
14056         (peephole2_init_state): Use it at the end of a basic block and also
14057         when seeing a RTX_FRAME_RELATED_P insn.
14058
14059 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
14060
14061         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
14062         fixuns_truncrfdi2): New.
14063         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
14064         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
14065         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
14066         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
14067         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
14068         *recip_approx): Remove.
14069         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
14070         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
14071         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
14072         move to div.md.
14073         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
14074         setf_exp_rf): New.
14075
14076 2009-06-01  Ian Lance Taylor  <iant@google.com>
14077
14078         * attribs.c (register_attribute): Use CONST_CAST.
14079         * collect2.c (main): Use CONST_CAST2.
14080         (scan_prog_file): Likewise.
14081         * gcc.c (process_command, main): Likewise.
14082         * toplev.c (toplev_main): Likewise.
14083
14084         * c-typeck.c (handle_warn_cast_qual): New static function,
14085         partially broken out of build_c_cast.
14086         (build_c_cast): Call handle_warn_cast_qual.
14087         * doc/invoke.texi (Warning Options): Document new effect of
14088         -Wcast-qual.
14089
14090 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
14091
14092         * diagnostic.c (diagnostic_build_prefix): Always print columns.
14093         (diagnostic_report_current_module): Print columns.
14094         * common.opt (flag_show_column): Enable by default.
14095
14096 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
14097
14098         * alias.c (find_base_term): Check for NULL term before returning.
14099
14100 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
14101
14102         Revert due to PR40320:
14103         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
14104         * calls.c (emit_library_call_value_1): Don't force_operand for move
14105         and push insns.
14106
14107 2009-06-01  Olivier Hainque  <hainque@adacore.com>
14108             Eric Botcazou  <ebotcazou@adacore.com>
14109
14110         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
14111         to be processed as a bitfield for constructor output purposes.
14112         * output.h (initializer_constant_valid_for_bitfield_p): Declare
14113         new function.
14114         * varasm.c (oc_local_state): New type, output_constructor
14115         local state to support communication with helpers.
14116         (oc_outer_state): New type, output_constructor outer state of
14117         relevance in recursive calls.
14118         (output_constructor_array_range): New output_constructor helper,
14119         extracted code for an array range element.
14120         (output_constructor_regular_field): New output_constructor helper,
14121         extracted code for an element that is not a bitfield.
14122         (output_constructor_bitfield): New output_constructor helper,
14123         extracted code for a bitfield element.  Accept an OUTER state
14124         argument for recursive processing.  Recurse on record or array
14125         CONSTRUCTOR values, possibly past noop conversions.
14126         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
14127         VALUE is a valid constant-valued expression for use in a static
14128         bit-field initializer.
14129         (output_constructor): Rework to use helpers.  Accept and honor an
14130         OUTER state argument for recursive calls.  Return total size.  Be
14131         prepared for nested constructors initializing bitfields.
14132         (output_constant): Feed OUTER in calls to output_constructor.
14133
14134 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
14135
14136         * calls.c (emit_library_call_value_1): Don't force_operand for move
14137         and push insns.
14138
14139 2009-06-01  Nick Clifton  <nickc@redhat.com>
14140
14141         * doc/invoke.texi (IA-64 Options): Fix typo.
14142
14143 2009-06-01  Ira Rosen  <irar@il.ibm.com>
14144
14145         PR tree-optimization/39129
14146         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
14147         printed message.
14148         (vect_do_peeling_for_loop_bound): Use
14149         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
14150         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
14151         (vect_loop_versioning): Likewise.
14152         (vect_create_cond_for_alias_checks): Fix indentation.
14153         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
14154         macros.
14155         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
14156         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
14157         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
14158         "control flow in loop".
14159         (vect_estimate_min_profitable_iters): Use
14160         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
14161         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
14162         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
14163         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
14164         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
14165         statement belongs to a group of strided accesses with the exact code
14166         check.
14167         (vectorizable_load): Likewise.
14168         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
14169         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
14170
14171 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
14172
14173         * config/freebsd-stdint.h: New file.
14174         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
14175         Add freebsd-stdint.h to tm_file.
14176
14177 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
14178
14179         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
14180         (thumb2_extendhidi2): Likewise.
14181
14182 2009-05-31  Ian Lance Taylor  <iant@google.com>
14183
14184         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
14185
14186 2009-05-31  Ian Lance Taylor  <iant@google.com>
14187
14188         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
14189         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
14190         (ipa-reference.o): Depend upon gt-ipa-reference.h.
14191
14192 2009-05-31  Jason Merrill  <jason@redhat.com>
14193
14194         * tree-pretty-print.c (print_call_name): Take the callee, not the
14195         call itself.  Make non-static.  Use dump_function_name for functions.
14196         (dump_generic_node): Adjust.
14197         * diagnostic.h: Declare print_call_name.
14198         * gimple-pretty-print.c (dump_gimple_call): Use it.
14199
14200 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
14201
14202         * config/sh/sh.md (ashldi3_std): New define_expand.
14203         (ashldi3): Use it.
14204
14205 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
14206
14207         PR target/40313
14208         * config/sh/sh.c: Include debug.h.
14209         (sh_expand_epilogue): Emit a blockage insn before the frame
14210         pointer adjustment also when dwarf2out_do_frame returns true.
14211
14212 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
14213
14214         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
14215         (thumb2_extendqidi2): New pattern.
14216
14217 2009-05-31  Ira Rosen  <irar@il.ibm.com>
14218
14219         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
14220         mark phis for renaming.
14221         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
14222         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
14223         Call mark_sym_for_renaming.
14224         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
14225         * tree-vect-loop.c (vect_transform_loop): Remove
14226         vect_memsyms_to_rename initialization and a call to
14227         mark_set_for_renaming.
14228
14229 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
14230
14231         PR middle-end/40304
14232         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
14233         frame related even if !set_cfa && style < 0.
14234
14235 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
14236
14237         * config/i386/mingw-tls.c: New file.
14238         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
14239         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
14240         defining _WIN32 but not __CYGWIN__.
14241
14242 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14243
14244         * configure.ac: Add MPC support.
14245
14246         * config.in, configure: Regenerate.
14247
14248 2009-05-29  Richard Henderson  <rth@redhat.com>
14249
14250         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
14251         NOTE_INSN_BASIC_BLOCK.
14252         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
14253         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
14254         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
14255         to be deleted.
14256         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
14257         add in_use field.
14258         (add_cfi): Disable check redefining cfa away from drap.
14259         (lookup_cfa_1): Add remember argument; handle remember/restore.
14260         (lookup_cfa): Pass remember argument.
14261         (cfa_remember): New.
14262         (compute_barrier_args_size_1): Remove sibcall check.
14263         (dwarf2out_frame_debug_def_cfa): New.
14264         (dwarf2out_frame_debug_adjust_cfa): New.
14265         (dwarf2out_frame_debug_cfa_offset): New.
14266         (dwarf2out_frame_debug_cfa_register): New.
14267         (dwarf2out_frame_debug_cfa_restore): New.
14268         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
14269         (dwarf2out_begin_epilogue): New.
14270         (dwarf2out_frame_debug_restore_state): New.
14271         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
14272         DW_CFA_restore_state.
14273         (output_cfi_directive): Likewise.
14274         (convert_cfa_to_fb_loc_list): Likewise.
14275         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
14276         * dwarf2out.h: Update.
14277         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
14278         (copy_insn_1): Early out for null.
14279         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
14280         and dwarf2out_frame_debug_restore_state.
14281         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
14282         (prologue_insn_hash, epilogue_insn_hash): New.
14283         (free_after_compilation): Adjust freeing accordingly.
14284         (record_insns): Create hash table if needed; push insns into
14285         hash instead of array.
14286         (maybe_copy_epilogue_insn): New.
14287         (contains): Search hash table instead of array.
14288         (sibcall_epilogue_contains): Remove.
14289         (thread_prologue_and_epilogue_insns): Split eh_return insns
14290         and mark them as epilogues.
14291         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
14292         scanning in terms of basic blocks.
14293         * insn-notes.def (CFA_RESTORE_STATE): New.
14294         * jump.c (returnjump_p_1): Accept EH_RETURN.
14295         (eh_returnjump_p_1, eh_returnjump_p): New.
14296         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
14297         CFA_REGISTER, CFA_RESTORE): New.
14298         * rtl.def (EH_RETURN): New.
14299         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
14300
14301         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
14302         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
14303
14304         * config/i386/i386.c (gen_push): Update cfa state.
14305         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
14306         add a CFA_ADJUST_CFA note.
14307         (ix86_dwarf_handle_frame_unspec): Remove.
14308         (ix86_expand_prologue): Update cfa state.
14309         (ix86_emit_restore_reg_using_pop): New.
14310         (ix86_emit_restore_regs_using_pop): New.
14311         (ix86_emit_leave): New.
14312         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
14313         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
14314         * config/i386/i386.h (struct machine_cfa_state): New.
14315         (ix86_cfa_state): New.
14316         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
14317         (eh_return_internal): Merge from eh_return_<mode>,
14318         use eh_return rtx, split w/ epilogue.
14319
14320 2009-05-29  Ian Lance Taylor  <iant@google.com>
14321
14322         * builtins.c (validate_gimple_arglist): Don't use va_arg with
14323         enum type.
14324         * calls.c (emit_library_call_value_1): Likewise.
14325
14326         * c-typeck.c (c_build_va_arg): New function.
14327         * c-tree.h (c_build_va_arg): Declare.
14328         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
14329         instead of build_va_arg.
14330
14331 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
14332
14333         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
14334         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
14335         (ptr_difference_cost): Use affine combinations to compute it.
14336         (difference_cost): Likewise.
14337         (get_computation_cost_at): Compute more accurate cost for addresses
14338         if the ratio is a multiplier allowed in addresses.
14339         For non-addresses, consider that an additional offset or symbol is
14340         added only once.
14341
14342 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
14343
14344         * config/i386/i386.c (ix86_decompose_address): Avoid useless
14345         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
14346
14347         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
14348         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
14349         (prefix_rex): For UNIT_MMX don't imply the prefix by default
14350         if MODE_DI.
14351         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
14352         to 1 for TYPE_SSE{IADD1,CVT1}.
14353         (prefix_vex_imm8): Removed.
14354         (length_vex): Only pass 1 as second argument to
14355         ix86_attr_length_vex_default if prefix_extra is 0.
14356         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
14357         (length): For prefix vex computation use length_immediate
14358         attribute instead of prefix_vex_imm8.
14359         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
14360         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
14361         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
14362         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
14363         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
14364         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
14365         a space in between the operands.
14366         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
14367         if one operand is 0xff and the other one si, di, bp or sp.
14368         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
14369         other one si, di, bp or sp.
14370         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
14371         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
14372         type and mode attributes.
14373         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
14374         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
14375         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
14376         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
14377         prefix_data16 attribute iff MODE_DF.
14378         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
14379         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
14380         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
14381         constm128_operand in length_immediate computation.
14382         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
14383         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
14384         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
14385         length_immediate attribute to 1.
14386         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
14387         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
14388         for certain alternatives.
14389         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
14390         prefix_data16 attribute if MODE_V1DF.
14391         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
14392         length_immediate to 1.
14393         (set_got_rex64, set_rip_rex64): Remove length attribute, set
14394         length_address to 4, set mode attribute to MODE_DI.
14395         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
14396         (fxam<mode>2_i387): Set length attribute to 4.
14397         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
14398         *prefetch_3dnow_rex): Override length_address attribute.
14399         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
14400         attributes.
14401         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
14402         (constm128_operand): Removed.
14403         * config/i386/i386.c (memory_address_length): For
14404         disp && !index && !base in 64-bit mode account for SIB byte if
14405         print_operand_address can't optimize disp32 into disp32(%rip)
14406         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
14407         for fs: or gs: segment.
14408         (ix86_attr_length_immediate_default): When checking if shortform
14409         is possible, truncate immediate to the length of the non-shortened
14410         immediate.
14411         (ix86_attr_length_address_default): Ignore MEM_P operands
14412         with X constraint.
14413         (ix86_attr_length_vex_default): Only check for DImode on
14414         GENERAL_REG_P operands.
14415         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
14416         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
14417         (sse_cvttps2pi): Clear prefix_rep attribute.
14418         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
14419         attribute.
14420         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
14421         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
14422         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
14423         iff operand 2 is const_int_operand.
14424         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
14425         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
14426         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
14427         instead of vex.
14428         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
14429         prefix_data16.
14430         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
14431         prefix_data16 attribute for movlpd and movhpd instructions.
14432         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
14433         length_immediate for shufpd instruction.
14434         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
14435         (avx_cmpp<avxmodesuffixf2c><mode>3,
14436         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
14437         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
14438         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
14439         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
14440         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
14441         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
14442         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
14443         prefix_data16 attribute for the first alternative to 1.
14444         (*avx_loadlps): Override length_immediate for the first alternative.
14445         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
14446         attributes for second alternative.
14447         (*vec_concatv2sf_sse4_1): Override length_immediate and
14448         prefix_data16 attributes for second alternative.
14449         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
14450         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
14451         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
14452         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
14453         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
14454         prefix_data16 and length_immediate to 1.
14455         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
14456         to 1.
14457         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
14458         prefix_extra attribute for variants that don't have 0f prefix alone.
14459         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
14460         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
14461         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
14462         *sse4_1_pextrd): Set length_immediate to 1.
14463         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
14464         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
14465         to 1.
14466         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
14467         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
14468         length_immediate to 1 for second alternative.
14469         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
14470         prefix_extra and length_immediate attributes for the first
14471         alternative.
14472         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
14473         first alternative.
14474         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
14475         to 1 for the first and third alternative.
14476         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
14477         alternative.
14478         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
14479         attribute.
14480         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
14481         attribute to 0.
14482         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
14483         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
14484         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
14485         *avx_psign<mode>3): Set prefix_extra attribute to 1.
14486         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
14487         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
14488         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
14489         ssse3_psign<mode>3): Override prefix_rex attribute.
14490         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
14491         (ssse3_palignrti): Override length_immediate to 1.
14492         (ssse3_palignrdi): Override length_immediate to 1, override
14493         prefix_rex attribute.
14494         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
14495         (sse4a_extrqi): Override length_immediate to 2.
14496         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
14497         (sse4a_insertq): Override prefix_data16 to 0.
14498         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
14499         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
14500         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
14501         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
14502         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
14503         and length_immediate to 1.
14504         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
14505         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
14506         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
14507         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
14508         and length_immediate to 1.
14509         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
14510         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
14511         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
14512         avx_ptest256): Override prefix_extra to 1.
14513         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
14514         Override prefix_data16 and length_immediate to 1.
14515         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
14516         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
14517         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
14518         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
14519         prefix_data16 to 0 and prefix_extra to 2.
14520         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
14521         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
14522         attribute.
14523         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
14524         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
14525         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
14526         and prefix_extra to 2.
14527         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
14528         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
14529         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
14530         avx_vpermilvar<mode>3,
14531         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
14532         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
14533         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
14534         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
14535         Override prefix_extra to 1.
14536         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
14537         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
14538         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
14539         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
14540         prefix_extra and length_immediate to 1.
14541         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
14542         modrm to 0.
14543         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
14544         to 1 for the first alternative.
14545         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
14546         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
14547         cases.
14548         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
14549         *movv2sf_internal_avx, *movv2sf_internal): Override
14550         prefix_rep attribute for certain alternatives.
14551         (*mov<mode>_internal): Override prefix_rep or prefix_data16
14552         attributes for certain alternatives.
14553         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
14554         attributes for certain alternatives.
14555         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
14556         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
14557         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
14558         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
14559         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
14560         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
14561         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
14562         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
14563         length_immediate to 1 if operand 2 is const_int_operand.
14564         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
14565         *vec_extractv2si_1): Set length_immediate attribute to 1.
14566         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
14567         using old 3DNOW insn rather than SSE/3DNOW_A.
14568         (mmx_emms, mmx_femms): Clear modrm attribute.
14569
14570 2009-05-29  Martin Jambor  <mjambor@suse.cz>
14571
14572         * tree-sra.c:  New implementation of SRA.
14573
14574         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
14575         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
14576         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
14577         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
14578         (SRA_MAX_STRUCTURE_COUNT): Removed.
14579         (SRA_FIELD_STRUCTURE_RATIO): Removed.
14580         * doc/invoke.texi (sra-max-structure-size): Removed.
14581         (sra-field-structure-ratio): Removed.
14582
14583 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
14584
14585         PR middle-end/40291
14586         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
14587         before expansion.
14588
14589 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
14590
14591         PR rtl-optimization/40101
14592         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
14593         seqno.  Adjust comment.
14594         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
14595         inserting bookkeeping before a jump, the jump is not scheduled.
14596         When no positive seqno found, provide a value.  Add comment.
14597
14598 2009-05-29  Richard Guenther  <rguenther@suse.de>
14599
14600         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
14601         short-cutting on the first component.
14602
14603 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
14604
14605         PR middle-end/39958
14606         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
14607         for trees other than decls/types.
14608
14609 2009-05-29  Richard Guenther  <rguenther@suse.de>
14610
14611         * tree-ssa-operands.c (get_expr_operands): Do not handle
14612         INDIRECT_REFs in the handled-component case.  Remove
14613         unused get_ref_base_and_extent case.
14614         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
14615         tree_low_cst and host_integerp where possible.
14616         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
14617         codes for equivalence.
14618         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
14619
14620 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
14621
14622         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
14623         to tmake_file for i[34567]86-*-cygwin*.
14624
14625 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
14626
14627         PR target/40017
14628         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
14629         (altivec_categorize_keyword, init_vector_keywords,
14630         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
14631         similar to bool.
14632
14633 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
14634
14635         * tree.c (handle_dll_attribute): Check if node is
14636         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
14637
14638 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
14639
14640         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
14641         component.
14642         (thumb2_zero_extendqidi2): Likewise.
14643
14644 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
14645
14646         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
14647         instead of gen_movrt.
14648         * config/sh/sh.md (movrt): Remove.
14649
14650 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
14651
14652         * doc/invoke.texi (IA-64 Options):
14653         Add -msdata, -mfused-madd, -mno-inline-float-divide,
14654         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
14655         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
14656         -msched-prefer-non-control-spec-insns,
14657         -msched-stop-bits-after-every-cycle,
14658         -msched-count-spec-in-critical-path,
14659         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
14660         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
14661         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
14662         and -msched-spec-verbose.
14663
14664 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
14665
14666         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
14667         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
14668         error if used.
14669         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
14670
14671 2009-05-28  Richard Guenther  <rguenther@suse.de>
14672
14673         * tree-ssa-alias.c (ao_ref_init): New function.
14674         (ao_ref_base): Likewise.
14675         (ao_ref_base_alias_set): Likewise.
14676         (ao_ref_alias_set): Likewise.
14677         (refs_may_alias_p_1): Change signature.
14678         (refs_may_alias_p): Adjust.
14679         (refs_anti_dependent_p): Likewise.
14680         (refs_output_dependent_p): Likewise.
14681         (call_may_clobber_ref_p_1): Change signature.
14682         (call_may_clobber_ref_p): Adjust.
14683         (stmt_may_clobber_ref_p_1): New function split out from ...
14684         (stmt_may_clobber_ref_p): ... here.
14685         (maybe_skip_until): Adjust signature.
14686         (get_continuation_for_phi): Likewise.
14687         (walk_non_aliased_vuses): Likewise.
14688         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
14689         (ao_ref_init): Declare.
14690         (ao_ref_base): Likewise.
14691         (ao_ref_alias_set): Likewise.
14692         (stmt_may_clobber_ref_p_1): Likewise.
14693         (walk_non_aliased_vuses): Adjust.
14694         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
14695         (get_ref_from_reference_ops): remove.
14696         (vn_reference_lookup_2): Adjust signature.
14697         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
14698         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
14699         (vn_reference_lookup): Adjust.
14700         (vn_reference_insert): Likewise.
14701         (vn_reference_insert_pieces): Adjust signature.
14702         (visit_reference_op_call): Adjust.
14703         * tree-ssa-pre.c (get_expr_type): Simplify.
14704         (phi_translate_1): Adjust.
14705         (compute_avail): Likewise.
14706         (translate_vuse_through_block): Do not re-build trees.
14707         (value_dies_in_block_x): Likewise.
14708         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
14709         fields.
14710         (vn_reference_lookup_pieces): Adjust declaration.
14711         (vn_reference_insert_pieces): Likewise.
14712
14713 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
14714
14715         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
14716         with checking disabled.
14717
14718 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
14719
14720         PR target/37216
14721
14722         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
14723         macro definition for support of three-operand format aligned
14724         .comm directive in assembler on cygwin/pe/mingw target OS.
14725         * configure:  Regenerate.
14726         * config.h:  Regenerate.
14727
14728         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
14729         aligned form of .comm directive if -mpe-aligned-commons is in effect.
14730         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
14731
14732         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
14733         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
14734
14735 2009-05-28  Ira Rosen  <irar@il.ibm.com>
14736
14737         PR tree-optimization/40254
14738         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
14739         in analysis of basic blocks.
14740
14741 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
14742
14743         PR middle-end/33699
14744         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
14745         * target-def.h (TARGET_CONST_ANCHOR): New macro.
14746         (TARGET_INITIALIZER): Use it.
14747         * cse.c (CHEAPER): Move it up to the other macros.
14748         (insert): Rename this ...
14749         (insert_with_costs): ... to this.  Add cost parameters.  Update
14750         function comment.
14751         (insert): New function.  Call insert_with_costs.
14752         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
14753         find_reg_offset_for_const, try_const_anchors): New functions.
14754         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
14755         when using a const-anchor.  Call insert_const_anchors.
14756         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
14757         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
14758
14759 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
14760
14761         * tree-inline.c (remap_decls): Enable nonlocalized variables
14762         when not optimizing.
14763
14764 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
14765
14766         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
14767         Simplify other tests involving optimize.
14768
14769 2009-05-27  Tom Tromey  <tromey@redhat.com>
14770
14771         * unwind-dw2.c (_Unwind_DebugHook): New function.
14772         (uw_install_context): Call _Unwind_DebugHook.
14773
14774 2009-05-27  Tom Tromey  <tromey@redhat.com>
14775
14776         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
14777
14778 2009-05-27  Ian Lance Taylor  <iant@google.com>
14779
14780         * Makefile.in (LINKER, LINKER_FLAGS): Define.
14781         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
14782         (ALL_LINKERFLAGS): Define.
14783         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
14784         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
14785         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
14786         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
14787         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
14788         $(LINKER_FOR_BUILD).
14789         (build/gcov-iov$(build_exeext)): Likewise.
14790
14791 2009-05-27  Julian Brown  <julian@codesourcery.com>
14792
14793         * gcse.c (target.h): Include.
14794         (can_assign_to_reg_without_clobbers_p): Check that the target allows
14795         copy of argument to a pseudo register.
14796
14797 2009-05-27  Diego Novillo  <dnovillo@google.com>
14798
14799         * tree-ssa-live.c (dump_scope_block): Document arguments.
14800         (dump_scope_blocks): Document.
14801         (debug_scope_blocks): New.
14802         * tree-flow.h (debug_scope_blocks): Declare.
14803
14804 2009-05-21  Denis Chertykov  <denisc@overta.ru>
14805
14806         * doc/contrib.texi (Contributors): Add myself to the list.
14807
14808 2009-05-27  Olivier Hainque  <hainque@adacore.com>
14809
14810         * expr.c (target_align): New function.  Alignment the TARGET of an
14811         assignment may be assume to have.
14812         (highest_pow2_factor_for_target): Use it instead of relying on
14813         immediate tree attributes of TARGET, not necessarily honored when
14814         intermediate bitfields are involved.
14815
14816 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
14817
14818         PR target/40266
14819         * config/i386/driver-i386.c (host_detect_local_cpu): Support
14820         AVX, SSE4, AES, PCLMUL and POPCNT.
14821
14822 2009-05-27  Diego Novillo  <dnovillo@google.com>
14823
14824         * tree-pretty-print.c (dump_location): New.
14825         (dump_generic_node): Call it.
14826         Factor code to handle BLOCK nodes ...
14827         (dump_block_node): ... here.
14828
14829 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
14830
14831         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
14832         with it.
14833         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
14834         included.
14835         * gcc-plugin.h: Include config.h and system.h.
14836         (IN_GCC): Define if not defined.
14837
14838 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
14839
14840         PR middle-end/40249
14841         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
14842         with -fno-inline.
14843
14844 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
14845
14846         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
14847         applicable.
14848         * config/m32r/m32r.h: Ditto.
14849         * config/m32r/m32r.md: Ditto.
14850         * config/m32r/predicates.md: Ditto.
14851
14852 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
14853
14854         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
14855
14856 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
14857
14858         * doc/plugins.texi
14859         (Loading plugins): typo.
14860         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
14861         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
14862         (Interacting with the GCC Garbage Collector): Added new section.
14863         (Giving information about a plugin): Added new section for
14864         PLUGIN_INFO.
14865         * ggc.h (ggc_register_root_tab): Added declaration.
14866         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
14867         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
14868         (register_callback): Improved comment in declaration.
14869         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
14870         (extra_root_vec) Added static variable for dynamic roots registration.
14871         (ggc_register_root_tab) Added new routine.
14872         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
14873         PLUGIN_GGC_MARKING event.
14874         * ggc-zone.c: Include plugin.h.
14875         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
14876         * ggc-page.c: Include plugin.h.
14877         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
14878         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
14879         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
14880         (register_callback): check lack of callbacks for
14881         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
14882         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
14883         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
14884         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
14885         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
14886         dependency on plugin.h.
14887         (plugin.o): Added dependency on ggc.h...
14888
14889 2009-05-26  Richard Guenther  <rguenther@suse.de>
14890
14891         PR middle-end/40248
14892         Revert
14893         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
14894         with mismatched comparison modes.
14895
14896         * expr.c (expand_expr_real_1): Expand the operand of a
14897         VIEW_CONVERT_EXPR in its natural mode.
14898
14899 2009-05-26  Ian Lance Taylor  <iant@google.com>
14900
14901         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
14902         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
14903         (ALL_COMPILERFLAGS): Define.
14904         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
14905         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
14906         (collect2$(exeext), collect2.o): Likewise.
14907         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
14908         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
14909         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
14910         (libbackend.o, intl.o, cppdefault.o): Likewise.
14911         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
14912         (build/%.o): Use $(COMPILER_FOR_BUILD).
14913         (build/gen%$(build_exeext)): Likewise.
14914         (build/gcov-iov$(build_exeext)): LIkewise.
14915         * config/t-darwin (darwin.o): Use $(COMPILER).
14916         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
14917         * config/t-sol2 (sol2-c.o): Likewise.
14918         (sol2.o): Likewise.
14919         * config/t-vxworks (vxworks.o): Likewise.
14920         * config/x-darwin (host-darwin.o): Likewise.
14921         * config/x-hpux (host-hpux.o): Likewise.
14922         * config/x-linux (host-linux.o): Likewise.
14923         * config/x-solaris (host-solaris.o): Likewise.
14924         * config/alpha/x-alpha (driver-alpha.o): Likewise.
14925         * config/arm/t-arm (arm-c.o): Likewise.
14926         * config/arm/t-pe (pe.o): Likewise.
14927         * config/arm/t-wince-pe (pe.o): Likewise.
14928         * config/i386/t-cygming (winnt.o): Likewise.
14929         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
14930         * config/i386/t-cygwin (cygwin1.o): Likewise.
14931         (cygwin2.o): Likewise.
14932         * config/i386/t-i386 (i386-c.o): Likewise.
14933         * config/i386/t-interix (winnt.o): Likewise.
14934         * config/i386/t-netware (netware.o): Likewise.
14935         * config/i386/t-nwld (nwld.o): Likewise.
14936         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
14937         * config/i386/x-i386 (driver-i386.o): Likewise.
14938         * config/i386/x-cygwin (host-cygwin.o): Likewise.
14939         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
14940         * config/ia64/t-ia64 (ia64-c.o): Likewise.
14941         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
14942         * config/mips/x-native (driver-native.o): Likewise.
14943         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
14944         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
14945         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
14946         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
14947         * config/score/t-score-elf (score7.o): Likewise.
14948         (score3.o): Likewise.
14949         * config/sh/t-sh (sh-c.o): Likewise.
14950         * config/sh/t-symbian (sh-c.o): Likewise.
14951         (symbian.o): Likewise.
14952         * config/spu/t-spu-elf (spu-c.o): Likewise.
14953         * config/v850/t-v850 (v850-c.o): Likewise.
14954         * config/v850/t-v850e (v850-c.o): Likewise.
14955
14956 2009-05-26  Richard Guenther  <rguenther@suse.de>
14957
14958         PR tree-optimization/40122
14959         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
14960         VECTOR_CSTs if possible.
14961         (fold_gimple_assign): Likewise.
14962
14963 2009-05-26  Richard Guenther  <rguenther@suse.de>
14964
14965         PR middle-end/40252
14966         * fold-const.c (fold_binary): Use the correct types for building
14967         rotates.
14968
14969 2009-05-26  Richard Guenther  <rguenther@suse.de>
14970
14971         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
14972         redundant calls to merge_alias_info.
14973         (bump_vector_ptr): Likewise.
14974         * tree-ssa-copy.c (merge_alias_info): Remove.
14975         (replace_exp_1): Remove call to merge_alias_info.
14976         (propagate_tree_value): Likewise.
14977         (fini_copy_prop): Propagate points-to info.
14978         * tree-flow.h (merge_alias_info): Remove.
14979
14980 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
14981
14982         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
14983
14984 2009-05-25  Jan Hubicka  <jh@suse.cz>
14985
14986         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
14987         * cgraph.h (struct inline_summary): New filed self_wize,
14988         size_inlining_benefit, self_time and time_inlining_benefit.
14989         (struct cgraph_global_info): Replace insns by time ans size fields.
14990         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
14991         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
14992         (ipcp_update_callgraph): Do not touch function bodies.
14993         * ipa-inline.c: Include except.h
14994         (MAX_TIME): New constant.
14995         (overall_insns): Remove.
14996         (leaf_node_p): New.
14997         (overall_size, max_benefit): New static variables.
14998         (cgraph_estimate_time_after_inlining): New function.
14999         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
15000         (cgraph_clone_inlined_nodes): Update size.
15001         (cgraph_mark_inline_edge): Update size.
15002         (cgraph_estimate_growth): Use size info.
15003         (cgraph_check_inline_limits): Check size.
15004         (cgraph_default_inline_p): Likewise.
15005         (cgraph_edge_badness): Compute badness based on benefit and size cost.
15006         (cgraph_decide_recursive_inlining): Check size.
15007         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
15008         and times.
15009         (cgraph_decide_inlining): Likewise.
15010         (cgraph_decide_inlining_incrementally): Likewise; honor
15011         PARAM_EARLY_INLINING_INSNS.
15012         (likely_eliminated_by_inlining_p): New predicate.
15013         (estimate_function_body_sizes): New function.
15014         (compute_inline_parameters): Use it.
15015         * except.c (must_not_throw_labels): New function.
15016         * except.h (must_not_throw_labels): Declare.
15017         * tree-inline.c (init_inline_once): Kill inlining_weigths
15018         * tree-ssa-structalias.c: Avoid uninitialized warning.
15019         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
15020         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
15021         (PARAM_INLINE_CALL_COST): Remove.
15022         (PARAM_EARLY_INLINING_INSNS): New.
15023
15024 2009-05-25  Richard Guenther  <rguenther@suse.de>
15025
15026         PR tree-optimization/36327
15027         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
15028         callback for reference translation or lookup at the point of may-defs.
15029         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
15030         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
15031         for union COMPONENT_REFs.
15032         (vn_reference_lookup_3): New callback.  Lookup from memset
15033         and CONSTRUCTOR assignment, translate through struct copies.
15034         (vn_reference_lookup_pieces): Make sure to not free the
15035         passed operands array.  Adjust walk_non_aliased_vuses call.
15036         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
15037         make sure we do not leak memory.
15038
15039 2009-05-25  Richard Guenther  <rguenther@suse.de>
15040
15041         * tree-ssa-alias.h (dump_points_to_solution): Declare.
15042         * tree-inline.c (expand_call_inline): Reset the escaped and
15043         callused solutions.
15044         * tree-ssa-structalias.c (pass_build_ealias): New.
15045         * tree-pass.h (pass_build_ealias): Declare.
15046         * passes.c (init_optimization_passes): Add PTA during
15047         early optimizations.
15048         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
15049         and CALLUSED solutions.
15050         (dump_points_to_solution): New function, split out from ...
15051         (dump_points_to_info_for): ... here.
15052         * tree-parloops.c (parallelize_loops): Reset the escaped and
15053         callused solutions.
15054
15055 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15056
15057         PR bootstrap/40027
15058         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
15059         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
15060
15061 2009-05-25  Ira Rosen  <irar@il.ibm.com>
15062
15063         PR tree-optimization/40238
15064         * tree-vect-stmts.c (vect_init_vector): Insert initialization
15065         statements after basic block's labels.
15066         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
15067         to free the allocated memory.
15068
15069 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
15070
15071         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
15072         return address with a USE.
15073
15074 2009-05-24  Richard Guenther  <rguenther@suse.de>
15075
15076         PR middle-end/40233
15077         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
15078         array type from the main variant of the inner type.
15079
15080 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15081
15082         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
15083         definition to bool (from int) to un-break build.
15084         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
15085
15086 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
15087
15088         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
15089         discard_stmt_changes): Delete.
15090         * tree-ssa-operands.c (scb_stack): Delete.
15091         (init_ssa_operands): Do not initialize it.
15092         (fini_ssa_operands): Do not free it.
15093         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
15094
15095         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
15096         update_stmt, remove the others.  Fix comments.
15097         * tree-dfa.c (optimize_stack_restore): Likewise.
15098         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
15099         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
15100         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
15101         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
15102         Likewise.
15103         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
15104         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
15105         (dom_opt_finalize_block): Likewise, adjusting access to
15106         stmts_to_rescan.
15107         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
15108         (stmts_to_rescan): Change item type to gimple.
15109         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
15110
15111 2009-05-24  Ira Rosen  <irar@il.ibm.com>
15112
15113         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
15114         * tree-pass.h (pass_slp_vectorize): New pass.
15115         * params.h (SLP_MAX_INSNS_IN_BB): Define.
15116         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
15117         * tree-vectorizer.c (timevar.h): Include.
15118         (user_vect_verbosity_level): Declare.
15119         (vect_location): Fix comment.
15120         (vect_set_verbosity_level): Update user_vect_verbosity_level
15121         instead of vect_verbosity_level.
15122         (vect_set_dump_settings): Add an argument. Ignore user defined
15123         verbosity if dump flags require higher level of verbosity. Print to
15124         stderr only for loop vectorization.
15125         (vectorize_loops): Update call to vect_set_dump_settings.
15126         (execute_vect_slp): New function.
15127         (gate_vect_slp): Likewise.
15128         (struct gimple_opt_pass pass_slp_vectorize): New.
15129         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
15130         access its members.
15131         (vec_info_for_bb): New function.
15132         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
15133         (VECTORIZATION_ENABLED): New macro.
15134         (SLP_ENABLED, SLP_DISABLED): Likewise.
15135         (vect_is_simple_use): Add bb_vec_info argument.
15136         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
15137         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
15138         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
15139         vect_schedule_slp, vect_analyze_slp): Likewise.
15140         (vect_analyze_stmt): Add slp_tree argument.
15141         (find_bb_location): Declare.
15142         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
15143         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
15144         (vect_analyze_loop_operations, vect_analyze_loop,
15145         get_initial_def_for_induction, vect_create_epilog_for_reduction,
15146         vect_finalize_reduction, vectorizable_reduction,
15147         vectorizable_live_operation, vect_transform_loop): Likewise.
15148         * tree-data-ref.c (dr_analyze_innermost): Update comment,
15149         skip evolution analysis if analyzing a basic block.
15150         (dr_analyze_indices): Likewise.
15151         (initialize_data_dependence_relation): Skip the test whether the
15152         object is invariant for basic blocks.
15153         (compute_all_dependences): Skip dependence analysis for data
15154         references in basic blocks.
15155         (find_data_references_in_stmt): Don't fail in case of invariant
15156         access in basic block.
15157         (find_data_references_in_bb): New function.
15158         (find_data_references_in_loop): Move code to
15159         find_data_references_in_bb and add a call to it.
15160         (compute_data_dependences_for_bb): New function.
15161         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
15162         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
15163         that STEP is 0.
15164         (vect_analyze_data_ref_dependence): Check for interleaving in case of
15165         unknown dependence in basic block and fail in case of dependence in
15166         basic block.
15167         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
15168         dependence instances from either loop or basic block vectorization
15169         info.
15170         (vect_compute_data_ref_alignment): Check if it is loop vectorization
15171         before calling nested_in_vect_loop_p.
15172         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
15173         dependence instances from either loop or basic block vectorization
15174         info.
15175         (vect_verify_datarefs_alignment): Likewise.
15176         (vect_enhance_data_refs_alignment): Adjust function calls.
15177         (vect_analyze_data_refs_alignment): Likewise.
15178         (vect_analyze_group_access): Fix printing. Skip different checks if
15179         DR_STEP is 0. Keep strided stores either in loop or basic block
15180         vectorization data structure. Fix indentation.
15181         (vect_analyze_data_ref_access): Fix comments, allow zero step in
15182         basic blocks.
15183         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
15184         dependence instances from either loop or basic block vectorization
15185         info.
15186         (vect_analyze_data_refs): Update comment. Call
15187         compute_data_dependences_for_bb to analyze basic blocks.
15188         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
15189         case of loop vectorization. In case of basic block vectorization use
15190         data-ref itself as a base.
15191         (vect_create_data_ref_ptr): In case of basic block vectorization:
15192         don't advance the pointer, add new statements before the current
15193         statement.  Adjust function calls.
15194         (vect_supportable_dr_alignment): Support only aligned accesses in
15195         basic block vectorization.
15196         * common.opt (ftree-slp-vectorize): New flag.
15197         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
15198         (vect_pattern_recog_1): Likewise.
15199         * tree-vect-stmts.c (process_use): Likewise.
15200         (vect_init_vector): Add new statements in the beginning of the basic
15201         block in case of basic block SLP.
15202         (vect_get_vec_def_for_operand): Adjust function calls.
15203         (vect_finish_stmt_generation): Likewise.
15204         (vectorizable_call): Add assert that it is loop vectorization, adjust
15205         function calls.
15206         (vectorizable_conversion, vectorizable_assignment): Likewise.
15207         (vectorizable_operation): In case of basic block SLP, take
15208         vectorization factor from statement's type and skip the relevance
15209         check. Adjust function calls.
15210         (vectorizable_type_demotion): Add assert that it is loop
15211         vectorization, adjust function calls.
15212         (vectorizable_type_promotion): Likewise.
15213         (vectorizable_store): Check for outer loop only in case of loop
15214         vectorization. Adjust function calls. For basic blocks, skip the
15215         relevance check and don't advance pointers.
15216         (vectorizable_load): Likewise.
15217         (vectorizable_condition): Add assert that it is loop vectorization,
15218         adjust function calls.
15219         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
15220         that it is not reduction, get vector type, call only supported
15221         functions, skip loop specific parts.
15222         (vect_transform_stmt): Check for outer loop only in case of loop
15223         vectorization.
15224         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
15225         (vect_is_simple_use): Fix comment, add new argument, fix conditions
15226         for external definition.
15227         * passes.c (pass_slp_vectorize): New pass.
15228         * tree-vect-slp.c (find_bb_location): New function.
15229         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
15230         check for patterns only in loops.
15231         (vect_build_slp_tree): Add argument, adjust function calls, fail in
15232         case of multiple types in basic block SLP.
15233         (vect_mark_slp_stmts_relevant): New function.
15234         (vect_supported_load_permutation_p): Fix comment.
15235         (vect_analyze_slp_instance): Add argument. In case of basic block
15236         SLP, take vectorization factor from statement's type, check that
15237         unrolling factor is 1. Adjust function call. Save SLP instance in
15238         either loop or basic block vectorization structure. Return FALSE,
15239         if SLP failed.
15240         (vect_analyze_slp): Add argument. Get strided stores groups from
15241         either loop or basic block vectorization structure. Return FALSE
15242         if basic block SLP failed.
15243         (new_bb_vec_info): New function.
15244         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
15245         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
15246         (vect_schedule_slp): Add argument. Get SLP instances from either
15247         loop or basic block vectorization structure. Set vectorization factor
15248         to be 1 for basic block SLP.
15249         (vect_slp_transform_bb): New function.
15250         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
15251
15252 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
15253
15254         * final.c (shorten_branches): Do not align labels for jump tables.
15255         (final_scan_insn): Use JUMP_TABLE_DATA_P.
15256
15257 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
15258
15259         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
15260         Remove outdated reference to flow.c and fix nits.
15261         * doc/gccint.texi: Tweak RTL description.
15262         * doc/rtl.texi: Likewise.
15263
15264 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
15265
15266         * config/avr/avr.c: Change my email address.
15267         * config/avr/avr.h: Likewise.
15268         * config/avr/avr.md: Likewise.
15269         * config/avr/avr-protos.h: Likewise.
15270         * config/avr/libgcc.S: Likewise.
15271
15272 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
15273
15274         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
15275         (spu_split_load, spu_split_store): Change return type to int.
15276         (spu_split_convert): Declare.
15277         * config/spu/predicates.md (spu_mem_operand): Remove.
15278         (spu_mov_operand): Update.
15279         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
15280         * config/spu/spu.c (regno_aligned_for_load): Remove.
15281         (reg_aligned_for_addr, spu_expand_load): Define.
15282         (spu_expand_extv): Reimplement and handle MEM.
15283         (spu_expand_insv): Handle MEM.
15284         (spu_sched_reorder): Handle insn's with length 0.
15285         (spu_legitimate_address_p): Reimplement.
15286         (store_with_one_insn_p): Return TRUE for any mode with size
15287         larger than 16 bytes.
15288         (address_needs_split): Define.
15289         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
15290         operands.
15291         (spu_convert_move): Define.
15292         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
15293         (spu_split_store): Change all MEM's to TImode.
15294         (spu_init_expanders): Preallocate registers that correspond to
15295         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
15296         mark_reg_pointer.
15297         (spu_split_convert): Define.
15298         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
15299         (_move<mode>, _movdi, _movti): Update predicate and condition.
15300         (load, store): Change to define_split.
15301         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
15302         extend<mode>ti2.
15303         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
15304         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
15305         define_insn_and_split of lshr<mode>3.
15306         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
15307         (<v>ashr<mode>3_imm): Define.
15308         (extv, extzv, insv): Allow MEM operands.
15309         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
15310         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
15311         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
15312         (_spu_convert2): Change to define_insn_and_split and remove the
15313         corresponding define_peephole2.
15314         (stack_protect_set, stack_protect_test, stack_protect_test_si):
15315         Change predicates to memory_operand.
15316
15317 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
15318
15319         * config/arm/thumb2.md: Add 16-bit multiply instructions.
15320
15321 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
15322
15323         PR tree-optimization/40219
15324         * tree.c (iterative_hash_expr): Make sure the builtin function is
15325         a normal builtin function and not a front end or back end builtin
15326         before indexing into the built_in_decls array.
15327
15328 2009-05-22  Richard Guenther  <rguenther@suse.de>
15329
15330         PR middle-end/38964
15331         * alias.c (write_dependence_p): Do not use TBAA for answering
15332         anti-dependence or output-dependence.
15333         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
15334         (emit_pointer_definition): Remove.
15335         (emit_alias_warning): Likewise.
15336         (find_what_var_points_to): Remove TBAA pruning code.
15337         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
15338         violations.
15339         (compute_points_to_sets): Remove code computing the set of
15340         dereferenced pointers.
15341         * tree-data-ref.c (dr_may_alias_p): Properly use the split
15342         oracle for querying anti and output dependencies.
15343         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
15344         if TBAA may be applied.
15345         (refs_anti_dependent_p): New function.
15346         (refs_output_dependent_p): Likewise.
15347         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
15348         (refs_output_dependent_p): Likewise.
15349         * doc/tree-ssa.texi (Memory model): New section.
15350         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
15351         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
15352         * cfgexpand.c (expand_gimple_basic_block): Do not handle
15353         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
15354         * expr.c (expand_expr_real_1): Likewise.
15355         * gimple-low.c (lower_stmt): Likewise.
15356         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
15357         (dump_gimple_cdt): Remove.
15358         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
15359         (gimple_size): Likewise.
15360         (walk_gimple_op): Likewise.
15361         (is_gimple_stmt): Likewise.
15362         (walk_stmt_load_store_addr_ops): Likewise.
15363         (gimple_build_cdt): Remove.
15364         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
15365         * gimple.h (gimple_cdt_new_type): Remove.
15366         (gimple_cdt_new_type_ptr): Likewise.
15367         (gimple_cdt_set_new_type): Likewise.
15368         (gimple_cdt_location): Likewise.
15369         (gimple_cdt_location_ptr): Likewise.
15370         (gimple_cdt_set_location): Likewise.
15371         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
15372         * tree-cfg.c (remove_useless_stmts_1): Do not handle
15373         GIMPLE_CHANGE_DYNAMIC_TYPE.
15374         (verify_types_in_gimple_stmt): Likewise.
15375         * tree-inline.c (estimate_num_insns): Likewise.
15376         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
15377         (copy_decl_to_var): Likewise.
15378         (copy_result_decl_to_var): Likewise.
15379         * tree-pretty-print.c (dump_generic_node): Do not handle
15380         CHANGE_DYNAMIC_TYPE_EXPR.
15381         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
15382         * tree-ssa-operands.c (get_expr_operands): Likewise.
15383         * tree-ssa-structalias.c (struct variable_info): Remove
15384         no_tbaa_pruning member.
15385         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
15386         (unify_nodes): Do not copy it.
15387         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
15388         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
15389         (set_uids_in_ptset): Do not check it.
15390         (find_what_var_points_to): Likewise.
15391         (compute_tbaa_pruning): Remove.
15392         (compute_points_to_sets): Do not call it.
15393         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
15394         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
15395         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
15396         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
15397         (DECL_NO_TBAA_P): Likewise.
15398         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
15399         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
15400         (expand_omp_atomic_pipeline): Do not set it.
15401         * print-tree.c (print_node): Do not dump it.
15402         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
15403         redundant check.
15404
15405 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
15406
15407         PR target/39856
15408         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
15409         for clobber.
15410
15411 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
15412
15413         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
15414         non-external.
15415
15416 2009-05-22  Ben Elliston  <bje@au.ibm.com>
15417
15418         * Makefile.in (bversion.h, s-bversion): New targets.
15419         (TOPLEV_H): Add bversion.h.
15420         * toplev.h: Include "bversion.h".
15421         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
15422         the __format__ attribute only if compiling with the same version
15423         of GCC as the sources (the "build version").
15424
15425 2009-05-22  Ben Elliston  <bje@au.ibm.com>
15426
15427         * c-format.c (handle_format_attribute): Fix comment typo.
15428
15429 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
15430
15431         PR target/37846
15432         * config/ia64/ia64.opt (mfused-madd): New.
15433         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
15434         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
15435         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
15436         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
15437         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
15438         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
15439         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
15440         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
15441         instruction if !TARGET_FUSED_MADD.
15442         (fpma, fpms): Remove colon from name.
15443
15444 2009-05-22  Richard Guenther  <rguenther@suse.de>
15445
15446         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
15447         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
15448         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
15449         TARGET_MEM_REF.
15450         (create_expression_by_pieces): Only convert if necessary.
15451         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
15452         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
15453
15454 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
15455
15456         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
15457         regular pattern from a template and rename it ...
15458         (*extzv_truncsi_exts): ... to this.
15459
15460 2009-05-21  Richard Guenther  <rguenther@suse.de>
15461
15462         * cgraph.h (struct cgraph_node): Remove inline_decl member.
15463         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
15464         (cgraph_default_inline_p): Likewise.
15465         (cgraph_decide_inlining_incrementally): Likewise.
15466
15467 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
15468             Uros Bizjak  <ubizjak@gmail.com>
15469
15470         * config/i386/cpuid.h (bit_MOVBE): New.
15471
15472         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
15473
15474         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
15475         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
15476         (ix86_handle_option): Handle OPT_mmovbe.
15477         (ix86_target_string): Add -mmovbe.
15478         (pta_flags): Add PTA_MOVBE.
15479         (processor_alias_table): Add PTA_MOVBE to "atom".
15480         (override_options): Handle PTA_MOVBE.
15481
15482         * config/i386/i386.h (TARGET_MOVBE): New.
15483
15484         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
15485         (*bswapsi_movbe): New.
15486         (*bswapdi_movbe): Likewise.
15487         (bswapdi2): Renamed to ...
15488         (*bswapdi_1): This.
15489         (bswapdi2): New expander.
15490
15491         * config/i386/i386.opt (mmovbe): New.
15492
15493         * doc/invoke.texi: Document -mmovbe.
15494
15495 2009-05-21  Taras Glek  <tglek@mozilla.com>
15496
15497         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
15498         * gcc-plugin.h (plugin_init): Updated signature.
15499         * gcc-plugin.h (plugin_name_args): Moved to this header.
15500         * doc/plugins.texi (plugin_init): Updated documention to reflect
15501         API change.
15502         * doc/plugins.texi (plugin_name_args): Added to documention.
15503
15504 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
15505
15506         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
15507         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
15508
15509 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
15510
15511         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
15512         JUMP_TABLE_DATA_P predicates where applicable.
15513         * config/i386/predicates.md: Ditto.
15514         * config/i386/sse.md: Ditto.
15515
15516 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
15517
15518         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
15519         operand2 -128 override length_immediate attribute to 1.
15520         * config/i386/predicates.md (constm128_operand): New predicate.
15521
15522         * config/i386/i386.c (memory_address_length): Handle %r12
15523         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
15524         also check REGNO.
15525         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
15526         mode look through optional ZERO_EXTEND and SUBREG.
15527         * config/i386/i386.md (R12_REG): New define_constant.
15528         (prefix_data16): For sse unit set also for MODE_TI insns.
15529         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
15530         insns set if operand 1 is ext_QIreg_operand.
15531         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
15532         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
15533         immediate.
15534         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
15535         mode from MODE_DI to MODE_SI.
15536         (movdi_1_rex64): Override modrm and length_immediate attributes
15537         only for movabs (TYPE_IMOV, alternative 2).
15538         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
15539         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
15540         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
15541         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
15542         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
15543         prefix_rex attribute if DImode.
15544         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
15545         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
15546         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
15547         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
15548         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
15549         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
15550         Likewise.  For TYPE_IMOV clear length_immediate attribute.
15551         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
15552         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
15553         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
15554         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
15555         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
15556         or one operand TYPE_ISHIFT.
15557         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
15558         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
15559         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
15560         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
15561         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
15562         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
15563         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
15564         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
15565         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
15566         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
15567         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
15568         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
15569         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
15570         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
15571         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
15572         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
15573         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
15574         set mode attribute, don't override length attribute.
15575         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
15576         to 1.
15577         (return_internal_long): Set length attribute to 2 instead of 1.
15578         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
15579         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
15580         prefix_rex attribute.
15581         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
15582         New predicates.
15583         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
15584
15585 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15586
15587         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
15588
15589 2009-05-20  Ian Lance Taylor  <iant@google.com>
15590
15591         * tree.c (build_tree_list_vec_stat): New function.
15592         (ctor_to_vec): New function.
15593         (build_nt_call_vec): New function.
15594         (build_call_array): Change args to be a const pointer.
15595         (build_call_vec): New function.
15596         * tree.h (build_nt_call_vec): Declare.
15597         (build_tree_list_vec_stat): Declare.
15598         (build_tree_list_vec): Define.
15599         (build_call_array): Update declaration.
15600         (build_call_vec): Declare.
15601         (ctor_to_vec): Declare.
15602         * c-common.c (tree_vector_cache): New static variable.
15603         (make_tree_vector): New function.
15604         (release_tree_vector): New function.
15605         (make_tree_vector_single): New function.
15606         (make_tree_vector_copy): New function.
15607         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
15608         (make_tree_vector_single, make_tree_vector_copy): Declare.
15609         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
15610         (c_parser_expr_list): Don't manage cache here, instead call
15611         make_tree_vector.
15612         (c_parser_release_expr_list): Remove static function.
15613         (c_parser_vec_to_tree_list): Remove static function.
15614         (c_parser_attributes): Call build_tree_list_vec instead of
15615         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
15616         c_parser_release_expr_list.
15617         (c_parser_postfix_expression_after_primary): Likewise.
15618         (c_parser_objc_keywordexpr): Likewise.
15619
15620 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
15621
15622         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
15623         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
15624         TARGET_CONVERT_TO_TYPE.
15625         * hooks.c (hook_tree_const_tree_null): Define.
15626         * hooks.h (hook_tree_const_tree_null): Declare.
15627         * target.h (struct gcc_target):  Add invalid_parameter_type,
15628         invalid_return_type, promoted_type, and convert_to_type fields.
15629         * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
15630         (TARGET_INVALID_RETURN_TYPE): Define.
15631         (TARGET_PROMOTED_TYPE): Define.
15632         (TARGET_CONVERT_TO_TYPE): Define.
15633         (TARGET_INITIALIZER): Update for new fields.
15634         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
15635         (grokparms): Check targetm.invalid_parameter_type.
15636         * c-typeck.c (default_conversion): Check targetm.promoted_type.
15637         * c-convert.c (convert): Check targetm.convert_to_type.
15638
15639 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
15640
15641         * config/mips/mips.md (*extenddi_truncate<mode>,
15642         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
15643         defintions.
15644         (*extendhi_truncateqi): New define_insn_and_sptit.
15645
15646 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
15647
15648         PR middle-end/40204
15649         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
15650         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
15651
15652 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
15653
15654         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
15655         the operand of VIEW_CONVERT_EXPR.
15656
15657 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
15658
15659         * config/i386/driver-i386.c (host_detect_local_cpu): Check
15660         extended family and model for Intel processors.  Support Intel Atom.
15661
15662 2009-05-20  Olivier Hainque  <hainque@adacore.com>
15663
15664         * gstab.h (stab_code_type): Define, to be used instead of the
15665         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
15666         notice.
15667         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
15668         occurrences by stab_code_type.
15669         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
15670
15671 2009-05-20  Martin Jambor  <mjambor@suse.cz>
15672
15673         * tree-flow.h (insert_edge_copies_seq): Undeclare.
15674         (sra_insert_before): Likewise.
15675         (sra_insert_after): Likewise.
15676         (sra_init_cache): Likewise.
15677         (sra_type_can_be_decomposed_p): Likewise.
15678         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
15679         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
15680         (sra_insert_before): Likewise.
15681         (sra_insert_after): Likewise.
15682         (sra_init_cache): Likewise.
15683         (insert_edge_copies_seq): Made static and moved upwards.
15684
15685         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
15686         case.
15687
15688         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
15689
15690         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
15691         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
15692         simple copies.
15693
15694 2009-05-20  Richard Guenther  <rguenther@suse.de>
15695
15696         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
15697         with mismatched comparison modes.
15698
15699 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15700
15701         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
15702         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
15703         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
15704         with shifts for Thumb2.
15705         (orsi_notsi): New for orn.
15706         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
15707         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
15708         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
15709         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
15710         Don't invert remainder for IOR.
15711
15712 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
15713
15714         PR tree-optimization/40087
15715         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
15716         number_of_iterations_ne): Rename never_infinite argument.
15717         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
15718         number_of_iterations_le): Handle pointer-type ivs when
15719         exit_must_be_taken is false.
15720         (number_of_iterations_cond):  Do not always assume that
15721         exit_must_be_taken if the control variable is a pointer.
15722
15723 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15724
15725         * c-typeck.c (build_binary_op): Allow % on integal vectors.
15726         * doc/extend.texi (Vector Extension): Document that % is allowed too.
15727
15728 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15729
15730         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
15731         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
15732
15733 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15734
15735         PR c/40172
15736         * c.opt (Wlogical-op): Disabled by default.
15737         * c-opt (c_common_post_options): Do not enable Wlogical-op with
15738         Wextra.
15739         * doc/invoke.texi (Wlogical-op): Likewise.
15740
15741 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
15742
15743         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
15744         into CASE_CONVERT.
15745         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
15746         Propagate the type of the first operand.
15747         <ASSERT_EXPR>: Simplify.
15748         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
15749         Rewrite using the RHS code as discriminant.
15750         <NOP_EXPR>: Turn into CASE_CONVERT.
15751         <PLUS_EXPR>: Propagate the type of the first operand.
15752
15753 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
15754
15755         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
15756         (ia64_dconst_0_375): New.
15757         * config/ia64/ia64.c (ia64_override_options): Remove
15758         -minline-sqrt-min-latency warning.
15759         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
15760         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
15761         * config/ia64/ia64.md (*sqrt_approx): Remove.
15762         (sqrtsf2): Remove #if 0.
15763         (sqrtsf2_internal_thr): Rewrite and move to div.md.
15764         (sqrtdf): Remove assert.
15765         (sqrtdf2_internal_thr): Rewrite and move to div.md.
15766         (sqrtxf2): Remove #if 0.
15767         (sqrtxf2_internal_thr): Rewrite and move to div.md.
15768         * div.md (sqrt_approx_rf): New.
15769         (sqrtsf2_internal_thr): New implementation.
15770         (sqrtsf2_internal_lat): New.
15771         (sqrtdf2_internal_thr: New implementation.
15772         (sqrtxf2_internal): New implementation.
15773
15774 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
15775             Hans-Peter Nilsson  <hp@axis.com>
15776
15777         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
15778         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
15779         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
15780         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
15781         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
15782         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
15783         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
15784         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
15785         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
15786         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
15787         * c-common.c: ...from here.
15788
15789 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15790
15791         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
15792
15793 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15794
15795         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
15796
15797 2009-05-19  Ben Elliston  <bje@au.ibm.com>
15798
15799         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
15800         assignments with memcpy calls.
15801         (add_fdes): Likewise.
15802         (binary_search_unencoded_fdes): Likewise.
15803         (linear_search_fdes): Eliminate type puns.
15804
15805 2009-05-19  Richard Guenther  <rguenther@suse.de>
15806
15807         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
15808         not falsely claim to have propagated into all uses.
15809
15810 2009-05-19  Ben Elliston  <bje@au.ibm.com>
15811
15812         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
15813         version to v3.0.
15814
15815 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
15816
15817         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
15818         * config/sh/sh.c (sh_legitimate_address_p): Make static.
15819         (TARGET_LEGITIMATE_ADDRESS_P): New.
15820         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15821         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
15822
15823 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
15824
15825         PR debug/40109
15826         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
15827         child of the containing namespace's DIE.
15828
15829 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
15830
15831         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
15832         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
15833         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
15834         extend patterns.
15835
15836 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15837
15838         PR target/39942
15839         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
15840         gen_align with gen_pad.
15841         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
15842         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
15843
15844         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
15845         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
15846
15847         * config/i386/i386.md (align): Renamed to ...
15848         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
15849         ASM_OUTPUT_MAX_SKIP_PAD.
15850
15851 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
15852
15853         * config.gcc: Fix variable syntax.
15854
15855         PR target/39531
15856         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
15857         before calling exact_log2.
15858         (output_iorsi3): Likewise.
15859         (output_xorsi3): Likewise.
15860
15861 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
15862
15863         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
15864         for the none zero constant operand except for EQ and NE
15865         comprisons even when the first operand is R0.
15866
15867 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
15868
15869         * config/s390/2064.md: Remove trailing whitespaces.
15870         * config/s390/2084.md: Likewise.
15871         * config/s390/constraints.md: Likewise.
15872         * config/s390/fixdfdi.h: Likewise.
15873         * config/s390/libgcc-glibc.ver: Likewise.
15874         * config/s390/s390-modes.def: Likewise.
15875         * config/s390/s390-protos.h: Likewise.
15876         * config/s390/s390.c: Likewise.
15877         * config/s390/s390.h: Likewise.
15878         * config/s390/s390.md: Likewise.
15879         * config/s390/tpf-unwind.h: Likewise.
15880
15881 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
15882
15883         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
15884
15885 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
15886
15887         M68K TLS support.
15888         * configure.ac (m68k-*-*): Check if binutils support TLS.
15889         * configure: Regenerate.
15890         * config/m68k/predicates.md (symbolic_operand): Extend comment.
15891         * config/m68k/constraints.md (Cu): New constraint.
15892         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
15893         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
15894         (movsi): Handle TLS symbols.
15895         (addsi3_5200): Handle XTLS symbols, indent.
15896         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
15897         (m68k_tls_reference_p): Declare.
15898         (m68k_legitimize_address): Declare.
15899         (m68k_unwrap_symbol): Declare.
15900         * config/m68k/m68k.opt (mxtls): New option.
15901         * config/m68k/m68k.c (ggc.h): Include.
15902         (m68k_output_dwarf_dtprel): Implement hook.
15903         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
15904         (m68k_expand_prologue): Load GOT pointer when function needs it.
15905         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
15906         (m68k_legitimate_constant_address_p): Same.
15907         (m68k_decompose_address): Handle TLS references.
15908         (m68k_get_gp): New static function.
15909         (enum m68k_reloc): New contants.
15910         (TLS_RELOC_P): New macro.
15911         (m68k_wrap_symbol): New static function.
15912         (m68k_unwrap_symbol): New function.
15913         (m68k_final_prescan_insn_1): New static function.
15914         (m68k_final_prescan_insn): New function.
15915         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
15916         functions.
15917         (legitimize_pic_address): Handle TLS references..
15918         (m68k_tls_get_addr, m68k_get_tls_get_addr)
15919         (m68k_libcall_value_in_a0_p)
15920         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
15921         (m68k_call_m68k_read_tp): Helper variables and functions for ...
15922         (m68k_legitimize_tls_address): Handle TLS references.
15923         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
15924         New functions.
15925         (m68k_legitimize_address): Handle TLS symbols.
15926         (m68k_get_reloc_decoration): New static function.
15927         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
15928         UNSPEC_RELOC32.
15929         (m68k_output_dwarf_dtprel): Implement hook.
15930         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
15931         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
15932         m68k_call_* routines.
15933         (sched_attr_op_type): Handle TLS symbols.
15934         (gt-m68k.h): Include.
15935         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
15936         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
15937
15938 2009-05-18  Martin Jambor  <mjambor@suse.cz>
15939
15940         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
15941         (visit_store_addr_for_mod_analysis): New function.
15942         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
15943         (determine_cst_member_ptr): Use gimple_assign_single_p.
15944         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
15945         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
15946         operands.  Don't check number of operands of a NOP_EXPR.
15947
15948 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
15949
15950         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
15951
15952 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15953
15954         PR c/40172
15955         * c-common.c (warn_logical_operator): Don't warn if one of
15956         expression isn't always true or false.
15957
15958 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
15959
15960         * config/i386/biarch32.h: New file.
15961         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
15962
15963 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
15964
15965         * config/mips/mips.md (*zero_extend<mode>_trunchi,
15966         *zero_extend<mode>_truncqi): Merge these into ...
15967         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
15968         Name the pattern following this as *zero_extendhi_truncqi.
15969
15970 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
15971
15972         PR middle-end/39301
15973         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
15974         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
15975         (output_info): Make field HOST_WIDEST_INT.
15976         (print_statistics): Use HOST_WIDEST_INT_PRINT.
15977         (dump_bitmat_statistics): Same.
15978
15979 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
15980
15981         * config.gcc (use_gcc_stdint):  Set to wrap.
15982         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
15983         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
15984         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15985         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
15986         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
15987         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
15988         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15989         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
15990
15991 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
15992
15993         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
15994         tune_64.
15995         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
15996         Move definitions earlier.
15997         (OPT_ARCH64, OPT_ARCH32): Define.
15998         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
15999         and tune_64.
16000
16001 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
16002
16003         PR target/40153
16004         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
16005         implies.
16006
16007 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
16008
16009         * arm.md (movdi2): Copy non-reg values to DImode registers.
16010
16011 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
16012
16013         PR target/39942
16014         * final.c (label_to_max_skip): New function.
16015         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
16016         CODE_LABEL_NUMBER <= max_labelno.
16017         * output.h (label_to_max_skip): New prototype.
16018         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
16019         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
16020         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
16021         Handle CODE_LABELs with >= 16 byte alignment or with
16022         max_skip == (1 << align) - 1.
16023         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
16024         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
16025
16026         PR target/39942
16027         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
16028         .p2align 3 if MAX_SKIP is smaller than 7.
16029         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
16030
16031 2009-05-15  Ian Lance Taylor  <iant@google.com>
16032
16033         * alias.c (struct alias_set_entry_d): Rename from struct
16034         alias_set_entry.  Change all uses.
16035         * except.c (struct call_site_record_d): Rename from struct
16036         call_site_record.  Change all uses.
16037         * except.h (struct eh_region_d): Rename from struct eh_region.
16038         Change all uses.
16039         * gcse.c (struct hash_table_d): Rename from struct hash_table.
16040         Change all uses.
16041         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
16042         ivtype_map_elt.  Change all uses.
16043         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
16044         Change all uses.
16045         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
16046         * graphite.h (struct name_tree_d): Rename from struct name_tree.
16047         Change all uses.
16048         (struct sese_d): Rename from struct sese.  Change all uses.
16049         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
16050         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
16051         * optabs.h (struct optab_d): Rename from struct optab.  Change all
16052         uses.
16053         (struct convert_optab_d): Rename from struct convert_optab.
16054         Change all uses.
16055         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
16056         ipa_opt_pass.  Change all uses.
16057         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
16058         all uses.
16059
16060         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
16061         defined as a typedef.
16062         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
16063         defined as a tag.
16064
16065 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16066
16067         PR 16302
16068         * fold-const.c (make_range,build_range_check,merge_ranges): Move
16069         declaration to...
16070         (merge_ranges): Returns bool.
16071         * tree.h (make_range): .. to here.
16072         (build_range_check): Likewise.
16073         (merge_ranges): Likewise. Renamed from merge_ranges.
16074         * c-typeck.c (parser_build_binary_op): Update calls to
16075         warn_logical_operator.
16076         * c-common.c (warn_logical_operator): Add new warning.
16077         * c-common.h (warn_logical_operator): Update declaration.
16078
16079 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16080
16081         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
16082
16083 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16084
16085         * doc/install.texi: Document MPC requirements, flags etc.
16086
16087         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
16088         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
16089         Evaluate constant arguments.
16090         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
16091         (fold_builtin_1): Likewise, also evaluate constant arguments.
16092         Remove superfluous break.
16093         (do_mpc_ckconv): New.
16094         * real.h: Include mpc.h.
16095         * toplev.c (print_version): Output MPC version info if available.
16096
16097 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
16098
16099         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
16100
16101 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16102
16103         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
16104         only once.
16105
16106 2009-05-15  Jan Hubicka  <jh@suse.cz>
16107
16108         * doc/invoke.texi (max-early-inliner-iterations): New flag.
16109         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
16110         (try_inline): Fix return value.
16111         (cgraph_decide_inlining_incrementally): Honor new value.
16112         (cgraph_early_inlining): Handle indirect inlining.
16113         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
16114
16115 2009-05-15  Jan Hubicka  <jh@suse.cz>
16116
16117         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
16118         * cgraphunit.c (cgraph_finalize_function): Set it.
16119         (cgraph_expand_function): Use it.
16120
16121 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
16122
16123         * real.c (encode_ieee_half): Define.
16124         (decode_ieee_half): Define.
16125         (ieee_half_format): Define.
16126         (arm_half_format): Define.
16127         * real.h (ieee_half_format): Declare.
16128         (arm_half_format): Declare.
16129
16130 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
16131
16132         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
16133         swapped, and reversed optabs exist before trying to use them.
16134
16135 2009-05-15  Paul Brook  <paul@codesourcery.com>
16136             Sandra Loosemore  <sandra@codesourcery.com>
16137
16138         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
16139         loads.  Allow PRE_DEC.
16140         (output_move_neon): Handle PRE_DEC.
16141         (arm_print_operand): Add 'A' for neon structure loads.
16142         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
16143         * config/arm/neon.md (neon_mov): Update comment.
16144         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
16145         calls.
16146         (Um): New constraint.
16147
16148 2009-05-15  Jan Hubicka  <jh@suse.cz>
16149
16150         Revert the following patch until testsuite fallout is fixed:
16151         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
16152         * cgraph.h (struct inline_summary): New filed self_wize,
16153         size_inlining_benefit, self_time and time_inlining_benefit.
16154         (struct cgraph_global_info): Replace insns by time ans size fields.
16155         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
16156         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
16157         (ipcp_update_callgraph): Do not touch function bodies.
16158         * ipa-inline.c: Include except.h
16159         (MAX_TIME): New constant.
16160         (overall_insns): Remove
16161         (overall_size, max_benefit): New static variables.
16162         (cgraph_estimate_time_after_inlining): New function.
16163         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
16164         (cgraph_clone_inlined_nodes): Update size.
16165         (cgraph_mark_inline_edge): Update size.
16166         (cgraph_estimate_growth): Use size info.
16167         (cgraph_check_inline_limits): Check size.
16168         (cgraph_default_inline_p): Likewise.
16169         (cgraph_edge_badness): Compute badness based on benefit and size cost.
16170         (cgraph_decide_recursive_inlining): Check size.
16171         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
16172         and times.
16173         (cgraph_decide_inlining): Likewise.
16174         (cgraph_decide_inlining_incrementally): Likewise; honor
16175         PARAM_EARLY_INLINING_INSNS.
16176         (likely_eliminated_by_inlining_p): New predicate.
16177         (estimate_function_body_sizes): New function.
16178         (compute_inline_parameters): Use it.
16179         * except.c (must_not_throw_labels): New function.
16180         * except.h (must_not_throw_labels): Declare.
16181         * tree-inline.c (init_inline_once): Kill inlining_weigths
16182         * tree-ssa-structalias.c: Avoid uninitialized warning.
16183         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
16184         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
16185         (PARAM_INLINE_CALL_COST): Remove.
16186         (PARAM_EARLY_INLINING_INSNS): New.
16187
16188 2009-05-15  Richard Guenther  <rguenther@suse.de>
16189
16190         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
16191         not TODO_update_ssa.
16192
16193 2009-05-15  Richard Guenther  <rguenther@suse.de>
16194
16195         PR tree-optimization/39999
16196         * gimple.h (gimple_expr_type): Use the expression type looking
16197         through useless conversions.
16198         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
16199         (vn_nary_op_insert_stmt): Likewise.
16200         (simplify_binary_expression): Likewise.
16201
16202 2009-05-15  Richard Guenther  <rguenther@suse.de>
16203
16204         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
16205         New options, enabled by default.
16206         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
16207         Document.
16208         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
16209         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
16210         * tree-ssa-structalias.c (gate_tree_pta): New function.
16211         (pass_build_alias): Use it.
16212
16213 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
16214
16215         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
16216         recurse on an invariant address if a conversion from a pointer
16217         type to a wider integer type is involved.
16218
16219 2009-05-15  Jan Hubicka  <jh@suse.cz>
16220
16221         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
16222         * cgraph.h (struct inline_summary): New filed self_wize,
16223         size_inlining_benefit, self_time and time_inlining_benefit.
16224         (struct cgraph_global_info): Replace insns by time ans size fields.
16225         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
16226         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
16227         (ipcp_update_callgraph): Do not touch function bodies.
16228         * ipa-inline.c: Include except.h
16229         (MAX_TIME): New constant.
16230         (overall_insns): Remove
16231         (overall_size, max_benefit): New static variables.
16232         (cgraph_estimate_time_after_inlining): New function.
16233         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
16234         (cgraph_clone_inlined_nodes): Update size.
16235         (cgraph_mark_inline_edge): Update size.
16236         (cgraph_estimate_growth): Use size info.
16237         (cgraph_check_inline_limits): Check size.
16238         (cgraph_default_inline_p): Likewise.
16239         (cgraph_edge_badness): Compute badness based on benefit and size cost.
16240         (cgraph_decide_recursive_inlining): Check size.
16241         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
16242         and times.
16243         (cgraph_decide_inlining): Likewise.
16244         (cgraph_decide_inlining_incrementally): Likewise; honor
16245         PARAM_EARLY_INLINING_INSNS.
16246         (likely_eliminated_by_inlining_p): New predicate.
16247         (estimate_function_body_sizes): New function.
16248         (compute_inline_parameters): Use it.
16249         * except.c (must_not_throw_labels): New function.
16250         * except.h (must_not_throw_labels): Declare.
16251         * tree-inline.c (init_inline_once): Kill inlining_weigths
16252         * tree-ssa-structalias.c: Avoid uninitialized warning.
16253         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
16254         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
16255         (PARAM_INLINE_CALL_COST): Remove.
16256         (PARAM_EARLY_INLINING_INSNS): New.
16257         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
16258         (inline-call-cost): Remove.
16259         (early-inlining-insns): New.
16260
16261 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
16262
16263         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
16264         for bounds.
16265         (print_int_cst_bounds_in_octal_p): Likewise.
16266         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
16267         with subtypes.
16268         * dwarf2out.c (base_type_die): Likewise.
16269         (is_subrange_type): Delete.
16270         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
16271         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
16272         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
16273         if the destination type is boolean.
16274         (build_range_check): Do not special-case subtypes.
16275         (fold_sign_changed_comparison): Likewise.
16276         (fold_unary): Likewise.
16277         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
16278         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
16279         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
16280         * tree.c (subrange_type_for_debug_p): New predicate based on the
16281         former is_subrange_type.
16282         * tree.h (subrange_type_for_debug_p): Declare.
16283         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
16284         (convert_affine_scev): Remove call to above function.
16285         (chrec_convert_aggressive): Likewise.
16286         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
16287         false for conversions involving subtypes.
16288         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
16289         (vrp_val_min): Likewise.
16290         (needs_overflow_infinity): Likewise.
16291         (extract_range_from_unary_expr): Likewise.
16292
16293 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
16294
16295         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
16296         * config/frv/frv.c: Likewise.
16297         * config/s390/s390.c: Likewise.
16298         * config/sparc/sparc.h: Likewise.
16299         * config/i386/i386.h: Likewise.
16300         * config/i386/i386.c: Likewise.
16301         * config/crx/crx.c: Likewise.
16302         * config/m68hc11/m68hc11.h: Likewise.
16303         * config/iq2000/iq2000.c: Likewise.
16304         * config/mn10300/mn10300.h: Likewise.
16305         * config/mn10300/mn10300.c: Likewise.
16306         * config/m68k/m68k.c: Likewise.
16307         * config/rs6000/rs6000.c: Likewise.
16308         * config/rs6000/xcoff.h: Likewise.
16309         * config/rs6000/linux64.h: Likewise.
16310         * config/rs6000/sysv4.h: Likewise.
16311         * config/score/score3.c: Likewise.
16312         * config/score/score7.c: Likewise.
16313         * config/score/score.c: Likewise.
16314         * config/arm/arm.md: Likewise.
16315         * config/mips/mips.c: Likewise.
16316         * config/mips/mips.md: Likewise.
16317         * config/bfin/bfin.h: Likewise.
16318         * config/pa/pa.c: Likewise.
16319         * config/pa/constraints.md: Likewise.
16320
16321         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
16322         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
16323         * config/pdp11/pdp11.h: Use memory_address_p instead.
16324
16325 2009-05-14  Ian Lance Taylor  <iant@google.com>
16326
16327         * passes.c (finish_optimization_passes): Change i to int.
16328         * plugin.c (plugins_active_p): Change event to int.
16329         (dump_active_plugins): Likewise.
16330         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
16331         Add cast.
16332         * tree.c (tree_range_check_failed): Change c to unsigned int.
16333         (omp_clause_range_check_failed): Likewise.
16334         (build_common_builtin_nodes): Change mode to int.  Add cast.
16335         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
16336         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
16337
16338         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
16339         ++ or -- with a variable of enum type.
16340
16341 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
16342
16343         PR driver/40144
16344         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
16345
16346 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
16347
16348         * store-motion.c: Do not include params.h
16349         * Makefile.in: Fix dependencies for various files.
16350
16351 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
16352
16353         * auto-inc-dec.c: Fix pass description, remove apparent
16354         accidental duplication.
16355
16356 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
16357
16358         PR middle-end/40147
16359         * ipa-utils.h (memory_identifier_string): Moved to ...
16360         * tree.h (memory_identifier_string): Here.  Add GTY(()).
16361
16362 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
16363
16364         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
16365         in the former documentation of...
16366         (GO_IF_LEGITIMATE_ADDRESS): ... this.
16367         * ira-conflicts.c (get_dup_num): Use address_operand.
16368         * targhooks.c (default_legitimate_address_p): New.
16369         * targhooks.h (default_legitimate_address_p): New.
16370         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
16371         Call hook.
16372         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
16373         * target.h (struct target): Add legitimate_address_p.
16374         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
16375         (TARGET_INITIALIZER): Include it.
16376
16377         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16378         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
16379         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
16380         (TARGET_LEGITIMATE_ADDRESS_P): New.
16381
16382         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16383         (REG_OK_STRICT_P): Delete.
16384         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
16385         (frv_legitimate_address_p_1): ... this.
16386         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
16387         (frv_legitimate_address_p_1): ... the renamed old
16388         frv_legitimate_address_p.
16389         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
16390         (TARGET_LEGITIMATE_ADDRESS_P): New.
16391
16392         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16393         * config/s390/s390-protos.h (legitimate_address_p): Remove.
16394         * config/s390/s390.c (legitimate_address_p): Rename to...
16395         (s390_legitimate_address_p): ... this, make static.
16396         (legitimize_address): Adjust call.
16397         (TARGET_LEGITIMATE_ADDRESS_P): New.
16398         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
16399
16400         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16401         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
16402         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
16403         (TARGET_LEGITIMATE_ADDRESS_P): New.
16404
16405         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16406         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
16407         * config/spu/spu.c (spu_legitimate_address): Rename to...
16408         (spu_legitimate_address_p): ... this, make static.
16409         (TARGET_LEGITIMATE_ADDRESS_P): New.
16410
16411         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16412         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
16413         * config/sparc/sparc.c (legitimate_address_p): Rename to...
16414         (sparc_legitimate_address_p): ... this, make static and return bool.
16415         (legitimize_address): Adjust call.
16416         (TARGET_LEGITIMATE_ADDRESS_P): New.
16417
16418         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16419         * config/i386/i386-protos.h (legitimate_address_p): Remove.
16420         * config/i386/i386.c (legitimate_address_p): Rename to...
16421         (ix86_legitimate_address_p): ... this, make static.
16422         (constant_address_p): Move after it, adjust call.
16423         (TARGET_LEGITIMATE_ADDRESS_P): New.
16424
16425         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16426         * config/avr/avr-protos.h (legitimate_address_p): Remove.
16427         * config/avr/avr.c (legitimate_address_p): Rename to...
16428         (avr_legitimate_address_p): ... this, make static.
16429         (legitimize_address): Adjust call.
16430         (TARGET_LEGITIMATE_ADDRESS_P): New.
16431
16432         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16433         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
16434         * config/crx/crx.c (crx_legitimate_address_p): Make static.
16435         (TARGET_LEGITIMATE_ADDRESS_P): New.
16436
16437         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16438         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
16439         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
16440         (TARGET_LEGITIMATE_ADDRESS_P): New.
16441
16442         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16443         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
16444         Remove.
16445         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16446         Make static.
16447         (TARGET_LEGITIMATE_ADDRESS_P): New.
16448
16449         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16450         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
16451         Remove.
16452         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
16453         Rename to...
16454         (m68hc11_legitimate_address_p): ... this, make static.
16455         (go_if_legitimate_address_internal): Rename to...
16456         (m68hc11_legitimate_address_p_1): ... this.
16457         (legitimize_address): Adjust call.
16458         (TARGET_LEGITIMATE_ADDRESS_P): New.
16459
16460         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16461         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
16462         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
16463         (TARGET_LEGITIMATE_ADDRESS_P): New.
16464
16465         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16466         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
16467         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
16468         (mn10300_legitimate_address_p): ... this, make static.
16469         (TARGET_LEGITIMATE_ADDRESS_P): New.
16470
16471         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16472         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
16473         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
16474         (TARGET_LEGITIMATE_ADDRESS_P): New.
16475
16476         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16477         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
16478         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
16479         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16480         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
16481         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
16482         (rs6000_legitimate_address_p): ... this, make static.
16483         (TARGET_LEGITIMATE_ADDRESS_P): New.
16484         (REG_MODE_OK_FOR_BASE_P): Delete.
16485         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
16486
16487         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16488         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
16489         Delete.
16490         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
16491         static, adjust types.
16492         (TARGET_LEGITIMATE_ADDRESS_P): New.
16493
16494         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16495         * config/score/score.c (score_address_p): Rename to...
16496         (score_legitimate_address_p): ... this.
16497         (TARGET_LEGITIMATE_ADDRESS_P): New.
16498         * config/score/score3.c (score3_address_p): Rename to...
16499         (score3_legitimate_address_p): ... this.
16500         * config/score/score7.c (score7_address_p): Rename to...
16501         (score7_legitimate_address_p): ... this.
16502
16503         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
16504         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
16505         GO_IF_LEGITIMATE_ADDRESS): Delete.
16506         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
16507         thumb2_legitimate_address_p): Delete.
16508         (arm_legitimate_address_p): Rename to...
16509         (arm_legitimate_address_outer_p): ... this.
16510         * config/arm/constraints.md ("Uq"): Adjust call.
16511         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
16512         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
16513         to...
16514         (arm_legitimate_address_outer_p): ... this.
16515         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
16516         static.
16517         (TARGET_LEGITIMATE_ADDRESS_P): New.
16518
16519         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16520         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
16521         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
16522         (TARGET_LEGITIMATE_ADDRESS_P): New.
16523
16524         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16525         * config/vax/vax-protos.h (legitimate_address_p): Remove.
16526         * config/vax/vax.c (legitimate_address_p): Rename to...
16527         (vax_legitimate_address_p): ... this, make static.
16528         (TARGET_LEGITIMATE_ADDRESS_P): New.
16529
16530         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16531         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
16532         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
16533         (TARGET_LEGITIMATE_ADDRESS_P): New.
16534
16535         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16536         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
16537         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
16538         (mmix_legitimate_address_p): ... this, make static.
16539         (TARGET_LEGITIMATE_ADDRESS_P): New.
16540
16541         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16542         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
16543         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
16544         (TARGET_LEGITIMATE_ADDRESS_P): New.
16545
16546 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
16547
16548         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
16549         of MODE_COMPLEX_INT.
16550
16551 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16552
16553         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
16554         LCT_NORMAL in function call.
16555         * mips-tdump.c (print_file_desc): Add cast to enum type.
16556         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
16557         (mark_stabs): Add casts to enum types.
16558         (parse_stabs_common): Add casts to enum types.
16559
16560 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
16561
16562         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
16563         Check for invalid values of LETTER.
16564
16565 2009-05-13  Taras Glek  <tglek@mozilla.com>
16566
16567         * attribs.c (register_attribute): moved out attribute registration
16568         into register_attribute.
16569         * doc/plugins.texi: Documented register_attribute and
16570         PLUGIN_ATTRIBUTES.
16571         * gcc-plugin.h: Added forward decl for register_attribute.
16572         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
16573         * plugin.c (register_callback, invoke_plugin_callbacks): Added
16574         PLUGIN_ATTRIBUTES boilerplate.
16575
16576 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
16577
16578         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
16579         values even in sentinel and empty entries.
16580         (ms_printf_flag_specs):  Likewise.
16581         (ms_scanf_flag_specs):  Likewise.
16582         (ms_strftime_flag_specs):  Likewise.
16583         (ms_print_char_table):  Likewise.
16584         (ms_scan_char_table):  Likewise.
16585         (ms_time_char_table):  Likewise.
16586
16587 2009-05-13  Doug Kwan  <dougkwan@google.com>
16588
16589         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
16590
16591 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
16592
16593         * config/mips/mips.md (store): Add attributes for QI and HI.
16594         Update comment.
16595         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
16596         (truncdi<mode>2): ... this new pattern.
16597
16598 2009-05-13  Brad Hards  <bradh@kde.org>
16599
16600         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
16601
16602 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
16603             Ben Elliston <bje@au.ibm.com>
16604
16605         PR middle-end/40035
16606         * dse.c (check_mem_read_rtx): Guard against width == -1.
16607
16608 2009-05-13  Michael Matz  <matz@suse.de>
16609
16610         PR middle-end/39976
16611         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
16612         (trivially_conflicts_p): New function.
16613         (insert_backedge_copies): Use it.
16614
16615 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
16616
16617         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
16618         (handle_stdc_pragma): Use new enum constant names.
16619         (handle_pragma_float_const_decimal64): Ditto.
16620
16621 2009-05-13  Ian Lance Taylor  <iant@google.com>
16622
16623         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
16624         tree.def.
16625
16626 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
16627
16628         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
16629         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
16630         multilibs.
16631         * config/m68k/m68k.h (FL_UCLINUX): Define.
16632
16633 2009-05-13  Jan Hubicka  <jh@suse.cz>
16634
16635         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
16636
16637 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
16638
16639         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
16640         unless -fschedule-insns is specified.
16641
16642 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
16643
16644         PR target/39561
16645         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
16646         TARGET_EXPAND_CBRANCHDI4.
16647         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
16648         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
16649         (cmpeqdi): Fix comment.
16650
16651 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
16652
16653         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
16654         (sh_legitimate_address_p): Likewise.
16655         * config/sh/sh.c (sh_legitimate_index_p): New.
16656         (sh_legitimate_address_p): Likewise.
16657         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
16658         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
16659         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
16660         (MAYBE_BASE_REGISTER_RTX_P): New macro.
16661         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
16662         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
16663         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
16664         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
16665         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
16666
16667 2009-05-12  Jan Hubicka  <jh@suse.cz>
16668
16669         * tree-inline.c (estimate_operator_cost): Add operands;
16670         when division happens by constant, it is cheap.
16671         (estimate_num_insns): Loads and stores are not having cost of 0;
16672         EH magic stuff is cheap; when computing runtime cost of switch,
16673         use log2 base of amount of its cases; builtin_expect has cost of 0;
16674         compute cost for moving return value of call.
16675         (init_inline_once): Initialize time_based flags.
16676         * tree-inline.h (eni_weights_d): Add time_based flag.
16677
16678 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
16679
16680         * df-core.c: Update head documentation.
16681
16682 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
16683
16684         PR bootstrap/40118
16685         * rs6000.c (rs6000_generate_compare): Use op1b instead of
16686         shadowing exisiting variable op1.
16687
16688 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
16689
16690         PR target/37179
16691         * config/i386/driver-i386.c (processor_signatures): New enum.
16692         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
16693         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
16694         processor signature to detect geode processor.
16695
16696 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
16697
16698         Revert:
16699
16700         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
16701
16702         * optabs.c (prepare_cmp_insn): Temporarily disable test that
16703         causes spurious differences between trunk and cond-optab branch.
16704
16705 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
16706
16707         * dojump.c (compare_from_rtx): Delete.
16708         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
16709         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
16710         if the comparison does not satisfy the predicate; test predicates for
16711         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
16712         further if one existing pattern fails.
16713         * expr.h (compare_from_rtx): Delete.
16714         (prepare_operand): Declare it.
16715         * optabs.c: Change "lib call" to "libcall" throughout.
16716         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
16717         HAVE_conditional_trap, emit_cmp_insn): Delete.
16718         (can_compare_p): Delete cmp_optab case.
16719         (prepare_float_lib_cmp): Return an rtx and a machine mode.
16720         Accept other parameters by value.
16721         (prepare_operand): Make non-static.
16722         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
16723         other parameters by value.  Try to widen operands here based on
16724         an optab_methods argument and looking at cbranch_optab.
16725         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
16726         loop.  Use cbranch_optab directly.
16727         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
16728         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
16729         assertion.
16730         (emit_conditional_move, emit_conditional_add): Inline what's needed
16731         of compare_from_rtx, using new prepare_cmp_insn for the rest.
16732         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
16733         with COMPARE.  Move cmov_optab and cstore_optab above
16734         with cbranch_optab, move cmp_optab down with ucmp_optab,
16735         remove tst_otpab.  Do not initialize trap_rtx.
16736         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
16737         for trap code.  Do not check HAVE_conditional_trap.  Use
16738         prepare_cmp_insn.  Accept no predicate for operand 3.
16739         * optabs.h (OTI_cmp): Mark as used only for libcalls.
16740         (OTI_ctrap, ctrap_optab): New.
16741         (tst_optab): Delete.
16742         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
16743         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
16744         with lookup of ctrap_optab.
16745         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
16746         Delete.
16747         (ctrap_optab): New.
16748
16749         * combine.c (combine_simplify_rtx, simplify_set): Do not
16750         special case comparing against zero for cc0 machines.
16751         * simplify-rtx.c (simplify_binary_operation_1): Never remove
16752         COMPARE on cc0 machines.
16753         (simplify_relational_operation): Return a new expression when
16754         a COMPARE could be removed.
16755         * final.c (final_scan_insn): Compare cc_status values
16756         against LHS of a (compare FOO (const_int 0)) cc0 source.
16757         Also check if cc_status.value is the full compare.
16758
16759         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
16760         (cstoreMM4): Document.
16761         (conditional_trap): Document ctrapMM4 instead.
16762         (sync_compare_and_swapMM): Refer to cbranchcc4.
16763         (Dependent Patterns): Eliminate obsolete information referring to
16764         the old jump optimization phase.
16765         (Canonicalization): Include cbranchcc4 case, omit canonicalization
16766         of compares with 0 on cc0 machines.
16767         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
16768         avoiding references to cc0.  Remove text about storing operands
16769         in cmpMM.
16770         * doc/tm.texi (Condition Codes): Include blurb on different
16771         condition code representations, separate into subsections for
16772         CC0, MODE_CC and conditional execution.
16773
16774         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
16775         alpha_emit_setcc): Accept operands and a machine mode.
16776         * config/alpha/alpha.c (alpha_emit_conditional_branch):
16777         Get code/op0/op1 from operands, use machine mode argument
16778         instead of alpha_compare.fp_p.  Emit the branch here.
16779         (alpha_emit_setcc): Likewise, and return boolean.
16780         (alpha_emit_conditional_move): Likewise.  Assert that
16781         cmp_op_mode == cmp_mode, and simplify accordingly.
16782         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
16783         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
16784         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
16785         Delete.
16786         (stack probe test): Use cbranchdi4.
16787         * config/alpha/predicates.md (alpha_cbranch_operator): New.
16788
16789         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
16790         * config/arc/arc.h (movsicc, movsfcc): Use it.
16791         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
16792         (cbranchsi4, cstoresi4): New.
16793         (cmpsi, bCC and sCC expanders): Remove.
16794
16795         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
16796         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
16797         * config/arm/predicates.md (arm_comparison_operator): Only include
16798         floating-point operators if there is a hardware floating-point unit.
16799         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
16800         deferring to cbranch_cc and cstore_cc respectively.
16801         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
16802         cbranch_cc, cstore_cc): New.
16803         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
16804         arm_compare_op1.
16805         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
16806
16807         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
16808         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
16809         as an argument.
16810         (adjust_insn_length): Adjust calls.
16811         (avr_reorg): Handle (compare (foo) (const_int 0)).
16812         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
16813         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
16814         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
16815         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
16816         (bCC): Remove.
16817         (cbranchqi4, cbranchhi4, cbranchsi4): New.
16818         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
16819
16820         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
16821         (cbranchsi4, cstorebi4, cstoresi4): New.
16822         (movbisi): This insn is duplicate, split it to zero_extend.
16823         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
16824         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
16825         (bfin_optimize_loop): Use cbranch expander.
16826         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
16827         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
16828         (bfin_bimode_comparison_operator): ... this.
16829         (bfin_direct_comparison_operator): New.
16830
16831         * config/cris/cris.c (cris_normal_notice_update_cc): Look
16832         inside (compare FOO (const_int 0)).
16833         (cris_rtx_costs): Handle ZERO_EXTRACT.
16834         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
16835         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
16836         (*tstdi_v32): Delete.
16837         (*cmpdi_non_v32): Add M alternative for operand 1.
16838         (cmpsi, cmp<mode>): Make private.
16839         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
16840         with COMPARE.
16841         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
16842
16843         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
16844         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
16845         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
16846         (cc_reg_operand): New.
16847         (any_cond): Delete.
16848         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
16849         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
16850         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
16851         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
16852         crx_expand_scond): Delete.
16853
16854         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
16855         (cbranchsi4): New.
16856         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
16857         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
16858
16859         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
16860         cstoresi4, cstoresf4, cstoredf4): New.
16861         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
16862         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
16863         Receive the entire operands array.
16864         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
16865         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
16866         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
16867         Get test/op0/op1 from the operands array.
16868         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
16869
16870         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
16871         (h8300_expand_store): New.
16872         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
16873         (const_int 0)).
16874         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
16875         (h8300_expand_store): New.
16876         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
16877         or do not try to produce (set (cc0) REG).
16878         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
16879         change a compare into a move to a scratch register.  Disable some
16880         peepholes when comparing with zero.
16881         (tstsi, tsthi, tstsi, cmpqi): Make private.
16882         (cmphi): Delete.
16883         (bCC, sCC): Delete.
16884         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
16885         cstoresi4): New.
16886
16887         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
16888         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
16889         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
16890         (ix86_emit_i387_log1p): Use cbranchxf2.
16891         (ix86_expand_setcc): Return void.
16892         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
16893         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
16894         cmp<MODEF>, cmpcc): Remove.
16895         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
16896         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
16897         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
16898         (sCC and bCC expanders): Remove.
16899         (stack_protect_test): Use cbranchcc4.
16900
16901         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
16902         Delete.
16903         (ia64_expand_compare): Accept three rtx by reference and return void.
16904         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
16905         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
16906         from *expr.  Update *expr with the BImode comparison to do.
16907         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
16908         cmptf, bCC, sCC, conditional_trap): Delete.
16909         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
16910         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
16911         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
16912         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
16913         * config/ia64/predicates.md (ia64_cbranch_operator): New.
16914
16915         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
16916         type of last argument.
16917         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
16918         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
16919         use machine mode argument instead of branch_type.  Remove dead
16920         code for floating-point comparisons.
16921         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
16922         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
16923         Remove.
16924         (cbranchsi4, cstoresi4): New.
16925         * config/iq2000/predicates.md (reg_or_const_operand): New.
16926
16927         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
16928         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
16929         (b<code>_op): Rewrite to...
16930         (bcc_op): ... this, using match_operator.
16931         (s<code>_op): Rewrite to...
16932         (scc_op): ... this, using match_operator.
16933         (s<code>_24_op): Rewrite to...
16934         (scc_op_24): ... this, using match_operator.
16935         (s<code>_<mode>): Rewrite to...
16936         (cstore<mode>4): ... this, using match_operator.
16937         (s<code>_<mode>_24): Rewrite to...
16938         (cstore<mode>4_24): ... this, using match_operator.
16939         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
16940         m32c_unpend_compare, m32c_expand_scc): Delete.
16941         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
16942         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
16943         (m32c_expand_movcc): Change NE to EQ if necessary.
16944         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
16945
16946         * config/m32r/m32r-protos.h (gen_cond_store): New.
16947         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
16948         (gen_cond_store): New, from sCC patterns.
16949         (m32r_expand_block_move): Use cbranchsi4.
16950         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
16951         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
16952         (cbranchsi4, cstoresi4): New.
16953
16954         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
16955         Delete.
16956         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
16957         (m68hc11_notice_update_cc): Look into a compare with 0.
16958         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
16959         Delete.
16960         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
16961         cmphi, cmpqi, bCC): Delete.
16962         (cbranchsi4, cbranchhi4, cbranchqi4): New.
16963         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
16964         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
16965         sets with COMPARE.
16966
16967         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
16968         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
16969         * config/m68k/constraints.md (H): New.
16970         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
16971         the define_insn below.
16972         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
16973         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
16974         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
16975         patterns): Wrap RHS with COMPARE.
16976         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
16977         (*cmpdi_internal): Name this pattern.
16978         (cmpdi): Change to define_insn.
16979         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
16980         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
16981         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
16982         predicate.
16983         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
16984         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
16985         (conditional_trap): Change to...
16986         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
16987         (*conditional_trap): Use the ordered_comparison_operator and
16988         const1_operand predicates.
16989         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
16990         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
16991         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
16992         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
16993
16994         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
16995         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
16996         (mcore_gen_compare): New.
16997         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
16998         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
16999         (mcore_gen_compare): ... this.
17000         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
17001         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
17002         (stack probe pattern): Use cbranchsi4.
17003
17004         * config/mips/predicates.md (mips_cstore_operator): New.
17005         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
17006         * config/mips/mips.md (any_cond): Delete.
17007         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
17008         always succeed.
17009         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
17010         fixuns_truncsfdi2): Use cbranch patterns.
17011         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
17012         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
17013         Adjust call to mips_expand_conditional_branch.
17014         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
17015         cstore<GPR:mode>4.
17016         * config/mips/mips-protos.h (mips_expand_conditional_branch,
17017         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
17018         * config/mips/mips.c (cmp_operands): Delete.
17019         (mips_emit_compare): Get comparison operands from *op0/*op1.
17020         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
17021         that it succeeds.  Use op0/op1 instead of cmp_operands.
17022         (mips_expand_conditional_branch, mips_expand_conditional_move,
17023         mips_expand_conditional_trap): Likewise.
17024         (mips_block_move_loop): Use cbranch patterns.
17025         * config/mips/mips.h (cmp_operands): Delete.
17026
17027         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
17028         (mmix_gen_compare_reg): Just return a register in the right CC mode.
17029         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
17030         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
17031         (*cmpcc_folded): Rename to...
17032         (*cmpdi_folded): this.
17033         (*cmpcc): Rename to...
17034         (*cmps): ... this.
17035         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
17036         (bCC): Remove.
17037         (cbranchdi4): New.
17038         (cbranchdf4): New.  Handle invalid comparisons here.
17039         * config/mmix/predicates.md (float_comparison_operator): New.
17040
17041         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
17042         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
17043         * config/mn10300/mn10300.md (tst): Delete.
17044         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
17045         Name these patterns and wrap RHS in a compare.
17046         (*cmpsi): Make this pattern private.  Include tst.
17047         (*cmpsf): Make this pattern private.
17048         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
17049         (compare with zero peepholes): Likewise.
17050         (bCC): Remove.
17051         (cbranchsi4, cbranchsf4): New.
17052         (casesi): Use cbranchsi4.
17053
17054         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
17055         hppa_branch_type): Delete.
17056         (return_addr_rtx): Use cbranchsi4.
17057         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
17058         Emit CCFPmode comparison here.
17059         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
17060         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
17061         hppa_branch_type): Delete.
17062         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
17063         (movsicc, movdicc): Remove references to hppa_compare_op0,
17064         hppa_compare_op1 and compare_from_rtx.
17065         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
17066         (casesi): Use cbranchsi4.
17067
17068         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
17069         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
17070         * config/pdp11/pdp11.md (register_or_const0_operand): New.
17071         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
17072         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
17073         (bCC): Delete.
17074         (cbranchdf4, cbranchhi4, cbranchqi4): New.
17075         (*branch, *branch_inverted): New.
17076
17077         * config/picochip/picochip.md (cbranchhi4): Use
17078         ordered_comparison_operator.
17079         (cmphi, bCC): Remove.
17080
17081         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
17082         (trap_comparison_operator): Delete.
17083         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
17084         rs6000_emit_cbranch): Accept mode and operands.
17085         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
17086         rs6000_compare_fp_p): Delete.
17087         (rs6000_generate_compare): Accept mode and comparison.  Extract code
17088         and op0/op1 from there.  Replace references to rs6000_compare_op0
17089         and rs6000_compare_op1.
17090         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
17091         extract result from passed operands.
17092         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
17093         extract loc from passed operands.
17094         (rs6000_emit_cmove): Likewise.
17095         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
17096         rs6000_compare_fp_p): Delete.
17097         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
17098         (cbranch<GPR>4, cbranch<FP>4): New.
17099         (cstore<mode>4): New.  Consolidate here all choices about when to use
17100         portable or specialized sCC sequences.
17101         (stack_protect_test): Use cbranchsi4.
17102         (conditional_trap): Replace with ctrap<GPR>4.
17103         (conditional trap insn): Replace trap_comparison_operator with
17104         ordered_comparison_operator.
17105
17106         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
17107         (s390_emit_prologue): Use ctrap.
17108         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
17109         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
17110         New predicates replacing...
17111         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
17112         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
17113         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
17114         (add<mode>cc): Do not use s390_compare_op0/op1.
17115         (s<code>): Change to...
17116         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
17117         (seq): Change to...
17118         (cstorecc4): ... this.  Handle EQ or NE equally.
17119         (*sne): Un-privatize for use in cstorecc4.
17120         (b<code>): Change to...
17121         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
17122         (conditional_trap): Replace with...
17123         (ctrap<GPR>4, ctrap<FP>4): ... these.
17124         (stack_protect): Use cbranchcc4.
17125
17126         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
17127         * config/score/score-protos.h (score_gen_cmp): Delete.
17128         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
17129         (score_block_move-loop): Use cbranchsi4.
17130         * config/score/score.md (cbranchsi4): New.
17131         (cmpsi, bCC): Delete.
17132         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
17133         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
17134         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
17135         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
17136         * config/score/score3.h (score3_gen_cmp): Delete.
17137         * config/score/score7.h (score7_gen_cmp): Delete.
17138
17139         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
17140         (sh_emit_scc_to_t): ... this.  Return void.
17141         (from_compare): Rename to...
17142         (sh_emit_compare_and_branch): ... this.
17143         (sh_emit_compare_and_set): New.
17144         (sh_expand_t_scc): Accept operands.
17145         * config/sh/predicates.md (sh_float_comparison_operator): New.
17146         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
17147         (prepare_scc_operands): Rename to...
17148         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
17149         arguments.
17150         (sh_emit_cheap_store_flag): New.
17151         (sh_emit_set_t_insn): New.
17152         (from_compare): Rename to...
17153         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
17154         handling of TARGET_SH2E floating point to avoid recursive call.
17155         Generate branch here.
17156         (sh_emit_compare_and_set): New.
17157         (sh_expand_t_scc): Get op0/op1 from arguments.
17158         (sh_emit_cheap_store_flag): New.
17159         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
17160         cases.
17161         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
17162         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
17163         (movsicc, movdicc): Do nothing when it recreated operands from
17164         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
17165         prepare_scc_operands (now sh_emit_scc_to_t).
17166         (udivdi3): Use cstoresi4.
17167         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
17168         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
17169         (cbranchint4_media, cbranchfp4_media): New.
17170         (casesi): Use cbranchdi4.
17171         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
17172         Delete.
17173         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
17174         (movnegt): Remove second operand.
17175         (cbranchsf4, cbranchdf4): New.
17176         (stack_protect): Use cbranchdi4/cbranchsi4.
17177
17178         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
17179         (gen_compare_reg): Accept comparison, extract part of it to...
17180         (gen_compare_reg_1): ... this.
17181         (gen_compare_operator): Delete.
17182         (gen_v9_scc): Accept separate destination, comparison code and arms.
17183         Do not use sparc_compare_op0/sparc_compare_op1.
17184         (emit_scc_insn, emit_conditional_branch_insn): New.
17185         (emit_v9_brxx): Make static.  Remove useless assertion.
17186         (sparc_emit_float_lib_cmp): Return RTL instead of calling
17187         emit_cmp_insn.
17188         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
17189         * config/sparc/sparc-protos.h (gen_compare_reg,
17190         sparc_emit_float_lib_cmp): Adjust prototype.
17191         (emit_scc_insn, emit_conditional_branch_insn): New.
17192         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
17193         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
17194         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
17195         iterators to the top.
17196         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
17197         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
17198         snedi_special_trunc): Delete.
17199         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
17200         and snedi_special_trunc.
17201         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
17202         cbranchdi4, cbranch<F:mode>4): New.
17203         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
17204         here.  Use gen_compare_reg instead of gen_compare_operator.
17205         (conditional_trap): Replace with...
17206         (ctrapsi4, ctrapdi4): ... this.
17207         (stack_protect_test): Use cbranchcc4.
17208
17209         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
17210         argument to rtx.
17211         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
17212         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
17213         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
17214         from operands[0] or operands[3] depending on is_set.
17215         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
17216         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
17217         cmpdf, bCC), sCC: Remove.
17218         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
17219         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
17220         cstoredf4): New.
17221         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
17222         spu_emit_branch_or_set.
17223
17224         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
17225         Add two arguments.
17226         * config/stormy16/stormy16.h (xstormy16_compare_op0,
17227         xstormy16_compare_op1): Delete.
17228         * config/stormy16/stormy16.c (xstormy16_compare_op0,
17229         xstormy16_compare_op1): Delete.
17230         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
17231         Adjust calls.
17232         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
17233         (cmphi, cmpsi, bCC): Remove.
17234
17235         * config/v850/v850.md (tstsi, cmpsi): Fold into...
17236         (*cmpsi): ... this one.
17237         (cbranchsi4, cstoresi4): New.
17238         (bCC expanders): Delete.
17239         (sCC insns): Fold into...
17240         (*setcc): ... this one.
17241         (casesi): Do not use gen_cmpsi and gen_bgtu.
17242         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
17243         (movsicc): Simplify.
17244         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
17245
17246         * config/vax/vax-protos.h (cond_name): New.
17247         (vax_output_conditional_branch): Remove.
17248         * config/vax/vax.c (cond_name): New.
17249         (vax_output_conditional_branch): Remove.
17250         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
17251         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
17252         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
17253         (bit<VAXint>): Wrap source with (compare).
17254         (b<code> and following unnamed pattern): Rename to *branch and
17255         *branch_reversed.  Change macroization to match_operator.
17256         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
17257
17258         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
17259         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
17260         Change last argument to machine_mode.
17261         (xtensa_expand_scc): Add machine_mode argument.
17262         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
17263         (gen_conditional_move, xtensa_expand_conditional_branch,
17264         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
17265         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
17266         Adjust operand numbers.
17267         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
17268         Delete.
17269         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
17270         (cmpsi, cmpsf, b<code>, s<code>): Delete.
17271         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
17272
17273 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17274
17275         * optabs.c (prepare_cmp_insn): Temporarily disable test that
17276         causes spurious differences between trunk and cond-optab branch.
17277
17278 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
17279
17280         PR target/37137
17281         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
17282
17283 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
17284
17285         * tree.c (iterative_hash_pointer): Delete.
17286         (iterative_hash_expr): Short-circuit handling of NULL pointer.
17287         Hash UIDs and versions of SSA names.  Don't special-case built-in
17288         function declarations.
17289
17290 2009-05-11  Ian Lance Taylor  <iant@google.com>
17291
17292         PR bootstrap/40103
17293         * graphite.c: Force -Wc++-compat to only be a warning before
17294         #including "cloog/cloog.h".
17295
17296 2009-05-11  Martin Jambor  <mjambor@suse.cz>
17297
17298         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
17299
17300 2009-05-11  Jan Hubicka  <jh@suse.cz>
17301
17302         * tree-ssa-loop-ivcanon.c: Include target.h
17303         (struct loop_size): new structure.
17304         (constant_after_peeling): New predicate.
17305         (tree_estimate_loop_size): New function.
17306         (estimated_unrolled_size): Rewrite for new estimates.
17307         (try_unroll_loop_completely): Use new estimates.
17308         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
17309
17310 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17311
17312         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
17313         libcpp interface change.
17314         (spu_macro_to_expand): Likewise.
17315
17316 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
17317
17318         PR tree-optimization/40026
17319         * gimplify.c (gimplify_init_constructor): Change initial conditional
17320         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
17321         optimize_compound_literals_in_ctor.
17322
17323 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
17324
17325         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
17326         New devices.
17327         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
17328
17329 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
17330
17331         * tree-vect-data-refs.c (vect_analyze_group_access): Use
17332         HOST_WIDE_INT for gap.
17333
17334 2009-05-11  Ira Rosen  <irar@il.ibm.com>
17335
17336         PR tree-optimization/40074
17337         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
17338         account in group size and step comparison.
17339
17340 2009-05-11  Richard Guenther  <rguenther@suse.de>
17341
17342         * passes.c (init_optimization_passes): Strip now incorrect comment.
17343         (execute_function_todo): Do not set PROP_alias.
17344         * tree-pass.h (PROP_alias): Remove.
17345         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
17346         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
17347         * tree-nrv.c (pass_return_slot): Likewise.
17348         * tree-object-size.c (pass_object_sizes): Likewise.
17349         * tree-ssa-dom.c (pass_dominator): Likewise.
17350         (pass_phi_only_cprop): Likewise.
17351         * tree-ssa-dse.c (pass_dse): Likewise.
17352         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
17353         (pass_cselim): Likewise.
17354         * tree-ssa-pre.c (pass_pre): Likewise.
17355         (pass_fre): Likewise.
17356         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
17357         * tree-ssa-sink.c (pass_sink_code): Likewise.
17358         * tree-stdarg.c (pass_stdarg): Likewise.
17359         * tree-tailcall.c (pass_tail_calls): Likewise.
17360         * tree-vrp.c (pass_vrp): Likewise.
17361
17362 2009-05-10  Ian Lance Taylor  <iant@google.com>
17363
17364         * basic-block.h (enum profile_status): Break out of struct
17365         control_flow_graph.
17366         * cgraph.h (struct inline_summary): Break out of struct
17367         cgraph_local_info.
17368         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
17369         of struct cgraph_order_sort.
17370         * combine.c (enum undo_kind): New enum, broken out of struct undo.
17371         * cse.c (struct branch_path): Break out of struct
17372         cse_basic_block_data.
17373         * except.h (enum eh_region_type): Break out of struct eh_region.
17374         * gcc.c (enum add_del): Break out of struct modify_target.
17375         * genrecog.c (enum decision_type): Break out of struct decision_test.
17376         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
17377         ggc_pch_data.
17378         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
17379         * regmove.c (enum match_use): New enum, broken out of struct match.
17380         * sched-int.h (enum post_call_group): New enum, broken out of
17381         struct deps.
17382         (struct deps_reg): Break out of struct deps.
17383         * target.h (struct asm_int_op): Break out of struct gcc_target.
17384         * tree-eh.c (struct goto_queue_node): Break out of struct
17385         leh_tf_state.
17386         * tree-inline.h (enum copy_body_cge_which): Break out of
17387         copy_body_data.
17388         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
17389
17390         * c-decl.c (in_struct, struct_types): New static variables.
17391         (pushtag): Add loc parameter.  Change all callers.
17392         (lookup_tag): Add ploc parameter.  Change all callers.
17393         (check_compound_literal_type): New function.
17394         (parser_xref_tag): Add loc parameter.  Change all callers.  If
17395         -Wc++-compat, warn about struct/union/enum types defined within a
17396         struct or union.
17397         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
17398         and loc parameters.  Change all callers.  Change error calls to
17399         error_at, using loc.  For a redefinition, if the location of the
17400         original definition is known, report it.  Set in_struct and
17401         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
17402         (finish_struct): Add new parameters enclosing_in_struct and
17403         enclosing_struct_types.  Change all callers.  Set
17404         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
17405         in the struct.  If in a struct, add this struct to struct_types.
17406         (start_enum): Add loc parameter.  Change all callers.  Use
17407         error_at for errors, using loc.  For a redefinition, if the
17408         location of the original definition is known, report it.  If in a
17409         struct, add this enum type to struct_types.  If -Wc++-compat warn
17410         if in sizeof, typeof, or alignof.
17411         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
17412         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
17413         (c_parser_enum_specifier): Get enum location for start_enum.
17414         (c_parser_struct_or_union_specifier): Get struct location for
17415         start_struct.  Save in_struct and struct_types status between
17416         start_struct and finish_struct.
17417         (c_parser_cast_expression): Get location of cast.
17418         (c_parser_alignof_expression): Get location of type.
17419         (c_parser_postfix_expression): Likewise.
17420         (c_parser_postfix_expression_after_paren_type): Add type_loc
17421         parameter.  Change all callers.  Call check_compound_literal_type.
17422         Use type_loc for error about variable size type.
17423         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
17424         of an enum constant from an enum type defined in a struct or union.
17425         (c_cast_expr): Add loc parameter.  Change all callers.  If
17426         -Wc++-compat, warn about defining a type in a cast.
17427         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
17428         (start_enum, start_struct, finish_struct): Update declarations.
17429         (parser_xref_tag, c_cast_expr): Update declarations.
17430         (check_compound_literal_type): Declare.
17431
17432 2009-05-11  Ben Elliston  <bje@au.ibm.com>
17433
17434         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
17435         for recent libcpp interface change.
17436         (rs6000_macro_to_expand): Likewise.
17437
17438 2009-05-10  Michael Matz  <matz@suse.de>
17439
17440         PR target/40031
17441         * config/arm/arm.c (require_pic_register): Emit on entry edge,
17442         not at entry of function.
17443
17444 2009-05-10  Richard Guenther  <rguenther@suse.de>
17445
17446         PR tree-optimization/40081
17447         Revert
17448         * tree-sra.c (instantiate_element): Instantiate scalar replacements
17449         using the main variant of the element type.  Do not fiddle with
17450         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
17451
17452         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
17453         structs with volatile fields.
17454
17455 2009-05-10  Jan Hubicka  <jh@suse.cz>
17456
17457         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
17458         (estimate_move_cost): Assert that it does not get called for
17459         VOID_TYPE_P.
17460         (estimate_num_insns): Skip VOID types in argument handling.
17461         (optimize_inline_calls): Delete unreachable blocks and verify that
17462         callgraph is valid.
17463
17464 2009-05-10  Jan Hubicka  <jh@suse.cz>
17465
17466         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
17467         * cgraph.c (cgraph_mark_address_taken_node): New function.
17468         (dump_cgraph_node): Dump new flag.
17469         * cgraph.h (struct cgraph_node): Add address_taken.
17470         (cgraph_mark_address_taken_node): New function.
17471         * ipa.c (cgraph_postorder): Prioritize functions with address taken
17472         since new direct calls can be born.
17473
17474 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
17475
17476         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
17477         tok->val.node.node.
17478
17479 2009-05-10  Jan Hubicka  <jh@suse.cz>
17480
17481         PR middle-end/40084
17482         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
17483         argument; rewrite.
17484         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
17485         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
17486         * tree-inline.c (copy_bb): Set frequency correctly.
17487         (fold_marked_statements): Update call to
17488         cgraph_update_edges_for_call_stmt.
17489
17490 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
17491
17492         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
17493         identifiers in diagnostics.
17494         * config/arm/arm.c (arm_handle_fndecl_attribute,
17495         arm_handle_isr_attribute): Likewise.
17496         * config/avr/avr.c (avr_handle_progmem_attribute,
17497         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
17498         * config/bfin/bfin.c (handle_int_attribute,
17499         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
17500         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
17501         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
17502         Likewise.
17503         * config/darwin.c (darwin_handle_kext_attribute,
17504         darwin_handle_weak_import_attribute): Likewise.
17505         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
17506         h8300_handle_eightbit_data_attribute,
17507         h8300_handle_tiny_data_attribute): Likewise.
17508         * config/i386/i386.c (ix86_handle_cconv_attribute,
17509         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
17510         * config/i386/winnt.c (ix86_handle_shared_attribute,
17511         ix86_handle_selectany_attribute): Likewise.
17512         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
17513         * config/m32c/m32c.c (function_vector_handler): Likewise.
17514         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
17515         m68hc11_handle_fntype_attribute): Likewise.
17516         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
17517         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
17518         * config/mips/mips.c (mips_insert_attributes,
17519         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
17520         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
17521         rs6000_handle_struct_attribute): Likewise.
17522         * config/sh/sh.c (sh_insert_attributes,
17523         sh_handle_resbank_handler_attribute,
17524         sh_handle_interrupt_handler_attribute,
17525         sh2a_handle_function_vector_handler_attribute,
17526         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
17527         Likewise.
17528         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
17529         * config/spu/spu.c (spu_handle_fndecl_attribute,
17530         spu_handle_vector_attribute): Likewise.
17531         * config/stormy16/stormy16.c
17532         (xstormy16_handle_interrupt_attribute): Likewise.
17533         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
17534         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
17535
17536 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
17537
17538         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
17539         (pp_translate_identifiers): New.
17540         (pp_identifier): Only conditionally translate identifier to locale
17541         character set.
17542         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
17543         (pp_base_tree_identifier): Only conditionally translate identifier
17544         to locale character set.
17545         * c-pretty-print.c (M_): Define.
17546         (pp_c_type_specifier, pp_c_primary_expression): Mark English
17547         fragments for conditional translation with M_.
17548         * tree-pretty-print.c (maybe_init_pretty_print): Disable
17549         identifier translation.
17550
17551 2009-05-10  Richard Guenther  <rguenther@suse.de>
17552
17553         PR tree-optimization/40081
17554         * tree-sra.c (instantiate_element): Instantiate scalar replacements
17555         using the main variant of the element type.  Do not fiddle with
17556         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
17557
17558 2009-05-09  Jan Hubicka  <jh@suse.cz>
17559
17560         PR middle-end/40080
17561         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
17562         indirect calls; verify cgraph afterwards.
17563
17564 2009-05-09  Jan Hubicka  <jh@suse.cz>
17565
17566         PR bootstrap/40082
17567         * ipa.c (update_inlined_to_pointer): New function.
17568         (cgraph_remove_unreachable_nodes): Use it.
17569
17570 2009-05-09  Jan Hubicka  <jh@suse.cz>
17571
17572         * tree-eh.c (struct leh_state): Remove prev_try.
17573         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
17574         not track prev_try.
17575         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
17576         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
17577         remove_eh_handler_and_replace, foreach_reachable_handler,
17578         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
17579         * except.h (struct eh_region): Remove eh_region_u_cleanup.
17580         (gen_eh_region_cleanup): Update prototype.
17581
17582 2009-05-09  Jan Hubicka  <jh@suse.cz>
17583
17584         PR middle-end/40043
17585         * except.c (copy_eh_region): Always set prev_try.
17586         (redirect_eh_edge_to_label): Find outer try.
17587         (foreach_reachable_handler): When looking for prev try
17588         handle case where previous try is not going to be taken.
17589
17590 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
17591
17592         PR tree-optimization/40049
17593         * tree-vect-stmts.c (vectorizable_operation): If the machine has
17594         only vector/vector shifts, convert the type of the constant to the
17595         appropriate type to avoid building incorrect trees, which
17596         eventually have problems with garbage collection.
17597
17598 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
17599
17600         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
17601         -1 for complex floating-point types if honoring signed zeros.
17602
17603 2009-05-08  Jan Hubicka  <jh@suse.cz>
17604
17605         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
17606         argument; handle correctly when profile is absent.
17607         (build_cgraph_edges): Update.
17608         (rebuild_cgraph_edges): Update.
17609         * cgraph.c: Do not include varray.h.
17610         (cgraph_set_call_stmt_including_clones): New function.
17611         (cgraph_create_edge_including_clones): Likewise
17612         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
17613         (cgraph_update_edges_for_call_stmt): Handle clones.
17614         (cgraph_remove_node): Handle clone tree.
17615         (cgraph_remove_node_and_inline_clones): New function.
17616         (dump_cgraph_node): Dump clone tree.
17617         (cgraph_clone_node): Handle clone tree.
17618         (clone_function_name): Bring here from tree-inline.c.
17619         (cgraph_create_virtual_clone): New function.
17620         * cgraph.h (ipa_replace_map): Move here from ipa.h.
17621         (cgraph_clone_info): New function.
17622         (strut cgraph_node): Add clone_info and new clone tree pointers.
17623         (cgraph_remove_node_and_inline_clones,
17624         cgraph_set_call_stmt_including_clones,
17625         cgraph_create_edge_including_clones,
17626         cgraph_create_virtual_clone): Declare.
17627         (cgraph_function_versioning): Use VEC argument.
17628         (compute_call_stmt_bb_frequency): Update prototype.
17629         (cgraph_materialize_all_clones): New function.
17630         * ipa-cp.c (ipcp_update_cloned_node): Remove.
17631         (ipcp_create_replace_map): Update to VECtors.
17632         (ipcp_update_callgraph): Use virtual clones.
17633         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
17634         (ipcp_update_profiling): Do not update local profiling.
17635         (ipcp_insert_stage): Use VECtors and virtual clones.
17636         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
17637         (clone_of_p): New function.
17638         (cgraph_preserve_function_body_p): Use clone tree.
17639         (cgraph_optimize): Materialize clones.
17640         (cgraph_function_versioning): Update for VECtors.
17641         (save_inline_function_body): Use clone tree.
17642         (cgraph_materialize_clone): New function.
17643         (cgraph_materialize_all_clones): Likewise.
17644         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
17645         * ipa.c: Include gimple.h.
17646         (cgraph_remove_unreachable_nodes): Use clone tree.
17647         * ipa-prop.c (ipa_note_param_call): Update call to
17648         compute_call_stmt_bb_frequencycall.
17649         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
17650         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
17651         (copy_bb): Handle updating of clone tree; add new edge when new call
17652         appears.
17653         (expand_call_inline): Be strict about every call having edge.
17654         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
17655         (delete_unreachable_blocks_update_callgraph): New function.
17656         (tree_function_versioning): Use VECtors; always remove unreachable
17657         blocks and fold conditionals.
17658         * tree-inline.h: Do not include varray.h.
17659         (tree_function_versioning): Remove.
17660         * Makefile.in (GTFILES): Remove tree-inline.c
17661         * passes.c (do_per_function): Do only functions having body.
17662         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
17663         tree.
17664
17665 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
17666             Andrew Morrow  <acm@google.com>
17667
17668         PR c/36892
17669         * c-common.c (c_common_attribute_table): Permit deprecated
17670         attribute to take an optional argument.
17671         (handle_deprecated_attribute): If the optional argument to
17672         __attribute__((deprecated)) is not a string ignore the attribute
17673         and emit a warning.
17674
17675         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
17676         * c-typeck.c (build_component_ref): Likewise.
17677         (build_external_ref): Likewise.
17678
17679         * toplev.c (warn_deprecated_use): Add an attribute argument.
17680         Emit the message associated with __attribute__((deprecated)).
17681
17682         * toplev.h (warn_deprecated_use): Updated.
17683
17684         * doc/extend.texi: Document new optional parameter to
17685         __attribute__((deprecated))
17686
17687 2009-05-08  Michael Eager <eager@eagercon.com>
17688
17689         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
17690         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
17691
17692 2009-05-08  Richard Guenther  <rguenther@suse.de>
17693
17694         PR tree-optimization/40062
17695         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
17696         Avoid exponential behavior.
17697
17698 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
17699
17700         PR rtl-optimization/33928
17701         PR 26854
17702         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
17703         process_uses, build_single_def_use_links): New.
17704         (update_df): Update use_def_ref.
17705         (forward_propagate_into): Use get_def_for_use instead of use-def
17706         chains.
17707         (fwprop_init): Call build_single_def_use_links and let it initialize
17708         dataflow.
17709         (fwprop_done): Free use_def_ref.
17710         (fwprop_addr): Eliminate duplicate call to df_set_flags.
17711         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
17712         df_rd_simulate_one_insn): New.
17713         (df_rd_bb_local_compute_process_def): Update head comment.
17714         (df_chain_create_bb): Use the new RD simulation functions.
17715         * df.h (df_rd_simulate_artificial_defs_at_top,
17716         df_rd_simulate_one_insn): New.
17717         * opts.c (decode_options): Enable fwprop at -O1.
17718         * doc/invoke.texi (-fforward-propagate): Document this.
17719
17720 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
17721
17722         PR c/24581
17723         * c-typeck.c (build_binary_op): Handle arithmetic between one real
17724         and one complex operand specially.
17725         * tree-complex.c (some_nonzerop): Do not identify a real value as
17726         zero if flag_signed_zeros.
17727
17728 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
17729
17730         PR rtl-optimization/33928
17731         * loop-invariant.c (record_use): Fix && vs. || mishap.
17732
17733 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
17734
17735         PR rtl-optimization/33928
17736         * loop-invariant.c (struct use): Add addr_use_p.
17737         (struct def): Add n_addr_uses.
17738         (struct invariant): Add cheap_address.
17739         (create_new_invariant): Set cheap_address.
17740         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
17741         (record_uses): Pass df_ref to record_use.
17742         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
17743         used only as such.
17744
17745 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
17746
17747         * config/sh/sh.c: Do not include c-pragma.h.
17748
17749 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17750
17751         * config/spu/spu.c: Remove include of c-common.h.
17752
17753 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
17754
17755         PR c/39037
17756         * c-common.h (mark_valid_location_for_stdc_pragma,
17757         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
17758         clear_float_const_decimal64, float_const_decimal64_p): New.
17759         * c.opt (Wunsuffixed-float-constants): New.
17760         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
17761         unsuffixed float constant, handle new warning.
17762         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
17763         * c-decl.c (c_scope): New flag float_const_decimal64.
17764         (set_float_const_decimal64, clear_float_const_decimal64,
17765         float_const_decimal64_p): New.
17766         (push_scope): Set new flag.
17767         * c-parser.c (c_parser_translation_unit): Mark when it's valid
17768         to use STDC pragmas.
17769         (c_parser_external_declaration): Ditto.
17770         (c_parser_compound_statement_nostart): Ditto.
17771         * c-pragma.c (valid_location_for_stdc_pragma,
17772         mark_valid_location_for_stdc_pragma,
17773         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
17774         handle_pragma_float_const_decimal64): New.
17775         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
17776         * cp/semantics.c (valid_location_for_stdc_pragma_p,
17777         set_float_const_decimal64, clear_float_const_decimal64,
17778         float_const_decimal64_p): New dummy functions.
17779         * doc/extend.texi (Decimal Float): Remove statement that the
17780         pragma, and suffix for double constants, are not supported.
17781         * doc/invoke.texi (Warning Options): List new option.
17782         (-Wunsuffixed-float-constants): New.
17783
17784 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
17785
17786         * config/i386/i386.c: Do not include c-common.h.
17787
17788 2009-05-07  Mark Heffernan  <meheff@google.com>
17789
17790         * doc/invoke.texi (Debugging Options): Document change of debugging
17791         dump location.
17792         * opts.c (decode_options): Make dump_base_name relative to
17793         aux_base_name directory.
17794
17795 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
17796
17797         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
17798         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
17799
17800 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
17801
17802         * Makefile.in (install-plugin): Simplify a bit.
17803
17804 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
17805
17806         * Makefile.in (OBJS-common): Add regcprop.o.
17807         (regcprop.o): New.
17808         * timevar.def (TV_CPROP_REGISTERS): New.
17809         * regrename.c (regrename_optimize): Return 0.
17810         (rest_of_handle_regrename): Delete.
17811         (pass_rename_registers): Point to regrename_optimize.
17812         (struct value_data_entry, struct value_data,
17813         kill_value_one_regno, kill_value_regno, kill_value,
17814         set_value_regno, init_value_data, kill_clobbered_value,
17815         kill_set_value, kill_autoinc_value, copy_value,
17816         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
17817         replace_oldest_value_reg, replace_oldest_value_addr,
17818         replace_oldest_value_mem, copyprop_hardreg_forward_1,
17819         debug_value_data, validate_value_data): Move...
17820         * regcprop.c: ... here.
17821         (rest_of_handle_cprop): Delete.
17822         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
17823
17824 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
17825
17826         PR middle-end/40057
17827         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
17828         GEN_INT for 1 << bitnum.
17829         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
17830         build_int_cst_type.
17831
17832 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
17833
17834         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
17835         Remove wrong description of "nand" operation.
17836
17837 2009-05-06  Richard Guenther  <rguenther@suse.de>
17838             Adam Nemet  <anemet@caviumnetworks.com>
17839
17840         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
17841         comment.  Add that if LHS is not a gimple register, then RHS1 has
17842         to be a single object (GIMPLE_SINGLE_RHS).
17843
17844 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
17845
17846         * expr.c (get_def_for_expr): Move it up in the file.
17847         (store_field): When expanding a bit-field store, look at the
17848         defining gimple stmt for the masking conversion.
17849
17850 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
17851
17852         PR middle-end/39986
17853         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
17854         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
17855         32-bit memcpy into long.
17856
17857 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
17858
17859         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
17860         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
17861         new_reg_loc_descr.
17862         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
17863         instead of appending DW_OP_deref*.
17864
17865 2009-05-06  Michael Matz  <matz@suse.de>
17866
17867         PR middle-end/40021
17868         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
17869         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
17870
17871 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
17872
17873         * Makefile.in (install-plugin): Fix srcdir handling.
17874
17875 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
17876
17877         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
17878         when processing for not_regs_needed bitmap.
17879         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
17880         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
17881         handling it for rhs.
17882
17883 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
17884
17885         * config/i386/i386.md (unnamed inc/dec peephole): Use
17886         optimize_insn_for_size_p instead of optimize_size.
17887         * config/i386/predicates.md (incdec_operand): Likewise.
17888         (aligned_operand): Likewise.
17889         * config/i386/sse.md (divv8sf3): Likewise.
17890         (sqrtv8sf2): Likewise.
17891
17892 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
17893
17894         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
17895
17896         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
17897
17898 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
17899
17900         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
17901         ssemodesuffixf2c with avxmodesuffixf2c.
17902
17903 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
17904
17905         PR c/40032
17906         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
17907
17908 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
17909
17910         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
17911         (struct tree_base): Adjust spacing for 8 bit boundaries.
17912         (struct tree_decl_common): Add decl_by_reference_flag bit.
17913         (DECL_BY_REFERENCE): Adjust.
17914         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
17915         print DECL_BY_REFERENCE bit.
17916         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
17917         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
17918         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
17919         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
17920         unconditionally.
17921
17922         PR middle-end/39666
17923         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
17924         range of the type, but default label is missing, add it with one
17925         of the existing labels instead of adding a new label for it.
17926
17927 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
17928
17929         * dwarf.h: Remove.
17930
17931 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
17932
17933         * Makefile.in (enable_plugin, plugin_includedir): New.
17934         (install): Depend on install-plugin.
17935         (PLUGIN_HEADERS): New.
17936         (install-plugin): New.
17937         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
17938
17939 2009-05-05  Richard Guenther  <rguenther@suse.de>
17940
17941         PR tree-optimization/40022
17942         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
17943         the only vuse.
17944         (phivn_valid_p): Fix tuplification error, simplify.
17945         (phiprop_insert_phi): Add dumps.
17946         (propagate_with_phi): Simplify.
17947
17948 2009-05-05  Richard Guenther  <rguenther@suse.de>
17949
17950         PR middle-end/40023
17951         * builtins.c (gimplify_va_arg_expr): Properly build the address.
17952
17953 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
17954
17955         * tree.h (strip_float_extensions): Remove duplicate declaration.
17956         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
17957         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
17958         block_ultimate_origin): Rearrange the declarations line to match the
17959         comment that indicates the .c file which the functions are defined.
17960         (dwarf2out_*, set_decl_rtl): Add comment.
17961         (get_base_address): Adjust comment.
17962         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
17963         declarations line and add comment.
17964         (is_builtin_name): Add blank after function name, for clarity.
17965
17966 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
17967
17968         * attribs.c (decl_attributes): Use %qE for identifiers in
17969         diagnostics.
17970         * cgraphunit.c (verify_cgraph_node): Translate function names to
17971         locale character set in diagnostics.
17972         * coverage.c (get_coverage_counts): Use %qE for identifiers in
17973         diagnostics.
17974         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
17975         Document that functions are named in UTF-8.
17976         * expr.c (expand_expr_real_1): Translate function names to locale
17977         character set in diagnostics.
17978         * gimplify.c (omp_notice_variable, omp_is_private,
17979         gimplify_scan_omp_clauses): Use %qE for identifiers in
17980         diagnostics.
17981         * langhooks.c (lhd_print_error_function): Translate function names
17982         to locale character set.
17983         * langhooks.h (decl_printable_name): Document that return value is
17984         in internal character set.
17985         * stmt.c: Include pretty-print.h
17986         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
17987         diagnostics.
17988         (resolve_operand_name_1): Translate named operand name to locale
17989         character set.
17990         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
17991         diagnostics.
17992         * toplev.c (announce_function): Translate function names to locale
17993         character set.
17994         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
17995         (default_tree_printer): Use pp_identifier or translate identifiers
17996         to locale character set.  Mark "<anonymous>" for translation.
17997         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
17998         for identifiers in diagnostics.
17999         * tree.c (handle_dll_attribute): Use %qE for identifiers in
18000         diagnostics.
18001         * varasm.c (output_constructor): Use %qE for identifiers in
18002         diagnostics.
18003
18004 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
18005
18006         * configure.ac: use ` ` instead of $()
18007         * configure: Regenerate.
18008
18009 2009-05-05  Ben Elliston  <bje@au.ibm.com>
18010
18011         * config/pa/linux-atomic.c: Eliminate conditional include of
18012         errno.h on non-LP64 systems to simplify build requirements.
18013
18014 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
18015
18016         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
18017         diagnostics.
18018         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
18019         and pass value to identifier_to_locale.
18020         (warn_variable_length_array): Make name a tree.
18021         (grokdeclarator): Separate diagnostic texts for named and unnamed
18022         declarators.  Use %qE for named declarators.
18023         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
18024         diagnostics.
18025         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
18026         identifiers in diagnostics.
18027         * c-typeck.c (push_member_name, start_init): Pass identifiers to
18028         identifier_to_locale.  Mark "anonymous" strings for translation.
18029
18030 2009-05-04  Michael Eager <eager@eagercon.com>
18031
18032         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
18033         address for DImode/DFmode only if double-precision FP regs.
18034
18035 2009-05-04  Michael Eager <eager@eagercon.com>
18036
18037         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
18038         TARGET_SINGLE_FLOAT check.
18039
18040 2009-05-04  Michael Eager <eager@eagercon.com>
18041
18042         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
18043
18044 2009-05-04  Michael Eager <eager@eagercon.com>
18045
18046         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
18047         * config/rs6000/t-xilinx: New
18048
18049 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
18050
18051         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
18052         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
18053         * gcc/explow.c (memory_address): Use target hook.
18054         * gcc/targhooks.c (default_legitimize_address): New.
18055         * gcc/targhooks.h (default_legitimize_address): New.
18056         * gcc/target.h (legitimize_address): New.
18057         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
18058         (TARGET_INITIALIZER): Include it.
18059         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
18060
18061         * config/bfin/bfin-protos.h (legitimize_address): Remove.
18062         * config/bfin/bfin.c (legitimize_address): Remove.
18063         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
18064         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
18065         Remove.
18066         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
18067         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
18068
18069         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
18070         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
18071         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
18072         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
18073         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
18074         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
18075         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
18076         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
18077         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
18078         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
18079         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
18080         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
18081         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
18082         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
18083         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
18084         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
18085         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
18086         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
18087         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
18088         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
18089         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
18090         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
18091         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
18092
18093         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
18094         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
18095         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
18096         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
18097         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
18098         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
18099         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
18100         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
18101         (thumb_legitimize_address): Delete.
18102         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
18103         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
18104         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
18105         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
18106         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
18107         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
18108         Delete.
18109         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
18110         Delete.
18111
18112         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
18113         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
18114         * config/m32r/m32r.c (m32r_legitimize_address): New.
18115         * config/m68k/m68k.c (m68k_legitimize_address): New.
18116         * config/score/score.c (score_legitimize_address): Standardize.
18117         * config/score/score3.c (score3_legitimize_address): Standardize.
18118         * config/score/score3.h (score3_legitimize_address): Adjust.
18119         * config/score/score7.c (score7_legitimize_address): Standardize.
18120         * config/score/score7.h (score7_legitimize_address): Adjust.
18121         * config/sh/sh.c (sh_legitimize_address): New.
18122         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
18123
18124         * gcc/config/s390/s390.c (legitimize_address): Rename to...
18125         (s390_legitimize_address): ... this.
18126         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
18127         (sparc_legitimize_address): ... this.
18128         * gcc/config/i386/i386.c (legitimize_address): Rename to...
18129         (ix86_legitimize_address): ... this.
18130         * gcc/config/avr/avr.c (legitimize_address): Rename to...
18131         (avr_legitimize_address): ... this.
18132         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
18133         (mn10300_legitimize_address): ... this.
18134         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
18135         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
18136         (alpha_expand_mov): Adjust call.
18137
18138         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
18139         * config/spu/spu.c (spu_legitimize_address): Likewise.
18140         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
18141         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
18142
18143 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
18144
18145         * intl.c (locale_encoding, locale_utf8): New.
18146         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
18147         * intl.h (locale_encoding, locale_utf8): Declare.
18148         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
18149         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
18150         New.
18151         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
18152         argument.
18153         (pp_tree_identifier): Define to call pp_base_tree_identifier.
18154         (pp_base_tree_identifier): Declare as function.
18155         (identifier_to_locale): Declare.
18156         * Makefile.in (pretty-print.o): Update dependencies.
18157         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
18158
18159 2009-05-04  Richard Guenther  <rguenther@suse.de>
18160
18161         PR middle-end/40015
18162         * builtins.c (fold_builtin_memory_op): Do not decay to element
18163         type if the size matches the whole array.
18164
18165 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
18166
18167         * expmed.c (synth_mult): When trying out a shift, pass the result
18168         of a signed shift.
18169
18170 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
18171
18172         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
18173         (shiftsub1_cost): New.
18174         (init_expmed): Compute shiftsub1_cost.
18175         (synth_mult): Optimize multiplications by constants of the form
18176         -(2^^m-1) for some constant positive integer m.
18177
18178 2009-05-03  Richard Guenther  <rguenther@suse.de>
18179
18180         PR c/39983
18181         * c-typeck.c (array_to_pointer_conversion): Do not built
18182         ADDR_EXPRs of arrays of pointer-to-element type.
18183         * c-gimplify.c (c_gimplify_expr): Revert change fixing
18184         up wrong ADDR_EXPRs after-the-fact.
18185         * c-common.c (strict_aliasing_warning): Strip pointer
18186         conversions for obtaining the original type.
18187         * builtins.c (fold_builtin_memset): Handle array types.
18188         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
18189         and array types
18190
18191 2009-05-03  Richard Guenther  <rguenther@suse.de>
18192
18193         PR middle-end/23329
18194         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
18195         Do not lose casts from array types with unknown extent to array
18196         types with known extent.
18197         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
18198         alias set compatibility.
18199
18200 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18201
18202         * flags.h (extra_warnings): Delete.
18203         * toplev.c (process_options): Handle Wuninitialized here.
18204         * opts.c (extra_warnings): Delete.
18205         (set_Wextra): Delete.
18206         (common_handle_option): -Wextra can be handled automatically.
18207         * c-opts.c (c_common_handle_option): Delete obsolete code.
18208         (c_common_post_options): Simplify comment.
18209         * common.opt (W): Add Var.
18210         (Wextra): Add Var.
18211         (Wuninitialized): Initialize to -1.
18212
18213 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
18214             Richard Guenther  <rguenther@suse.de>
18215
18216         * expr.c (get_def_for_expr): New function.
18217         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
18218         SSA rather than trees.
18219         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
18220         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
18221
18222 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
18223
18224         * c-common.c (reswords): Add _Imaginary.
18225         * c-common.c (enum rid): Add RID_IMAGINARY.
18226
18227 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
18228
18229         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
18230         Patch by Richard Guenther.
18231
18232 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
18233
18234         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
18235         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
18236         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
18237         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
18238         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
18239         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
18240         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
18241         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
18242         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
18243         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
18244         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
18245         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
18246         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
18247         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
18248         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
18249         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
18250         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
18251         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
18252
18253 2009-05-02  Richard Guenther  <rguenther@suse.de>
18254
18255         PR tree-optimization/39940
18256         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
18257         doing so.
18258
18259 2009-05-02  Richard Guenther  <rguenther@suse.de>
18260
18261         PR middle-end/40001
18262         * tree-ssa.c (execute_update_addresses_taken): Properly check
18263         if we can mark a variable DECL_GIMPLE_REG_P.
18264         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
18265         back to the end of the function.
18266         (is_gimple_reg_type): Remove complex type special casing.
18267         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
18268         if not optimizing.
18269
18270 2009-05-02  Ben Elliston  <bje@au.ibm.com>
18271
18272         * doc/collect2.texi (Collect2): Document search path behaviour
18273         when configured with --with-ld.
18274
18275 2009-05-02  Jan Hubicka  <jh@suse.cz>
18276
18277         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
18278         parameter; update callers.
18279         (coalesce_cost_edge): EH edges are costier because they needs
18280         splitting even if not critical and even more costier when there are
18281         multiple EH predecestors.
18282
18283 2009-05-02  Jan Hubicka  <jh@suse.cz>
18284
18285         * except.c (remove_eh_handler_and_replace): Handle updating after
18286         removing TRY blocks.
18287
18288 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
18289
18290         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
18291
18292 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
18293
18294         * varasm.c: Do not include c-pragma.h.
18295         * attribs.c: Do not incude c-common.h.
18296
18297 2009-05-01  Michael Matz  <matz@suse.de>
18298
18299         * calls.c (initialize_argument_information): Handle SSA names like
18300         decls with a non MEM_P DECL_RTL.
18301
18302 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
18303
18304         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
18305         * ipa-utils.c: Likewise.
18306         * ipa-type-escape.c: Likewise.
18307         * cgraphunit.c Do not include c-common.h.
18308         * ipa-pure-const.c: Likewise.
18309         * tree-if-conv.c: Likewise.
18310         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
18311         * ipa-struct-reorg.c: Likewise.
18312         * tree-nomudflap.c: Likewise.
18313         * tree-ssa-structalias.c: Likewise.
18314
18315 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
18316
18317         * store-motion.c: Many cleanups to make this pass a first-class
18318         citizen instead of an appendix to gcse load motion.  Add TODO list
18319         to make this pass faster/cleaner/better.
18320
18321         (struct ls_expr): Post gcse.c-split cleanups.
18322         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
18323         "stores" field to "avail_stores".
18324         (pre_ldst_mems): Rename to store_motion_mems.
18325         (pre_ldst_table): Rename to store_motion_mems_table.
18326         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
18327         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
18328         (ldst_entry): Rename to st_expr_entry, update users.
18329         (free_ldst_entry): Rename to free_st_expr_entry, update users.
18330         (free_ldst_mems): Rename to free_store_motion_mems, update users.
18331         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
18332         update caller.
18333         (first_ls_expr): Rename to first_st_expr, update users.
18334         (next_ls_expr): Rename to next_st_expr, update users.
18335         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
18336         fields properly for store motion instead of names inherited from load
18337         motion in gcse.c.
18338         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
18339         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
18340         are done with it.
18341
18342         (ae_kill): Rename to st_kill, update users.
18343         (ae_gen): Rename to st_avloc, update users.
18344         (transp): Rename to st_transp, update users.
18345         (pre_insert_map): Rename to st_insert_map, update users.
18346         (pre_delete_map): Rename to st_delete_map, update users.
18347         (insert_store, build_store_vectors, free_store_memory,
18348         one_store_motion_pass): Update for abovementioned changes.
18349
18350         (gcse_subst_count, gcse_create_count): Remove.
18351         (one_store_motion_pass): New statistics counters "n_stores_deleted"
18352         and "n_stores_created", local variables.
18353
18354         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
18355         use for_each_rtx.
18356
18357         (regvec, compute_store_table_current_insn): Remove.
18358         (reg_set_info, reg_clear_last_set): Remove.
18359         (compute_store_table): Use DF caches instead of local dataflow
18360         solvers.
18361
18362 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
18363
18364         * c-objc-common.c (c_tree_printer): Print identifiers with
18365         pp_identifier, not pp_string.  Mark "({anonymous})" for
18366         translation.
18367         * c-pretty-print.c (pp_c_ws_string): New.
18368         (pp_c_cv_qualifier, pp_c_type_specifier,
18369         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
18370         pp_c_storage_class_specifier, pp_c_function_specifier,
18371         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
18372         pp_c_primary_expression, pp_c_postfix_expression,
18373         pp_c_unary_expression, pp_c_shift_expression,
18374         pp_c_relational_expression, pp_c_equality_expression,
18375         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
18376         use pp_string and pp_c_ws_string in place of pp_identifier and
18377         pp_c_identifier for non-identifiers.  Mark English strings for
18378         translation.
18379         * c-pretty-print.h (pp_c_ws_string): Declare.
18380
18381 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
18382             Roland McGrath <roland@redhat.com>
18383
18384         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
18385         (ENABLE_LD_BUILDID): New configuration option.
18386         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
18387         (LINK_BUILDID_SPEC): New macro.
18388         (init_spec): If defined, prepend it between LINK_EH_SPEC and
18389         link_spec.
18390         * doc/install.texi: Document --enable-linker-build-id option.
18391         * configure: Rebuild.
18392         * config.in: Rebuild.
18393
18394 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
18395
18396         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
18397         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
18398         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
18399         MIPS_GP_SAVE_AREA_SIZE.
18400         * config/mips/mips.c (struct mips_frame_info): Update comment
18401         before arg_pointer_offset and hard_frame_pointer_offset.
18402         (mips_compute_frame_info): Update diagram before function: to
18403         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
18404         indicate the position of frame_pointer_rtx with -fstack-protector and
18405         to show args_size.  Don't allocate cprestore area for leaf functions
18406         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
18407         cprestore_size.
18408         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
18409
18410 2009-04-30  Michael Matz  <matz@suse.de>
18411
18412         PR tree-optimization/39955
18413         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
18414
18415 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
18416
18417         * ira.c (setup_cover_and_important_classes):  Use safe macro
18418         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
18419         directly.
18420         * genpreds.c (write_tm_preds_h):  Output suitable definition of
18421         REG_CLASS_FOR_CONSTRAINT.
18422
18423 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
18424
18425         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
18426         instead of an int.
18427         * bitmap.c (bitmap_descriptor): Likewise.
18428         * ggc-common.c (loc_descriptor): Likewise.
18429         * varray.c (varray_descriptor): Likewise.
18430         * vec.c (vec_descriptor): Likewise.
18431
18432 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
18433
18434         * Makefile.in (dce.o): Add $(EXCEPT_H).
18435         * dce.c: Include except.h and delete redundant vector definitions.
18436         (deletable_insn_p): Return false for non-call insns that can throw
18437         if DF is running.
18438
18439 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
18440
18441         * gcse.c (ae_gen): Remove.
18442         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
18443         and make non-static function to make it available in store-motion.c.
18444         Update call sites with search-and-replace.
18445         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
18446         extract_mentioned_regs, extract_mentioned_regs_helper,
18447         find_moveable_store, compute_store_table, load_kills_store, find_loads,
18448         store_killed_in_insn, store_killed_after, store_killed_before,
18449         build_store_vectors, insert_insn_start_basic_block, insert-store,
18450         remove_reachable_equiv_notes, replace_store_insn, delete_store,
18451         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
18452         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
18453         * store-motion.c: ...new file.  Also copy data structures from gcse.c
18454         and clean up to remove parts not used by store motion.
18455         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
18456         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
18457
18458 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18459
18460         PR target/38571
18461         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
18462         when optimizing for size.
18463
18464 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
18465
18466         * gcse.c (gcse_constant_p): Fix typo in last change.
18467
18468 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
18469
18470         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
18471
18472 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
18473
18474         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
18475
18476 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
18477
18478         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
18479         CONST_HIGH_PART result.
18480
18481 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
18482
18483         * config/avr/avr.c (initial_elimination_offset): Rename to
18484         avr_initial_elimination_offset.
18485         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
18486         change return type to bool.
18487         (avr_can_eliminate): New function.
18488         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
18489         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
18490         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
18491         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
18492         avr_initial_elimination_offset.
18493         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
18494         (avr_initial_elimination_offset): Define.
18495
18496 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
18497             Steven Bosscher  <steven@gcc.gnu.org>
18498
18499         PR rtl-optimization/39938
18500         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
18501         * cfgrtl.c: Include insn-attr.h.
18502         (rest_of_pass_free_cfg): New function.
18503         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
18504         * resource.c (init_resource_info): Remove call to df_analyze.
18505
18506 2009-04-29  Richard Guenther  <rguenther@suse.de>
18507
18508         PR target/39943
18509         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
18510         allow conversion to signed integers.
18511
18512 2009-04-29  Richard Guenther  <rguenther@suse.de>
18513
18514         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
18515         shifts of floating point vectors if the shift amount is
18516         a constant multiple of the element size.
18517
18518 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
18519             Michael Matz  <matz@suse.de>
18520
18521         PR middle-end/39927
18522         PR bootstrap/39929
18523         * tree-outof-ssa.c (emit_partition_copy): New function.
18524         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
18525         insert_part_to_rtx_on_edge): Perform the partition base var
18526         copy using emit_partition_copy.
18527         (insert_value_copy_on_edge): Convert constants to the right mode.
18528         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
18529         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
18530
18531 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
18532
18533         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
18534         scan backwards to try to find a constant to initialize it.
18535
18536         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
18537         insn before the loop_end instruction, don't look past labels.
18538
18539 2009-04-29  Richard Guenther  <rguenther@suse.de>
18540
18541         PR middle-end/39937
18542         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
18543         loose type conversions.
18544         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
18545         stmts only if there are no uses of its definition.
18546
18547 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
18548
18549         * config/bfin/bfin.h (splitting_loops): Declare.
18550         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
18551         Reorder bit definitions to be ascending.
18552         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
18553         * config/bfin/bfin.c (splitting_loops): New variable.
18554         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
18555         (struct loop_info): Remove members INIT and LOOP_INIT.
18556         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
18557         the LSETUP sequence.  Allow LC to be loaded from any register, but
18558         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
18559         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
18560         set to 1.
18561         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
18562         of reload_completed.
18563
18564         From Jie Zhang:
18565         * config/bfin/bfin.md (movsi_insn): Refine constraints.
18566
18567 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
18568
18569         * Makefile.in (PLUGIN_VERSION_H): New.
18570         (OBJS-common): Remove plugin-version.o.
18571         (plugin.o): Depend on (PLUGIN_VERSION_H).
18572         (plugin-version.o): Remove.
18573         * configure: Regenerate
18574         * configure.ac: Create plugin-version.h.
18575         * gcc-plugin.h (plugin_gcc_version): Remove.
18576         (plugin_default_version_check): Change signature.
18577         * plugin-version.c: Remove.
18578         * plugin.c: Include plugin-version.h.
18579         (str_plugin_gcc_version_name): Remove.
18580         (try_init_one_plugin): Pass gcc version to plugin_init.
18581         (plugin_default_version_check): Both gcc and plugin versions are now
18582         arguments.
18583
18584 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
18585
18586         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
18587         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
18588         Remove special case testing for last insn of inner loops. Don't fail
18589         if the loop ends with a jump, emit an extra nop instead.
18590
18591         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
18592         DREGS rather than comparing directly.  Remove code that tries to
18593         account for latencies.
18594
18595 2009-04-29  Richard Guenther  <rguenther@suse.de>
18596
18597         PR tree-optimization/39941
18598         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
18599         eliminating an indirect call.
18600
18601 2009-04-29  Richard Guenther  <rguenther@suse.de>
18602
18603         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
18604         parameter.  Allow invariants as base if !require_lvalue.
18605         (verify_gimple_assign_single): Adjust.
18606
18607 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
18608
18609         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
18610         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
18611         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
18612         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
18613         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
18614         a VEC_SELECT.
18615         * config/bfin/bfin.c (bfin_expand_builtin,
18616         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
18617
18618 2009-04-28  Richard Guenther  <rguenther@suse.de>
18619
18620         * tree-vect-loop.c (get_initial_def_for_induction): Use
18621         correct types for pointer increment.
18622
18623 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18624
18625         * toplev.c (print_version): Update GMP version string calculation.
18626
18627 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
18628
18629         PR rtl-optimization/39938
18630         * resource.c (init_resource_info): Add call to df_analyze.
18631
18632 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
18633
18634         * config/alpha/alpha.md (usegp): Cast the result of
18635         alpha_find_lo_sum_using_gp to enum attr_usegp.
18636         * config/alpha/alpha.c (override_options): Remove end-of-structure
18637         marker element from cpu_table.  Use array size of cpu_table to handle
18638         -mcpu and -mtune options.
18639         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
18640
18641 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
18642
18643         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
18644         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
18645         tune_32 and tune_64.
18646         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
18647         support on PowerPC.
18648         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
18649         * config/rs6000/option-defaults.h: ... here.  New file.
18650         (OPT_64, OPT_32): Define.
18651         (MASK_64BIT): Define to 0 if not already defined.
18652         (OPT_ARCH64, OPT_ARCH32): Define.
18653         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
18654         and tune_64.
18655
18656 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18657
18658         * config/arm/arm.c (arm_override_options): Emit error on using
18659         fpa with AAPCS.
18660
18661 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
18662
18663         PR rtl-optimization/39914
18664         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
18665         registers for allocnos created from user-defined variables only
18666         when not optimizing.
18667
18668 2009-04-28  Richard Guenther  <rguenther@suse.de>
18669
18670         PR middle-end/39937
18671         * fold-const.c (fold_binary): Use distribute_real_division only
18672         on float types.
18673
18674 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
18675
18676         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
18677         add hpux-stdint.h to tm_file.
18678         (hppa[12]*-*-hpux11*): Ditto.
18679         (ia64*-*-hpux*): Ditto.
18680         * config/hpux-stdint.h: New.
18681         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
18682         __STDC_EXT__ for all compiles.
18683         * config/pa/pa-hpux.h: Ditto.
18684         * config/pa/pa-hpux10.h: Ditto.
18685         * config/pa/pa-hpux11.h: Ditto.
18686
18687 2009-04-28  Catherine Moore  <clm@codesourcery.com>
18688
18689         * debug.h (set_name): Add comment.
18690
18691 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
18692
18693         PR target/39929
18694         * config/darwin.c (machopic_gen_offset): Check
18695         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
18696         * config/arm/arm.c (require_pic_register): Likewise.
18697
18698 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
18699
18700         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
18701         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
18702         m32c_promote_prototypes): Delete.
18703
18704 2009-04-28  Michael Matz  <matz@suse.de>
18705
18706         PR middle-end/39922
18707         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
18708         constants.
18709
18710 2009-04-28  Richard Guenther  <rguenther@suse.de>
18711
18712         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
18713
18714 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18715
18716         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
18717         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
18718         * config/arm/arm-tune.md: Regenerate.
18719
18720 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
18721
18722         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
18723         block if there are complex incoming edges.
18724         (sel_merge_blocks): Remove useless assert.
18725         (sel_redirect_edge_and_branch): Check that edge was redirected.
18726         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
18727         (sel_find_rgns): Delete declaration.
18728         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
18729         the region when it is not a preheader.
18730
18731 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
18732
18733         PR c/39323
18734         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
18735
18736 2009-04-28  Richard Guenther  <rguenther@suse.de>
18737
18738         * tree.h (SSA_NAME_VALUE): Remove.
18739         (struct tree_ssa_name): Remove value_handle member.
18740         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
18741         array for jump threading.
18742         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
18743         SSA_NAME_VALUEs.
18744         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
18745         * tree-flow.h (threadedge_initialize_values): Declare.
18746         (threadedge_finalize_values): Likewise.
18747         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
18748         (SSA_NAME_VALUE): Define.
18749         (threadedge_initialize_values): New function.
18750         (threadedge_finalize_values): Likewise.
18751         * tree-ssa-dom.c (ssa_name_values): New global variable.
18752         (SSA_NAME_VALUE): Define.
18753         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
18754
18755 2009-04-28  Ira Rosen  <irar@il.ibm.com>
18756
18757         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
18758         Use REPORT_VECTORIZED_LOCATIONS instead
18759         REPORT_VECTORIZED_LOOPS.
18760         * tree-vectorizer.c (vect_verbosity_level): Make static.
18761         (vect_loop_location): Rename to vect_location.
18762         (vect_set_verbosity_level): Update comment.
18763         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
18764         and vect_location.
18765         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
18766         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
18767         instead REPORT_UNVECTORIZED_LOOPS.
18768         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
18769         and vect_loop_def to vect_external_def and vect_internal_def.
18770         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
18771         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
18772         REPORT_UNVECTORIZED_LOCATIONS.
18773         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
18774         and vect_used_in_loop and to vect_unused_in_scope and
18775         vect_used_in_scope.
18776         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
18777         (vect_verbosity_level): Remove declaration.
18778         (vect_analyze_operations): Likewise.
18779         (vect_analyze_stmt): Declare.
18780         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
18781         REPORT_UNVECTORIZED_LOCATIONS.
18782         (vect_get_loop_niters): Fix indentation.
18783         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
18784         (vect_analyze_loop_operations): New function.
18785         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
18786         vect_analyze_operations.
18787         (vect_is_simple_reduction): Use new names.
18788         (vectorizable_live_operation, vect_transform_loop): Likewise.
18789         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
18790         to specify whether the data references can be a part of interleaving
18791         chain.
18792         (vect_analyze_data_ref_dependence): Use new names.
18793         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
18794         (vect_create_addr_base_for_vector_ref): Remove redundant code.
18795         * tree-vect-patterns.c (widened_name_p): Use new names.
18796         (vect_recog_dot_prod_pattern): Likewise.
18797         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
18798         (process_use, vect_mark_stmts_to_be_vectorized,
18799         vect_model_simple_cost, vect_model_store_cost,
18800         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
18801         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
18802         vectorizable_operation, vectorizable_type_demotion,
18803         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
18804         vectorizable_condition): Likewise.
18805         (vect_analyze_operations): Split into vect_analyze_loop_operations
18806         and ...
18807         (vect_analyze_stmt): ... new function.
18808         (new_stmt_vec_info): Use new names.
18809         (vect_is_simple_use): Use new names and fix comment.
18810         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
18811         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
18812
18813 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
18814
18815         PR target/39911
18816         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
18817         and integer modes for x87 operands.  Do not ICE for unsupported size,
18818         generate error instead.  Generate error for unsupported operand types.
18819         ['z']: Do not handle HImode memory operands specially.  Warning
18820         for floating-point operands.  Fallthru to 'Z' for unsupported operand
18821         types.  Do not ICE for unsupported size, generate error instead.
18822         (output_387_binary_op): Use %Z to output operands.
18823         (output_fp_compare): Ditto.
18824         (output_387_reg_move): Ditto.
18825
18826 2009-04-28  Ben Elliston  <bje@au.ibm.com>
18827
18828         PR c++/35652
18829         Revert:
18830
18831         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18832
18833         * builtins.c (c_strlen): Do not warn here.
18834         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
18835         * c-common.c (pointer_int_sum): Take an explicit location.
18836         Warn about offsets out of bounds.
18837         * c-common.h (pointer_int_sum): Adjust declaration.
18838
18839 2009-04-27  Ian Lance Taylor  <iant@google.com>
18840
18841         * collect2.c (is_ctor_dtor): Change type of ret field in struct
18842         names to symkind.
18843         * dce.c (run_fast_df_dce): Change type of old_flags to int.
18844         * df-core.c (df_set_flags): Change return type to int.  Change
18845         type of old_flags to int.
18846         (df_clear_flags): Likewise.
18847         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
18848         (df_get_conditional_uses): Likewise.
18849         * df.h (df_set_flags, df_clear_flags): Update declarations.
18850         * dwarf2out.c (struct indirect_string_node): Change type of form
18851         field to enum dwarf_form.
18852         (AT_string_form): Change return type to enum dwarf_form.
18853         * fixed-value.c (fixed_compare): Add cast to enum type.
18854         * fwprop.c (update_df): Change 0 to VOIDmode.
18855         * gensupport.c: Change 0 to UNKNOWN.
18856         * gimple.h (gimple_cond_code): Add cast to enum type.
18857         * haifa-sched.c (reemit_notes): Add cast to enum type.
18858         * hooks.c (hook_int_void_no_regs): Remove function.
18859         * hooks.h (hook_int_void_no_regs): Remove declaration.
18860         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
18861         * predict.c (combine_predictions_for_insn): Add casts to enum type.
18862         * real.c (real_arithmetic): Add cast to enum type.
18863         (real_compare): Likewise.
18864         * target.h (struct gcc_target): Change return type of
18865         branch_target_register_class to enum reg_class.
18866         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
18867         default_branch_target_register_class.
18868         * targhooks.c (default_branch_target_register_class): New function.
18869         * targhooks.h (default_branch_target_register_class): Declare.
18870         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
18871         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
18872         cast to int.
18873         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
18874         ERROR_MARK.
18875         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
18876         vect_uninitialized_def.  Change 0 to ERROR_MARK.
18877         * tree-vect-stmts.c (supportable_widening_operation): Don't
18878         initialize icode1 and icode2.
18879         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
18880         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
18881         and to STD_C89.
18882         (cmn_err_flag_specs): Change 0 to STD_C89.
18883         (cmn_err_char_table): Likewise.
18884         * config/arm/arm.c (get_arm_condition_code): Change type of code
18885         to enum arm_cond_code.
18886         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
18887         (IWMMXT_BUILTIN2): Likewise.
18888         (neon_builtin_type_bits): Don't define typedef.
18889         (neon_builtin_datum): Change type of bits field to int.
18890         (arm_expand_neon_args): Add cast to enum type.
18891         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
18892         TLS_MODEL_NONE.
18893         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
18894         casts to enum type.
18895         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
18896         MIPS_FP_COND_f.
18897         * config/mips/mips.md (jal_macro): Return enum constant.
18898         (single_insn): Likewise.
18899         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
18900         CODE_FOR_nothing.
18901         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18902         casts to enum type.
18903         * config/s390/s390.c (s390_tune_flags): Change type to int.
18904         (s390_arch_flags): Likewise.
18905         (s390_handle_arch_option): Change flags field of struct pta to int.
18906         * config/s390/s390.h (s390_tune_flags): Update declaration.
18907         (s390_arch_flags): Likewise.
18908         * config/sh/sh.c (prepare_move_operands): Compare
18909         tls_symbolic_operand result with enum constant.
18910         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
18911         (sh_expand_prologue): Add cast to enum type.
18912         (sh_expand_epilogue): Likewise.
18913         (tls_symbolic_operand): Change return type to enum tls_model.
18914         (fpscr_set_from_mem): Add cast to enum type.
18915         (legitimize_pic_address): Compare tls_symbolic_operand result with
18916         enum constant.
18917         (sh_target_reg_class): Change return type to enum reg_class.
18918         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
18919         PROCESSOR_xxx.
18920         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
18921         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
18922         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
18923         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
18924         (delayed_branch, tls_call_delay): Likewise.
18925         (eligible_for_sibcall_delay): Likewise.
18926         (eligible_for_return_delay): Likewise.
18927         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
18928         (spu_expand_builtin_1): Likewise.
18929
18930         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
18931         for all types of conversions.
18932         (output_init_element): Issue -Wc++-compat warning if needed when
18933         initializing a bitfield with enum type.
18934         * c-parser.c (c_parser_expression): Set original_type to
18935         original_type of right hand operand of comma operator.
18936
18937 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18938
18939         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
18940         grammar nits.
18941         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
18942         * doc/cpp.texi (Standard Predefined Macros)
18943         (Implementation-defined behavior): Likewise.
18944         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
18945         * doc/gimple.texi (GIMPLE Exception Handling)
18946         (@code{GIMPLE_ASSIGN}): Likewise.
18947         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
18948         * doc/invoke.texi (Warning Options, Optimize Options)
18949         (AVR Options, Darwin Options): Likewise.
18950         (Optimize Options): Reformulate -fwhole-program description.
18951         * doc/loop.texi (Lambda): Likewise.
18952         * doc/md.texi (Output Template, Define Constraints)
18953         (Standard Names, Insn Splitting): Likewise.
18954         * doc/options.texi (Option properties): Likewise.
18955         * doc/passes.texi (Tree-SSA passes): Likewise.
18956         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
18957         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
18958         (File Names and DBX): Likewise.
18959         * doc/trouble.texi (Incompatibilities): Likewise.
18960
18961 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
18962
18963         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
18964         instruction is correct.
18965
18966 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
18967
18968         Allow non-constant arguments to conversion intrinsics.
18969         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
18970         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
18971         * spu.c (print_operand): Handle 'v' and 'w'.
18972         (exp2_immediate_p, spu_gen_exp2): Define.
18973         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
18974         spu_convtf_1): Update parameter descriptions.
18975         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
18976         * constraints.md ('v', 'w'): New.
18977         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
18978         Remove.
18979         (i2f, I2F): New define_mode_attr.
18980         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
18981         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
18982         fixuns_truncv4sfv4si2):  Update to use mode attribute.
18983         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
18984         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
18985         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
18986         patterns for combine.
18987
18988 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
18989
18990         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
18991         (cprop, hoist, pre, store_motion): New debug counters.
18992         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
18993         is not an RTL pass anymore.
18994         (pass_profiling): Remove extern decl for pass removed in 2005.
18995         (pass_gcse, pass_jump_bypass): Remove.
18996         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
18997         to 0 for clean state.
18998         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
18999         * cse.c (gate_handle_cse_after_global_opts,
19000         rest_of_handle_cse_after_global_opts): New functions.
19001         (pass_cse_after_global_opts): New pass, does local CSE.
19002         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
19003         (TV_CPROP): New timevar.
19004         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
19005         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
19006         (gcse_main, recompute_all_luids): Remove.
19007         (compute_hash_table_work): Call max_reg_num instead of reading
19008         max_gcse_regno.
19009         (cprop_jump): Don't set run_jump_opt_after_gcse.
19010         (constprop_register): Always allow to alter jumps.
19011         (cprop_insn): Likewise.
19012         (do_local_cprop): Likewise.
19013         (local_cprop_pass): Likewise.  Return non-zero if something changed.
19014         (cprop): Remove function, fold interesting bits into one_cprop_pass.
19015         (find_implicit_sets): Add note about missed optimization opportunity.
19016         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
19017         pass_rtl_cprop execute function.
19018         Don't bother tracking the pass number, each pass gets its own dumpfile
19019         now anyway.
19020         Always allow to alter jumpsand bypass jumps.
19021         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
19022         will just find no suitable set.
19023         (pre_edge_insert): Fix dumping, this function is for PRE only.
19024         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
19025         pass_rtl_pre execute function.
19026         (hoist_code): Return non-zero if something changed.  Keep track of
19027         substitutions and insertions for statistics gathering similar to PRE.
19028         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
19029         called from the pass_rtl_hoist execute function.  Show pass statistics.
19030         (compute_store_table): Use max_reg_num directly instead of using the
19031         formerly global max_gcse_regno.
19032         (build_store_vectors): Likewise.
19033         (replace_store_insn): Fix dumping.
19034         (store_motion): Rename to ...
19035         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
19036         pass, called from the pass_rtl_store_motion execute function.  Keep
19037         track of substitutions and insertions for statistics gathering similar
19038         to PRE.
19039         (bypass_jumps): Remove, fold interesting bits into ...
19040         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
19041         from the pass_rtl_cprop execute function.
19042         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
19043         pass_jump_bypass): Remove.
19044         (gate_handle_gcse, rest_of_handle_gcse): Remove.
19045         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
19046         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
19047         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
19048         (gate_rtl_store_motion, execute_rtl_store_motion,
19049         pass_rtl_store_motion): New.
19050         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
19051         make it clear that -fcse-skip-blocks is a no-op for backward compat.
19052         * passes.c (init_optimization_passes): Remove pass_gcse and
19053         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
19054         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
19055         instead of pass_jump_bypass.
19056
19057 2009-04-27  Richard Guenther  <rguenther@suse.de>
19058
19059         PR middle-end/39928
19060         * gimplify.c (gimplify_expr): If we are required to create
19061         a temporary make sure it ends up as register.
19062
19063 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
19064
19065         PR target/39903
19066         * config/i386/i386.c (construct_container): Don't call
19067         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
19068         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
19069
19070 2009-04-27  Michael Matz  <matz@suse.de>
19071
19072         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
19073         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
19074         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
19075         (dump_replaceable_exprs): Take a bitmap.
19076         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
19077         array.
19078         (expand_gimple_basic_block): Likewise.
19079         * tree-ssa-ter.c (struct temp_expr_table_d): Make
19080         replaceable_expressions member a bitmap.
19081         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
19082         (mark_replaceable): Likewise.
19083         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
19084         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
19085
19086 2009-04-27  Richard Guenther  <rguenther@suse.de>
19087
19088         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
19089         (verify_stmts): Dispatch to gimple/type verification code.
19090         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
19091         issue with call argument types.
19092
19093 2009-04-27  Michael Matz  <matz@suse.de>
19094
19095         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
19096         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
19097         to above.
19098
19099 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
19100             Eric Botcazou  <ebotcazou@adacore.com>
19101
19102         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
19103         a label's basic block.
19104         (mark_target_live_regs): Tidy and rework obsolete comments.
19105         Change back DF problem to LIVE.  If a label starts a basic block,
19106         assume that all registers that used to be live then still are.
19107         (init_resource_info): If a label starts a basic block, set its
19108         BLOCK_FOR_INSN accordingly.
19109         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
19110
19111 2009-04-27  Richard Guenther  <rguenther@suse.de>
19112
19113         * tree-flow-inline.h (function_ann): Remove.
19114         (get_function_ann): Likewise.
19115         * tree-dfa.c (create_function_ann): Remove.
19116         * tree-flow.h (struct static_var_ann_d): Remove.
19117         (struct function_ann_d): Likewise.
19118         (union tree_ann_d): Remove fdecl member.
19119         (function_ann_t): Remove.
19120         (function_ann, get_function_ann, create_function_ann): Remove
19121         declarations.
19122
19123 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
19124
19125         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
19126
19127 2009-04-27  Jan Hubicka  <jh@suse.cz>
19128
19129         * ipa-pure-const.c (struct funct_state_d): New fields
19130         state_previously_known, looping_previously_known; remove
19131         state_set_in_source.
19132         (analyze_function): Use new fields.
19133         (propagate): Avoid assumption that state_set_in_source imply
19134         nonlooping.
19135
19136         * tree-ssa-loop-niter.c (finite_loop_p): New function.
19137         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
19138         * cfgloop.h (finite_loop_p): Declare.
19139
19140 2009-04-26  Michael Matz  <matz@suse.de>
19141
19142         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
19143
19144 2009-04-26  Michael Matz  <matz@suse.de>
19145
19146         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
19147         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
19148         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
19149         pass_mark_used_blocks): Remove.
19150         * tree-optimize.c (pass_free_datastructures,
19151         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
19152         * passes.c (init_optimization_passes): Don't call
19153         pass_mark_used_blocks, remove dead code.
19154
19155 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
19156
19157         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
19158         * tree-ssa-live.h (register_ssa_partition): Likewise.
19159
19160 2009-04-26  Michael Matz  <matz@suse.de>
19161
19162         Expand from SSA.
19163         * builtins.c (fold_builtin_next_arg): Handle SSA names.
19164         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
19165         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
19166         SSA names.
19167         (compare_pairs): Swap cost comparison.
19168         (coalesce_ssa_name): Don't use change_partition_var.
19169         * tree-nrv.c (struct nrv_data): Add modified member.
19170         (finalize_nrv_r): Set it.
19171         (tree_nrv): Use it to update statements.
19172         (pass_nrv): Require PROP_ssa.
19173         * tree-mudflap.c (mf_decl_cache_locals,
19174         mf_build_check_statement_for): Use make_rename_temp.
19175         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
19176         * alias.c (find_base_decl): Handle SSA names.
19177         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
19178         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
19179         * rtl.h (set_reg_attrs_for_parm): Declare.
19180         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
19181         to "optimized", remove unused locals at finish.
19182         (execute_free_datastructures): Make global, call
19183         delete_tree_cfg_annotations.
19184         (execute_free_cfg_annotations): Don't call
19185         delete_tree_cfg_annotations.
19186
19187         * ssaexpand.h: New file.
19188         * expr.c (toplevel): Include ssaexpand.h.
19189         (expand_assignment): Handle SSA names the same as register variables.
19190         (expand_expr_real_1): Expand SSA names.
19191         * cfgexpand.c (toplevel): Include ssaexpand.h.
19192         (SA): New global variable.
19193         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
19194         (SSAVAR): New macro.
19195         (set_rtl): New helper function.
19196         (add_stack_var): Deal with SSA names, use set_rtl.
19197         (expand_one_stack_var_at): Likewise.
19198         (expand_one_stack_var): Deal with SSA names.
19199         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
19200         before unique numbers.
19201         (expand_stack_vars): Use set_rtl.
19202         (expand_one_var): Accept SSA names, add asserts for them, feed them
19203         to above subroutines.
19204         (expand_used_vars): Expand all partitions (without default defs),
19205         then only the local decls (ignoring those expanded already).
19206         (expand_gimple_cond): Remove edges when jumpif() expands an
19207         unconditional jump.
19208         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
19209         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
19210         SSA name.
19211         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
19212         members of SA; deal with PARM_DECL partitions here; expand
19213         all PHI nodes, free tree datastructures and SA.  Commit instructions
19214         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
19215         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
19216         info and statements at start, collect garbage at finish.
19217         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
19218         (VAR_ANN_PARTITION) Remove.
19219         (change_partition_var): Don't declare.
19220         (partition_to_var): Always return SSA names.
19221         (var_to_partition): Only accept SSA names.
19222         (register_ssa_partition): Only check argument.
19223         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
19224         member.
19225         (delete_var_map): Don't free it.
19226         (var_union): Only accept SSA names, simplify.
19227         (partition_view_init): Mark only useful SSA names as used.
19228         (partition_view_fini): Only deal with SSA names.
19229         (change_partition_var): Remove.
19230         (dump_var_map): Use ssa_name instead of partition_to_var member.
19231         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
19232         basic blocks.
19233         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
19234         (struct _elim_graph): New member const_dests; nodes member vector of
19235         ints.
19236         (set_location_for_edge): New static helper.
19237         (create_temp): Remove.
19238         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
19239         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
19240         (new_elim_graph): Allocate const_dests member.
19241         (clean_elim_graph): Truncate const_dests member.
19242         (delete_elim_graph): Free const_dests member.
19243         (elim_graph_size): Adapt to new type of nodes member.
19244         (elim_graph_add_node): Likewise.
19245         (eliminate_name): Likewise.
19246         (eliminate_build): Don't take basic block argument, deal only with
19247         partition numbers, not variables.
19248         (get_temp_reg): New static helper.
19249         (elim_create): Use it, deal with RTL temporaries instead of trees.
19250         (eliminate_phi): Adjust all calls to new signature.
19251         (assign_vars, replace_use_variable, replace_def_variable): Remove.
19252         (rewrite_trees): Only do checking.
19253         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
19254         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
19255         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
19256         contains_tree_r, MAX_STMTS_IN_LATCH,
19257         process_single_block_loop_latch, analyze_edges_for_bb,
19258         perform_edge_inserts): Remove.
19259         (expand_phi_nodes): New global function.
19260         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
19261         functions, initialize new parameter, remember partitions having a
19262         default def.
19263         (finish_out_of_ssa): New global function.
19264         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
19265         don't reset in_ssa_p here, don't disable TER when mudflap.
19266         (pass_del_ssa): Remove.
19267         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
19268         partition members.
19269         (execute_free_datastructures): Declare.
19270         * Makefile.in (SSAEXPAND_H): New variable.
19271         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
19272         * basic-block.h (commit_one_edge_insertion): Declare.
19273         * passes.c (init_optimization_passes): Move pass_nrv and
19274         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
19275         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
19276         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
19277         (redirect_branch_edge): Deal with super block when expanding, split
19278         out jump patching itself into ...
19279         (patch_jump_insn): ... here, new static helper.
19280
19281 2009-04-26  Michael Matz  <matz@suse.de>
19282
19283         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
19284         beyond num_ssa_names.
19285         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
19286         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
19287
19288 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
19289
19290         PR inline-asm/39543
19291         * fwprop.c (forward_propagate_asm): New function.
19292         (forward_propagate_and_simplify): Propagate also into __asm, if it
19293         doesn't increase the number of referenced registers.
19294
19295         PR c/39889
19296         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
19297
19298 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
19299
19300         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
19301         note_nonlocal_vla_type for nonlocal VLAs.
19302         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
19303         contains_remapped_vars, remap_vla_decls): New functions.
19304         (convert_nonlocal_reference_stmt): If not optimizing, call
19305         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
19306         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
19307         if it wasn't found in var_map.
19308         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
19309         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
19310         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
19311         declare_vars.
19312         * gimplify.c (nonlocal_vlas): New variable.
19313         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
19314         referenced VLAs.
19315         (gimplify_body): Create and destroy nonlocal_vlas.
19316
19317         * dwarf2out.c (loc_descr_plus_const): New function.
19318         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
19319         mem_loc_descriptor, loc_descriptor_from_tree_1,
19320         descr_info_loc, gen_variable_die): Use it.
19321
19322         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
19323         !TREE_STATIC VAR_DECLs.
19324         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
19325         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
19326         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
19327         DECL_BY_REFERENCE is valid.
19328         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
19329         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
19330         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
19331         Copy DECL_BY_REFERENCE.
19332         (struct nesting_copy_body_data): New type.
19333         (nesting_copy_decl): New function.
19334         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
19335         if they have variable length.
19336
19337 2009-04-26  Michael Matz  <matz@suse.de>
19338
19339         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
19340         mark new temporaries for renaming.
19341
19342 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
19343
19344         PR c/39581
19345         * c-decl.c (global_bindings_p): Return negative value.
19346         (c_variable_size): New.  Based on variable_size from
19347         stor-layout.c.
19348         (grokdeclarator): Call c_variable_size not variable_size.
19349
19350 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
19351
19352         * config/i386/i386.c (print_operand) ['z']: Fix typo.
19353
19354 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
19355
19356         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
19357         Redefine it to just use mingw/include.
19358         (ASM_SPEC): Rules for -m32 and -m64.
19359         (LINK_SPEC): Use Likewise.
19360         (SPEC_32): New define.
19361         (SPEC_64): Likewise.
19362         (SUB_LINK_SPEC): Likewise.
19363         (MULTILIB_DEFAULTS): New define.
19364         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
19365         Add multilib options.
19366         (MULTILIB_DIRNAMES): Likewise.
19367         (MULTILIB_OSDIRNAMES): Likewise.
19368         (LIBGCC): Likewise.
19369         (INSTALL_LIBGCC): Likewise.
19370
19371 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
19372
19373         PR c/39556
19374         * c-tree.h (enum c_inline_static_type): New.
19375         (record_inline_static): Declare.
19376         * c-decl.c (struct c_inline_static, c_inline_statics,
19377         record_inline_static, check_inline_statics): New.
19378         (pop_file_scope): Call check_inline_statics.
19379         (start_decl): Call record_inline_static instead of pedwarning
19380         directly for static in inline function.
19381         * c-typeck.c (build_external_ref): Call record_inline_static
19382         instead of pedwarning directly for static referenced in inline
19383         function.
19384
19385 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
19386
19387         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
19388         not new but only being rescanned.
19389         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
19390         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
19391         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
19392         record_set_info, compute_set, grealloc): Remove.
19393         (recompute_all_luids): New function.
19394         (gcse_main): Don't compute sets, and don't do related memory
19395         allocations/free-ing.  If something changed before the end of the
19396         pass, update LUIDs using recompute_all_luids.
19397         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
19398         (free_gcse_mem): Don't free it either.
19399         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
19400         Use the df insn LUIDs.
19401         (load_killed_in_block): Likewise.
19402         (compute_hash_table_work): Don't compute reg_set_in_block.
19403         (compute_transp): Use DF_REG_DEF_CHAINs.
19404         (local_cprop_pass): Don't use compute_sets and related functions.
19405         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
19406         Use get_max_uid() instead of max_cuid.
19407         (insert_insn_end_basic_block, pre_insert_copy_insn,
19408         update_ld_motion_stores): Don't try to
19409         keep reg_set tables up to date.
19410         (pre_insert_copies): Use df insn LUIDs.
19411         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
19412         (reg_set_info): Don't use extra bitmap argument.
19413         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
19414         information to compute regs_set_in_block.
19415         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
19416         (bypass_jumps): Don't use compute_sets and friends.
19417
19418 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19419
19420         PR testsuite/39710
19421         * opts.c (undocumented_msg): Do not leave blank even with
19422         ENABLE_CHECKING.
19423
19424 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
19425
19426         * c-decl.c (build_enumerator): Allow values folding to integer
19427         constants but not integer constant expressions with a pedwarn if
19428         pedantic.
19429
19430 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
19431
19432         PR c/39582
19433         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
19434         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
19435         type is an integer constant.
19436
19437 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
19438
19439         PR target/39897
19440         * config/i386/i386.c (print_operand) ['z']: Revert handling of
19441         HImode operands.
19442
19443 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
19444
19445         PR c/39564
19446         * c-decl.c (grokdeclarator): Diagnose declarations of functions
19447         with variably modified return type and no storage class
19448         specifiers, except for the case of nested functions.  Distinguish
19449         extern declarations of functions with variably modified return
19450         types from those of objects with variably modified types.
19451
19452 2009-04-25  Jan Hubicka  <jh@suse.cz>
19453
19454         * tree.c (list_equal_p): New function.
19455         * tree.h (list_equal_p): Declare.
19456         * coretypes.h (edge_def, edge, const_edge, basic_block_def
19457         basic_block_def, basic_block, const_basic_block): New.
19458         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
19459         (redirect_eh_edge): New function.
19460         (make_eh_edge_update_phi): EH edges are not abnormal.
19461         * except.c: Include tree-flow.h.
19462         (list_match): New function.
19463         (eh_region_replaceable_by_p): New function.
19464         (replace_region): New function.
19465         (hash_type_list): New function.
19466         (hash_eh_region): New function.
19467         (eh_regions_equal_p): New function.
19468         (merge_peers): New function.
19469         (remove_unreachable_regions): Verify EH tree when checking;
19470         merge peers.
19471         (copy_eh_region_1): New function.
19472         (copy_eh_region): New function.
19473         (push_reachable_handler): New function.
19474         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
19475         regions without label but with live RESX.
19476         * except.h (redirect_eh_edge_to_label): New.
19477         * tree-flow.h (redirect_eh_edge): New.
19478         * coretypes.h (edge_def, edge, const_edge, basic_block_def
19479         basic_block_def, basic_block, const_basic_block): Remove.
19480         * Makefile.in (except.o): Add dependency on tree-flow.h
19481         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
19482         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
19483         Remove.
19484
19485 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
19486
19487         PR bootstrap/39645
19488         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
19489         on the destination of memcpy.
19490
19491 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
19492
19493         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
19494         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
19495         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
19496
19497 2009-04-25  Jan Hubicka  <jh@suse.cz>
19498
19499         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
19500         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
19501         to be reached by different label than left.
19502         (update_eh_edges): Update comment; remove edge_to_remove if possible
19503         and return true if suceeded.
19504         (cleanup_empty_eh): Accept sharing map; handle shared regions.
19505         (cleanup_eh): Compute sharing map.
19506         * except.c (remove_eh_handler_and_replace): Add argument if we should
19507         update regions.
19508         (remove_unreachable_regions): Update for label sharing.
19509         (label_to_region_map): Likewise.
19510         (get_next_region_sharing_label): New function.
19511         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
19512         prev_try pointers.
19513         (remove_eh_handler): Update.
19514         (remove_eh_region_and_replace_by_outer_of): New function.
19515         * except.h (struct eh_region): Add next_region_sharing_label.
19516         (remove_eh_region_and_replace_by_outer_of,
19517         get_next_region_sharing_label): Declare.
19518         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
19519
19520 2009-04-25  Jan Hubicka  <jh@suse.cz>
19521
19522         * tree-cfg.c (split_critical_edges): Split also edges where we can't
19523         insert code even if they are not critical.
19524
19525 2009-04-25  Jan Hubicka  <jh@suse.cz>
19526
19527         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
19528         (gimple_can_remove_branch_p): EH edges won't remove branch by
19529         redirection.
19530         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
19531         updating of non-abnormal EH edges.
19532         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
19533         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
19534         (split_critical_edges): Split also edges where emitting code on them
19535         will lead to splitting later.
19536
19537 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
19538             H.J. Lu  <hongjiu.lu@intel.com>
19539
19540         PR target/39590
19541         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
19542         the configured assembler supports fildq and fistpq mnemonics.
19543         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
19544         * configure: Regenerated.
19545         * config.in: Ditto.
19546
19547         * config/i386/i386.c (print_operand): Handle 'Z'.
19548         ['z']: Remove handling of special fild/fist suffixes.
19549         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
19550         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
19551         suffix of fild insn.
19552         (*floatsi<mode>2_vector_mixed): Ditto.
19553         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
19554         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
19555         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
19556         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
19557         * config/i386/gas.h (GAS_MNEMONICS): Remove.
19558
19559 2009-04-25  Ben Elliston  <bje@au.ibm.com>
19560
19561         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
19562         the source of a set operation.
19563
19564 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
19565
19566         * target.h (struct gcc_target): Add case_values_threshold field.
19567         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
19568         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
19569         * targhooks.c (default_case_values_threshold): New function.
19570         * targhooks.h (default_case_values_threshold): Declare function.
19571         * stmt.c (expand_case): Use case_values_threshold target hook.
19572         * expr.h (case_values_threshold): Remove declartation.
19573         * expr.c (case_values_threshold): Remove function.
19574         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
19575
19576         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
19577         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
19578         (avr_case_values_threshold): Declare as static.
19579         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
19580
19581         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
19582         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
19583         (mn10300_case_values_threshold): New function.
19584
19585 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
19586
19587         * ira.c (setup_cover_and_important_classes): Add enum cast.
19588
19589 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
19590
19591         * genpreds.c (write_enum_constraint_num): Output definition of
19592         CONSTRAINT_NUM_DEFINED_P macro.
19593         * ira.c (setup_cover_and_important_classes): Use
19594         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
19595
19596 2009-04-24  DJ Delorie  <dj@redhat.com>
19597
19598         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
19599         __SH2A_SINGLE_ONLY__ also.
19600
19601 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
19602
19603         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
19604         (movdf_internal): Ditto.
19605         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
19606         SFmode and DFmode constants.
19607         (ia64_print_operand): Add 'G' format for printing
19608         floating point constants.
19609
19610 2009-04-24  Richard Guenther  <rguenther@suse.de>
19611
19612         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
19613         from unsigned additions.
19614
19615 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
19616
19617         * c-typeck.c (set_init_index): Allow array designators that are
19618         not integer constant expressions with a pedwarn if pedantic.
19619
19620 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
19621
19622         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
19623         zero if no overlap in nonzero bits between the operands.
19624
19625 2009-04-24  Ian Lance Taylor  <iant@google.com>
19626
19627         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
19628         (record_dead_and_set_regs): Likewise.
19629         * df.h (struct df_mw_hardreg): Change flags field to int.
19630         (struct df_base_ref): Likewise.
19631         (struct df): Change changeable_flags field to int.
19632         * df-scan.c (df_defs_record): Change clobber_flags to int.
19633         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
19634         constants rather than #define macros.
19635         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
19636         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
19637         (enum dwarf_calling_convention): Likewise.
19638         (enum dwarf_line_number_x_ops): Likewise.
19639         (enum dwarf_call_frame_info): Likewise.
19640         (enum dwarf_source_language): Likewise.
19641         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
19642         (add_calling_convention_attribute): Likewise.
19643         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
19644         (combine_comparisons): Change compcode to int.  Add cast to enum type.
19645         * genrecog.c (maybe_both_true_2): Change c to int.
19646         (write_switch): Likewise.  Add cast to enum type.
19647         * gimplify.c (gimplify_omp_for): Handle return values from
19648         gimplify_expr using MIN rather than bitwise or.
19649         (gimplify_expr): Add cast to enum type.
19650         * ipa-prop.c (update_jump_functions_after_inlining): Change
19651         IPA_BOTTOM to IPA_JF_UNKNOWN.
19652         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
19653         Add casts to enum type.
19654         (setup_cover_and_important_classes): Change cl to int.  Add casts
19655         to enum type.
19656         (setup_class_translate): Change cl and mode to int.
19657         (ira_init_once): Change mode to int.
19658         (free_register_move_costs): Likewise.
19659         (setup_prohibited_mode_move_regs): Add casts to enum type.
19660         * langhooks.c (add_builtin_function_common): Rework assertion that
19661         value fits bitfield.
19662         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
19663         * omega.c (omega_do_elimination): Avoid math on enum types.
19664         * optabs.c (expand_vec_shift_expr): Remove casts to int.
19665         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
19666         int local to handle integral_argment value.
19667         * regmove.c (try_auto_increment): Change PUT_MODE to
19668         PUT_REG_NOTE_KIND.
19669         * reload.c (push_secondary_reload): Add casts to enum type.
19670         (secondary_reload_class, find_valid_class): Likewise.
19671         * reload1.c (emit_input_reload_insns): Likewise.
19672         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
19673         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
19674         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
19675         constant.
19676         * tree.c (build_common_builtin_nodes): Add casts to enum type.
19677         * tree-complex.c (complex_lattice_t): Typedef to int rather than
19678         enum type.
19679         (expand_complex_libcall): Add casts to enum type.
19680         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
19681         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
19682         with ERROR_MARK, not NUM_TREE_CODES.
19683         (vect_create_epilog_for_reduction): Likewise.
19684         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
19685         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
19686         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
19687         enum machine_mode.
19688         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
19689         vect_unused_in_loop.  Change 0 to loop_vect.
19690         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
19691         * var-tracking.c (get_init_value): Change return type to enum
19692         var_init_status.
19693         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
19694         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
19695         arm_fp_model.
19696         (arm_override_options): Add casts to enum type.
19697         (arm_emit_tls_decoration): Likewise.
19698         * config/i386/i386.c (ix86_function_specific_restore): Add casts
19699         to enum type.
19700         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
19701         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
19702         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
19703         enum type.
19704         * config/s390/s390.c (code_for_builtin_64): Change to array of
19705         enum insn_code.
19706         (code_for_builtin_31): Likewise.
19707         (s390_expand_builtin): Change code_for_builtin to enum insn_code
19708         const *.
19709         * config/sparc/sparc.c (sparc_override_options): Change value
19710         field in struct code_model to enum cmodel.  In initializer change
19711         0 to NULL and add cast to enum type.
19712
19713         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
19714         Change all callers.  Issue a -Wc++-compat warning using
19715         lhs_origtype if necessary.
19716         (convert_for_assignment): Issue -Wc++-compat warnings about
19717         invalid conversions to enum type on assignment.
19718         * c-common.h (build_modify_expr): Update declaration.
19719
19720 2009-04-24  Nick Clifton  <nickc@redhat.com>
19721
19722         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
19723         (function_arg_advance): Likewise.
19724         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
19725         5th alternative.
19726
19727 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
19728
19729         * config/s390/constraints.md ('I', 'J'): Fix condition.
19730
19731 2009-04-24  Diego Novillo  <dnovillo@google.com>
19732
19733         * gengtype-parse.c (parse_error): Add newline after message.
19734
19735 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
19736
19737         * config/i386/sse.md (avxmodesuffixs): Removed.
19738         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
19739         (*avx_pinsr<ssevecsize>): This.
19740
19741 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
19742
19743         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
19744         follow chains of regs with a single definition, and allow expressions
19745         that are function_invariant_p.
19746         (simple_rhs_p): Allow expressions that are function_invariant_p.
19747
19748 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
19749
19750         PR middle-end/39867
19751         * fold-const.c (fold_cond_expr_with_comparison): When folding
19752         > and >= to MAX, make sure the MAX uses the same type as the
19753         comparison's operands.
19754
19755 2009-04-24  Nick Clifton  <nickc@redhat.com>
19756
19757         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
19758         addressing for DImode accesses.
19759         (frv_print_operand_address): Handle PLUS case.
19760         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
19761
19762 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
19763
19764         PR rtl-optimization/39794
19765         * alias.c (canon_true_dependence): Add x_addr argument.
19766         * rtl.h (canon_true_dependence): Adjust prototype.
19767         * cse.c (check_dependence): Adjust canon_true_dependence callers.
19768         * cselib.c (cselib_invalidate_mem): Likewise.
19769         * gcse.c (compute_transp): Likewise.
19770         * dse.c (scan_reads_nospill): Likewise.
19771         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
19772         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
19773         canon_base_addr of the group, plus optional offset.
19774         (struct group_info): Rename canon_base_mem to
19775         canon_base_addr.
19776         (get_group_info): Set canon_base_addr to canon_rtx of base, not
19777         canon_rtx of base_mem.
19778
19779 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
19780
19781         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
19782         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
19783
19784 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19785
19786         * config/spu/spu-builtins.h: Delete file.
19787
19788         * config/spu/spu.h (enum spu_builtin_type): Move here from
19789         spu-builtins.h.
19790         (struct spu_builtin_description): Likewise.  Add GTY marker.
19791         Do not use enum spu_function_code or enum insn_code.
19792         (spu_builtins): Add extern declaration.
19793
19794         * config/spu/spu.c: Do not include "spu-builtins.h".
19795         (enum spu_function_code, enum spu_builtin_type_index,
19796         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
19797         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
19798         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
19799         unsigned_V2DI_type_node): Move here from spu-builtins.h.
19800         (spu_builtin_types): Make static.  Add GTY marker.
19801         (spu_builtins): Add extern declaration with GTY marker.
19802         Include "gt-spu.h".
19803
19804         * config/spu/spu-c.c: Do not include "spu-builtins.h".
19805         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
19806         Check programmatically whether all parameters are scalar.
19807
19808         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
19809
19810 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
19811
19812         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
19813         assignment from the constructor either if the target is volatile.
19814
19815 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
19816
19817         * config/arm/arm.md (insv): Do not share operands[0].
19818
19819 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
19820
19821         * config/vxlib-tls.c (active_tls_threads): Delete.
19822         (delete_hook_installed): New.
19823         (tls_delete_hook): Don't delete the delete hook.
19824         (tls_destructor): Delete it here.
19825         (__gthread_set_specific): Adjust installing the delete hook.
19826         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
19827         __gthread_leave_tsd_dtor_context.
19828
19829 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
19830
19831         * c-format.c (gcc_tdiag_char_table): Add support for %E.
19832
19833 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
19834
19835         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
19836         enum type.
19837         (alpha_rtx_costs): Ditto.
19838         (emit_unlikely_jump): Use add_reg_note.
19839         (emit_frame_store_1): Ditto.
19840         (alpha_expand_prologue): Ditto.
19841         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
19842         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
19843
19844 2009-04-23  Nick Clifton  <nickc@redhat.com>
19845
19846         * config/v850/v850.md (epilogue): Remove suppressed code.
19847         (return): Rename to return_simple and remove test of frame size.
19848         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
19849         to gen_return_simple.
19850
19851 2009-04-22  Jing Yu  <jingyu@google.com>
19852
19853         PR testsuite/39781
19854         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
19855
19856 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19857
19858         PR C/31499
19859         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
19860         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
19861         value is a VECTOR_CST, the element type is the element type of the
19862         vector.
19863
19864 2009-04-22  DJ Delorie  <dj@redhat.com>
19865
19866         * config/m32c/m32c.h: Update GTY annotations to new syntax.
19867
19868 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
19869
19870         * alias.c (find_base_term): Move around LO_SUM case, so that
19871         CONST falls through into PLUS/MINUS handling.
19872
19873         PR c/39855
19874         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
19875         into 0, use omit_one_operand.
19876
19877 2009-04-23  Ben Elliston  <bje@au.ibm.com>
19878
19879         * config/rs6000/linux-unwind.h (get_regs): Remove type
19880         puns. Change the type of `pc' to an array of unsigned ints and
19881         update all users.  Constify frame24.
19882
19883 2009-04-22  DJ Delorie  <dj@redhat.com>
19884
19885         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
19886         declarations before code.
19887         (current_function_special_page_vector): Likewise.
19888         (m32c_expand_insv): Silence a warning.
19889
19890 2009-04-21  Taras Glek  <tglek@mozilla.com>
19891
19892         * alias.c: Update GTY annotations to new syntax.
19893         * basic-block.h: Likewise.
19894         * bitmap.h: Likewise.
19895         * c-common.h: Likewise.
19896         * c-decl.c: Likewise.
19897         * c-parser.c: Likewise.
19898         * c-pragma.c: Likewise.
19899         * c-tree.h: Likewise.
19900         * cfgloop.h: Likewise.
19901         * cgraph.h: Likewise.
19902         * config/alpha/alpha.c: Likewise.
19903         * config/arm/arm.h: Likewise.
19904         * config/avr/avr.h: Likewise.
19905         * config/bfin/bfin.c: Likewise.
19906         * config/cris/cris.c: Likewise.
19907         * config/darwin.c: Likewise.
19908         * config/frv/frv.c: Likewise.
19909         * config/i386/i386.c: Likewise.
19910         * config/i386/i386.h: Likewise.
19911         * config/i386/winnt.c: Likewise.
19912         * config/ia64/ia64.h: Likewise.
19913         * config/iq2000/iq2000.c: Likewise.
19914         * config/mips/mips.c: Likewise.
19915         * config/mmix/mmix.h: Likewise.
19916         * config/pa/pa.c: Likewise.
19917         * config/pa/pa.h: Likewise.
19918         * config/rs6000/rs6000.c: Likewise.
19919         * config/s390/s390.c: Likewise.
19920         * config/sparc/sparc.c: Likewise.
19921         * config/xtensa/xtensa.c: Likewise.
19922         * cselib.h: Likewise.
19923         * dbxout.c: Likewise.
19924         * dwarf2out.c: Likewise.
19925         * except.c: Likewise.
19926         * except.h: Likewise.
19927         * fixed-value.h: Likewise.
19928         * function.c: Likewise.
19929         * function.h: Likewise.
19930         * gimple.h: Likewise.
19931         * integrate.c: Likewise.
19932         * optabs.c: Likewise.
19933         * output.h: Likewise.
19934         * real.h: Likewise.
19935         * rtl.h: Likewise.
19936         * stringpool.c: Likewise.
19937         * tree-data-ref.c: Likewise.
19938         * tree-flow.h: Likewise.
19939         * tree-scalar-evolution.c: Likewise.
19940         * tree-ssa-address.c: Likewise.
19941         * tree-ssa-alias.h: Likewise.
19942         * tree-ssa-operands.h: Likewise.
19943         * tree.c: Likewise.
19944         * tree.h: Likewise.
19945         * varasm.c: Likewise.
19946         * varray.h: Likewise.
19947         * vec.h: Likewise.
19948         * coretypes.h: Do not define GTY macro if it is already defined.
19949         * doc/gty.texi: Update GTY documentation to new syntax.
19950         * gengtype-lex.l: Enforce attribute-like syntax for GTY
19951         annotations on structs.
19952         * gengtype-parse.c: Likewise.
19953
19954 2009-04-22  Mark Heffernan  <meheff@google.com>
19955
19956         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
19957
19958 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
19959
19960         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
19961         where appropriate.
19962
19963 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
19964
19965         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
19966         the same as a PLUS without a shift.  Increase the cost of a
19967         CONST_INT in MULT.
19968
19969 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19970
19971         * Makefile.in: Update dependencies.
19972         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
19973         * errors.h: Remove bogus comment about compatibility.
19974         (warning): Update declaration.
19975         * genautomata.c: Update all calls to warning.
19976         * gimple.c: Do not include errors.h. Include toplev.h.
19977         * tree-ssa-structalias.c: Do not include errors.h.
19978         * omega.c: Likewise.
19979         * tree-ssa-reassoc.c: Likewise.
19980         * config/spu/spu-c.c: Likewise.
19981         * config/spu/t-spu-elf: Update dependencies.
19982
19983 2009-04-22  Richard Guenther  <rguenther@suse.de>
19984
19985         PR tree-optimization/39824
19986         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
19987         make sure the types are compatible.
19988
19989 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19990
19991         PR c++/14875
19992         * c-common.c (c_parse_error): Take a token_flags parameter.
19993         Use token_type for the token type instead.
19994         Pass token_flags to cpp_type2name.
19995         * c-common.h (c_parse_error): Update declaration.
19996         * c-parser.c (c_parser_error): Pass 0 as token flags.
19997
19998 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
19999
20000         PR rtl-optimization/39580
20001         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
20002
20003 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20004
20005         * function.c (expand_function_end): Do not emit a jump to the "naked"
20006         return label for fall-through returns.
20007         * except.c (sjlj_emit_function_exit): Always place the call to the
20008         unregister function at the location installed by expand_function_end.
20009
20010 2009-04-22  Richard Guenther  <rguenther@suse.de>
20011
20012         PR tree-optimization/39845
20013         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
20014         (gen_inbound_check): Likewise.
20015
20016 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
20017
20018         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
20019         padding for PPC.
20020         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
20021         * config/vxlib.c (__gthread_once): Add race guard for PPC.
20022
20023 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
20024
20025         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
20026         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
20027         shift counts to avoid out-of-bounds array accesses.
20028
20029 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
20030
20031         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
20032         (Pmode): Move above.
20033
20034 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
20035
20036         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
20037         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
20038         GET_CODE macro.  Use IN_RANGE macro where appropriate.
20039         * config/alpha/alpha.h: Ditto.
20040         * config/alpha/alpha.md: Ditto.
20041         * config/alpha/constraints.md: Ditto.
20042         * config/alpha/predicates.md: Ditto.
20043
20044 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
20045
20046         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
20047         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20048         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20049         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20050         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20051         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20052         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20053         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20054         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20055         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20056         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20057         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20058         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20059         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20060         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20061         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20062         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20063         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20064         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20065         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20066         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20067         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20068         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20069         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20070         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20071         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20072         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20073
20074 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20075
20076         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
20077         references from comments.
20078         * cfgbuild.c: (count_basic_blocks): Delete.
20079         (find_basic_blocks_1): Delete.
20080         (find_basic_blocks): Delete.
20081         * except.c (finish_eh_generation): Make static.  Move comment from
20082         except.h here.  Remove find_basic_blocks references from comments.
20083         * except.h (finish_eh_generation): Delete.
20084         * basic-block.h (find_basic_blocks): Delete.
20085         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
20086
20087 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
20088
20089         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
20090         (sdbout_parms):  Likewise.
20091
20092 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
20093
20094         * config/sh/sh.c (prepare_cbranch_operands): Use
20095         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
20096         (expand_cbranchdi4): Likewise.
20097         (from_compare): Add cast to enum type.
20098         (expand_cbranchsi4): Use add_reg_note.
20099         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
20100         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
20101         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
20102         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20103         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
20104         instead of CODE_FOR_nothing.
20105         (cbranchdi4): Likewise.  Fix the order of arguments for
20106         gen_rtx_fmt_ee.
20107         (push_fpscr): Use add_reg_note.
20108         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
20109         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
20110
20111 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
20112
20113         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
20114         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
20115         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
20116         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
20117         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
20118         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
20119         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
20120         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
20121         config/alpha/x-vms, config/arc/t-arc,
20122         config/arm/README-interworking, config/arm/arm-c.c,
20123         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
20124         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
20125         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
20126         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
20127         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
20128         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
20129         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
20130         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
20131         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
20132         config/cris/t-elfmulti, config/crx/t-crx,
20133         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
20134         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
20135         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
20136         config/h8300/t-h8300, config/i386/athlon.md,
20137         config/i386/darwin-libgcc.10.4.ver,
20138         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
20139         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
20140         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
20141         config/i386/t-linux64, config/i386/t-nwld,
20142         config/i386/t-rtems-i386, config/i386/t-sol2-10,
20143         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
20144         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
20145         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
20146         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
20147         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
20148         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
20149         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
20150         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
20151         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
20152         config/m68k/t-uclinux, config/mcore/t-mcore,
20153         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
20154         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
20155         config/mips/crtn.asm, config/mips/irix-crti.asm,
20156         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
20157         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
20158         config/mips/mips-fixed.md, config/mips/sb1.md,
20159         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
20160         config/mips/t-iris6, config/mips/t-isa3264,
20161         config/mips/t-libgcc-mips16, config/mips/t-linux64,
20162         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
20163         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
20164         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
20165         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
20166         config/mn10300/t-linux, config/mn10300/t-mn10300,
20167         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
20168         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
20169         config/picochip/libgccExtras/clzsi2.asm,
20170         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
20171         config/rs6000/darwin-libgcc.10.4.ver,
20172         config/rs6000/darwin-libgcc.10.5.ver,
20173         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
20174         config/rs6000/t-aix43, config/rs6000/t-aix52,
20175         config/rs6000/t-darwin, config/rs6000/t-fprules,
20176         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
20177         config/rs6000/t-lynx, config/rs6000/t-netbsd,
20178         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
20179         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
20180         config/rs6000/t-rtems, config/rs6000/t-spe,
20181         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
20182         config/score/t-score-elf, config/sh/divcost-analysis,
20183         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
20184         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
20185         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
20186         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
20187         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
20188         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
20189         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
20190         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
20191         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
20192         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
20193         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
20194         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
20195         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
20196         limitx.h, version.c, xcoff.h: Add copyright and license notices.
20197         * config/h8300/genmova.sh: Include copyright and license notices
20198         in generated output.
20199         * config/h8300/mova.md: Regenerate.
20200         * doc/install.texi2html: Include word "Copyright" in copyright
20201         notice and use name "Free Software Foundation, Inc.".
20202         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
20203         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
20204         ChangeLog-2007, ChangeLog-2008: Correct dates.
20205
20206 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
20207
20208         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
20209         NE_EXPR operations as well.
20210         * c-parser.c (c_parser_condition): Do not set location information on
20211         the condition.
20212         (c_parser_conditional_expression): Likewise.
20213         (c_parser_binary_expression): Set location information on operators.
20214         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
20215         TRUTH_NOT_EXPR has been folded.
20216         * fold-const.c (fold_truth_not_expr): Copy location information from
20217         the incoming expression to the outgoing one.
20218         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
20219         recursive calls on the LHS of the operator but pass that of the
20220         operator to recursive calls on the RHS of the operator.  Set it
20221         on the COND_EXPR.
20222         (shortcut_cond_expr): Set the locus of the operator on the second
20223         COND_EXPR and that of the expression on the first in degenerate cases.
20224         Pass the locus of the expression to calls to shortcut_cond_r.
20225         Set the locus of the 'then' block on the associated jump, if any.
20226         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
20227         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
20228         expression to call to gimplify_boolean_expr.
20229
20230 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
20231
20232         * config.gcc: Add additional configuration for
20233         i686-w64-mingw* and x86_64-w64-mingw* triplet.
20234         * config/i386/mingw-w64.h: New mingw-w64 specific header.
20235         (CPP_SPEC): Redefine for allowing -municode option.
20236         (STARTFILE_SPEC): Likewise.
20237         * config/i386/t-mingw-w64: New.
20238         * config/i386/mingw-w64.opt: New.
20239         (municode): Add new target option.
20240         * doc/invoke.texi (municode): Add documentation for new option.
20241
20242 2009-04-21  Ian Lance Taylor  <iant@google.com>
20243
20244         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20245         Correct test for number of arguments.
20246         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
20247
20248 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
20249
20250         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
20251         argument of emit_library_call.
20252
20253 2009-04-21  Richard Guenther  <rguenther@suse.de>
20254
20255         PR middle-end/39829
20256         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
20257         inside VIEW_CONVERT_EXPRs.
20258
20259 2009-04-21  Martin Jambor  <mjambor@suse.cz>
20260
20261         * tree-switch-conversion.c (build_constructors): Split a long line.
20262         (constructor_contains_same_values_p): New function.
20263         (build_one_array): Create assigns of constants if possible, do not
20264         call mark_sym_for_renaming, call update_stmt.
20265         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
20266         make_rename_temp.  Do not call mark_symbols_for_renaming, call
20267         update_stmt.
20268         (gen_def_assigns): Do not call mark_symbols_for_renaming or
20269         find_new_referenced_vars, call update_stmt.
20270         (gen_inbound_check): Use create_tmp_var and create ssa names manually
20271         instead of calling make_rename_temp.  Do not call
20272         find_new_referenced_vars or mark_symbols_for_renaming, call
20273         update_stmt.
20274
20275 2009-04-21  Richard Guenther  <rguenther@suse.de>
20276
20277         PR tree-optimization/39827
20278         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
20279         (tree_ssa_phiprop): Pass the correct array size.
20280
20281 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
20282
20283         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
20284
20285 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20286
20287         PR 16202
20288         * c-typeck.c (lvalue_p): Move declaration ...
20289         * c-common.h (lvalue_p): ... to here.
20290         * c-common.c (candidate_equal_p): New.
20291         (add_tlist): Use it.
20292         (merge_tlist): Use it.
20293         (warn_for_collisions_1): Likewise.
20294         (warning_candidate_p): Accept more candidates.
20295         (verify_tree): A warning candidate can be an expression. Use
20296         candidate_equal_p.
20297
20298 2009-04-21  Ben Elliston  <bje@au.ibm.com>
20299
20300         PR target/5267
20301         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
20302         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
20303         options.  Remove -mcall-solaris documentation.
20304
20305 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20306
20307         PR c++/13358
20308         * doc/invoke.texi (-Wlong-long): Update description.
20309         * c-lex (interpret_integer): Only warn if there was no previous
20310         overflow and -Wlong-long is enabled.
20311         * c-decl.c (declspecs_add_type): Drop redundant flags.
20312         * c.opt (Wlong-long): Init to -1.
20313         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
20314         and front-end warn_long_long. Wlong-long only depends on other
20315         flags if it is uninitialized.
20316         * c-parser.c (disable_extension_diagnostics): warn_long_long is
20317         the same for CPP and FE.
20318         (restore_extension_diagnostics): Likewise.
20319
20320 2009-04-20  Ian Lance Taylor  <iant@google.com>
20321
20322         Fix enum conversions which are invalid in C++:
20323         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
20324         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
20325         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
20326         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
20327         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
20328         (dbxout_parms): Likewise.
20329         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
20330         (df_clear_flags): Likewise.
20331         * df-problems.c (df_rd_bb_local_compute_process_def): Change
20332         top_flag parameter to int.
20333         (df_chain_create_bb_process_use): Likewise.
20334         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
20335         Remove cast.
20336         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
20337         (df_ref_create_structure, df_def_record_1): Likewise.
20338         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
20339         (df_notes_rescan): Change 0 to VOIDmode in function call.
20340         (df_get_call_refs, df_insn_refs_collect): Likewise.
20341         (df_bb_regs_collect): Likewise.
20342         (df_entry_block_defs_collect): Likewise.
20343         (df_exit_block_uses_collect): Likewise.
20344         * df.h: Update declarations.
20345         * double-int.c (double_int_divmod): Add cast to enum type.
20346         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
20347         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
20348         (based_loc_descr): Likewise.
20349         (loc_descriptor_from_tree_1): Change first_op and second_op to
20350         enum dwarf_location_atom.  Add cast to enum type.
20351         * expmed.c (init_expmed): Change 0 to SET in function call.
20352         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
20353         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
20354         (do_store_flag): Likewise.
20355         * fixed-value.h (struct fixed_value): Change mode to enum
20356         machine_mode.
20357         * function.c (assign_parms): Change 0 to VOIDmode in function call.
20358         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
20359         function call.
20360         (insert_insn_decl, insert_decl, insert_state): Likewise.
20361         (automata_list_finish): Likewise.
20362         * genrecog.c (process_define_predicate): Add cast to enum type.
20363         * gensupport.c (init_predicate_table): Add cast to enum type.
20364         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
20365         function call.
20366         (gimple_build_call_1, gimple_build_label): Likewise.
20367         (gimple_build_goto, gimple_build_asm_1): Likewise.
20368         (gimple_build_switch_1, gimple_build_cdt): Likewise.
20369         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
20370         (enum fallback): Rename from enum fallback_t.
20371         (fallback_t): Typedef as int.
20372         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
20373         GSI_SAME_STMT in function call.
20374         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
20375         enum type.
20376         (setup_reg_class_relations): Likewise.
20377         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
20378         (setup_prohibited_class_mode_regs): Add cast to enum type.
20379         (setup_prohibited_mode_move_regs): Likewise.
20380         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
20381         (record_address_regs): Change i to enum reg_class.
20382         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
20383         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
20384         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
20385         (GET_MODE_2XWIDER_MODE): Likewise.
20386         (GET_CLASS_NARROWEST_MODE): Likewise.
20387         * omp-low.c (expand_omp_for): Add cast to enum type.
20388         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
20389         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
20390         * postreload.c (reload_cse_simplify_operands): Change rclass local
20391         to enum reg_class.
20392         * predict.c (combine_predictions_for_insn): Change best_predictor
20393         and predictor to enum br_predictor.
20394         (combine_predictions_for_bb): Likewise.
20395         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
20396         use SET_PREDICT_EXPR_OUTCOME.
20397         * real.c (real_arithmetic): Change icode to code in function call.
20398         * reginfo.c (init_move_cost): Add casts to enum type.
20399         (init_reg_sets_1, init_fake_stack_mems): Likewise.
20400         * regmove.c (regclass_compatible_p): Change class0 and class1 to
20401         enum reg_class.
20402         * reload.c (find_valid_class): Add casts to enum type.
20403         (push_reload): Change 0 to NO_REGS in function call.
20404         (find_reloads): Change this_alternative to array of enum
20405         reg_class.  Remove some now-unnecessary casts.
20406         (make_memloc): Change 0 to VOIDmode in function call.
20407         * reload1.c (reload): Change 0 to VOIDmode in function call.
20408         (eliminate_regs_1, elimination_effects): Likewise.
20409         (eliminate_regs_in_insn): Likewise.
20410         (emit_input_reload_insns): Add cast to enum type.
20411         (delete_output_reload): Change 0 to VOIDmode in function call.
20412         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
20413         to enum type in function call.
20414         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
20415         (SET_PREDICT_EXPR_OUTCOME): Define.
20416         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
20417         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
20418         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
20419         (dump_function): Likewise.
20420         * tree-dump.h: Update declarations.
20421         * tree-pass.h: Update declarations.
20422         * varasm.c (assemble_integer): Change mclass to enum mode_class.
20423         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
20424         enum type.
20425         (arm_rtx_costs_1): Correct parenthesization.
20426         (arm_rtx_costs): Add casts to enum type.
20427         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
20428         (vfp_emit_fstmd): Use add_rg_note.
20429         (emit_multi_reg_push, emit_sfm): Likewise.
20430         (thumb_set_frame_pointer): Likewise.
20431         (arm_expand_prologue): Likewise.
20432         (arm_regno_class): Change return type to enum reg_class.
20433         (thumb1_expand_prologue): Use add_reg_note.
20434         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
20435         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
20436         in function call.
20437         * config/arm/gentune.sh: Add cast to enum type.
20438         * config/arm/arm-tune.md: Rebuild.
20439         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
20440         (ix86_split_fp_branch, predict_jump): Likewise.
20441         (ix86_expand_multi_arg_builtin): Change sub_code from enum
20442         insn_code to enum rtx_code.
20443         (ix86_builtin_vectorized_function): Add cast to enum type.
20444         * config/i386/i386.md (truncdfsf2): Change slot to enum
20445         ix86_stack_slot.
20446         (truncxf<mode>2, isinf<mode>2): Likewise.
20447         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
20448         enum type.
20449         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
20450         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
20451         (insert_bundle_state): Change 1 to INSERT in function call.
20452         (ia64_add_bundle_selector_before): Likewise.
20453         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
20454         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
20455         (restore_stack_nonlocal): Likewise.
20456         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
20457         function call.
20458         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
20459         function call.
20460         (mips_rtx_costs): Likewise.
20461         (mips_override_options): Add casts to enum type.
20462         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
20463         in function call.
20464         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
20465         (store_reg, set_reg_plus_d): Likewise.
20466         (hppa_expand_prologue, hppa_profile_hook): Likewise.
20467         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
20468         cast to enum type.
20469         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
20470         function call.
20471         (emit_unlikely_jump): Use add_reg_note.
20472         (rs6000_emit_allocate_stack): Likewise.
20473         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
20474         (output_toc): Change 1 to INSERT in function call.
20475         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
20476         (rs6000_initialize_trampoline): Likewise.
20477         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
20478         function call.
20479         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
20480         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
20481         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
20482         (save_gprs): Use add_reg_note.
20483         (s390_emit_prologue): Likewise.
20484         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20485         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
20486         (sparc_fold_builtin): Add cast to enum type.
20487         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
20488         enum insn_code.
20489         (spu_expand_prologue): Use add_reg_note.
20490         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
20491
20492 2009-04-20  Ian Lance Taylor  <iant@google.com>
20493
20494         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
20495         (c_parser_postfix_expression_after_primary): Get VEC for list of
20496         arguments.  Get original types of arguments.  Call
20497         build_function_call_vec.
20498         (cached_expr_list_1, cached_expr_list_2): New static variables.
20499         (c_parser_expr_list): Change return type to VEC *.  Add
20500         p_orig_types parameter.  Change all callers.
20501         (c_parser_release_expr): New static function.
20502         (c_parser_vec_to_tree_list): New static function.
20503         * c-typeck.c (build_function_call): Rewrite to build a VEC and
20504         call build_function_call_vec.
20505         (build_function_call_vec): New function, based on old
20506         build_function_call.
20507         (convert_arguments): Remove nargs and argarray parameters.  Change
20508         values to a VEC.  Add origtypes parameter.
20509         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
20510         (convert_for_assignment): Add origtype parameter.  Change all
20511         callers.  If warn_cxx_compat, check for conversion to an enum
20512         type when calling a function.
20513         (store_init_value): Add origtype parameter.  Change all callers.
20514         (digest_init): Likewise.
20515         (struct init_node): Add origtype field.
20516         (add_pending_init): Add origtype parameter.  Change all callers.
20517         (output_init_element): Likewise.
20518         (output_pending_init_elements): Pass origtype from init_node to
20519         output_init_element.
20520         (process_init_element): Pass origtype from c_expr to
20521         output_init_element.
20522         (c_finish_return): Add origtype parameter.  Change all callers.
20523         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
20524         caller.
20525         (sync_resolve_params): Likewise.
20526         (sync_resolve_return): Change params to first_param.  Change caller.
20527         (resolve_overloaded_builtins): Change params to VEC *.  Change
20528         callers.  Save first parameter around call to build_function_call_vec.
20529         * c-decl.c (finish_decl): Add origtype parameter.  Change all
20530         callers.  Call build_function_call_vec rather than
20531         build_function_call for cleanup.
20532         * c-tree.h: Update declarations.
20533         * c-common.h: Update declarations.
20534         * stub-objc.c (objc_rewrite_function_call): Change parameter from
20535         params to first_param.
20536         * target.h (struct gcc_target): Change resolve_overloaded_builtin
20537         params parameter from tree to void *.
20538         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20539         Change arglist parameter to have type void *, and to be a pointer
20540         to a VEC.
20541         * config/rs6000/rs6000-protos.h
20542         (altivec_resolve_overloaded_builtin): Update declaration.
20543         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
20544         fnargs parameter to have type void *, and to be a pointer to a
20545         VEC.  Call build_function_call_vec instead of
20546         build_function_call.
20547         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
20548
20549 2009-04-20  Joey Ye  <joey.ye@intel.com>
20550             Xuepeng Guo  <xuepeng.guo@intel.com>
20551             H.J. Lu  <hongjiu.lu@intel.com>
20552
20553         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
20554
20555         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
20556         (IX86_LEA_PRIORITY): Likewise.
20557         (distance_non_agu_define): New function.
20558         (distance_agu_use): Likewise.
20559         (ix86_lea_for_add_ok): Likewise.
20560         (ix86_dep_by_shift_count): Likewise.
20561
20562         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
20563         should split for LEA.
20564
20565         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
20566         function.
20567         (ix86_dep_by_shift_count): Likewise.
20568
20569 2009-04-20  Richard Guenther  <rguenther@suse.de>
20570
20571         * expr.c (handled_component_p): Move ...
20572         * tree.h (handled_component_p): ... here.
20573         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
20574         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
20575         and REALPART_EXPR to be in one group.
20576
20577 2009-04-20  Richard Guenther  <rguenther@suse.de>
20578
20579         * basic-block.h (get_all_dominated_blocks): Declare.
20580         * dominance.c (get_all_dominated_blocks): New function.
20581         * tree-cfg.c (get_all_dominated_blocks): Remove.
20582         (remove_edge_and_dominated_blocks): Adjust.
20583         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
20584         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
20585         instead of recursing.
20586
20587 2009-04-20  Doug Kwan  <dougkwan@google.com>
20588
20589         * cgraph.h (cgraph_node_ptr): New type for vector functions.
20590         (struct cgraph_node_set_def): New type.
20591         (cgraph_node_set) New type. Also declare vector functions.
20592         (struct cgraph_node_set_element_def): New type.
20593         (cgraph_node_set_element): Ditto.
20594         (cgraph_node_set_iterator): New iterator type.
20595         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
20596         cgraph_node_set_remove, dump_cgraph_node_set,
20597         debug_cgraph_node_set): New prototypes.
20598         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
20599         cgraph_node_set_size): New inlines.
20600         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
20601         including cgraph.h.
20602         (struct ipa_opt_pass): Add struct cgraph_node_set_def
20603         argument to function 'write_summary'.
20604         * ipa.c: Include ggc.h.
20605         (hash_cgraph_node_set_element,
20606         eq_cgraph_node_set_element, cgraph_node_set_new,
20607         cgraph_node_set_add, cgraph_node_set_remove,
20608         cgraph_node_set_find, dump_cgraph_node_set,
20609         debug_cgraph_node_set): New functions.
20610         * Makefile.in (ipa.o): Add dependency on GGC_H.
20611
20612 2009-04-20  Ira Rosen  <irar@il.ibm.com>
20613
20614         PR tree-optimization/39675
20615         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
20616         check of the return code of vect_schedule_slp. Check that
20617         stmt_vec_info still exists for the statement, before checking its
20618         vectorization type.
20619
20620 2009-04-20  Michael Matz  <matz@suse.de>
20621
20622         * Makefile.in (generated_files): Take out $(simple_generated_c).
20623
20624 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
20625
20626         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
20627         (UINTPTR_TYPE):  Likewise.
20628
20629 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
20630
20631         PR c/37481
20632         * c-typeck.c (digest_init): Check for initializing an array with a
20633         string literal.
20634
20635 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
20636
20637         PR c/19771
20638         * c-semantics.c (pop_stmt_list): Propagate
20639         STATEMENT_LIST_HAS_LABEL to parent statement list.
20640
20641 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
20642
20643         * config/mips/mips.h (mips_tune_attr): New macro.
20644         * config/mips/mips.md (cpu): Use it.
20645
20646 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
20647
20648         PR c/38243
20649         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
20650         declaring a tag.
20651
20652 2009-04-19  Diego Novillo  <dnovillo@google.com>
20653
20654         * toplev.c (compile_file): Move call to coverage_finish ...
20655         * cgraphunit.c (ipa_passes): ... here.
20656         Call cgraph_process_new_functions.
20657         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
20658         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
20659
20660 2009-04-19  Jan Hubicka  <jh@suse.cz>
20661
20662         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
20663         cfun.
20664         (dump_cgraph_node): Dump can throw external flag.
20665         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
20666
20667 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20668
20669         PR c/32061
20670         PR c++/36954
20671         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
20672         * common.opt (Wlogical-op): Move from here...
20673         * c.opt (Wlogical-op): ... to here.
20674         * c-typeck.c (parser_build_binary_op): Update call to
20675         warn_logical_operator.
20676         * c-opts.c (c_common_post_options): Enable warn_logical_op with
20677         extra_warnings.
20678         * c-common.c (warn_logical_op): Update.
20679         * c-common.h (warn_logical_op): Update declaration.
20680
20681 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
20682
20683         * tree.c (protected_set_expr_location): Fix formatting.
20684
20685 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
20686
20687         PR c/27676
20688         * c-typeck.c (readonly_warning): new.
20689         (build_unary_op, build_modify_expr): Use readonly_warning for
20690         storing into something readonly but not const-qualified.
20691
20692 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
20693
20694         PR c/22367
20695         * c-typeck.c (build_unary_op): Check for taking address of
20696         expression of type void.
20697
20698 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
20699
20700         PR c/35210
20701         * c-typeck.c (build_function_call): Check for calling a function
20702         with qualified void return types.  Call require_complete_type when
20703         generating a trap.
20704
20705 2009-04-18  Jan Hubicka  <jh@suse.cz>
20706
20707         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
20708         Set nothrow flag.
20709         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
20710         can_throw_external flag.
20711         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
20712         * ipa-pure-const.c (ignore_edge): New function.
20713         (propagate): Compute order for NOTHROW computation; set NOTHROWs
20714         only over can_throw_external edges.
20715         (local_pure_const): Add nothrow flag.
20716         * ipa-utils.c (searchc): Add ignore_edge callback.
20717         (ipa_utils_reduced_inorder): Add ignore_edge callback.
20718         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
20719         (set_nothrow_function_flags): Update cgraph.
20720         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
20721
20722 2009-04-18  Richard Guenther  <rguenther@suse.de>
20723
20724         PR middle-end/39804
20725         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
20726         (fold_stmt): ... this and ...
20727         (fold_stmt_inplace): ... this.
20728         (fold_stmt_1): Fold references in calls and asms.
20729         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
20730
20731 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
20732
20733         * tree-vrp.c (ssa_name_nonzero_p): Remove.
20734         * tree.h: Remove the prototype for ssa_name_nonzero_p.
20735
20736 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
20737
20738         * tree.c (function_args_count): Remove.
20739         * tree.h: Remove the prototype for function_args_count.
20740
20741 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
20742
20743         * tree-iterator.c (expr_only): Remove.
20744         * tree.h: Remove the prototype for expr_only.
20745
20746 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
20747
20748         * reginfo.c (cannot_change_mode_set_regs): Remove.
20749         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
20750
20751 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
20752
20753         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
20754         whether operands 0 and 1 overlaps.
20755
20756 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20757
20758         PR middle-end/36902
20759         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
20760         pointer. Use warning_at instead of warning.
20761         (search_for_addr_array): Likewise.
20762         (check_array_bounds): Likewise.
20763         (check_all_array_refs): Check that the incoming edge is not in the
20764         list of edges to be removed.
20765         (check_all_array_refs): Avoid the temporal pointer.
20766         (vrp_visit_cond_stmt): Fix typo.
20767         (simplify_switch_using_ranges): Handle the case where the switch
20768         index is an integer constant.
20769
20770 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
20771
20772         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
20773
20774 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
20775
20776         * doc/extend.texi, doc/invoke.texi: Fix typos.
20777
20778 2009-04-17  Cary Coutant  <ccoutant@google.com>
20779
20780         * tree-flow-inline.h (get_lineno): Fix inverted test.
20781
20782 2009-04-17  Diego Novillo  <dnovillo@google.com>
20783
20784         * tree-ssa-pre.c (create_expression_by_pieces): Remove
20785         assertion for AVAIL_OUT.
20786
20787 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
20788
20789         PR target/38627
20790         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
20791         * config/sh/linux-atomic.asm: Likewise.
20792
20793 2009-04-17  Diego Novillo  <dnovillo@google.com>
20794
20795         * except.c (debug_eh_tree): New.
20796         (struct eh_region, struct eh_status): Move ...
20797         * except.h: ... here.
20798         (add_type_for_runtime): Declare extern.
20799         (lookup_type_for_runtime): Likewise.
20800         (debug_eh_tree): Declare.
20801         * Makefile.in (GTFILES): List except.h before except.c
20802
20803 2009-04-17  Diego Novillo  <dnovillo@google.com>
20804
20805         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
20806         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
20807         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
20808         (find_vars_r): ... here.
20809         * tree-flow.h (find_referenced_vars_in): Declare.
20810         * tree-ssa-pre.c (create_expression_by_pieces): Assert
20811         that AVAIL_OUT exists for BLOCK.
20812         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
20813         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
20814         (tree-parloops.o): Likewise.
20815
20816 2009-04-17  Simon Baldwin  <simonb@google.com>
20817
20818         * toplev.c (default_tree_printer): Add handling for %E format.
20819
20820 2009-04-17  Diego Novillo  <dnovillo@google.com>
20821
20822         * tree-pretty-print.c (dump_generic_node): Add break after
20823         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
20824         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
20825         FUNCTION_TYPE together.  Call print_struct_decl when printing
20826         structures and TDF_SLIM is not given.
20827         (print_struct_decl): Fix logic for detecting recursion.
20828
20829 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
20830
20831         PR 31567
20832         * gcc.c (create_at_file): New.
20833         (compile_input_file_p): New.
20834         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
20835         * main.c (main): Update call to toplev_main.
20836         * toplev.c (toplev_main): Change signature. Call expandargv.
20837         * toplev.h (toplev_main): Change signature.
20838
20839 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
20840
20841         * dwarf2out.c (field_byte_offset): Use the type size as the field size
20842         if the latter is not constant.
20843
20844 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
20845
20846         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
20847
20848 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
20849
20850         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
20851         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
20852
20853 2009-04-17  Richard Guenther  <rguenther@suse.de>
20854
20855         * tree-ssa-structalias.c (get_constraint_for_component_ref):
20856         Handle component references view-converting an invariant address.
20857
20858 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
20859
20860         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
20861         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
20862         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
20863         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
20864         Use @deftypevr rather than @deftypevar.
20865
20866 2009-04-17  Richard Guenther  <rguenther@suse.de>
20867
20868         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
20869         (get_prop_source_stmt): Likewise.
20870         (can_propagate_from): Likewise.
20871
20872 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
20873
20874         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
20875         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
20876         (--with-multilib-list): Add default value.
20877         * configure: Regenerate.
20878         * Makefile.in (TM_ENDIAN_CONFIG): Define.
20879         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
20880         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
20881         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
20882         Don't add default cpu to multilib list unnecessarily, but do enable
20883         the relevant compiler option..
20884         Add support for --with-multilib-list=<blank> and
20885         --with-multilib-list=!<somelib> to supress unwanted multilibs.
20886         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
20887         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
20888         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
20889         TM_MULTILIB_CONFIG.
20890         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
20891         (MULTILIB_OSDIRNAMES): New variable.
20892         * config/sh/t-1e: Delete file.
20893         * config/sh/t-mlib-sh1: Delete file.
20894         * config/sh/t-mlib-sh2: Delete file.
20895         * config/sh/t-mlib-sh2a: Delete file.
20896         * config/sh/t-mlib-sh2a-nofpu: Delete file.
20897         * config/sh/t-mlib-sh2a-single: Delete file.
20898         * config/sh/t-mlib-sh2a-single-only: Delete file.
20899         * config/sh/t-mlib-sh2e: Delete file.
20900         * config/sh/t-mlib-sh3e: Delete file.
20901         * config/sh/t-mlib-sh4: Delete file.
20902         * config/sh/t-mlib-sh4-nofpu: Delete file.
20903         * config/sh/t-mlib-sh4-single: Delete file.
20904         * config/sh/t-mlib-sh4-single-only: Delete file.
20905         * config/sh/t-mlib-sh4a: Delete file.
20906         * config/sh/t-mlib-sh4a-nofpu: Delete file.
20907         * config/sh/t-mlib-sh4a-single: Delete file.
20908         * config/sh/t-mlib-sh4a-single-only: Delete file.
20909         * config/sh/t-mlib-sh4al: Delete file.
20910         * config/sh/t-mlib-sh5-32media: Delete file.
20911         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
20912         * config/sh/t-mlib-sh5-64media: Delete file.
20913         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
20914         * config/sh/t-mlib-sh5-compact: Delete file.
20915         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
20916         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
20917         * doc/install.texi (Options specification): Add
20918         --with-multilib-list and --with-endian.
20919
20920 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
20921
20922         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
20923         REVISION_c.
20924         (OBJS-common): Add plugin-version.o.
20925         (plugin-version.o): New.
20926         * gcc-plugin.h (plugin_gcc_version): New.
20927         (plugin_default_version_check): New.
20928         (plugin_init_func, plugin_init): Add version argument.
20929         * plugin-version.c: New.
20930         * plugin.c (str_plugin_gcc_version_name): New.
20931         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
20932         pass it to the init function.
20933         (plugin_default_version_check): New.
20934
20935 2009-04-17  Richard Guenther  <rguenther@suse.de>
20936
20937         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
20938         for decl-vs-decl disambiguation.
20939
20940 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
20941
20942         * config/s390/s390.h (s390_tune_attr): New macro definition.
20943         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
20944
20945 2009-04-17  Richard Guenther  <rguenther@suse.de>
20946
20947         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
20948         (fold_stmt_r): Likewise.
20949         (maybe_fold_reference): New function.
20950         (fold_gimple_assign): Handle cases fold_stmt_r did.
20951         (fold_stmt): Do not use fold_stmt_r.
20952         (fold_stmt_inplace): Likewise.
20953
20954 2009-04-17  Richard Guenther  <rguenther@suse.de>
20955
20956         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
20957         (record_equivalences_from_stmt): Remove useless checks and
20958         simplifications.
20959         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
20960         the type is already suitable.
20961
20962 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
20963
20964         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
20965
20966 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
20967
20968         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
20969         (CMPtype): Define as __gcc_CMPtype.
20970
20971 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
20972
20973         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
20974         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
20975
20976 2009-04-17  Richard Guenther  <rguenther@suse.de>
20977
20978         PR tree-optimization/39746
20979         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
20980         special-casing for builtins and static variable use/def.
20981         (call_may_clobber_ref_p_1): Likewise.
20982
20983 2009-04-16  Ian Lance Taylor  <iant@google.com>
20984
20985         * df.h: Include "timevar.h".
20986         (struct df_problem): Change tv_id field to timevar_id_t.
20987         * tree-pass.h: Include "timevar.h".
20988         (struct opt_pass): Change tv_id field to timevar_id_t.
20989         * timevar.h (timevar_id_t): Define TV_NONE.
20990         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
20991         TV_NONE rather than tv_id != 0.
20992         (execute_one_pass): Likewise.
20993         * Makefile.in (DF_H): Add $(TIMEVAR_H).
20994         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
20995         dependencies to $(TREE_PASS_H).
20996         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
20997         to TV_NONE.
20998         (pass_branch_target_load_optimize2): Likewise.
20999         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
21000         (pass_outof_cfg_layout_mode): Likewise.
21001         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
21002         (pass_rebuild_cgraph_edges): Likewise.
21003         (pass_remove_cgraph_callee_edges): Likewise.
21004         * df-core.c (pass_df_initialize_opt): Likewise.
21005         (pass_df_initialize_no_opt): Likewise.
21006         (pass_df_finish): Likewise.
21007         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
21008         * except.c (pass_set_nothrow_function_flags): Likewise.
21009         (pass_convert_to_eh_region_ranges): Likewise.
21010         * final.c (pass_compute_alignments): Likewise.
21011         * function.c (pass_instantiate_virtual_regs): Likewise.
21012         (pass_init_function): Likewise.
21013         (pass_leaf_regs): Likewise.
21014         (pass_match_asm_constraints): Likewise.
21015         * gimple-low.c (pass_lower_cf): Likewise.
21016         (pass_mark_used_blocks): Likewise.
21017         * init-regs.c (pass_initialize_regs): Likewise.
21018         * integrate.c (pass_initial_value_sets): Likewise.
21019         * ira.c (pass_ira): Likewise.
21020         * jump.c (pass_cleanup_barriers): Likewise.
21021         * omp-low.c (pass_expand_omp): Likewise.
21022         (pass_lower_omp): Likewise.
21023         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
21024         * recog.c (pass_split_all_insns): Likewise.
21025         (pass_split_after_reload): Likewise.
21026         (pass_split_before_regstack): Likewise.
21027         (pass_split_before_sched2): Likewise.
21028         (pass_split_for_shorten_branches): Likewise.
21029         * reginfo.c (pass_reginfo_init): Likewise.
21030         (pass_subregs_of_mode_init): Likewise.
21031         (pass_subregs_of_mode_finish): Likewise.
21032         * passes.c (pass_postreload): Likewise.
21033         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
21034         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
21035         (pass_warn_function_return): Likewise.
21036         (pass_warn_function_noreturn): Likewise.
21037         * tree-complex.c (pass_lower_complex): Likewise.
21038         (pass_lower_complex_O0): Likewise.
21039         * tree-if-conv.c (pass_if_conversion): Likewise.
21040         * tree-into-ssa.c (pass_build_ssa): Likewise.
21041         * tree-mudflap.c (pass_mudflap_1): Likewise.
21042         (pass_mudflap_2): Likewise.
21043         * tree-nomudflap.c (pass_mudflap_1): Likewise.
21044         (pass_mudflap_2): Likewise.
21045         * tree-nrv.c (pass_return_slot): Likewise.
21046         * tree-object-size.c (pass_object_sizes): Likewise.
21047         * tree-optimize.c (pass_all_optimizations): Likewise.
21048         (pass_early_local_passes): Likewise.
21049         (pass_all_early_optimizations): Likewise.
21050         (pass_cleanup_cfg): Likewise.
21051         (pass_cleanup_cfg_post_optimizing): Likewise.
21052         (pass_free_datastructures): Likewise.
21053         (pass_free_cfg_annotations): Likewise.
21054         (pass_fixup_cfg): Likewise.
21055         (pass_init_datastructures): Likewise.
21056         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
21057         (pass_late_warn_uninitialized): Likewise.
21058         (pass_update_address_taken): Likewise.
21059         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
21060         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
21061         (pass_cse_sincos): Likewise.
21062         (pass_convert_to_rsqrt): Likewise.
21063         * tree-ssa-structalias.c (pass_build_alias): Likewise.
21064         * tree-stdarg.c (pass_stdarg): Likewise.
21065         * tree-tailcall.c (pass_tail_recursion): Likewise.
21066         (pass_tail_calls): Likewise.
21067         * tree-vect-generic.c (pass_lower_vector): Likewise.
21068         (pass_lower_vector_ssa): Likewise.
21069         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
21070
21071 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
21072
21073         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
21074         XLR entry.
21075         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
21076         Handle -march=xlr.
21077         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
21078         logical and signext.
21079
21080 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
21081
21082         PR target/39767
21083         * config/sh/predicates.md (arith_operand): Check if the operand
21084         of TRUNCATE is a REG.
21085
21086 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21087
21088         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
21089         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
21090
21091 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21092
21093         * tree-iterator.c (tsi_split_statement_list_after,
21094         tsi_split_statement_list_before): Remove.
21095         * tree-iterator.h: Remove the prototypes for
21096         tsi_split_statement_list_after and tsi_split_statement_list_before.
21097
21098 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21099
21100         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
21101         * tree-ssa-propagate.h: Remove the prototype for
21102         stmt_makes_single_load.
21103
21104 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21105
21106         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
21107         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
21108
21109 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21110
21111         * tree-iterator.c (EXPR_LAST_BODY): Remove.
21112
21113 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21114
21115         * except.c (eh_region_outer_p): Remove.
21116         * except.h: Remove the prototype for eh_region_outer_p.
21117
21118 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21119
21120         * function.c (current_function_assembler_name): Remove.
21121         * function.h: Remove the prototype for
21122         current_function_assembler_name.
21123
21124 2009-04-16  Ian Lance Taylor  <iant@google.com>
21125
21126         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
21127         (add_reg_note): Call alloc_reg_note.
21128         * rtl.h (alloc_reg_note): Declare.
21129         * combine.c (try_combine): Use alloc_reg_note.
21130         (recog_for_combine, move_deaths): Likewise.
21131         (distribute_notes): Use alloc_reg_note and add_reg_note.
21132         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
21133         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
21134         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
21135
21136 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
21137
21138         PR rtl-optimization/39762
21139         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
21140         ira_may_move_out_cost): Add comments about way of their usage.
21141         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
21142
21143         * ira-conflicts.c (process_regs_for_copy): Use function
21144         ira_get_register_move_cost instead of global
21145         ira_register_move_cost.
21146
21147         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
21148         color_pass, move_spill_restore, update_curr_costs): Ditto.
21149
21150         * ira-lives.c (process_single_reg_class_operands): Ditto.
21151
21152         * ira-emit.c (emit_move_list): Ditto.
21153
21154         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
21155         (record_reg_classes): Ditto.  Use functions
21156         ira_get_register_move_cost and ira_get_may_move_cost instead of
21157         global vars ira_register_move_cost, ira_may_move_out_cost and
21158         ira_may_move_in_cost.
21159         (record_address_regs): Don't call ira_init_register_move_cost.
21160         Use function ira_get_may_move_cost instead of global
21161         ira_may_move_in_cost.
21162         (process_bb_node_for_hard_reg_moves): Use function
21163         ira_get_register_move_cost instead of global ira_register_move_cost.
21164         (ira_costs): Don't call ira_init_register_move_cost.
21165
21166 2009-04-16  Richard Guenther  <rguenther@suse.de>
21167
21168         * tree-cfg.c (verify_gimple_assign_binary):
21169         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
21170         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
21171         (create_general_new_stmt): Note that this function is broken.
21172
21173 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
21174
21175         * common.opt (fhelp): Add Var(help_flag).
21176         * gcc-plugin.h (plugin_info): Add help.
21177         * plugin.c (plugin_name_args): Add help.
21178         (register_plugin_info): Set plugin->help.
21179         (print_help_one_plugin): New.
21180         (print_plugins_help): New.
21181         * plugin.h (print_plugins_help): New.
21182         * toplev.c (toplev_main): Call print_plugins_help if needed.
21183
21184 2009-04-16  Richard Guenther  <rguenther@suse.de>
21185
21186         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
21187         (gimple_ior_addresses_taken_1): New function.
21188         (gimple_ior_addresses_taken): Likewise.
21189         * gimple.h (struct gimple_statement_with_ops_base): Remove
21190         addresses_taken member.
21191         (gimple_ior_addresses_taken): Declare.
21192         (gimple_addresses_taken, gimple_addresses_taken_ptr,
21193         gimple_set_addresses_taken): Remove.
21194         * ipa-reference.c (mark_address): New function.
21195         (scan_stmt_for_static_refs): Use it for marking addresses taken.
21196         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
21197         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
21198         (gimple_add_to_addresses_taken): Remove.
21199         (get_tmr_operands): Call mark_address_taken.
21200         (get_asm_expr_operands): Likewise.
21201         (get_expr_operands): Likewise.
21202         (build_ssa_operands): Do not clear the addresses_taken bitmap.
21203         (free_stmt_operands): Do not free it.
21204         * tree-ssa.c (delete_tree_ssa): Likewise.
21205         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
21206
21207 2009-04-16  Richard Guenther  <rguenther@suse.de>
21208
21209         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
21210         (walk_stmt_load_store_ops): Likewise.
21211         * gimple.c (get_base_loadstore): New function.
21212         (walk_stmt_load_store_addr_ops): Likewise.
21213         (walk_stmt_load_store_ops): Likewise.
21214         * ipa-pure-const.c (check_op): Simplify.
21215         (check_load, check_store): New functions.
21216         (check_stmt): Use walk_stmt_load_store_ops.
21217         * ipa-reference.c (mark_load): Adjust signature.
21218         (mark_store): Likewise.
21219         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
21220
21221 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
21222
21223         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
21224         (plugin_info): New.
21225         * opts.c (common_handle_option): Don't call print_version.
21226         * plugin.c (plugin_name_args): Add version.
21227         (register_plugin_info): New.
21228         (register_callback): Handle PLUGIN_INFO.
21229         (try_init_one_plugin): New.
21230         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
21231         if failed to init.
21232         (finalize_one_plugin): New.
21233         (finalize_plugins): New.
21234         (print_one_plugin): New.
21235         (print_plugins_versions): New.
21236         * plugin.h (print_plugins_versions): New.
21237         (finalize_plugins): New.
21238         * toplev.c (compile_file): Don't call initialize_plugins.
21239         (print_version): Call print_plugins_versions.
21240         (toplev_main): Call initialize_plugins. Print version if needed.
21241         Call finalize_plugins.
21242
21243 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
21244
21245         * common.opt (fversion): New.
21246         * gcc.c (print_version): New.
21247         (process_command): Don't print the version. Just set print_version.
21248         (main): Print version. Call subprocesses if print_version and
21249         verbose_flag are set.
21250         * opts.c (common_handle_option): Handle OPT_fversion.
21251
21252 2009-04-16  Richard Guenther  <rguenther@suse.de>
21253             Ira Rosen  <irar@il.ibm.com>
21254
21255         PR tree-optimization/39698
21256         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
21257         type of the reduction variable.  Only generate the def if
21258         it is needed.
21259
21260         * omp-low.c (expand_omp_for_generic): When converting to a pointer
21261         make sure to first convert to an integer of the same precision.
21262         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
21263         the type of the evolution correctly in computing the new
21264         induction variable base.
21265
21266 2009-04-16  Richard Guenther  <rguenther@suse.de>
21267
21268         PR middle-end/39625
21269         * tree-cfg.c (make_blocks): Split statements with to-be
21270         abnormal SSA names on the lhs.
21271
21272 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
21273
21274         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
21275         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
21276         * c-typeck.c (really_start_incremental_init): Likewise.
21277         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
21278         (TARGET_INITIALIZER): Remove it.
21279         * target.h (struct target): Remove vector_opaque_p.
21280         * tree.c (build_opaque_vector_type): New.
21281         * tree.h (TYPE_VECTOR_OPAQUE): New.
21282         (build_opaque_vector_type): Declare.
21283         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
21284         * config/rs6000/rs6000.c (build_opaque_vector_type,
21285         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
21286         (rs6000_init_builtins): Use build_opaque_vector_type for
21287         opaque_V4SI_type_node.
21288
21289 2009-04-15  Catherine Moore  <clm@codesourcery.com>
21290
21291         * debug.h (set_name):  Declare.
21292         * dwarf2out.c (dwarf2out_set_name): Declare.
21293         (dwarf2_debug_hooks): Add set_name.
21294         (find_AT_string): New.
21295         (add_AT_string): Call find_AT_string.
21296         (dwarf2out_set_name): New.
21297         * cp/decl.c (grokdeclarator): Call set_name.
21298         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
21299         * debug.c (do_nothing_debug_hooks):  Likewise.
21300         * dbxout.c (dbx_debug_hooks): Likewise.
21301         * sdbout.c (sdb_debug_hooks): Likewise.
21302
21303 2009-04-15  Michael Eager  <eager@eagercon.com>
21304
21305         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
21306         reg for single-precision FPU.
21307         * config/rs6000/rs6000.md (movsi_internal1): Only for
21308         !TARGET_SINGLE_FPU.
21309         (movsi_internal1_single): New. Add pattern to move SI values to/from
21310         single-precision FP regs.
21311
21312 2009-04-15  Richard Guenther  <rguenther@suse.de>
21313
21314         * omp-low.c (lower_rec_input_clauses): Build correct address
21315         expressions.
21316         (expand_omp_for_generic): Fix multiplication type.
21317         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
21318         (generate_memset_zero): Fix types.
21319         * tree-profile.c (prepare_instrumented_value): Correctly
21320         widen a pointer.
21321
21322 2009-04-15  Ian Lance Taylor  <iant@google.com>
21323
21324         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
21325         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
21326         for -Wall and for -Wc++-compat.
21327         (c_common_post_options): For C++, set warn_enum_compare if not
21328         already set.
21329         * c-tree.h (struct c_expr): Add field original_type.
21330         (build_external_ref): Update declaration.
21331         * c-parser.c (c_parser_braced_init): Set original_type.
21332         (c_parser_initelt): Likewise.
21333         (c_parser_expr_no_commas): Likewise.
21334         (c_parser_conditional_expression): Likewise.
21335         (c_parser_cast_expression): Likewise.
21336         (c_parser_unary_expression): Likewise.  Pull setting of
21337         original_code to top of function.
21338         (c_parser_sizeof_expression): Set original_type.
21339         (c_parser_alignof_expression): Likewise.
21340         (c_parser_postfix_expression): Likewise.  Pull setting of
21341         original_code to top of function.
21342         (c_parser_postfix_expression_after_paren_type): Set original_type.
21343         (c_parser_postfix_expression_after_primary): Likewise.
21344         (c_parser_expression): Likewise.
21345         * c-typeck.c (build_external_ref): Add type parameter.  Change all
21346         callers.
21347         (c_expr_sizeof_expr): Set original_type field.
21348         (parser_build_unary_op): Likewise.
21349         (parser_build_binary_op): Likewise.  Optionally warn about
21350         comparisons of enums of different types.
21351         (digest_init): Set original_type field.
21352         (really_start_incremental_init): Likewise.
21353         (push_init_level, pop_init_level): Likewise.
21354         * doc/invoke.texi (Warning Options): -Wenum-compare now
21355         supported in C.
21356
21357 2009-04-15  Richard Guenther  <rguenther@suse.de>
21358
21359         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
21360         out a necessary conversion.
21361         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
21362         names we didn't value number.
21363         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
21364
21365 2009-04-15  Richard Guenther  <rguenther@suse.de>
21366
21367         PR tree-optimization/39764
21368         * tree-ssa-ccp.c (get_value): Canonicalize value with
21369         canonicalize_float_value.
21370
21371 2009-04-15  Jan Hubicka  <jh@suse.cz>
21372
21373         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
21374         Wrong version of patch.
21375
21376 2009-04-15  Jan Hubicka  <jh@suse.cz>
21377
21378         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
21379
21380 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
21381
21382         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
21383         our distinct integral and vector types.
21384
21385 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
21386
21387         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
21388         * init.c (build_vtbl_address): Remove call to assemble_external.
21389
21390 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
21391
21392         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
21393         output for other floating point modes.
21394
21395 2009-04-14  Diego Novillo  <dnovillo@google.com>
21396
21397         * diagnostic.c (diagnostic_report_diagnostic): Do not
21398         warn about loaded plugins for DK_ERROR and DK_WARNING.
21399         * c-decl.c (declspecs_add_type): Move call to
21400         invoke_plugin_callbacks ...
21401         * c-parser.c (c_parser_declspecs): ... here.
21402         * plugin.c (dump_active_plugins): Tidy output.
21403
21404 2009-04-14  Diego Novillo  <dnovillo@google.com>
21405             Le-Chun Wu  <lcwu@google.com>
21406
21407         * configure.ac: Add --enable-plugin support.
21408         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
21409         * Makefile.in (PLUGIN_H): Define.
21410         Export ENABLE_PLUGIN and GMPINC to site.exp.
21411         Add PLUGINLIBS to link command.
21412         Add/modify dependencies for plugin.o and files including plugin.h.
21413         (plugin.o): New.
21414         * config.in: Regenerate.
21415
21416         * opts.c (common_handle_option): Handle OPT_fplugin_ and
21417         OPT_fplugin_arg_.
21418
21419 2009-04-14  Le-Chun Wu  <lcwu@google.com>
21420
21421         * tree-pass.h (register_one_dump_file): Add a prototype for
21422         register_one_dump_file.
21423         * toplev.c (compile_file): Call initialize_plugins.
21424         (do_compile): Call invoke_plugin_callbacks.
21425         (toplev_main): Call invoke_plugin_callbacks.
21426         * common.opt: Add -fplugin= and -fplugin-arg-.
21427         * gcc-plugin.h: New public header file for plugins to include.
21428         * plugin.c: New source file.
21429         * plugin.h: New internal header file.
21430         * passes.c (register_one_dump_file): Make it external.
21431
21432         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
21433
21434 2009-04-14  Diego Novillo  <dnovillo@google.com>
21435
21436         * doc/plugins.texi: New.
21437         * doc/gccint.texi: Add reference to Plugins chapter.
21438         * doc/invoke.texi: Document -fplugin and -fplugin-arg
21439         * diagnostic.c (diagnostic_report_diagnostic): Warn about
21440         loaded plugins, if any.
21441         * timevar.def (TV_PLUGIN_INIT): Define.
21442         (TV_PLUGIN_RUN): Define.
21443         * plugin.c: Include timevar.h
21444         (plugins_active_p): New.
21445         (dump_active_plugins): New.
21446         (debug_active_plugins): New.
21447
21448 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
21449
21450         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
21451         library paths.
21452         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
21453
21454 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
21455
21456         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
21457         the same as a minus without a shift.
21458
21459 2009-04-14  Nick Clifton  <nickc@redhat.com>
21460
21461         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
21462         comparisons with small integers will always produce a short
21463         branch.
21464
21465 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
21466
21467         Merge:
21468         2008-12-19  Diego Novillo  <dnovillo@google.com>
21469
21470         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
21471
21472 2009-04-14  Richard Guenther  <rguenther@suse.de>
21473
21474         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
21475         verification.
21476         (verify_gimple_assign_binary): Likewise.  Handle shifts and
21477         rotates correctly.
21478         (verify_gimple_phi): Print the mismatched argument position.
21479         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
21480         Fix types.
21481         (vect_update_init_of_dr): Likewise.
21482         * matrix-reorg.c (transform_access_sites): Do what the
21483         comment suggests.
21484         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
21485
21486 2009-04-13  Michael Eager  <eager@eagercon.com>
21487
21488         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
21489         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
21490         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
21491         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
21492         remove duplicate config
21493
21494 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
21495
21496         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
21497         file_name:line_number type locator of the call site.
21498
21499 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
21500
21501         * genautomata.c: Put blank after comma.
21502         (automaton_decls): New.
21503         (struct unit_usage): Add comments to member next.
21504         (store_alt_unit_usage): Keep the list ordered.
21505         (unit_present_on_list_p, equal_alternatives_p): New.
21506         (check_regexp_units_distribution): Check units distribution
21507         correctness correctly.
21508         (main): Don't write automata if error is found.  Return correct
21509         exit code.
21510
21511         * config/m68k/cf.md (cfv4_ds): Remove.
21512         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
21513         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
21514
21515         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
21516         power4-load-ext, power4-store, power4-store-update,
21517         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
21518         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
21519         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
21520         power4-sqrt, power4-isync): Modify reservation to make correct
21521         unit distribution to automata.
21522
21523         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
21524         power5-store-update, power5-two, power5-three, power5-lmul,
21525         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
21526
21527 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
21528
21529         * except.c (pass_set_nothrow_function_flags): Set name and add
21530         TODO_dump_func.
21531         (set_nothrow_function_flags): Mention in the dump file when
21532         changing a function to nothrow.
21533
21534 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
21535
21536         PR/39066
21537         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
21538         instead of unsigned long.
21539
21540 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21541
21542         * config/arm/arm.c (return_used_this_function): Remove.
21543         (arm_output_function_prologue): Remove use of
21544         return_used_this_function.
21545         (output_return_instruction): Replace use of
21546         return_used_this_function
21547         by cfun->machine->return_used_this_function.
21548         (arm_output_epilogue): Likewise.
21549         (arm_output_function_epilogue): Likewise.
21550         (thumb_unexpanded_epilogue): Likewise.
21551         * config/arm/arm.h (struct machine_function):
21552         New member return_used_this_function.
21553
21554 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
21555
21556         * doc/install.texi: Correct description of default directory for
21557         --with-gxx-include-dir.
21558
21559 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
21560
21561         * fold-const.c (build_range_check): Properly deal with enumeral and
21562         boolean base types.
21563
21564 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
21565
21566         * doc/invoke.texi (max_gcse_passes): Remove documentation.
21567         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
21568         * params.h (MAX_GCSE_PASSES): Remove.
21569         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
21570         in sequence.  Remove ability to run multiple passes.
21571         (bypass_jumps): Report run as third CPROP pass.
21572
21573 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
21574
21575         PR middle-end/39651
21576         * except.c (can_throw_external): Look at each insn in a SEQUENCE
21577         when deciding whether the whole SEQUENCE can throw.
21578
21579 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
21580
21581         PR target/39740
21582         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
21583         offseted label references.
21584
21585 2009-04-11  Jan Hubicka  <jh@suse.cz>
21586
21587         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
21588
21589 2009-04-11  Richard Guenther  <rguenther@suse.de>
21590
21591         PR middle-end/39732
21592         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
21593         return variables as TREE_ADDRESSABLE.
21594
21595 2009-04-11  Richard Guenther  <rguenther@suse.de>
21596
21597         PR tree-optimization/39713
21598         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
21599         reference trees have SSA_NAME operands.
21600
21601 2009-04-11  Richard Guenther  <rguenther@suse.de>
21602
21603         PR c/39712
21604         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
21605         address expressions.
21606
21607 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
21608
21609         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
21610         match changes in Cygwin 1.7
21611         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
21612         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
21613
21614 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
21615
21616         PR tree-optimization/39701
21617         * doc/invoke.texi (Optimization Options): Document change in
21618         meaning and initialization of -fdelete-null-pointer-checks.
21619
21620 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
21621
21622         PR middle-end/39701
21623         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
21624
21625         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
21626         here.
21627
21628         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
21629
21630 2009-04-10  Chao-ying Fu  <fu@mips.com>
21631
21632         * doc/tm.texi (Instruction Output): Document
21633         TARGET_ASM_FINAL_POSTSCAN_INSN.
21634         * target.h (final_postscan_insn): New field in asm_out.
21635         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
21636         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
21637         * final.c (final_scan_insn): Call
21638         targetm.asm_out.final_postscan_insn after outputting
21639         an asm macro and a normal instruction.
21640
21641         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
21642         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
21643         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
21644         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
21645         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
21646
21647 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
21648
21649         PR middle-end/39701
21650         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
21651         variables as non-NULL even with -fdelete-null-pointer-checks.
21652
21653 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
21654
21655         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
21656
21657 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
21658
21659         PR target/39678
21660         * config/i386/i386.c (classify_argument): Handle SCmode with
21661         (bit_offset % 64) != 0.
21662
21663 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
21664
21665         * doc/invoke.texi (Optimize Options): Add cross-reference to
21666         -Q --help=optimizers examples.
21667
21668 2009-04-10  Ben Elliston  <bje@au.ibm.com>
21669
21670         PR target/36800
21671         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
21672         regalign for the reg == fpr and TDmode case.
21673
21674 2009-04-09  David Ayers  <ayers@fsfe.org>
21675
21676         PR objc/29200
21677         * objc/objc-act.c (warn_with_method): Remove helper function.
21678         (check_duplicates): Call warning and inform directly.
21679         (really_start_method): Likewise.
21680
21681 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
21682
21683         * expmed.c (expand_divmod): Always use a comparison for a division
21684         by a large unsigned integer.
21685
21686         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
21687         for things others than variables or functions as nonzero.
21688
21689 2009-04-09  Nick Clifton  <nickc@redhat.com>
21690
21691         * unwind-compat.c: Change copyright header to refer to version
21692         3 of the GNU General Public License with version 3.1 of the
21693         GCC Runtime Library Exception and to point readers at the
21694         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
21695         * config/alpha/crtfastmath.c: Likewise.
21696         * config/alpha/linux-unwind.h: Likewise.
21697         * config/alpha/qrnnd.asm: Likewise.
21698         * config/alpha/vms-crt0-64.c: Likewise.
21699         * config/alpha/vms-crt0.c: Likewise.
21700         * config/alpha/vms-dwarf2.asm: Likewise.
21701         * config/alpha/vms-dwarf2eh.asm: Likewise.
21702         * config/alpha/vms-psxcrt0-64.c: Likewise.
21703         * config/alpha/vms-psxcrt0.c: Likewise.
21704         * config/alpha/vms_tramp.asm: Likewise.
21705         * config/arc/initfini.c: Likewise.
21706         * config/arc/lib1funcs.asm: Likewise.
21707         * config/arm/bpabi-v6m.S: Likewise.
21708         * config/arm/bpabi.S: Likewise.
21709         * config/arm/bpabi.c: Likewise.
21710         * config/arm/crti.asm: Likewise.
21711         * config/arm/crtn.asm: Likewise.
21712         * config/arm/ieee754-df.S: Likewise.
21713         * config/arm/ieee754-sf.S: Likewise.
21714         * config/arm/lib1funcs.asm: Likewise.
21715         * config/arm/libunwind.S: Likewise.
21716         * config/arm/linux-atomic.c: Likewise.
21717         * config/arm/mmintrin.h: Likewise.
21718         * config/arm/pr-support.c: Likewise.
21719         * config/arm/unaligned-funcs.c: Likewise.
21720         * config/arm/unwind-arm.c: Likewise.
21721         * config/arm/unwind-arm.h: Likewise.
21722         * config/avr/libgcc.S: Likewise.
21723         * config/bfin/crti.s: Likewise.
21724         * config/bfin/crtlibid.s: Likewise.
21725         * config/bfin/crtn.s: Likewise.
21726         * config/bfin/lib1funcs.asm: Likewise.
21727         * config/bfin/linux-unwind.h: Likewise.
21728         * config/cris/arit.c: Likewise.
21729         * config/cris/cris_abi_symbol.c: Likewise.
21730         * config/darwin-64.c: Likewise.
21731         * config/darwin-crt2.c: Likewise.
21732         * config/darwin-crt3.c: Likewise.
21733         * config/darwin.h: Likewise.
21734         * config/dbxelf.h: Likewise.
21735         * config/dfp-bit.c: Likewise.
21736         * config/dfp-bit.h: Likewise.
21737         * config/elfos.h: Likewise.
21738         * config/fixed-bit.c: Likewise.
21739         * config/fixed-bit.h: Likewise.
21740         * config/fp-bit.c: Likewise.
21741         * config/fp-bit.h: Likewise.
21742         * config/fr30/crti.asm: Likewise.
21743         * config/fr30/crtn.asm: Likewise.
21744         * config/fr30/lib1funcs.asm: Likewise.
21745         * config/freebsd-spec.h: Likewise.
21746         * config/frv/cmovd.c: Likewise.
21747         * config/frv/cmovh.c: Likewise.
21748         * config/frv/cmovw.c: Likewise.
21749         * config/frv/frvbegin.c: Likewise.
21750         * config/frv/frvend.c: Likewise.
21751         * config/frv/lib1funcs.asm: Likewise.
21752         * config/glibc-stdint.h: Likewise.
21753         * config/h8300/clzhi2.c: Likewise.
21754         * config/h8300/crti.asm: Likewise.
21755         * config/h8300/crtn.asm: Likewise.
21756         * config/h8300/ctzhi2.c: Likewise.
21757         * config/h8300/fixunssfsi.c: Likewise.
21758         * config/h8300/lib1funcs.asm: Likewise.
21759         * config/h8300/parityhi2.c: Likewise.
21760         * config/h8300/popcounthi2.c: Likewise.
21761         * config/i386/ammintrin.h: Likewise.
21762         * config/i386/att.h: Likewise.
21763         * config/i386/avxintrin.h: Likewise.
21764         * config/i386/biarch64.h: Likewise.
21765         * config/i386/bmmintrin.h: Likewise.
21766         * config/i386/cpuid.h: Likewise.
21767         * config/i386/cross-stdarg.h: Likewise.
21768         * config/i386/crtfastmath.c: Likewise.
21769         * config/i386/crtprec.c: Likewise.
21770         * config/i386/cygming-crtbegin.c: Likewise.
21771         * config/i386/cygming-crtend.c: Likewise.
21772         * config/i386/cygwin.asm: Likewise.
21773         * config/i386/emmintrin.h: Likewise.
21774         * config/i386/gmm_malloc.h: Likewise.
21775         * config/i386/gthr-win32.c: Likewise.
21776         * config/i386/i386.h: Likewise.
21777         * config/i386/immintrin.h: Likewise.
21778         * config/i386/linux-unwind.h: Likewise.
21779         * config/i386/linux64.h: Likewise.
21780         * config/i386/mm3dnow.h: Likewise.
21781         * config/i386/mmintrin-common.h: Likewise.
21782         * config/i386/mmintrin.h: Likewise.
21783         * config/i386/nmmintrin.h: Likewise.
21784         * config/i386/pmm_malloc.h: Likewise.
21785         * config/i386/pmmintrin.h: Likewise.
21786         * config/i386/smmintrin.h: Likewise.
21787         * config/i386/sol2-c1.asm: Likewise.
21788         * config/i386/sol2-ci.asm: Likewise.
21789         * config/i386/sol2-cn.asm: Likewise.
21790         * config/i386/sol2-gc1.asm: Likewise.
21791         * config/i386/tmmintrin.h: Likewise.
21792         * config/i386/unix.h: Likewise.
21793         * config/i386/w32-unwind.h: Likewise.
21794         * config/i386/wmmintrin.h: Likewise.
21795         * config/i386/x86-64.h: Likewise.
21796         * config/i386/x86intrin.h: Likewise.
21797         * config/i386/xmmintrin.h: Likewise.
21798         * config/ia64/crtbegin.asm: Likewise.
21799         * config/ia64/crtend.asm: Likewise.
21800         * config/ia64/crtfastmath.c: Likewise.
21801         * config/ia64/crti.asm: Likewise.
21802         * config/ia64/crtn.asm: Likewise.
21803         * config/ia64/fde-glibc.c: Likewise.
21804         * config/ia64/lib1funcs.asm: Likewise.
21805         * config/ia64/linux-unwind.h: Likewise.
21806         * config/ia64/quadlib.c: Likewise.
21807         * config/ia64/unwind-ia64.c: Likewise.
21808         * config/linux.h: Likewise.
21809         * config/m32c/m32c-lib1.S: Likewise.
21810         * config/m32c/m32c-lib2-trapv.c: Likewise.
21811         * config/m32c/m32c-lib2.c: Likewise.
21812         * config/m32r/initfini.c: Likewise.
21813         * config/m68hc11/larith.asm: Likewise.
21814         * config/m68hc11/m68hc11-crt0.S: Likewise.
21815         * config/m68k/cf.md: Likewise.
21816         * config/m68k/crti.s: Likewise.
21817         * config/m68k/crtn.s: Likewise.
21818         * config/m68k/lb1sf68.asm: Likewise.
21819         * config/m68k/linux-unwind.h: Likewise.
21820         * config/mcore/crti.asm: Likewise.
21821         * config/mcore/crtn.asm: Likewise.
21822         * config/mcore/lib1.asm: Likewise.
21823         * config/mips/linux-unwind.h: Likewise.
21824         * config/mips/loongson.h: Likewise.
21825         * config/mips/mips16.S: Likewise.
21826         * config/mmix/crti.asm: Likewise.
21827         * config/mmix/crtn.asm: Likewise.
21828         * config/pa/fptr.c: Likewise.
21829         * config/pa/hpux-unwind.h: Likewise.
21830         * config/pa/lib2funcs.asm: Likewise.
21831         * config/pa/linux-atomic.c: Likewise.
21832         * config/pa/linux-unwind.h: Likewise.
21833         * config/pa/milli64.S: Likewise.
21834         * config/pa/quadlib.c: Likewise.
21835         * config/pa/stublib.c: Likewise.
21836         * config/picochip/libgccExtras/adddi3.asm: Likewise.
21837         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
21838         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
21839         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
21840         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
21841         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
21842         * config/picochip/libgccExtras/divmod15.asm: Likewise.
21843         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
21844         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
21845         * config/picochip/libgccExtras/longjmp.asm: Likewise.
21846         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
21847         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
21848         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
21849         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
21850         * config/picochip/libgccExtras/setjmp.asm: Likewise.
21851         * config/picochip/libgccExtras/subdi3.asm: Likewise.
21852         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
21853         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
21854         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
21855         * config/rs6000/750cl.h: Likewise.
21856         * config/rs6000/altivec.h: Likewise.
21857         * config/rs6000/biarch64.h: Likewise.
21858         * config/rs6000/crtresfpr.asm: Likewise.
21859         * config/rs6000/crtresgpr.asm: Likewise.
21860         * config/rs6000/crtresxfpr.asm: Likewise.
21861         * config/rs6000/crtresxgpr.asm: Likewise.
21862         * config/rs6000/crtsavfpr.asm: Likewise.
21863         * config/rs6000/crtsavgpr.asm: Likewise.
21864         * config/rs6000/darwin-asm.h: Likewise.
21865         * config/rs6000/darwin-fallback.c: Likewise.
21866         * config/rs6000/darwin-fpsave.asm: Likewise.
21867         * config/rs6000/darwin-ldouble.c: Likewise.
21868         * config/rs6000/darwin-tramp.asm: Likewise.
21869         * config/rs6000/darwin-unwind.h: Likewise.
21870         * config/rs6000/darwin-vecsave.asm: Likewise.
21871         * config/rs6000/darwin-world.asm: Likewise.
21872         * config/rs6000/e500crtres32gpr.asm: Likewise.
21873         * config/rs6000/e500crtres64gpr.asm: Likewise.
21874         * config/rs6000/e500crtres64gprctr.asm: Likewise.
21875         * config/rs6000/e500crtrest32gpr.asm: Likewise.
21876         * config/rs6000/e500crtrest64gpr.asm: Likewise.
21877         * config/rs6000/e500crtresx32gpr.asm: Likewise.
21878         * config/rs6000/e500crtresx64gpr.asm: Likewise.
21879         * config/rs6000/e500crtsav32gpr.asm: Likewise.
21880         * config/rs6000/e500crtsav64gpr.asm: Likewise.
21881         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
21882         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
21883         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
21884         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
21885         * config/rs6000/eabi-ci.asm: Likewise.
21886         * config/rs6000/eabi-cn.asm: Likewise.
21887         * config/rs6000/eabi.asm: Likewise.
21888         * config/rs6000/linux-unwind.h: Likewise.
21889         * config/rs6000/linux64.h: Likewise.
21890         * config/rs6000/paired.h: Likewise.
21891         * config/rs6000/paired.md: Likewise.
21892         * config/rs6000/ppc64-fp.c: Likewise.
21893         * config/rs6000/ppu_intrinsics.h: Likewise.
21894         * config/rs6000/rs6000.h: Likewise.
21895         * config/rs6000/si2vmx.h: Likewise.
21896         * config/rs6000/sol-ci.asm: Likewise.
21897         * config/rs6000/sol-cn.asm: Likewise.
21898         * config/rs6000/spe.h: Likewise.
21899         * config/rs6000/spu2vmx.h: Likewise.
21900         * config/rs6000/sysv4.h: Likewise.
21901         * config/rs6000/tramp.asm: Likewise.
21902         * config/rs6000/vec_types.h: Likewise.
21903         * config/s390/linux-unwind.h: Likewise.
21904         * config/s390/tpf-unwind.h: Likewise.
21905         * config/score/crti.asm: Likewise.
21906         * config/score/crtn.asm: Likewise.
21907         * config/sh/crt1.asm: Likewise.
21908         * config/sh/crti.asm: Likewise.
21909         * config/sh/crtn.asm: Likewise.
21910         * config/sh/divtab-sh4-300.c: Likewise.
21911         * config/sh/divtab-sh4.c: Likewise.
21912         * config/sh/divtab.c: Likewise.
21913         * config/sh/lib1funcs-4-300.asm: Likewise.
21914         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
21915         * config/sh/lib1funcs.asm: Likewise.
21916         * config/sh/lib1funcs.h: Likewise.
21917         * config/sh/linux-atomic.asm: Likewise.
21918         * config/sh/linux-unwind.h: Likewise.
21919         * config/sh/shmedia.h: Likewise.
21920         * config/sh/sshmedia.h: Likewise.
21921         * config/sh/ushmedia.h: Likewise.
21922         * config/sparc/crtfastmath.c: Likewise.
21923         * config/sparc/linux-unwind.h: Likewise.
21924         * config/sparc/sol2-c1.asm: Likewise.
21925         * config/sparc/sol2-ci.asm: Likewise.
21926         * config/sparc/sol2-cn.asm: Likewise.
21927         * config/spu/divmodti4.c: Likewise.
21928         * config/spu/divv2df3.c: Likewise.
21929         * config/spu/float_disf.c: Likewise.
21930         * config/spu/float_unsdidf.c: Likewise.
21931         * config/spu/float_unsdisf.c: Likewise.
21932         * config/spu/float_unssidf.c: Likewise.
21933         * config/spu/mfc_multi_tag_release.c: Likewise.
21934         * config/spu/mfc_multi_tag_reserve.c: Likewise.
21935         * config/spu/mfc_tag_release.c: Likewise.
21936         * config/spu/mfc_tag_reserve.c: Likewise.
21937         * config/spu/mfc_tag_table.c: Likewise.
21938         * config/spu/multi3.c: Likewise.
21939         * config/spu/spu_internals.h: Likewise.
21940         * config/spu/spu_intrinsics.h: Likewise.
21941         * config/spu/spu_mfcio.h: Likewise.
21942         * config/spu/vec_types.h: Likewise.
21943         * config/spu/vmx2spu.h: Likewise.
21944         * config/stormy16/stormy16-lib2.c: Likewise.
21945         * config/svr4.h: Likewise.
21946         * config/sync.c: Likewise.
21947         * config/v850/lib1funcs.asm: Likewise.
21948         * config/vxlib-tls.c: Likewise.
21949         * config/vxlib.c: Likewise.
21950         * config/vxworks-dummy.h: Likewise.
21951         * config/xtensa/crti.asm: Likewise.
21952         * config/xtensa/crtn.asm: Likewise.
21953         * config/xtensa/ieee754-df.S: Likewise.
21954         * config/xtensa/ieee754-sf.S: Likewise.
21955         * config/xtensa/lib1funcs.asm: Likewise.
21956         * config/xtensa/lib2funcs.S: Likewise.
21957         * config/xtensa/linux-unwind.h: Likewise.
21958         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
21959         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
21960         * coretypes.h: Likewise.
21961         * crtstuff.c: Likewise.
21962         * defaults.h: Likewise.
21963         * dwarf2.h: Likewise.
21964         * emutls.c: Likewise.
21965         * gbl-ctors.h: Likewise.
21966         * gcov-io.h: Likewise.
21967         * ginclude/float.h: Likewise.
21968         * ginclude/iso646.h: Likewise.
21969         * ginclude/stdarg.h: Likewise.
21970         * ginclude/stdbool.h: Likewise.
21971         * ginclude/stddef.h: Likewise.
21972         * ginclude/stdfix.h: Likewise.
21973         * ginclude/stdint-gcc.h: Likewise.
21974         * ginclude/tgmath.h: Likewise.
21975         * gthr-aix.h: Likewise.
21976         * gthr-dce.h: Likewise.
21977         * gthr-gnat.c: Likewise.
21978         * gthr-gnat.h: Likewise.
21979         * gthr-lynx.h: Likewise.
21980         * gthr-mipssde.h: Likewise.
21981         * gthr-nks.h: Likewise.
21982         * gthr-posix.c: Likewise.
21983         * gthr-posix.h: Likewise.
21984         * gthr-posix95.h: Likewise.
21985         * gthr-rtems.h: Likewise.
21986         * gthr-single.h: Likewise.
21987         * gthr-solaris.h: Likewise.
21988         * gthr-tpf.h: Likewise.
21989         * gthr-vxworks.h: Likewise.
21990         * gthr-win32.h: Likewise.
21991         * gthr.h: Likewise.
21992         * libgcc2.c: Likewise.
21993         * libgcc2.h: Likewise.
21994         * libgcov.c: Likewise.
21995         * tsystem.h: Likewise.
21996         * typeclass.h: Likewise.
21997         * unwind-c.c: Likewise.
21998         * unwind-compat.h: Likewise.
21999         * unwind-dw2-fde-compat.c: Likewise.
22000         * unwind-dw2-fde-darwin.c: Likewise.
22001         * unwind-dw2-fde-glibc.c: Likewise.
22002         * unwind-dw2-fde.c: Likewise.
22003         * unwind-dw2-fde.h: Likewise.
22004         * unwind-dw2.c: Likewise.
22005         * unwind-dw2.h: Likewise.
22006         * unwind-generic.h: Likewise.
22007         * unwind-pe.h: Likewise.
22008         * unwind-sjlj.c: Likewise.
22009         * unwind.inc: Likewise.
22010         * config/arm/neon-gen.ml: Change generated copyright header to
22011         refer to version 3 of the GNU General Public License with
22012         version 3.1 of the GCC Runtime Library Exception and to point
22013         readers at the COPYING3 and COPYING3.RUNTIME files and the
22014         FSF's license web page.
22015         * config/arm/arm_neon.h: Regenerate.
22016
22017 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
22018
22019         * config/cris/cris.md: Change copyright header to refer to version
22020         3 of the GNU General Public License.
22021         * doc/install.texi2html: Change copyright header to refer to version
22022         3 of the GNU General Public License and to point readers at the
22023         COPYING3 file and the FSF's license web page.
22024         * config/vax/linux.h: Likewise.
22025
22026 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
22027
22028         * config/i386/i386.md (cmpcc): New.
22029         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
22030         (sync_compare_and_swap_cc*): Delete.
22031
22032         * config/s390/s390.c (s390_compare_emitted): Remove.
22033         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
22034         s390_compare_emitted used to be handled.  Assert that modes match.
22035         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
22036         refer to sync_compare_and_swap_ccsi.
22037         * config/s390/s390.h (s390_compare_emitted): Remove.
22038         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
22039         instead of s390_compare_emitted.
22040         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
22041         instead of s390_compare_emitted.
22042         * config/s390/s390.md (cmpcc): New.
22043         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
22044         CC_REGNUM, do not pretend it's set.
22045         (sync_compare_and_swap_cc*): Delete.
22046         * config/s390/predicates.md (cc_reg_operand): New.
22047
22048         * expr.c (sync_compare_and_swap_cc): Delete.
22049         * optabs.h (sync_compare_and_swap_cc): Delete.
22050         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
22051         is being used with can_compare_p.
22052         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
22053         (find_cc_set): New.
22054         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
22055         look for a MODE_CC set instead.  Use emit_store_flag.
22056         (expand_compare_and_swap_loop): Likewise, with some additional
22057         complication to avoid a force_reg when useless.  Use
22058         emit_cmp_and_jump_insns.
22059         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
22060         * doc/md.texi (sync_compare_and_swap_cc): Merge with
22061         sync_compare_and_swap documentation.
22062
22063 2009-04-09  Jan Hubicka  <jh@suse.cz>
22064
22065         * except.c (find_prev_try): Break out from ....
22066         (duplicate_eh_regions): ... here; properly update prev_try pointers
22067         when duplication part of tree.
22068         (dump_eh_tree): Improve dumping.
22069         (verify_eh_region): New.
22070         (verify_eh_tree): Use it.
22071
22072 2009-04-06  Richard Guenther  <rguenther@suse.de>
22073
22074         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
22075         &ARRAY addresses by adjusting their types and prepending
22076         a conversion.
22077         * tree-cfg.c (verify_gimple_assign_single): Verify that
22078         addresses are correct.
22079
22080 2009-04-09  Richard Guenther  <rguenther@suse.de>
22081
22082         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
22083         indices into an array reference if possible.
22084         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
22085         Fold POINTER_PLUS_EXPR statements with invariant address.
22086
22087 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
22088
22089         PR target/39634
22090         * config.gcc (powerpc64-*-linux*): Always build biarch.
22091
22092 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
22093
22094         PR c/39613
22095         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
22096         it and pedwarn if this results in an INTEGER_CST.
22097
22098 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22099
22100         * doc/install.texi: Update minimum GMP version.  Remove obsolete
22101         text in MPFR section.
22102
22103 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
22104
22105         * dwarf2out.c (class_scope_p): New static inline.
22106         (class_or_namespace_scope_p): Use it.
22107         (gen_variable_die): Use DW_TAG_member tag for static data member
22108         declarations instead of DW_TAG_variable.
22109
22110         PR middle-end/39573
22111         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
22112         variables.
22113
22114 2009-04-08  Richard Guenther  <rguenther@suse.de>
22115
22116         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
22117         valueize random data.
22118
22119 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
22120
22121         * config.gcc (aix tm_file):  Add aix-stdint.h.
22122         (aix tm clause use_gcc_stdint):  Set to wrap.
22123         * config/rs6000/aix-stdint.h:  New file.
22124
22125 2009-04-08  Richard Guenther  <rguenther@suse.de>
22126
22127         PR middle-end/36291
22128         * tree-dfa.c (add_referenced_var): Do not recurse into
22129         global initializers.
22130         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
22131         exposed variables.
22132         (fold_const_aggregate_ref): Likewise.
22133
22134 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
22135
22136         * recog.c (ordered_comparison_operator): New.
22137         * gensupport.c (std_preds): Add it.
22138         * doc/md.texi (Machine-Independent Predicates): Document it.
22139
22140 2009-04-08  Jan Hubicka  <jh@suse.cz>
22141
22142         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
22143         * function.h (rtl_eh): Remove exception_handler_label_map.
22144         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
22145         remove_exception_handler_label, for_each_eh_label_1): Remove.
22146         (rtl_remove_unreachable_regions): Remove.
22147         (convert_from_eh_region_ranges): Do not remove unreachable regions.
22148         (find_exception_handler_labels): Don't build the hashtable.
22149         (maybe_remove_eh_handler): Remove.
22150         (for_each_eh_label): Rewrite to walk the tree.
22151         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
22152         * except.h (maybe_remove_eh_handler): Remove.
22153         * passes.c (init_optimization_passes): Schedule second EH cleanup
22154         before out-of-ssa.
22155         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
22156         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
22157
22158 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
22159
22160         * genoutput.c (validate_optab_operands): New.
22161         (gen_insn, gen_expand): Call it.
22162
22163         * genflags.c (gen_insn): Detect misused iterators.
22164         (main): Pass line_no to gen_insn, exit with status 1 on error.
22165
22166         * genextract.c (line_no): Make global.
22167         (VEC_safe_set_locstr): Change assertion to error message.
22168         (main): Exit with status 1 on error.
22169
22170 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
22171
22172         PR c/39614
22173         PR c/39673
22174         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
22175         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
22176         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
22177         * c-convert.c (convert): Do not call fold on results of conversion
22178         functions when the result is a C_MAYBE_CONST_EXPR.
22179         * c-parser.c (c_parser_postfix_expression): Do not fold condition
22180         of __builtin_choose_expr.
22181         * c-typeck.c (remove_c_maybe_const_expr): New.
22182         (build_unary_op, build_conditional_expr, build_compound_expr,
22183         build_binary_op, c_objc_common_truthvalue_conversion): Call
22184         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
22185         integer operands.
22186
22187 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
22188
22189         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
22190         CODE to produce a new one. Add a prototype to use fold_convert_const
22191
22192 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
22193
22194         PR bootstrap/39660
22195         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
22196         mix declarations and code.
22197
22198 2009-04-08  Ben Elliston  <bje@au.ibm.com>
22199
22200         * gcc.c: Replace `CC' with `GCC' throughout.
22201
22202 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
22203
22204         * doc/invoke.texi: Document Atom support.
22205
22206 2009-04-07  Jason Merrill  <jason@redhat.com>
22207
22208         PR c++/25185
22209         * c-common.h, c-common.c: Add flag_pretty_templates.
22210         * c-opts.c (c_common_handle_option): Set it.
22211         * c.opt: Add -fno-pretty-templates.
22212         * doc/invoke.texi (C++ Dialect Options): Likewise.
22213
22214 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
22215
22216         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
22217         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
22218         (ia64_expand_builtin): Likewise.
22219
22220 2009-04-07  Martin Jambor  <mjambor@suse.cz>
22221
22222         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
22223         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
22224         ADDR_EXPRS are include too.
22225
22226 2009-04-07  Richard Guenther  <rguenther@suse.de>
22227
22228         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
22229         decls are only used if passes as parameters or if they are
22230         local statics and the call is not to a builtin.
22231         (call_may_clobber_ref_p_1): Likewise.
22232
22233 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22234
22235         * expr.c (do_store_flag): Remove last argument.  Simplify code
22236         to avoid duplication of tests already done by can_compare_p.
22237         (expand_expr_real_1): Adjust caller.
22238
22239 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22240
22241         * optabs.c (can_compare_p): Test the predicate of a
22242         cbranch and cstore pattern.
22243
22244 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22245
22246         * expr.c (convert_move): Use emit_store_flag instead of
22247         "emulating" it.
22248
22249 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22250
22251         * config/i386/i386.c (ix86_compare_emitted): Remove.
22252         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
22253         ix86_compare_op0 like ix86_compare_emitted used to be handled.
22254         * config/i386/i386.h (ix86_compare_emitted): Remove.
22255         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
22256         instead of ix86_compare_emitted.
22257         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
22258
22259 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
22260
22261         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
22262         Add t-sysroot-suffix to tmake_file.
22263         * config/print-sysroot-suffix.sh: New file.
22264         * config/t-sysroot-suffix: New file.
22265
22266 2009-04-07  Ben Elliston  <bje@au.ibm.com>
22267
22268         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
22269         as the latter produces a warning when the target does not support
22270         infinity.
22271
22272 2009-04-07  Ben Elliston  <bje@au.ibm.com>
22273
22274         * dfp.c: Replace type punning assignments with memcpy throughout.
22275         * Makefile.in (dfp.o-warn): Remove.
22276
22277 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
22278
22279         PR target/39634
22280         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
22281         Include soft-fp/t-softfp after rs6000/t-linux64.
22282
22283 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
22284
22285         * stor-layout.c (set_sizetype): Use the full precision of their
22286         machine mode for bitsize types.
22287
22288 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
22289
22290         * config/i386/i386.md: Revert 2 accidental checkins.
22291
22292 2009-04-06  Joey Ye  <joey.ye@intel.com>
22293             Xuepeng Guo  <xuepeng.guo@intel.com>
22294             H.J. Lu  <hongjiu.lu@intel.com>
22295
22296         Atom pipeline model, tuning and insn selection.
22297         * config.gcc (atom): Add atom config options and target.
22298
22299         * config/i386/atom.md: New.
22300
22301         * config/i386/i386.c (atom_cost): New cost.
22302         (m_ATOM): New macro flag.
22303         (initial_ix86_tune_features): Set m_ATOM.
22304         (x86_accumulate_outgoing_args): Likewise.
22305         (x86_arch_always_fancy_math_387): Likewise.
22306         (processor_target): Add Atom cost.
22307         (cpu_names): Add Atom cpu name.
22308         (override_options): Set Atom ISA.
22309         (ix86_issue_rate): New case PROCESSOR_ATOM.
22310         (ix86_adjust_cost): Likewise.
22311
22312         * config/i386/i386.h (TARGET_ATOM): New target macro.
22313         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
22314         (TARGET_OPT_AGU): New target option.
22315         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
22316         (processor_type): Add PROCESSOR_ATOM.
22317
22318         * config/i386/i386.md (cpu): Add new value "atom".
22319         (use_carry, movu): New attr.
22320         (atom.md): Include atom.md.
22321         (adddi3_carry_rex64): Set attr "use_carry".
22322         (addqi3_carry): Likewise.
22323         (addhi3_carry): Likewise.
22324         (addsi3_carry): Likewise.
22325         (*addsi3_carry_zext): Likewise.
22326         (subdi3_carry_rex64): Likewise.
22327         (subqi3_carry): Likewise.
22328         (subhi3_carry): Likewise.
22329         (subsi3_carry): Likewise.
22330         (x86_movdicc_0_m1_rex64): Likewise.
22331         (*x86_movdicc_0_m1_se): Likewise.
22332         (x86_movsicc_0_m1): Likewise.
22333         (*x86_movsicc_0_m1_se): Likewise.
22334         (*adddi_1_rex64): Emit add insn as much as possible.
22335         (*addsi_1): Likewise.
22336         (return_internal): Set atom_unit.
22337         (return_internal_long): Likewise.
22338         (return_pop_internal): Likewise.
22339         (*rcpsf2_sse): Set atom_sse_attr attr.
22340         (*qrt<mode>2_sse): Likewise.
22341         (*prefetch_sse): Likewise.
22342
22343         * config/i386/i386-c.c (ix86_target_macros_internal): New case
22344         PROCESSOR_ATOM.
22345         (ix86_target_macros_internal): Likewise.
22346
22347         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
22348         (*prefetch_sse_rex): Likewise.
22349         (sse_rcpv4sf2): Likewise.
22350         (sse_vmrcpv4sf2): Likewise.
22351         (sse_sqrtv4sf2): Likewise.
22352         (<sse>_vmsqrt<mode>2): Likewise.
22353         (sse_ldmxcsr): Likewise.
22354         (sse_stmxcsr): Likewise.
22355         (*sse_sfence): Likewise.
22356         (sse2_clflush): Likewise.
22357         (*sse2_mfence): Likewise.
22358         (*sse2_lfence): Likewise.
22359         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
22360         (<sse>_movup<ssemodesuffixf2c>): Likewise.
22361         (avx_movdqu<avxmodesuffix>): Likewise.
22362         (avx_lddqu<avxmodesuffix>): Likewise.
22363         (sse2_movntv2di): Change attr "type" to "ssemov".
22364         (sse2_movntsi): Likewise.
22365         (rsqrtv8sf2): Change attr "type" to "sseadd".
22366         (sse3_addsubv2df3): Set attr "atom_unit".
22367         (sse3_h<plusminus_insn>v4sf3): Likewise.
22368         (*sse2_pmaddwd): Likewise.
22369         (*vec_extractv2di_1_rex64): Likewise.
22370         (*vec_extractv2di_1_avx): Likewise.
22371         (sse2_psadbw): Likewise.
22372         (ssse3_phaddwv8hi3): Likewise.
22373         (ssse3_phaddwv4hi3): Likewise.
22374         (ssse3_phadddv4si3): Likewise.
22375         (ssse3_phadddv2si3): Likewise.
22376         (ssse3_phaddswv8hi3): Likewise.
22377         (ssse3_phaddswv4hi3): Likewise.
22378         (ssse3_phsubwv8hi3): Likewise.
22379         (ssse3_phsubwv4hi3): Likewise.
22380         (ssse3_phsubdv4si3): Likewise.
22381         (ssse3_phsubdv2si3): Likewise.
22382         (ssse3_phsubswv8hi3): Likewise.
22383         (ssse3_phsubswv4hi3): Likewise.
22384         (ssse3_pmaddubsw128): Likewise.
22385         (sse3_pmaddubsw: Likewise.
22386         (ssse3_palignrti): Likewise.
22387         (ssse3_palignrdi): Likewise.
22388
22389 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
22390
22391         * doc/install.texi (Specific): Fix two cross-references to MinGW.
22392
22393 2009-04-06  Richard Guenther  <rguenther@suse.de>
22394
22395         PR tree-optimization/28868
22396         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
22397         of which PHI results we inserted.
22398         (insert_into_preds_of_block): Record inserted PHIs.
22399         (eliminate): Eliminate redundant PHI nodes.
22400         (init_pre): Init inserted_phi_names.
22401
22402 2009-04-06  Richard Guenther  <rguenther@suse.de>
22403
22404         PR tree-optimization/39643
22405         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
22406         IMAGPART_EXPRs of complex constants.
22407         (execute_fold_all_builtins): If we folded a call queue
22408         TODO_update_address_taken.
22409
22410 2009-04-06  Jan Hubicka  <jh@suse.cz>
22411
22412         PR middle-end/39659
22413         * except.c (remove_unreachable_regions): Propagate may_contain_throw
22414         flag.
22415
22416 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
22417
22418         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
22419         delay slot.
22420         (ic_invalidate_array): Likewise.
22421
22422 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
22423
22424         * calls.c (emit_library_call_value_1): Fix a problem with parameter
22425         alignment for library calls.
22426
22427 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
22428
22429         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
22430         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
22431         * config/i386/mingw-stdint.h:  New file.
22432
22433 2009-04-05  Richard Guenther  <rguenther@suse.de>
22434
22435         PR tree-optimization/39648
22436         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
22437         our &A vs. &A[0] IL deficiencies.
22438
22439 2009-04-04  Jan Hubicka  <jh@suse.cz>
22440
22441         * except.c (sjlj_find_directly_reachable_regions): Be ready for
22442         removed toplevel regions.
22443         (sjlj_mark_call_sites): Likewise.
22444
22445 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
22446
22447         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
22448         (cygwin tm clause use_gcc_stdint):  Set to wrap.
22449         * config/i386/cygwin-stdint.h:  New file.
22450
22451 2009-04-04  Richard Guenther  <rguenther@suse.de>
22452
22453         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
22454         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
22455         single-argument PHIs if we are in loop-closed SSA form.
22456         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
22457         for the pre-condition.
22458         (slpeel_tree_peel_loop_to_edge): Likewise.
22459         (vect_build_loop_niters): Take an optional sequence to append stmts.
22460         (vect_generate_tmps_on_preheader): Likewise.
22461         (vect_do_peeling_for_loop_bound): Take extra guards for the
22462         pre-condition.
22463         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
22464         the cost model check.
22465         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
22466         guards if we are going to peel.  Do not apply versioning in that case.
22467         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
22468         (vect_do_peeling_for_loop_bound): Likewise.
22469         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
22470         loop bound only record extra pre-conditions, do not apply loop
22471         versioning.
22472
22473 2009-04-04  Richard Guenther  <rguenther@suse.de>
22474
22475         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
22476         renaming code.
22477
22478 2009-04-04  Jan Hubicka  <jh@suse.cz>
22479
22480         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
22481         last_basic_block for size of bb->index indexed array.
22482         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
22483         compute_out, link_btr_uses, build_btr_def_use_webs,
22484         build_btr_def_use_webs, migrate_btr_defs): Likewise.
22485
22486 2009-04-04  Jan Hubicka  <jh@suse.cz>
22487
22488         * except.c (remove_eh_handler_and_replace): Break out from ...
22489         (remove_eh_handler): ... here.
22490         (bring_to_root): New function.
22491         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
22492         handled ones, bring others to root of tree.
22493
22494 2009-04-04  Jan Hubicka  <jh@suse.cz>
22495
22496         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
22497         (all_phis_safe_to_merge): New function.
22498         (update_info): New structure.
22499         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
22500         (cleanup_empty_eh): Update SSA if possible.
22501
22502 2009-04-04  Richard Guenther  <rguenther@suse.de>
22503
22504         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
22505         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
22506         (append_vuse): Likewise.
22507
22508 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
22509
22510         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
22511         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
22512         instead of REG_UNSAVED for DW_CFA_undefined.
22513         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
22514         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
22515         outermost frame.
22516
22517 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
22518
22519         PR target/39501
22520         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
22521
22522 2009-04-04  Richard Guenther  <rguenther@suse.de>
22523
22524         PR tree-optimization/8781
22525         PR tree-optimization/37892
22526         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
22527         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
22528         (valueize_refs): Call it for *& valueizations.
22529         (shared_reference_ops_from_ref): Rename to ...
22530         (valueize_shared_reference_ops_from_ref): ... this and valueize.
22531         (shared_reference_ops_from_call): Rename to ...
22532         (valueize_shared_reference_ops_from_call): ... this and valueize.
22533         (vn_reference_lookup): Update.
22534         (visit_reference_op_call): Likewise.
22535         * tree-ssa-pre.c (phi_translate_1): Fold *&.
22536         (eliminate): Value-replace the call address in call statements.
22537
22538 2009-04-04  Richard Guenther  <rguenther@suse.de>
22539
22540         PR tree-optimization/39636
22541         * tree-ssa-forwprop.c
22542         (forward_propagate_addr_into_variable_array_index): Check for
22543         GIMPLE_ASSIGN before accessing the rhs code.
22544
22545 2009-04-03  Jason Merrill  <jason@redhat.com>
22546
22547         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
22548
22549 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
22550
22551         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
22552         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
22553         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
22554         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
22555         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
22556         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
22557         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
22558         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
22559         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
22560         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
22561         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
22562         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
22563         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
22564         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
22565         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
22566         Use fr_reg_or_fp01_operand instead of fr_register_operand
22567
22568         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
22569         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
22570         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
22571
22572 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
22573
22574         PR rtl-optimization/39607
22575         PR rtl-optimization/39631
22576
22577         Revert:
22578
22579         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
22580         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
22581         instead of DF_LR_OUT.
22582         * ira-lives.c (process_bb_node_lives): Ditto.
22583         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
22584         instead of DF_LR_{OUT,IN}.
22585         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
22586         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
22587
22588 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
22589
22590         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
22591         (execute_lower_omp): Always run but take the short way out if -fopenmp
22592         is not given.
22593         (gate_lower_omp): Remove, forcing the pass manager to always run the
22594         pass and always set PROP_gimple_lomp.
22595         (pass_lower_omp): Remove gate function.
22596         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
22597         PROP_trees.  Instead, require it.
22598         * ipa-cp.c (pass_ipa_cp): Likewise.
22599         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
22600         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
22601         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
22602         and PROP_gimple_leh.
22603
22604 2009-04-03  Richard Guenther  <rguenther@suse.de>
22605
22606         PR middle-end/13146
22607         PR tree-optimization/23940
22608         PR tree-optimization/33237
22609         PR middle-end/33974
22610         PR middle-end/34093
22611         PR tree-optimization/36201
22612         PR tree-optimization/36230
22613         PR tree-optimization/38049
22614         PR tree-optimization/38207
22615         PR tree-optimization/38230
22616         PR tree-optimization/38301
22617         PR tree-optimization/38585
22618         PR middle-end/38895
22619         PR tree-optimization/38985
22620         PR tree-optimization/39299
22621         * tree-ssa-structalias.h: Remove.
22622         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
22623         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
22624         (struct vuse_element_d): Remove.
22625         (struct vuse_vec_d): Likewise.
22626         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
22627         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
22628         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
22629         VUSE_ELEMENT_VAR): Likewise.
22630         (struct voptype_d): Likewise.
22631         (NUM_VOP_FREE_BUCKETS): Likewise.
22632         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
22633         (struct stmt_operands_d): Remove.
22634         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
22635         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
22636         VDEF_NUM, VDEF_VECT): Likewise.
22637         (copy_virtual_operands): Remove.
22638         (operand_build_cmp): Likewise.
22639         (create_ssa_artificial_load_stmt): Likewise.
22640         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
22641         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
22642         vuse_index and mayuse_index members.  Pack and move done and iter_type
22643         members to the front.
22644         (SSA_OP_VMAYUSE): Remove.
22645         (SSA_OP_VIRTUAL_USES): Adjust.
22646         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
22647         (unlink_stmt_vdef): Declare.
22648         (add_to_addressable_set): Remove.
22649         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
22650         (vrp_visit_stmt): Likewise.
22651         * doc/tree-ssa.texi (Alias analysis): Update.
22652         * doc/invoke.texi (max-aliased-vops): Remove docs.
22653         (avg-aliased-vops): Likewise.
22654         * tree-into-ssa.c (syms_to_rename): Remove.
22655         (need_to_update_vops_p): Likewise.
22656         (need_to_initialize_update_ssa_p): Rename to ...
22657         (update_ssa_initialized_fn): ... this.  Track function we are
22658         initialized for.
22659         (symbol_marked_for_renaming): Simplify.
22660         (add_new_name_mapping): Do not set need_to_update_vops_p.
22661         (dump_currdefs): Use SYMS_TO_RENAME.
22662         (rewrite_update_stmt): Always walk all uses/defs.
22663         (dump_update_ssa): Adjust.
22664         (init_update_ssa): Take function argument.  Track what we are
22665         initialized for.
22666         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
22667         (create_new_def_for): Initialize for cfun, assert we are initialized
22668         for cfun.
22669         (mark_sym_for_renaming): Simplify.
22670         (mark_set_for_renaming): Do not initialize update-ssa.
22671         (need_ssa_update_p): Simplify.  Take function argument.
22672         (name_mappings_registered_p): Assert we ask for the correct function.
22673         (name_registered_for_update_p): Likewise.
22674         (ssa_names_to_replace): Likewise.
22675         (release_ssa_name_after_update_ssa): Likewise.
22676         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
22677         (dump_decl_set): Do not print a newline.
22678         (debug_decl_set): Do it here.
22679         (dump_update_ssa): And here.
22680         * tree-ssa-loop-im.c (move_computations): Adjust.
22681         (movement_possibility): Likewise.
22682         (determine_max_movement): Likewise.
22683         (gather_mem_refs_stmt): Likewise.
22684         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
22685         or NAME_MEMORY_TAG.
22686         * tree-complex.c (update_all_vops): Remove.
22687         (expand_complex_move): Adjust.
22688         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
22689         Simplify test for memory referencing statement.  Exclude
22690         non-invariant ADDR_EXPRs.
22691         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
22692         * tree-loop-distribution.c (generate_memset_zero): Adjust.
22693         (rdg_flag_uses): Likewise.
22694         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
22695         related code.
22696         (tree_optimize_tail_calls_1): Also split the
22697         edge from the entry block if we have degenerate PHI nodes in
22698         the first basic block.
22699         * tree.c (init_ttree): Remove memory-tag related code.
22700         (tree_code_size): Likewise.
22701         (tree_node_structure): Likewise.
22702         (build7_stat): Re-write to be build6_stat.
22703         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
22704         (SSA_VAR_P): Adjust.
22705         (struct tree_memory_tag): Remove.
22706         (struct tree_memory_partition_tag): Likewise.
22707         (union tree_node): Adjust.
22708         (build7): Re-write to be build6.
22709         * tree-pass.h (pass_reset_cc_flags): Remove.
22710         (TODO_update_address_taken): New flag.
22711         (pass_simple_dse): Remove.
22712         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
22713         * params.h (MAX_ALIASED_VOPS): Remove.
22714         (AVG_ALIASED_VOPS): Likewise.
22715         * omp-low.c (expand_omp_taskreg): Update SSA form.
22716         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
22717         aliases the lhs in a copy stmt.
22718         * tree-ssa-dse.c (struct address_walk_data): Remove.
22719         (memory_ssa_name_same): Likewise.
22720         (memory_address_same): Likewise.
22721         (get_kill_of_stmt_lhs): Likewise.
22722         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
22723         unused stores.  Look through PHI nodes into post-dominated regions.
22724         (dse_optimize_stmt): Simplify.  Properly remove stores.
22725         (tree_ssa_dse): Compute dominators.
22726         (execute_simple_dse): Remove.
22727         (pass_simple_dse): Likewise.
22728         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
22729         gimple_loaded_syms and gimple_stored_syms computation.
22730         * toplev.c (dump_memory_report): Dump alias and pta stats.
22731         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
22732         (vn_reference_eq): Likewise.
22733         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
22734         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
22735         valueize_vuses): Remove.
22736         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
22737         (get_def_ref_stmt_vuse): ... this.
22738         (vn_reference_lookup_2): New function.
22739         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
22740         walking equivalent vuses.  Simplify.
22741         (vn_reference_lookup): Likewise.
22742         (vn_reference_insert): Likewise.
22743         (vn_reference_insert_pieces): Likewise.
22744         (visit_reference_op_call): Simplify.
22745         (visit_reference_op_load): Likewise.
22746         (visit_reference_op_store): Likewise.
22747         (init_scc_vn): Remove shared_lookup_vuses initialization.
22748         (free_scc_vn): Remove shared_lookup_vuses freeing.
22749         (sort_vuses, sort_vuses_heap): Remove.
22750         (get_ref_from_reference_ops): Export.
22751         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
22752         vector with single vuse pointer.
22753         (vn_reference_lookup_pieces, vn_reference_lookup,
22754         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
22755         (shared_vuses_from_stmt): Remove.
22756         (get_ref_from_reference_ops): Declare.
22757         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
22758         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
22759         memory-tag related code.
22760         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
22761         (likely_value): Add comment, skip static-chain of call statements.
22762         (surely_varying_stmt_p): Adjust.
22763         (gimplify_and_update_call_from_tree): Likewise.
22764         (execute_fold_all_builtins): Do not rebuild alias info.
22765         (gimplify_and_update_call_from_tree): Properly update VOPs.
22766         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
22767         (copy_ref_info): Remove memory-tag related code.
22768         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
22769         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
22770         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
22771         computation.
22772         * tree-ssa-dom.c (gimple_p): Remove typedef.
22773         (eliminate_redundant_computations): Adjust.
22774         (record_equivalences_from_stmt): Likewise.
22775         (avail_expr_hash): Likewise.
22776         (avail_expr_eq): Likewise.
22777         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
22778         (stmt_makes_single_load): Likewise.
22779         (stmt_makes_single_store): Likewise.
22780         * tree-ssa-alias.c: Rewrite completely.
22781         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
22782         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
22783         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
22784         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
22785         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
22786         Remove public functions.
22787         (pass_reset_cc_flags): Remove.
22788         (pass_build_alias): Move ...
22789         * tree-ssa-structalias.c (pass_build_alias): ... here.
22790         * tree-ssa-alias.c (may_be_aliased): Move ...
22791         * tree-flow-inline.h (may_be_aliased): ... here.
22792         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
22793         count_uses_and_derefs): Move ...
22794         * gimple.c: ... here.
22795         * gimple.h (count_uses_and_derefs): Declare.
22796         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
22797         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
22798         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
22799         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
22800         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
22801         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
22802         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
22803         New functions.
22804         * tree-dfa.c (refs_may_alias_p): Move ...
22805         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
22806         * tree-ssa-alias.h: New file.
22807         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
22808         (statement_sink_location): Likewise.
22809         * opts.c (decode_options): Do not adjust max-aliased-vops or
22810         avg-aliased-vops values.
22811         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
22812         (TV_CALL_CLOBBER): Likewise.
22813         (TV_FLOW_SENSITIVE): Likewise.
22814         (TV_FLOW_INSENSITIVE): Likewise.
22815         (TV_MEMORY_PARTITIONING): Likewise.
22816         (TV_ALIAS_STMT_WALK): New timevar.
22817         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
22818         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
22819         (get_address_description): Remove memory-tag related code.
22820         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
22821         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
22822         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
22823         and immediate uses in statements.  Document.
22824         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
22825         (dump_symbols): Remove.
22826         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
22827         * alias.c (get_deref_alias_set): New function split out from ...
22828         (get_alias_set): ... here.
22829         * alias.h (get_deref_alias_set): Declare.
22830         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
22831         type parameter.  Remove restrict pointer handling.  Create a
22832         ref-all pointer in case type-based alias sets do not conflict.
22833         (vect_analyze_data_refs): Remove SMT related code.
22834         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
22835         (vectorizable_load): Likewise.
22836         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
22837         (DR_SYMBOL_TAG, DR_VOPS): Remove.
22838         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
22839         Ignore vops and SMTs.
22840         (dr_analyze_alias): Likewise..
22841         (free_data_ref): Likewise.
22842         (create_data_ref): Likewise.
22843         (analyze_all_data_dependences): Likewise.
22844         (get_references_in_stmt): Adjust.
22845         * tree-flow-inline.h (gimple_aliases_computed_p,
22846         gimple_addressable_vars, gimple_call_clobbered_vars,
22847         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
22848         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
22849         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
22850         gimple_mem_ref_stats): Remove.
22851         (gimple_vop): New function.
22852         (op_iter_next_use): Remove vuses and mayuses cases.
22853         (op_iter_next_def): Remove vdefs case.
22854         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
22855         (clear_and_done_ssa_iter): Do not set removed fields.
22856         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
22857         Assert we are not iterating over vuses or vdefs if not also
22858         iterating over uses or defs.
22859         (op_iter_init_use): Likewise.
22860         (op_iter_init_def): Likewise.
22861         (op_iter_next_vdef): Remove.
22862         (op_iter_next_mustdef): Likewise.
22863         (op_iter_init_vdef): Likewise.
22864         (compare_ssa_operands_equal): Likewise.
22865         (link_use_stmts_after): Handle vuse operand.
22866         (is_call_used): Use is_call_clobbered.
22867         (is_call_clobbered): Global variables are always call clobbered,
22868         query the call-clobbers bitmap.
22869         (mark_call_clobbered): Ignore global variables.
22870         (clear_call_clobbered): Likewise.
22871         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
22872         virtual operands sanity check.
22873         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
22874         Remove.
22875         (TARGET_MEM_REF): Remove TMR_TAG operand.
22876         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
22877         Remove call-clobber related code.
22878         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
22879         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
22880         partitions or escape reason.
22881         (get_single_def_stmt, get_single_def_stmt_from_phi,
22882         get_single_def_stmt_with_phi): Remove.
22883         (dump_referenced_vars): Tidy.
22884         (get_ref_base_and_extent): Allow bare decls.
22885         (collect_dfa_stats): Adjust.
22886         * graphite.c (rename_variables_in_stmt): Adjust.
22887         (graphite_copy_stmts_from_block): Likewise.
22888         (translate_clast): Likewise.
22889         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
22890         (EXPR_DIES): New.
22891         (translate_vuse_through_block): Use the oracle.
22892         (phi_translate_1): Adjust.
22893         (value_dies_in_block_x): Use the oracle.  Cache the outcome
22894         in EXPR_DIES.
22895         (valid_in_sets): Check if the VUSE for
22896         a REFERENCE is available.
22897         (eliminate): Do not remove stmts during elimination,
22898         instead queue and remove them afterwards.
22899         (do_pre): Do not rebuild alias info.
22900         (pass_pre): Run TODO_rebuild_alias before PRE.
22901         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
22902         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
22903         (mark_all_v_defs_stmt): Remove.
22904         (mark_all_v_defs_seq): Adjust.
22905         (sra_replace): Likewise.
22906         (scalarize_use): Likewise.
22907         (scalarize_copy): Likewise.
22908         (scalarize_init): Likewise.
22909         (scalarize_ldst): Likewise.
22910         (todoflags): Remove.
22911         (tree_sra): Do not rebuild alias info.
22912         (tree_sra_early): Adjust.
22913         (pass_sra): Run TODO_update_address_taken before SRA.
22914         * tree-predcom.c (set_alias_info): Remove.
22915         (prepare_initializers_chain): Do not call it.
22916         (mark_virtual_ops_for_renaming): Adjust.
22917         (mark_virtual_ops_for_renaming_list): Remove.
22918         (initialize_root_vars): Adjust.
22919         (initialize_root_vars_lm): Likewise.
22920         (prepare_initializers_chain): Likewise.
22921         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
22922         (may_propagate_copy_into_stmt): Likewise.
22923         (merge_alias_info): Do nothing for now.
22924         (propagate_tree_value_into_stmt): Adjust.
22925         (stmt_may_generate_copy): Likewise.
22926         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
22927         not mark symbols for renaming.
22928         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
22929         with the same statement, make sure to update the new pointed-to one.
22930         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
22931         call statements, do not mark symbols for renaming.
22932         (mark_operand_necessary): Dump something.
22933         (ref_may_be_aliased): New function.
22934         (mark_aliased_reaching_defs_necessary_1): New helper function.
22935         (mark_aliased_reaching_defs_necessary): Likewise.
22936         (mark_all_reaching_defs_necessary_1): Likewise.
22937         (mark_all_reaching_defs_necessary): Likewise.
22938         (propagate_necessity): Do not process virtual PHIs.  For
22939         non-aliased loads mark all reaching definitions as necessary.
22940         For aliased loads and stores mark the immediate dominating
22941         aliased clobbers as necessary.
22942         (visited): New global static.
22943         (perform_tree_ssa_dce): Free visited bitmap after propagating
22944         necessity.
22945         (remove_dead_phis): Perform simple dead virtual PHI removal.
22946         (remove_dead_stmt): Properly unlink virtual operands when
22947         removing stores.
22948         (eliminate_unnecessary_stmts): Schedule PHI removal after
22949         stmt removal.
22950         * tree-ssa-ter.c (is_replaceable_p): Adjust.
22951         (process_replaceable): Likewise.
22952         (find_replaceable_in_bb): Likewise.
22953         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
22954         based on the single gimple vop.
22955         (verify_flow_insensitive_alias_info): Remove.
22956         (verify_flow_sensitive_alias_info): Likewise.
22957         (verify_call_clobbering): Likewise.
22958         (verify_memory_partitions): Likewise.
22959         (verify_alias_info): Likewise.
22960         (verify_ssa): Adjust..
22961         (execute_update_addresses_taken): Export.  Update SSA
22962         manually.  Optimize only when optimizing.  Use a local bitmap.
22963         (pass_update_address_taken): Remove TODO_update_ssa, add
22964         TODO_dump_func.
22965         (pass_update_address_taken): Just use TODO_update_address_taken.
22966         (init_tree_ssa): Do not initialize addressable_vars.
22967         (verify_ssa): Verify new VUSE / VDEF properties.
22968         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
22969         Do not call verify_alias_info.
22970         (delete_tree_ssa): Clear the VUSE, VDEF operands.
22971         Do not free the loaded and stored syms bitmaps.  Reset the escaped
22972         and callused solutions.  Do not free addressable_vars.
22973         Remove memory-tag related code.
22974         (warn_uninitialized_var): Aliases are always available.
22975         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
22976         * lambda-code.c (can_put_in_inner_loop): Adjust.
22977         (can_put_after_inner_loop): Likewise.
22978         (perfect_nestify): Likewise.
22979         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
22980         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
22981         (vectorizable_conversion): Do not mark symbols for renaming.
22982         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
22983         (expand_call_inline): Unlink the calls virtual operands before
22984         replacing it.
22985         (tree_function_versioning): Do not call update_ssa if we are not
22986         updating clones.  Simplify.
22987         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
22988         (propagate_with_phi): Likewise..
22989         * tree-outof-ssa.c (create_temp): Remove memory tag and call
22990         clobber code.  Assert we are not aliased or global.
22991         * tree-flow.h: Include tree-ssa-alias.h
22992         (enum escape_type): Remove.
22993         (struct mem_sym_stats_d): Likewise.
22994         (struct mem_ref_stats_d): Likewise.
22995         (struct gimple_df): Add vop member.  Remove global_var,
22996         call_clobbered_vars, call_used_vars, addressable_vars,
22997         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
22998         escaped and callused members.
22999         (struct ptr_info_def): Remove all members, add points-to solution
23000         member pt.
23001         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
23002         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
23003         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
23004         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
23005         (tree-ssa-alias.o): Likewise.
23006         (toplev.o): Add tree-ssa-alias.h
23007         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
23008         * gimple.c (gimple_set_bb): Fix off-by-one error.
23009         (is_gimple_reg): Do not handle memory tags.
23010         (gimple_copy): Also copy virtual operands.
23011         Delay updating the statement.  Do not reset loaded and stored syms.
23012         (gimple_set_stored_syms): Remove.
23013         (gimple_set_loaded_syms): Likewise.
23014         (gimple_call_copy_skip_args): Copy the virtual operands
23015         and mark the new statement modified.
23016         * tree-ssa-structalias.c (may_alias_p): Remove.
23017         (set_uids_in_ptset): Take the alias set to prune with as
23018         parameter.  Fold in the alias test of may_alias_p.
23019         (compute_points_to_sets): Compute whether a ptr is dereferenced
23020         in a local sbitmap.
23021         (process_constraint): Deal with &ANYTHING on the lhs, reject all
23022         other ADDRESSOF constraints on the lhs.
23023         (get_constraint_for_component_ref): Assert that we don't get
23024         ADDRESSOF constraints from the base of the reference.
23025         Properly generate UNKNOWN_OFFSET for DEREF if needed.
23026         (struct variable_info): Remove collapsed_to member.
23027         (get_varinfo_fc): Remove.
23028         (new_var_info): Do not set collapsed_to.
23029         (dump_constraint): Do not follow cycles.
23030         (dump_constraint_graph): Likewise.
23031         (build_pred_graph): Likewise.
23032         (build_succ_graph): Likewise.
23033         (rewrite_constraints): Likewise.
23034         (do_simple_structure_copy): Remove.
23035         (do_rhs_deref_structure_copy): Remove.
23036         (do_lhs_deref_structure_copy): Remove.
23037         (collapse_rest_of_var): Remove.
23038         (do_structure_copy): Re-implement.
23039         (pta_stats): New global variable.
23040         (dump_pta_stats): New function.
23041         (struct constraint_expr): Make offset signed.
23042         (UNKNOWN_OFFSET): Define special value.
23043         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
23044         (solution_set_expand): New helper function split out from ...
23045         (do_sd_constraint): ... here.
23046         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
23047         (do_ds_constraint): Likewise.
23048         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
23049         and CALLUSED = *CALLUSED.
23050         (set_union_with_increment): Make inc argument signed.
23051         (type_safe): Remove.
23052         (get_constraint_for_ptr_offset): Handle unknown and negative
23053         constant offsets.
23054         (first_vi_for_offset): Handle offsets before start.  Bail
23055         out early for offsets beyond the variable extent.
23056         (first_or_preceding_vi_for_offset): New function.
23057         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
23058         Together with ESCAPED = *ESCAPED this properly computes reachability.
23059         (find_what_var_points_to): New function.
23060         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
23061         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
23062         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
23063         pt_solutions_intersect): New functions.
23064         (compute_call_used_vars): Remove.
23065         (compute_may_aliases): New main entry into PTA computation.
23066         * gimple.h (gimple_p): New typedef.
23067         (struct gimple_statement_base): Remove references_memory_p.
23068         (struct gimple_statement_with_memory_ops_base): Remove
23069         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
23070         members.
23071         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
23072         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
23073         gimple_set_references_memory): Remove.
23074         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
23075         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
23076         New functions.
23077         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
23078         (verify_expr): Allow RESULT_DECL.
23079         (gimple_duplicate_bb): Do not copy virtual operands.
23080         (gimple_duplicate_sese_region): Adjust.
23081         (gimple_duplicate_sese_tail): Likewise.
23082         (mark_virtual_ops_in_region): Remove.
23083         (move_sese_region_to_fn): Do not call it.
23084         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
23085         and pass_simple_dse.
23086         (execute_function_todo): Handle TODO_update_address_taken,
23087         call execute_update_addresses_taken for TODO_rebuild_alias.
23088         (execute_todo): Adjust.
23089         (execute_one_pass): Init dump files early.
23090         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
23091         call-clobbered.
23092         (create_general_new_stmt): Clear vops.
23093         * tree-ssa-reassoc.c (get_rank): Adjust.
23094         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
23095         symbols for renaming.
23096         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
23097         (PARAM_AVG_ALIASED_VOPS): Likewise.
23098         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
23099         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
23100         * tree-ssa-operands.c: Simplify for new virtual operand representation.
23101         (operand_build_cmp, copy_virtual_operands,
23102         create_ssa_artificial_load_stmt, add_to_addressable_set,
23103         gimple_add_to_addresses_taken): Remove public functions.
23104         (unlink_stmt_vdef): New function.
23105
23106 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
23107
23108         * config.gcc (powerpc-*-linux*): Merge variants.
23109
23110 2009-04-02  Chao-ying Fu  <fu@mips.com>
23111             James Grosbach  <james.grosbach@microchip.com>
23112
23113         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
23114         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
23115         cop0_sp_offset.
23116         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
23117         keep_interrupts_masked_p, use_debug_exception_return_p.
23118         (mips_attribute_table): Add interrupt, use_shadow_register_set,
23119         keep_interrupts_masked, use_debug_exception_return.
23120         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
23121         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
23122         New functions.
23123         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
23124         (mips_print_operand): Process COP0 registers to print $0 .. $31
23125         correctly for GAS to process.
23126         (mips_interrupt_extra_call_saved_reg_p): New function.
23127         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
23128         extra registers.
23129         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
23130         (mips_compute_frame_info): Add supports for interrupt context that
23131         includes doubleword accumulators and COP0 registers.
23132         (mips_for_each_saved_acc): New function.
23133         (mips_for_each_saved_gpr_and_fpr): Change the function name from
23134         mips_for_each_saved_reg.
23135         (mips_save_reg): Save accumulators.
23136         (mips_kernel_reg_p): A new for_each_rtx callback.
23137         (mips_expand_prologue): Support interrupt handlers.
23138         (mips_restore_reg): Restore accumulators.
23139         (mips_expand_epilogue): Support interrupt handlers.
23140         (mips_can_use_return_insn): Return false for interrupt handlers.
23141         (mips_epilogue_uses): New function.
23142         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
23143         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
23144         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
23145         cop0_move): New instructions.
23146         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
23147         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
23148         defines.
23149         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
23150         New defines.
23151         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
23152         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
23153         interrupt handlers, we use K0 as the temporary register.
23154         (EPILOGUE_USES): Change to a function call.
23155         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
23156         handlers, we use K0 as the temporary register.
23157
23158         * doc/extend.texi (Function Attributes): Document interrupt,
23159         use_shadow_register_set, keep_interrupts_masked,
23160         use_debug_exception_return for MIPS attributes.
23161
23162 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
23163
23164         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
23165         Remove a number of t-files from tmake_file.
23166         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
23167         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
23168         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
23169         target_prototype, not TARGET_PROTOTYPE.
23170         (LINK_OS_GNU_SPEC): Define.
23171         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
23172         and darwin-ldoubdle.c.
23173
23174 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
23175
23176         PR driver/39293
23177         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
23178         (cpp_options): Ditto.
23179         (default_compilers): Ditto.
23180         (display_help): Ditto.
23181         (process_command): Ditto.
23182         (do_spec_1): Ditto.
23183         (set_input): Use lbasename instead of duplicate code.
23184         (save_temps_prefix): New static for -save-temps=obj.
23185         (save_temps_length): Ditto.
23186
23187         * doc/invoke.texi (-save-temps=obj): Document new variant to
23188         -save-temps switch.
23189
23190 2009-04-02  Jeff Law  <law@redhat.com>
23191
23192         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
23193         variable.
23194
23195 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
23196
23197         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
23198         * configure: Regenerated.
23199
23200 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
23201
23202         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
23203         share the argument list.
23204
23205 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
23206
23207         Merge
23208
23209         2009-02-12  Diego Novillo  <dnovillo@google.com>
23210
23211         * varpool.c (debug_varpool): New.
23212         * cgraph.h (debug_varpool): Declare.
23213
23214 2009-04-02  Jan Hubicka  <jh@suse.cz>
23215
23216         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
23217         pass.
23218
23219 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
23220
23221         * config/i386/i386.c (ix86_abi): Move initialization to ...
23222         (override_options): Here.
23223
23224 2009-04-02  Christian Bruel  <christian.bruel@st.com>
23225
23226         * config/sh/sh.c (sh_dwarf_register_span): New function.
23227         (TARGET_DWARF_REGISTER_SPAN): Define.
23228         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
23229
23230 2009-04-02  Ira Rosen  <irar@il.ibm.com>
23231
23232         PR tree-optimization/39595
23233         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
23234         interleaved loads group is not  greater than the SLP group size.
23235
23236 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
23237
23238         * builtins.c (is_builtin_name): New.
23239         (called_as_built_in): Use is_builtin_name.
23240         * tree.h (is_builtin_name): New.
23241         * varasm.c (incorporeal_function_p): Use is_builtin_name
23242
23243 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
23244
23245         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
23246
23247 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
23248
23249         PR c++/26693
23250         * c-decl.c (clone_underlying_type): Move this ...
23251         * c-common.c (set_underlying_type): ... here.
23252         Also, make sure the function properly sets TYPE_STUB_DECL() on
23253         the newly created typedef variant type.
23254         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
23255         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
23256         points.
23257
23258 2009-04-02  Richard Guenther  <rguenther@suse.de>
23259
23260         PR tree-optimization/37221
23261         * tree-flow.h (degenerate_phi_result): Declare.
23262         * tree-ssa-dom.c (degenerate_phi_result): Export.
23263         * tree-scalar-evolution.c (analyze_initial_condition): If
23264         the initial condition is defined by a degenerate PHI node
23265         use the degenerate value.
23266
23267 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
23268
23269         PR rtl-optimization/39588
23270         * combine.c (merge_outer_ops): Do not set the constant when this
23271         is not necessary.
23272         (simplify_shift_const_1): Do not modify it either in this case.
23273
23274 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
23275
23276         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
23277         tuning is deprecated if -mtune value is set to an Itanium1 variant.
23278
23279 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
23280
23281         PR c/29027
23282         * c-lex.c (interpret_float): Default (no suffix) is double.
23283
23284 2009-04-1  Xinliang David Li  <davidxl@google.com>
23285
23286         * config/i386/i386.c (legitimate_constant_p): Recognize
23287         all one vector constant.
23288
23289 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23290
23291         * config/vax/vax.c: Add #includes to silence warnings.
23292         Change #include order to silence two warnings.
23293
23294 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23295
23296         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
23297         (ASM_SPEC): Pass -k to the assembler for PIC code.
23298
23299 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23300
23301         * config.gcc: Add vax-*-linux* to the switch.
23302         * config/vax/linux.h: New file. (TARGET_VERSION,
23303         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
23304
23305 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23306
23307         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
23308         Use predicate macros instead of GET_CODE() == foo.
23309         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
23310         ashlsi3, rotrsi3, <unnamed>): Likewise.
23311
23312 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23313
23314         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
23315         jbbccihi, jbbccisi): Remova trailing whitespace.
23316         * config/vax/constraints.md: Likewise.
23317         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
23318         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
23319         * config/vax/predicates.md: Likewise.
23320         * config/vax/vax.c (print_operand_address, vax_output_int_move,
23321         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
23322         * config/vax/vax.h: Likewise.
23323         * config/vax/vax.md (nonlocal_goto): Likewise.
23324
23325 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23326
23327         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
23328         (indirectable_address_p, adjacent_operands_p): Add spaces around
23329         braces.
23330         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
23331
23332 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23333
23334         * config/vax/vax.c (legitimate_constant_address_p,
23335         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
23336         index_term_p, reg_plus_index_p, legitimate_address_p,
23337         vax_mode_dependent_address_p): Update comments to match functions
23338         modified by the recent int->bool conversion.
23339
23340 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23341
23342         * config/vax/builtins.md: Update copyright message.
23343         * config/vax/constraints.md: Likewise.
23344         * config/vax/netbsd-elf.h: Likewise.
23345         * config/vax/predicates.md: Likewise.
23346         * config/vax/vax-protos.h: Likewise.
23347         * config/vax/vax.c: Likewise.
23348         * config/vax/vax.h: Likewise.
23349         * config/vax/vax.md: Likewise.
23350         * config/vax/vax.opt: Likewise.
23351
23352 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23353
23354         * config/vax/builtins.md (ffssi2, ffssi2_internal,
23355         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
23356         * config/vax/constraints.md (B, R): Likewise.
23357         * config/vax/predicates.md (external_memory_operand,
23358         nonimmediate_addsub_di_operand): Likewise.
23359         * config/vax/vax.c (vax_output_int_add): Likewise.
23360         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
23361         untyped_call): Likewise.
23362
23363 2009-04-01  Matt Thomas  <matt@3am-software.com>
23364
23365         * config/vax/predicates.md: New file.
23366         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
23367         external_const_operand, nonsymbolic_operand, external_memory_operand,
23368         indirect_memory_operand, indexed_memory_operand,
23369         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
23370         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
23371         predicate.
23372         * config/vax/constraints.md: New file.
23373         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
23374         New constraint.
23375         * config/vax/builtins.md: New file.
23376         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
23377         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
23378         jbbccisi): Define.
23379         * config/vax/vax.opt (mqmath): Add option.
23380         * config/vax/vax.md (isfx): Extend with DI.
23381         (VAXintQH, VAXintQHSD): Define.
23382         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
23383         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
23384         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
23385         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
23386         (movdi): Update constraints and use vax_output_int_move().
23387         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
23388         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
23389         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
23390         nonlocal_goto): New.
23391         (mov<mode>): Extend accepted operand types.
23392         (subdi3_old): Rename from subdi3, change update constraints and use
23393         a new implementation.
23394         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
23395         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
23396         MOVE_RATIO, CLEAR_RATIO): Define.
23397         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
23398         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
23399         (PRINT_OPERAND): Redefine using a function instead of inlined code.
23400         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
23401         (split_quadword_operands): Make static and really allow variable
23402         splitting.
23403         (print_operand_address): Update for PIC generation.
23404         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
23405         indexable_address_p, fixup_mathdi_operand,
23406         vax_expand_addsub_di_operands, adjacent_operands_p): New.
23407         (vax_float_literal, legitimate_constant_p,
23408         indirectable_constant_address_p, index_term_p,
23409         reg_plus_index_p): Return bool instead of int.
23410         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
23411         where needed.
23412         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
23413         generation.
23414         (vax_output_conditional_branch): Indent.
23415         (legitimate_constant_address_p, indirectable_constant_address_p,
23416         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
23417         vax_mode_dependent_address_p): Return bool instead of int, update for
23418         PIC generation.
23419         * config/vax/vax-protos.h (legitimate_constant_address_p,
23420         legitimate_constant_p, legitimate_address_p,
23421         vax_mode_dependent_address_p): Change declaration to bool.
23422         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
23423         vax_expand_addsub_di_operands, vax_output_int_subtract,
23424         vax_output_movmemsi): Declare.
23425         (split_quadword_operands, vax_float_literal): Delete declaration.
23426         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
23427         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
23428         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
23429         ASM_OUTPUT_DWARF_PCREL): Define.
23430         (ASM_SPEC): Change definition to allow PIC generation.
23431
23432 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
23433
23434         * doc/sourcebuild.texi: Update front-end requirements.
23435
23436 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
23437
23438         PR target/39226
23439         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
23440         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
23441         (booldi3_internal3): Use boolean_or_operator instead of
23442         boolean_operator.
23443
23444 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
23445
23446         PR c/39605
23447         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
23448         declarator whose size is not an integer constant expression but
23449         folds to an integer constant, then treat it as a constant
23450         subsequently.
23451
23452 2009-04-01  Richard Guenther  <rguenther@suse.de>
23453
23454         * fold-const.c (fold_plusminus_mult_expr): Do not fold
23455         i * 4 + 2 to (i * 2 + 1) * 2.
23456
23457 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
23458
23459         PR c/37772
23460         * c-parser.c (c_parser_asm_statement): Skip until close paren and
23461         return if c_parser_asm_string_literal returned NULL.
23462
23463 2009-04-01  Nick Clifton  <nickc@redhat.com>
23464
23465         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
23466         already defined.
23467         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
23468         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
23469         other typedefs to avoid conflicts with libgcc2.c.  Define labels
23470         to gain 16-bit bit-manipulation functions from libgcc2.c and then
23471         include it.
23472         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
23473         to gain 16-bit trapping arithmetic functions from libgcc2.c and
23474         then include it.
23475
23476 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
23477
23478         * varasm.c (default_function_rodata_section): Declare DOT as
23479         const char*.
23480
23481 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
23482             Andrey Galkin  <agalkin@hypercom.com>
23483
23484         PR/39492
23485         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
23486         Make object_name unique for each process.
23487
23488 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
23489
23490         PR other/39591
23491         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
23492         addressable variables in the parallel that could go out of scope while
23493         running queued tasks.
23494
23495 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
23496
23497         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
23498         (CASE_VALUES_THRESHOLD): Redefine.
23499         * config/avr/avr.c (avr_override_options): Remove initialization of
23500         avr_case_values_threshold variable.
23501         (avr_case_values_threshold): Remove variable. Add new function.
23502         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
23503         * config/avr/avr.opt (mno-tablejump): Remove option.
23504         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
23505
23506 2009-04-01  DJ Delorie  <dj@redhat.com>
23507
23508         * varasm.c (default_function_rodata_section): Don't assume
23509         anything about where the first '.' in the section name is.
23510
23511 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
23512
23513         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
23514         rs6000_emit_stack_tie.
23515
23516 2009-03-31  Ian Lance Taylor  <iant@google.com>
23517
23518         * tree-eh.c (tree_remove_unreachable_handlers): Compare
23519         gimple_code with GIMPLE_RESX, not RESX.
23520
23521 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
23522
23523         * c-common.c (c_get_ident): New.
23524         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
23525
23526 2009-04-01  Ben Elliston  <bje@au.ibm.com>
23527
23528         * config/rs6000/sysv4.opt (msdata): Improve option description.
23529
23530 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
23531
23532         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
23533         (divdf3_internal_lat): Remove.
23534         (divxf3_internal_lat): Remove.
23535         (divxf3_internal_thr): Remove.
23536         (divxf): Use divxf3_internal.
23537         * config/ia64/div.md (divsf3_internal_lat): New.
23538         (divdf3_internal_lat): New.
23539         (divxf3_internal): New.
23540
23541 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
23542
23543         PR c/448
23544         * Makefile.in (USE_GCC_STDINT): Define.
23545         (stmp-int-hdrs): Install stdint.h if applicable.
23546         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
23547         if known.
23548         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
23549         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
23550         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
23551         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
23552         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
23553         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
23554         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
23555         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
23556         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
23557         (c_common_nodes_and_builtins): Initialize
23558         underlying_wchar_type_node.  Do not initialize
23559         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
23560         nodes for new types.
23561         (c_stddef_cpp_builtins): Define macros for new types.
23562         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
23563         Remove.
23564         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
23565         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
23566         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
23567         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
23568         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
23569         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
23570         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
23571         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
23572         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
23573         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
23574         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
23575         int16_type_node, int32_type_node, int64_type_node,
23576         uint8_type_node, uint16_type_node, c_uint32_type_node,
23577         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
23578         int_least32_type_node, int_least64_type_node,
23579         uint_least8_type_node, uint_least16_type_node,
23580         uint_least32_type_node, uint_least64_type_node,
23581         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
23582         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
23583         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
23584         uintptr_type_node): Define.
23585         * c-cppbuiltin.c (builtin_define_constants,
23586         builtin_define_type_minmax): New.
23587         (builtin_define_stdint_macros): Define more macros.
23588         (c_cpp_builtins): Define more limit macros.
23589         (type_suffix): New.
23590         (builtin_define_type_max): Define in terms of
23591         builtin_define_type_minmax.  Remove is_long parameter.  All
23592         callers changed.
23593         * config.gcc (use_gcc_stdint): Define.
23594         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
23595         Add newlib-stdint.h for generic targets.
23596         * config/glibc-stdint.h, config/newlib-stdint.h,
23597         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
23598         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
23599         * config/score/score.h (UINTPTR_TYPE): Define.
23600         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
23601         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
23602         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
23603         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
23604         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
23605         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
23606         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
23607         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
23608         * config/spu/spu.h (STDINT_LONG32): Define.
23609         * configure.ac (use_gcc_stdint): Substitute.
23610         * configure: Regenerate.
23611         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
23612         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
23613         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
23614         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
23615         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
23616         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
23617         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
23618         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
23619         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
23620         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
23621         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
23622         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
23623         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
23624         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
23625         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
23626         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
23627         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
23628         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
23629         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
23630         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
23631         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
23632         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
23633         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
23634         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
23635         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
23636         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
23637         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
23638         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
23639         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
23640
23641 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
23642
23643         * loop-iv.c (suitable_set_for_replacement): Renamed from
23644         simplify_using_assignment; changed to return bool and to accept new
23645         args DEST and SRC.  Return true iff we find a source/destination pair
23646         that can be used to make a replacement, and fill SRC and DEST if so.
23647         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
23648         changed.
23649         (simplify_using_initial_values): Deal with altered regs here and track
23650         more precisely the effect they have on the validity of our expression.
23651
23652         * loop-iv.c (simplify_using_condition): A condition of the form
23653         (EQ REG CONST) can be used to simply make a substitution.
23654         (simplify_using_initial_values): Keep track of conditions we have seen
23655         and keep using them to simplify new expressions, while applying the
23656         same substitutions to them as to the expression.
23657
23658         * simplify-rtx.c (simplify_relational_operation_1): Simplify
23659         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
23660         GEU/LTU reversed.
23661
23662         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
23663         changed.  Use this when trying to improve the upper bound.
23664         Generate the comparison by using simplify_gen_relational.
23665
23666         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
23667
23668         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
23669         functions.
23670         (simplify_using_assignment, simplify_using_initial_values): Call
23671         replace_in_expr to make replacements.  Call replace_single_def_regs
23672         once on the initial version of the expression.
23673
23674 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23675
23676         PR target/27237
23677         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
23678
23679 2009-03-31  Richard Guenther  <rguenther@suse.de>
23680
23681         PR middle-end/31029
23682         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
23683         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
23684
23685 2009-03-31  Richard Guenther  <rguenther@suse.de>
23686
23687         * tree.h (div_if_zero_remainder): Declare.
23688         * fold-const.c (div_if_zero_remainder): Export.
23689         * tree-ssa-forwprop.c
23690         (forward_propagate_addr_into_variable_array_index): Handle
23691         constant array index addition outside of the variable index.
23692
23693 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
23694
23695         PR target/39592
23696         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
23697         define_splits, floatunssi<mode>2): Require x87 conversions from
23698         DImode to be permitted.
23699
23700 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
23701
23702         PR preprocessor/15638
23703         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
23704
23705 2009-03-31  Richard Guenther  <rguenther@suse.de>
23706
23707         PR middle-end/23401
23708         PR middle-end/27810
23709         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
23710         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
23711         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
23712         a separate statement.
23713         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
23714         (lookup_tmp_var): Likewise.
23715         (is_gimple_formal_tmp_or_call_rhs): Remove.
23716         (is_gimple_reg_or_call_rhs): Rename to ...
23717         (is_gimple_reg_rhs_or_call): ... this.
23718         (is_gimple_mem_or_call_rhs): Rename to ...
23719         (is_gimple_mem_rhs_or_call): ... this.
23720         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
23721         DECL_GIMPLE_REG_P only if is_formal is true.
23722         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
23723         for non-proper post-modify expression gimplification.
23724         (gimplify_self_mod_expr): For post-modify expressions gimplify
23725         the lvalue to a minimal lvalue.
23726         (rhs_predicate_for): Remove formal temp case.
23727         (gimplify_modify_expr_rhs): Likewise.
23728         (gimplify_addr_expr): Use is_gimple_reg.
23729         (gimplify_expr): Remove formal temp cases.
23730         (gimple_regimplify_operands): Likewise.
23731         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
23732         and FILTER_EXPR like constants.
23733         * gimple.c (walk_gimple_op): Fix val_only initialization, use
23734         is_gimple_reg.
23735         (is_gimple_formal_tmp_rhs): Remove.
23736         (is_gimple_reg_rhs): Remove special casing.
23737         (is_gimple_mem_rhs): Fix.
23738         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
23739         (is_gimple_formal_tmp_var): Remove.
23740         (is_gimple_formal_tmp_reg): Likewise.
23741         (is_gimple_min_lval): Allow invariant component ref parts.
23742         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
23743         is_gimple_formal_tmp_reg): Remove declarations.
23744         * tree-cfg.c (verify_expr): Verify that variables with address
23745         taken do not have DECL_GIMPLE_REG_P set.
23746         * tree-mudflap.c (mf_build_check_statement_for): Use
23747         force_gimple_operand instead of gimplify_expr.
23748
23749 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
23750
23751         * modulo-sched.c (sms_schedule_by_order): Pass the actual
23752         schedulable rows to compute_split_row.
23753
23754 2009-03-31  Ben Elliston  <bje@au.ibm.com>
23755
23756         PR target/31635
23757         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
23758         OPT_mvrsave.
23759
23760 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
23761
23762         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
23763         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
23764         * configure: Regenerate.
23765         * config.in: Regenerate.
23766         * config/rs6000/rs6000.opt (mtls-markers): Add.
23767         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
23768         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
23769         (tls_ld_aix, tls_ld_sysv): Likewise.
23770         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
23771         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
23772
23773 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
23774
23775         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
23776
23777 2009-03-30  Jan Hubicka  <jh@suse.cz>
23778
23779         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
23780         out of RESX.
23781         (tree_remove_unreachable_handlers): Cleanup EH predecestor
23782         detection and label handling.
23783
23784 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
23785
23786         * ira-int.h (ira_allocno): Rename left_conflicts_num to
23787         left_conflicts_size.
23788         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
23789         ALLOCNO_LEFT_CONFLICTS_SIZE.
23790
23791         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
23792         remove_allocno_from_bucket_and_push,
23793         allocno_spill_priority_compare, push_allocnos_to_stack,
23794         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
23795         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
23796         (setup_allocno_left_conflicts_num): Ditto.  Rename to
23797         setup_allocno_left_conflicts_size.
23798         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
23799         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
23800         setup_allocno_left_conflicts_size instead of
23801         setup_allocno_left_conflicts_num.
23802
23803         * ira-build.c (ira_create_allocno): Use
23804         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
23805         ALLOCNO_LEFT_CONFLICTS_NUM.
23806
23807 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
23808
23809         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
23810         instead of DF_LR_OUT.
23811
23812         * ira-lives.c (process_bb_node_lives): Ditto.
23813
23814         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
23815         instead of DF_LR_{OUT,IN}.
23816
23817         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
23818
23819         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
23820
23821 2009-03-30  Jan Hubicka  <jh@suse.cz>
23822
23823         * except.c (label_to_region_map): Fix thinko.
23824
23825 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
23826
23827         PR middle-end/38237
23828         * tree.h (tree_find_value): New declaration.
23829         * tree.c (tree_find_value): New function.
23830         * varasm.c (assemble_external): Avoid duplicate entries on lists.
23831
23832 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
23833
23834         PR debug/39563
23835         * c-decl.c (struct c_binding): Add locus field.
23836         (bind): Add locus argument, set locus field from it.
23837         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
23838         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
23839         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
23840         implicitly_declare, undeclared_variable, lookup_label,
23841         declare_label, c_make_fname_decl, c_builtin_function,
23842         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
23843         bind callers.
23844
23845 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
23846
23847         PR target/38781
23848         * config/i386/i386.c (classify_argument): Check total size of
23849         structure.
23850
23851 2009-03-30  Martin Jambor  <mjambor@suse.cz>
23852
23853         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
23854         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
23855         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
23856         respectively.
23857
23858         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
23859         seen_variable_array_ref while also traversing a union.
23860
23861         * tree-inline.c (optimize_inline_calls): Do not call
23862         cgraph_node_remove_callees.
23863         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
23864         (pass_remove_cgraph_callee_edges): New variable.
23865         * passes.c (init_optimization_passes): Add
23866         pass_remove_cgraph_callee_edges after early inlining and before all
23867         late intraprocedural passes.
23868
23869         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
23870
23871 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
23872
23873         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
23874         Fix typos in names.
23875
23876 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
23877
23878         * combine.c (simplify_comparison): Use have_insn_for.
23879         * dojump.c (do_jump): Likewise.
23880
23881 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
23882
23883         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
23884         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
23885         sparc_compare_op0 like sparc_compare_emitted used to be handled.
23886         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
23887         instead of sparc_compare_emitted.
23888         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
23889         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
23890         instead of sparc_compare_emitted.
23891
23892 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
23893
23894         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
23895         enter/exit cfglayout mode.
23896         (pass_partition_block): Require it.
23897         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
23898         (combine_instructions): Track basic blocks instead of labels.
23899         (update_cfg_for_uncondjump): New.
23900         (try_combine): Use it.  Update jumps after rescanning.
23901         (pass_combine): Require PROP_cfglayout.
23902         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
23903
23904 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
23905
23906         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
23907         Provide/destroy PROP_cfglayout respectively.
23908         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
23909         * tree-pass.h (PROP_cfglayout): New.
23910
23911 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
23912
23913         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
23914         fold_convert_const_fixed_from_fixed,
23915         fold_convert_const_fixed_from_int,
23916         fold_convert_const_fixed_from_real, fold_negate_const): Do not
23917         set TREE_CONSTANT_OVERFLOW.
23918         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
23919         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
23920
23921 2009-03-30  Ira Rosen  <irar@il.ibm.com>
23922
23923         * tree-vect-loop-manip.c: New file.
23924         * tree-vectorizer.c: Update documentation and included files.
23925         (vect_loop_location): Make extern.
23926         (rename_use_op): Move to tree-vect-loop-manip.c
23927         (rename_variables_in_bb, rename_variables_in_loop,
23928         slpeel_update_phis_for_duplicate_loop,
23929         slpeel_update_phi_nodes_for_guard1,
23930         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
23931         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
23932         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
23933         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
23934         find_loop_location): Likewise.
23935         (new_stmt_vec_info): Move to tree-vect-stmts.c.
23936         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
23937         get_vectype_for_scalar_type, vect_is_simple_use,
23938         supportable_widening_operation, supportable_narrowing_operation):
23939         Likewise.
23940         (bb_in_loop_p): Move to tree-vect-loop.c.
23941         (new_loop_vec_info, destroy_loop_vec_info,
23942         reduction_code_for_scalar_code, report_vect_op,
23943         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
23944         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
23945         (vect_supportable_dr_alignment): Likewise.
23946         * tree-vectorizer.h (tree-data-ref.h): Include.
23947         (vect_loop_location): Declare.
23948         Reorganize function declarations according to the new file structure.
23949         * tree-vect-loop.c: New file.
23950         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
23951         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
23952         * tree-vect-data-refs.c: New file.
23953         * tree-vect-patterns.c (timevar.h): Don't include.
23954         * tree-vect-stmts.c: New file.
23955         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
23956         tree-vect-slp.c, tree-vect-loop.c.
23957         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
23958         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
23959         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
23960         (tree-vect-analyze.o): Remove.
23961         (tree-vect-transform.o): Likewise.
23962         (tree-vect-data-refs.o): Add rule.
23963         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
23964         tree-vect-slp.o): Likewise.
23965         (tree-vect-patterns.o): Remove redundant dependencies.
23966         (tree-vectorizer.o): Likewise.
23967         * tree-vect-slp.c: New file.
23968
23969 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23970
23971         * optc-gen.awk: Warn if an option flag has multiple different
23972         help strings.
23973
23974 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
23975
23976         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
23977         -floop-block): Document dependences on PPL, CLooG and Graphite.
23978
23979 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
23980
23981         PR rtl-optimization/323
23982         * c-common.c (c_fully_fold, convert_and_check,
23983         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
23984         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
23985         * c-common.def (EXCESS_PRECISION_EXPR): New.
23986         * c-cppbuiltin.c (builtin_define_float_constants): Define
23987         constants with enough digits for long double.
23988         * c-lex.c (interpret_float): Interpret constant with excess
23989         precision where appropriate.
23990         * c-opts.c (c_common_post_options): Set
23991         flag_excess_precision_cmdline.  Give an error for
23992         -fexcess-precision=standard for C++ for processors where the
23993         option is significant.
23994         * c-parser.c (c_parser_conditional_expression): Handle excess
23995         precision in condition.
23996         * c-typeck.c (convert_arguments): Handle arguments with excess
23997         precision.
23998         (build_unary_op): Move excess precision outside operation.
23999         (build_conditional_expr): Likewise.
24000         (build_compound_expr): Likewise.
24001         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
24002         (build_modify_expr): Handle excess precision in RHS.
24003         (convert_for_assignment): Handle excess precision in converted
24004         value.
24005         (digest_init, output_init_element, process_init_element): Handle
24006         excess precision in initializer.
24007         (c_finish_return): Handle excess precision in return value.
24008         (build_binary_op): Handle excess precision in operands and add
24009         excess precision as needed for operation.
24010         * common.opt (-fexcess-precision=): New option.
24011         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
24012         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
24013         For standard excess precision, output explicit conversion to and
24014         truncation from XFmode.
24015         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
24016         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
24017         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
24018         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
24019         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
24020         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
24021         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
24022         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
24023         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
24024         define_splits, sqrt<mode>2): Disable where appropriate for
24025         standard excess precision.
24026         * convert.c (convert_to_real): Do not shorten arithmetic to type
24027         for which excess precision would be used.
24028         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
24029         * doc/invoke.texi (-fexcess-precision=): Document option.
24030         (-mfpmath=): Correct index entry.
24031         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
24032         flag_excess_precision): New.
24033         * langhooks.c (lhd_post_options): Set
24034         flag_excess_precision_cmdline.
24035         * opts.c (common_handle_option): Handle -fexcess-precision=.
24036         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
24037         init_excess_precision): New.
24038         (lang_dependent_init_target): Call init_excess_precision.
24039         * tree.c (excess_precision_type): New.
24040         * tree.h (excess_precision_type): Declare.
24041
24042 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
24043
24044         PR c/35235
24045         * c-typeck.c (build_component_ref): Do not copy qualifiers from
24046         non-lvalue to component.
24047
24048 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
24049
24050         PR preprocessor/34695
24051         * Makefile.in (c-opts.o): Depend on c-tree.h.
24052         * c-common.c: Move down include of diagnostic.h.
24053         (done_lexing, c_cpp_error): New.
24054         * c-common.h (done_lexing): Declare.
24055         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
24056         (parse_in).
24057         * c-opts.c: Include c-tree.h.
24058         (c_common_init_options): Set preprocessor error callback.
24059         (c_common_handle_option): Do not set preprocessor
24060         inhibit_warnings, warnings_are_errors, warn_system_headers,
24061         pedantic_errors or inhibit_warnings flags.
24062         (c_common_post_options): Do not check cpp_errors (parse_in).
24063         (c_common_finish): Do not output dependencies if there were
24064         errors.  Do not check return value of cpp_finish.
24065         * c-ppoutput.c (pp_file_change): Set input_location.
24066         * c-tree.h (c_cpp_error): Declare.
24067         * diagnostic.c (diagnostic_set_info_translated): Also initialize
24068         override_column.
24069         (diagnostic_build_prefix): Check override_column.
24070         * diagnostic.h (diagnostic_info): Add override_column field.
24071         (diagnostic_override_column): Define.
24072
24073 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
24074
24075         * c-common.c (c_expand_expr, c_staticp): Remove.
24076         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
24077         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
24078         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
24079         * c-gimplify.c (gimplify_compound_literal_expr,
24080         optimize_compound_literals_in_ctor): Remove.
24081         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
24082         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
24083         * c-semantics.c (emit_local_var): Remove.
24084
24085         * langhooks-def.h (lhd_expand_expr): Remove.
24086         * langhooks.c (lhd_expand_expr): Remove.
24087         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
24088
24089         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
24090         handling from c-semantics.c; don't call into langhook.
24091         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
24092         * gimplify.c (gimplify_compound_literal_expr,
24093         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
24094         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
24095         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
24096         as was done in c-gimplify.c.
24097         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
24098         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
24099         Move from c-common.h.
24100         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
24101
24102         * tree.c (staticp): Do not call langhook.
24103         * langhooks.c (lhd_staticp): Delete.
24104         * langhooks-def.h (lhd_staticp): Delete prototype.
24105         (LANG_HOOKS_STATICP): Delete.
24106         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
24107
24108         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
24109         instead of DECL_STMTs.
24110
24111 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
24112
24113         PR c/456
24114         PR c/5675
24115         PR c/19976
24116         PR c/29116
24117         PR c/31871
24118         PR c/35198
24119         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
24120         void_type_node.
24121         (fold_call_expr): Return a NOP_EXPR from folding rather than the
24122         contained expression.
24123         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
24124         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
24125         conditional expressions for C.
24126         (decl_constant_value_for_optimization): Move from
24127         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
24128         whether optimizing and that the expression is a VAR_DECL not of
24129         array type instead of doing such checks in the caller.  Do not
24130         check pedantic.  Call gcc_unreachable for C++.
24131         * c-common.def (C_MAYBE_CONST_EXPR): New.
24132         * c-common.h (c_fully_fold, c_save_expr,
24133         decl_constant_value_for_optimization): New prototypes.
24134         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
24135         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
24136         EXPR_INT_CONST_OPERANDS): Define.
24137         * c-convert.c (convert): Strip nops from expression.
24138         * c-decl.c (groktypename): Take extra parameters expr and
24139         expr_const_operands.  Update call to grokdeclarator.
24140         (start_decl): Update call to grokdeclarator.  Add statement for
24141         expressions used in type of decl.
24142         (grokparm): Update call to grokdeclarator.
24143         (push_parm_decl): Update call to grokdeclarator.
24144         (build_compound_literal): Add parameter non_const and build a
24145         C_MAYBE_COSNT_EXPR if applicable.
24146         (grokdeclarator): Take extra parameters expr and
24147         expr_const_operands.  Track expressions used in declaration
24148         specifiers and declarators.  Fold array sizes and track whether
24149         they are constant expressions and whether they are integer
24150         constant expressions.
24151         (parser_xref_tag): Set expr and expr_const_operands fields in
24152         return value.
24153         (grokfield): Update call to grokdeclarator.
24154         (start_function): Update call to grokdeclarator.
24155         (build_null_declspecs): Set expr and expr_const_operands fields in
24156         return value.
24157         (declspecs_add_type): Handle expressions in typeof specifiers.
24158         * c-parser.c (c_parser_declspecs): Set expr and
24159         expr_const_operands fields for declaration specifiers.
24160         (c_parser_enum_specifier): Likewise.
24161         (c_parser_struct_or_union_specifier): Likewise.
24162         (c_parser_typeof_specifier): Likewise.  Update call to
24163         groktypename.  Fold expression as needed.  Return expressions with
24164         type instead of adding statements.
24165         (c_parser_attributes): Update calls to c_parser_expr_list.
24166         (c_parser_statement_after_labels): Fold expression before passing
24167         to objc_build_throw_stmt.
24168         (c_parser_condition): Fold expression.
24169         (c_parser_asm_operands): Fold expression.
24170         (c_parser_conditional_expression): Use c_save_expr.  Update call
24171         to build_conditional_expr.
24172         (c_parser_alignof_expression): Update call to groktypename.
24173         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
24174         original_code.  Fold expression argument of va_arg.  Create
24175         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
24176         argument to va_arg.  Update calls to groktypename.  Fold array
24177         index for offsetof.  Verify that first argument to
24178         __builtin_choose_expr has integer type.
24179         (c_parser_postfix_expression_after_paren_type): Update calls to
24180         groktypename and build_compound_literal.  Handle expressions with
24181         side effects in type name.
24182         (c_parser_postfix_expression_after_primary): Update call to
24183         c_parser_expr_list.  Set original_code for calls to
24184         __builtin_constant_p.
24185         (c_parser_expr_list): Take extra parameter fold_p.  Fold
24186         expressions if requested.
24187         (c_parser_objc_type_name): Update call to groktypename.
24188         (c_parser_objc_synchronized_statement): Fold expression.
24189         (c_parser_objc_receiver): Fold expression.
24190         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
24191         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
24192         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
24193         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
24194         (struct c_typespec): Add elements expr and expr_const_operands.
24195         (struct c_declspecs): Add elements expr and expr_const_operands.
24196         (groktypename, build_conditional_expr, build_compound_literal):
24197         Update prototypes.
24198         (in_late_binary_op): Declare.
24199         * c-typeck.c (note_integer_operands): New function.
24200         (in_late_binary_op): New variable.
24201         (decl_constant_value_for_broken_optimization): Move to c-common.c
24202         and rename to decl_constant_value_for_optimization.
24203         (default_function_array_conversion): Do not strip nops.
24204         (default_conversion): Do not call
24205         decl_constant_value_for_broken_optimization.
24206         (build_array_ref): Do not fold result.
24207         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
24208         result when operand is a VLA.
24209         (c_expr_sizeof_type): Update call to groktypename.  Handle
24210         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
24211         result when operand names a VLA type.
24212         (build_function_call): Update call to build_compound_literal.
24213         Only fold result for calls to __builtin_* functions.  Strip
24214         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
24215         the function designator.
24216         (convert_arguments): Fold arguments.  Update call to
24217         convert_for_assignment.
24218         (build_unary_op): Handle increment and decrement of
24219         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
24220         decrement earlier.  Fold operand of increment and decrement.
24221         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
24222         built for integer operand.  Wrap returns that are INTEGER_CSTs
24223         without being integer constant expressions or that have integer
24224         constant operands without being INTEGER_CSTs.
24225         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
24226         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
24227         result is an integer constant expression or can be used in
24228         unevaluated parts of one and avoid folding and wrap as
24229         appropriate.  Fold operands before possibly doing -Wsign-compare
24230         warnings.
24231         (build_compound_expr): Wrap result for C99 if operands can be used
24232         in integer constant expressions.
24233         (build_c_cast): Update call to digest_init.  Do not ignore
24234         overflow from casting floating-point constants to integers.  Wrap
24235         results that could be confused with integer constant expressions,
24236         null pointer constants or floating-point constants.
24237         (c_cast_expr): Update call to groktypename.  Handle expressions
24238         included in type name.
24239         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
24240         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
24241         Update calls to convert_for_assignment.
24242         (convert_for_assignment): Take new parameter
24243         null_pointer_constant.  Do not strip nops or call
24244         decl_constant_value_for_broken_optimization.  Set
24245         in_late_binary_op for conversions to boolean.
24246         (store_init_value): Update call to digest_init.
24247         (digest_init): Take new parameter null_pointer_constant.  Do not
24248         call decl_constant_value_for_broken_optimization.  pedwarn for
24249         initializers not constant expressions.  Update calls to
24250         convert_for_assignment.
24251         (constructor_nonconst): New.
24252         (struct constructor_stack): Add nonconst element.
24253         (really_start_incremental_init, push_init_level, pop_init_level):
24254         Handle constructor_nonconst and nonconst element.
24255         (set_init_index): Call constant_expression_warning for array
24256         designators.
24257         (output_init_element): Fold value.  Set constructor_nonconst as
24258         applicable.  pedwarn for initializers not constant expressions.
24259         Update call to digest_init.  Call constant_expression_warning
24260         where constant initializers are required.
24261         (process_init_element): Use c_save_expr.
24262         (c_finish_goto_ptr): Fold expression.
24263         (c_finish_return): Fold return value.  Update call to
24264         convert_for_assignment.
24265         (c_start_case): Fold switch expression.
24266         (c_process_expr_stmt): Fold expression.
24267         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
24268         ensure statement expression is not evaluated in constant expression.
24269         (build_binary_op): Track whether results are integer constant
24270         expressions or may occur in such, disable folding and wrap results
24271         as applicable.  Fold operands for -Wsign-compare warnings unless
24272         in_late_binary_op.
24273         (c_objc_common_truthvalue_conversion): Handle results folded to
24274         integer constants that are not integer constant expressions.
24275         * doc/extend.texi: Document when typeof operands are evaluated,
24276         that condition of __builtin_choose_expr is an integer constant
24277         expression, and more about use of __builtin_constant_p in
24278         initializers.
24279
24280 2009-03-29  Richard Guenther  <rguenther@suse.de>
24281
24282         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
24283         propagate addresses of array references.
24284
24285 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
24286
24287         * regmove.c (perhaps_ends_bb_p): Remove.
24288         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
24289         from INSN and check that the main loop stays within that basic block.
24290         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
24291         (regmove_forward_pass): Split out from regmove_optimize.  Use
24292         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
24293         (regmove_backward_pass): Split out from regmove_optimize.  Use
24294         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
24295         (regmove_optimize): Simplify.
24296
24297 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
24298
24299         PR target/39545
24300         * config/i386/i386.c (classify_argument): Ignore flexible array
24301         member in struct and warn ABI change.
24302
24303 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
24304
24305         * config/i386/i386-protos.h (ix86_agi_dependent): New.
24306
24307         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
24308         (ix86_adjust_cost): Updated.
24309
24310 2009-03-29  Jan Hubicka  <jh@suse.cz>
24311
24312         PR middle-end/28850
24313         * tree-pass.h (pass_cleanup_eh): New function.
24314         (remove_unreachable_regions): Break code handling RTL
24315         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
24316         that can not be reached by runtime.
24317         (can_be_reached_by_runtime): New function.
24318         (label_to_region_map): New function.
24319         (num_eh_regions): New function.
24320         (rtl_remove_unreachable_regions): New function.
24321         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
24322         (remove_eh_region): New function.
24323         * except.h: Include sbitmap and vecprim.
24324         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
24325         num_eh_regions): Declare.
24326         * passes.c (init_optimization_passes): Schedule cleanup_eh.
24327         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
24328         * tree-eh.c (tree_remove_unreachable_handlers): New function.
24329         (tree_empty_eh_handler_p): New function.
24330         (cleanup_empty_eh): New function.
24331         (cleanup_eh): New function.
24332         (pass_cleanup_eh): New function.
24333
24334 2009-03-29  Jan Hubicka  <jh@suse.cz>
24335
24336         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
24337         for removed regions.
24338
24339 2009-03-29  Jan Hubicka  <jh@suse.cz>
24340
24341         * except.c (dump_eh_tree): Dump all datastructures.
24342
24343 2009-03-29  Jan Hubicka  <jh@suse.cz>
24344
24345         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
24346         (duplicate_eh_regions_1): Likewise.
24347         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
24348         vector; call EH verification.
24349         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
24350         Be ready for region being removed.
24351
24352 2009-03-29  Jan Hubicka  <jh@suse.cz>
24353
24354         * bitmap.c (bitmap_last_set_bit): New function.
24355         * bitmap.h (bitmap_last_set_bit): Declare.
24356
24357 2009-03-29  David Ayers  <ayers@fsfe.org>
24358
24359         PR objc/27377
24360         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
24361         by calling objc_compare_types and surpress warnings about
24362         incompatible C pointers that are compatible ObjC pointers.
24363
24364 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
24365
24366         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
24367         call initialize_inline_failed.
24368         (initialize_inline_failed): Move it from here ...
24369         * cgraph.c (initialize_inline_failed): ... to here.
24370         (cgraph_create_edge): Call initialize_inline_failed rather than
24371         setting inline_failed directly.
24372
24373 2009-03-29  Ben Elliston  <bje@au.ibm.com>
24374
24375         PR target/32542
24376         * sysv4.opt (msdata): Improve comment.
24377         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
24378         * sysv4.h (SVR4_ASM_SPEC): Likewise.
24379
24380 2009-03-29  Ben Elliston  <bje@au.ibm.com>
24381
24382         PR target/30451
24383         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
24384         load and store attributes.
24385
24386 2009-03-29  Ben Elliston  <bje@au.ibm.com>
24387
24388         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
24389         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
24390         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
24391         * doc/extend.texi (X86 Built-in Functions): Add index entries for
24392         __builtin_infq and __builtin_huge_valq.
24393
24394 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
24395
24396         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
24397         atmega8m1 devices.
24398         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
24399         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
24400
24401 2009-03-28  Xinliang David Li  <davidxl@google.com>
24402
24403         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
24404         (do_dbg_cnt): New function.
24405
24406 2009-03-28  Jan Hubicka  <jh@suse.cz>
24407
24408         Merge from pretty-ipa:
24409
24410         2009-03-27  Jan Hubicka  <jh@suse.cz>
24411
24412         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
24413         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
24414         * passes.c (function_called_by_processed_nodes_p): New.
24415         * ipa-pure-const.c (check_call): Fix handling of operands.
24416         (analyze_function): Dump debug output for skipped bodies.
24417         (local_pure_const): Use function_called_by_processed_nodes_p.
24418         * dwarf2out.c (reference_to_unused): Use output.
24419         * passes.c (do_per_function_toporder): Likewise.
24420
24421         2008-11-12  Jan Hubicka  <jh@suse.cz>
24422
24423         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
24424         * ipa-pure-const.c (funct_state_d): Add can throw field; make
24425         state_set_in_source enum
24426         (check_decl): Ignore memory tags; do not set fake looping flags;
24427         dump diagnostics.
24428         (check_operand, check_tree, check_rhs_var, check_lhs_var,
24429         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
24430         (check_call, analyze_function): Rewrite.
24431         (check_stmt): New.
24432         (add_new_function): Update call of analyze_function.
24433         (generate_summary): Add call of analyze_function.
24434         (propagate): Propagate can_throw; handle state_set_in_source correctly.
24435         (local_pure_const): New function.
24436         (pass_local_pure_const): New pass.
24437         * ipa-inline.c (inline_transform): Set after_inlining.
24438         * tree-eh.c (stmt_can_throw_external): New.
24439         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
24440         work with aliasing built.
24441         * tree-flow.h (stmt_can_throw_external): New.
24442         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
24443         and local pure/const pass in early and late optimization queue.
24444
24445 2009-03-28  Martin Jambor  <mjambor@suse.cz>
24446
24447         * fold-const.c (get_pointer_modulus_and_residue): New parameter
24448         allow_func_align.
24449         (fold_binary): Allow function decl aligment consideration is the
24450         second argument is integer constant one.
24451         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
24452         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
24453         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
24454
24455 2009-03-28  Jan Hubicka  <jh@suse.cz>
24456
24457         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
24458         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
24459         * function.h (rtl_data): Add nothrow flag.
24460         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
24461         set DECL_NOTHROW for AVAILABLE functions.
24462
24463 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
24464
24465         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
24466         following vector keyword has expansion starting with pixel or bool
24467         keyword, expand vector to __vector and pixel or bool to __pixel or
24468         __bool.
24469
24470         PR c++/39554
24471         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
24472         warn_if_disallowed_function_p): Removed.
24473         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
24474         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
24475         warning_if_disallowed_function_p.
24476         * flags.h (warn_if_disallowed_function_p,
24477         warn_disallowed_functions): Removed.
24478         * common.opt (Wdisallowed-function-list=): Removed.
24479         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
24480
24481 2009-03-28  Richard Guenther  <rguenther@suse.de>
24482
24483         PR tree-optimization/38723
24484         * tree-ssa-pre.c (compute_avail): Add all default definitions to
24485         the entry block.
24486
24487 2009-03-28  Jan Hubicka  <jh@suse.cz>
24488
24489         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
24490         test introduced by my previous patch.
24491
24492 2009-03-28  Richard Guenther  <rguenther@suse.de>
24493
24494         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
24495         the PHIs value undefined.
24496
24497 2009-03-28  Jan Hubicka  <jh@suse.cz>
24498
24499         * tree-pass.h (pass_fixup_cfg): New pass.
24500         * ipa-inline.c (inline_transform): Set
24501         always_inline_functions_inlined/after_inlining.
24502         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
24503         (pass_fixup_cfg): New pass.
24504         * passes.c (init_optimization_passes): Add fixup_cfg.
24505
24506 2009-03-28  Richard Guenther  <rguenther@suse.de>
24507
24508         PR tree-optimization/38458
24509         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
24510         argument use the arguments copy-of value.
24511
24512 2009-03-28  Richard Guenther  <rguenther@suse.de>
24513
24514         PR tree-optimization/38180
24515         * tree-ssa-ccp.c (get_default_value): Simplify.
24516         (likely_value): Likewise.
24517         (surely_varying_stmt_p): Properly handle VOP case.
24518         (ccp_initialize): Likewise.
24519         (ccp_fold): Handle propagating through *&.
24520         (fold_const_aggregate_ref): Also handle decls.
24521
24522 2009-03-28  Jan Hubicka  <jh@suse.cz>
24523
24524         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
24525         * cgraph.h (cgraph_node): Likewise.
24526         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
24527         (cgraph_reset_node): Use process flag.
24528         (cgraph_mark_functions_to_output): Likewise.
24529         (cgraph_expand_function): Likewise.
24530         (cgraph_expand_all_functions): Likewise.
24531         (cgraph_output_in_order): Likewise.
24532         * dwarf2out.c (reference_to_unused): Likewise.
24533         * passes.c do_per_function_toporder): Likewise.
24534
24535 2009-03-28  Jan Hubicka  <jh@suse.cz>
24536
24537         Bring from lto-branch:
24538
24539         2008-09-03  Doug Kwan  <dougkwan@google.com>
24540
24541         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
24542         enums instead of reason strings.
24543         * cgraph.c (cgraph_create_edge): Same.
24544         (cgraph_inline_failed_string): New function.
24545         * cgraph.h (cgraph_inline_failed_t): New enum type.
24546         (cgraph_inline_failed_string): New prototype.
24547         (struct cgraph_edge): Change type of INLINED_FAILED from constant
24548         char pointer to cgraph_inline_failed_t.
24549         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
24550         (cgraph_default_inline_p): Ditto.
24551         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
24552         to cgraph_inline_failed_t pointer.
24553         * cif-code.def: New file.
24554         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
24555         reason string.
24556         (cgraph_check_inline_limits): Change type of REASON to pointer to
24557         cgraph_inline_failed_t.  Replace reason strings with enums.
24558         (cgraph_default_inline_p): Ditto.
24559         (cgraph_recursive_inlining_p): Ditto.
24560         (update_caller_keys): Change type of FAILED_REASON to
24561         cgraph_inline_failed_t.
24562         (cgraph_set_inline_failed): Change type of REASON to pointer to
24563         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
24564         convert enums to strings for text output.
24565         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
24566         to be of type cgraph_inline_failed_t.  Replace reason strings with
24567         enums.  Call cgraph_inline_failed_string to covert enums
24568         to strings for text output.
24569         (cgraph_decide_inlining): Replace reason strings with enums.
24570         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
24571         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
24572         for text output.
24573         * tree-inline.c (expand_call_inline): Change type of REASON
24574         to cgraph_inline_failed_t.  Replace reason strings with enums.
24575         Call cgraph_inline_failed_string for text output.
24576         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
24577         (cgraph.o): Ditto.
24578
24579 2009-03-28  Jan Hubicka  <jh@suse.cz>
24580
24581         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
24582         cgraph_clone_node): Remove master clone handling.
24583         (cgraph_is_master_clone, cgraph_master_clone): Remove.
24584         * cgraph.h (master_clone): Remove.
24585         (cgraph_is_master_clone, cgraph_master_clone): Remove.
24586         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
24587         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
24588
24589 2009-03-28  Jan Hubicka  <jh@suse.cz>
24590
24591         * cgraph.c (cgraph_function_body_availability): Functions declared
24592         inline are always safe to assume that it is not going to be replaced.
24593
24594 2009-03-28  Richard Guenther  <rguenther@suse.de>
24595
24596         PR tree-optimization/38513
24597         * tree-ssa-pre.c (eliminate): Remove redundant stores.
24598         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
24599         EXC_PTR_EXPR and FILTER_EXPR.
24600         (get_ref_from_reference_ops): Likewise.
24601
24602 2009-03-28  Richard Guenther  <rguenther@suse.de>
24603
24604         PR tree-optimization/38968
24605         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
24606         Use FLOOR_MOD_EXPR to compute misalignment.
24607
24608 2009-03-28  Richard Guenther  <rguenther@suse.de>
24609
24610         PR tree-optimization/37795
24611         * tree.h (combine_comparisons): Declare.
24612         * fold-const.c (combine_comparisons): Export.
24613         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
24614         comparisons.
24615         (ifcombine_iforif): Use combine_comparisons.
24616
24617 2009-03-28  Jan Hubicka  <jh@suse.cz>
24618
24619         * tree-eh.c (inlinable_call_p): New function.
24620         (make_eh_edges): Use it.
24621         (verify_eh_edges): Use it.
24622         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
24623         * except.c (reachable_next_level): Add inlinable_function argument
24624         (sjlj_find_directly_reachable_regions): Update.
24625         (add_reachable_handler): Do not set saw_any_handlers.
24626         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
24627         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
24628         Add new inlinable call parameter.
24629         (can_throw_internal, can_throw_external): Update.
24630         * except.h (can_throw_internal_1, can_throw_external_1,
24631         foreach_reachable_handler): Update declaration.
24632
24633 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
24634
24635         * config/arm/t-arm-coff, config/h8300/coff.h,
24636         config/i386/i386-aout.h, config/i386/i386-coff.h,
24637         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
24638         config/pdp11/2bsd.h, config/rs6000/aix41.h,
24639         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
24640         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
24641         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
24642         sys-types.h: Remove.
24643         * Makefile.in: Remove protoize and fixproto support and references
24644         in comments.
24645         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
24646         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
24647         Remove.
24648         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
24649         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
24650         unprotoize$(exeext).
24651         (rest.encap): Don't depend on $(STMP_FIXPROTO)
24652         (.PHONY): Don't depend on proto.
24653         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
24654         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
24655         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
24656         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
24657         build/gen-protos.o, build/scan.o, xsys-protos.h,
24658         build/fix-header$(build_exeext), build/fix-header.o,
24659         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
24660         stmp-install-fixproto): Remove.
24661         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
24662         SYSCALLS.c or fixproto files.
24663         (install-common): Don't install protoize.
24664         (install-headers-tar, install-headers-cpio, install-headers-cp):
24665         Don't depend on $(STMP_FIXPROTO).
24666         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
24667         install fixproto files or write out fixproto settings.
24668         (uninstall): Don't uninstall protoize.
24669         * config.gcc (use_fixproto): Remove.
24670         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
24671         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
24672         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
24673         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
24674         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
24675         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
24676         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
24677         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
24678         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
24679         * config/t-vxworks (STMP_FIXPROTO): Remove.
24680         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
24681         STMP_FIXPROTO): Remove.
24682         * config.in, configure: Regenerate.
24683         * crtstuff.c (gid_t, uid_t): Don't undefine.
24684         * doc/install.texi: Change m68k-coff to m68k-elf in example.
24685         (arm-*-coff, arm-*-aout: Remove target entries.
24686         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
24687         Remove mention of AIX 4.1.
24688         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
24689         * doc/invoke.texi (Running Protoize): Remove.
24690         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
24691         (Protoize Caveats): Remove.
24692         * tsystem.h: Update comments on headers assumed to exist.
24693
24694 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
24695
24696         * genautomata.c: Add a new year to the copyright.  Add a new
24697         reference.
24698         (struct insn_reserv_decl): Add comments for member bypass_list.
24699         (find_bypass): Remove.
24700         (insert_bypass): New.
24701         (process_decls): Use insert_bypass.
24702         (output_internal_insn_latency_func): Output all bypasses with the
24703         same input insn in one switch case.
24704
24705         * rtl.def (define_bypass): Describe bypass choice.
24706         * doc/md.texi (define_bypass): Ditto.
24707
24708 2009-03-27  Richard Guenther  <rguenther@suse.de>
24709
24710         * gimplify.c (mark_addressable): Export.
24711         * tree-flow.h (mark_addressable): Declare.
24712         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
24713         * tree-ssa.c (verify_phi_args): Verify that address taken
24714         variables have TREE_ADDRESSABLE set.
24715
24716 2009-03-27  Richard Guenther  <rguenther@suse.de>
24717
24718         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
24719         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
24720         Do not mark decls TREE_ADDRESSABLE.
24721         (build_fold_addr_expr): Adjust.
24722         (fold_addr_expr): Remove.
24723         (fold_unary): Use build_fold_addr_expr.
24724         (fold_comparison): Likewise.
24725         (split_address_to_core_and_offset): Likewise.
24726         * coverage.c (tree_coverage_counter_addr): Mark the array decl
24727         TREE_ADDRESSABLE.
24728         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
24729         (gimplify_modify_expr_to_memcpy): Mark source and destination
24730         addressable.
24731         * omp-low.c (create_omp_child_function): Mark the object decl
24732         TREE_ADDRESSABLE.
24733         (lower_rec_input_clauses): Mark the var we take the address of
24734         TREE_ADDRESSABLE.
24735         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
24736
24737 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24738
24739         PR middle-end/39315
24740         * cfgexpand.c (expand_one_stack_var_at): Change alignment
24741         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
24742
24743 2009-03-27  Richard Guenther  <rguenther@suse.de>
24744
24745         PR tree-optimization/39120
24746         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
24747         constraints.
24748         (handle_lhs_call): Process return constraints.  Add escape
24749         constraints if necessary.
24750         (handle_const_call): Fill out return constraints.  Make nested
24751         case more precise.  Avoid consttmp if possible.
24752         (handle_pure_call): Fill out return constraints.  Avoid
24753         callused if possible.
24754         (find_func_aliases): Simplify call handling.
24755
24756 2009-03-27  Richard Guenther  <rguenther@suse.de>
24757
24758         PR tree-optimization/39120
24759         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
24760         as a representative.
24761         (solve_graph): Do propagate CALLUSED.
24762         (handle_pure_call): Use a scalar constraint from CALLUSED for
24763         the return value.
24764         (find_what_p_points_to): CALLUSED shall not appear in poins-to
24765         solutions.
24766
24767 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24768
24769         PR c/39323
24770         * c-common.c (handle_aligned_attribute): Properly check alignment
24771         overflow.  Use (1U << i) instead of (1 << i).
24772
24773         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
24774
24775         * expr.h (get_mem_align_offset): Updated.
24776
24777         * tree.h (tree_decl_common): Change align to "unsigned int" and
24778         move it before pointer_alias_set.
24779
24780 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24781             Jakub Jelinek  <jakub@redhat.com>
24782
24783         PR target/38034
24784         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
24785         gr_register_operand with gr_reg_or_0_operand.
24786         (cmpxchg_rel_di): Likewise.
24787         (sync_lock_test_and_set<mode>): Likewise.
24788
24789 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24790
24791         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
24792         (true_regnum): Likewise.
24793
24794         * rtlanal.c (subreg_info): Moved to ...
24795         * rtl.h (subreg_info): Here.  New.
24796         (subreg_get_info): New.
24797
24798         * rtlanal.c (subreg_get_info): Make it extern.
24799
24800 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24801
24802         PR target/39472
24803         * config/i386/i386.c (ix86_abi): New.
24804         (override_options): Handle -mabi=.
24805         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
24806         (ix86_call_abi_override): Likewise.
24807         (init_cumulative_args): Likewise.
24808         (function_arg_advance): Likewise.
24809         (function_arg_64): Likewise.
24810         (function_arg): Likewise.
24811         (ix86_pass_by_reference): Likewise.
24812         (ix86_function_value_regno_p): Likewise.
24813         (ix86_build_builtin_va_list_abi): Likewise.
24814         (setup_incoming_varargs_64): Likewise.
24815         (is_va_list_char_pointer): Likewise.
24816         (ix86_init_machine_status): Likewise.
24817         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
24818         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
24819         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
24820         (ix86_function_abi): Make it static and return enum calling_abi.
24821         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
24822         with ix86_abi.
24823         (ix86_fn_abi_va_list): Updated.
24824
24825         * config/i386/i386.h (ix86_abi): New.
24826         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
24827         (CONDITIONAL_REGISTER_USAGE): Likewise.
24828         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
24829         (machine_function): Likewise.
24830
24831         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
24832         with ix86_abi.
24833         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
24834         (STACK_BOUNDARY): Likewise.
24835         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
24836
24837         * config/i386/i386.opt (mabi=): New.
24838
24839         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
24840         return enum calling_abi.
24841         (ix86_function_type_abi): Likewise.
24842         (ix86_function_abi): Removed.
24843
24844         * doc/invoke.texi: Document -mabi= option for x86.
24845
24846 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24847
24848         * builtins.c (real_dconstp): Delete.
24849         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
24850
24851 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
24852             Jakub Jelinek  <jakub@redhat.com>
24853
24854         PR debug/37959
24855         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
24856         (gen_subprogram_die): When a function is explicit, generate the
24857         DW_AT_explicit attribute.
24858         * langhooks.h (struct lang_hooks_for_decls): Add
24859         function_decl_explicit_p langhook.
24860         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
24861         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
24862
24863 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
24864
24865         * builtins.c (fold_builtin_memory_op): Optimize memmove
24866         into memcpy if we can prove source and destination don't overlap.
24867
24868         * tree-inline.c: Include gt-tree-inline.h.
24869         (clone_fn_id_num): New variable.
24870         (clone_function_name): New function.
24871         (tree_function_versioning): Use it.
24872         * Makefile.in (GTFILES): Add tree-inline.c.
24873
24874 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
24875
24876         * BASE-VER: Change to 4.5.0.
24877
24878 2009-03-27  Xinliang David Li  <davidxl@google.com>
24879
24880         PR tree-optimization/39557
24881         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
24882
24883 2009-03-27  Xinliang David Li  <davidxl@google.com>
24884
24885         PR tree-optimization/39548
24886         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
24887         candidate check.
24888
24889 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24890
24891         * c-common.c (pointer_int_sum): Use %wd on return from
24892         tree_low_cst.
24893
24894 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24895
24896         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
24897         on return from tree_low_cst.
24898
24899 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
24900
24901         PR c++/36799
24902         * ginclude/stdarg.h (va_copy): Define also for
24903         __GXX_EXPERIMENTAL_CXX0X__.
24904
24905 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24906
24907         PR c++/35652
24908         * builtins.h (c_strlen): Do not warn here.
24909         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
24910         * c-common.c (pointer_int_sum): Take an explicit location.
24911         Warn about offsets out of bounds.
24912         * c-common.h (pointer_int_sum): Adjust declaration.
24913
24914 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24915
24916         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
24917         markup glitch.
24918
24919 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
24920
24921         PR c++/39554
24922         * opts.c (warn_if_disallowed_function_p): Don't assume
24923         get_callee_fndecl must return non-NULL.
24924
24925 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
24926
24927         PR rtl-optimization/39522
24928         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
24929         when reg_reloaded_valid is set.
24930
24931 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24932
24933         * config/spu/divv2df3.c: New file.
24934         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
24935         (DPBIT_FUNCS): Filter out _div_df.
24936
24937 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
24938
24939         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
24940         a jump insn, count that jump in the distance to the loop start.
24941
24942 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
24943
24944         PR target/39523
24945         * config/sh/sh.c (calc_live_regs): Fix condition for global
24946         registers except PIC_OFFSET_TABLE_REGNUM.
24947
24948 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
24949
24950         PR/39518
24951         * doc/invoke.texi (-mconsole): New.
24952         (-mcygwin): New.
24953         (-mno-cygwin): New.
24954         (-mdll): New.
24955         (-mnop-fun-dllimport): New.
24956         (-mthread): New.
24957         (-mwin32): New.
24958         (-mwindows): New.
24959         (sub section "i386 and x86-64 Windows Options"): New.
24960
24961 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
24962
24963         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
24964         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
24965
24966 2009-03-25  Richard Guenther  <rguenther@suse.de>
24967
24968         PR middle-end/39497
24969         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
24970         of -Wno-error.
24971
24972 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
24973
24974         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
24975         neither of haifa/selective schedulers are working.
24976
24977 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24978
24979         * doc/invoke.texi (Debugging Options): Fix description of
24980         -fno-merge-debug-strings.
24981
24982 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
24983
24984         * config/cris/libgcc.ver: New version-script.
24985         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
24986
24987         * configure.ac <GAS features, nop mnemonic>: Add pattern
24988         crisv32-*-* for "nop".
24989         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
24990         * configure: Regenerate.
24991
24992 2009-03-24  Ira Rosen  <irar@il.ibm.com>
24993
24994         PR tree-optimization/39529
24995         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
24996         mark_sym_for_renaming for the tag copied to the new vector
24997         pointer.
24998
24999 2009-03-24  Arthur Loiret  <aloiret@debian.org>
25000
25001         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
25002         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
25003         EXTRA_SPEC_FUNCTIONS.
25004         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
25005         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
25006         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
25007         -march and -mtune options.
25008
25009 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
25010
25011         * config/m68k/t-rtems: Add m5329 multilib.
25012
25013 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
25014             Jakub Jelinek  <jakub@redhat.com>
25015
25016         PR debug/39524
25017         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
25018         nodes.
25019
25020 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
25021
25022         PR c/39495
25023         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
25024         instead of c_parser_expression_conv, if original_code isn't one of the
25025         4 allowed comparison codes, fail.
25026
25027 2009-03-23  Richard Guenther  <rguenther@suse.de>
25028
25029         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
25030         * tree.h (struct tree_type): Likewise.
25031         * reload.h (struct insn_chain): Likewise.
25032         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
25033         * function.h (struct function): Likewise.
25034         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
25035
25036 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
25037
25038         PR tree-optimization/39516
25039         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
25040
25041 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
25042
25043         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
25044         should be set true if BITS_PER_WORD of target is bigger than 32
25045
25046 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
25047
25048         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
25049         Translate -B-options to -rpath-link.  Correct existing
25050         rpath-link and conditionalize on !nostdlib.
25051
25052 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25053
25054         * doc/extend.texi (Function Attributes, Variable Attributes):
25055         Fix typos.
25056         * doc/invoke.texi (Debugging Options, Optimize Options)
25057         (i386 and x86-64 Options, MCore Options): Likewise.
25058
25059 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
25060
25061         PR debug/37890
25062         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
25063         it for block local namespace aliases.
25064         (gen_decl_die): Pass context_die to gen_namespace_die.
25065
25066 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
25067
25068         PR c/39495
25069         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
25070         minimum or maximum value.
25071
25072 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
25073
25074         * reginfo.c (globalize_reg): Recompute derived reg sets.
25075
25076 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
25077
25078         PR target/39063
25079         * libgcc2.c (mprotect): Do not use signed arguments for
25080         VirtualProtect, use DWORD arguments.  Also fix the 'may
25081         be used uninitialized' warning for the np variable.
25082
25083 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
25084
25085         PR target/39496
25086         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
25087         functions using regparm calling conventions when not optimizing.
25088         (ix86_function_sseregparm): Similarly for sseregparm calling
25089         conventions.
25090
25091 2009-03-19  Li Feng  <nemokingdom@gmail.com>
25092
25093         PR middle-end/39500
25094         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
25095         dependence if the first conflict is after niter iterations.
25096
25097 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
25098
25099         PR middle-end/38609
25100         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
25101         functions with dynamic stack-pointer adjustments.
25102
25103 2009-03-19  Ben Elliston  <bje@au.ibm.com>
25104
25105         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
25106         option; change to -msdata=data.
25107
25108 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25109
25110         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
25111         and -fopenmp.
25112
25113 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
25114
25115         PR target/35180
25116         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
25117
25118 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
25119
25120         * doc/invoke.texi (Code Gen Options): Expand discussion of
25121         -fno-common.
25122
25123 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
25124
25125         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
25126         * matrix-reorg.c (struct matrix_info): Likewise.
25127         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
25128         * rtl.h (struct mem_attrs): Likewise.
25129         * df.h (struct df): Likewise.
25130         * tree-data-ref.h (struct data_dependence_relation): Likewise.
25131         * ira-int.h (struct ira_allocno): Likewise.
25132         * df-scan.c (struct df_collection_rec): Likewise.
25133         * ira.c (struct equivalence): Likewise.
25134         * function.c (struct temp_slot): Likewise.
25135         * cfgloop.h (struct loop): Likewise.
25136
25137         PR debug/39485
25138         * function.c (use_register_for_decl): When not optimizing, disregard
25139         register keyword for variables with types containing methods.
25140
25141 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
25142
25143         PR middle-end/39447
25144         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
25145         (is_simple_operand): Call contains_component_ref_p before calling data
25146         reference analysis that would fail on COMPONENT_REFs.
25147
25148         * tree-vrp.c (search_for_addr_array): Fix formatting.
25149
25150 2009-03-18  Richard Guenther  <rguenther@suse.de>
25151
25152         * tree-vect-transform.c (vect_loop_versioning): Fold the
25153         generated comparisons.
25154         * tree-vectorizer.c (set_prologue_iterations): Likewise.
25155         (slpeel_tree_peel_loop_to_edge): Likewise.
25156
25157 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25158
25159         PR middle-end/37805
25160         * opts.c (print_specific_help): In addition to `undocumented',
25161         accept `separate' and `joined' flags if passed alone.  Describe
25162         output by the first matched one of those.
25163         (common_handle_option): Skip over empty strings.
25164         * gcc.c (display_help): Fix help string for `--help='.
25165         * doc/invoke.texi (Option Summary, Overall Options): With
25166         `--help=', classes and qualifiers can both be repeated, but
25167         only the latter can be negated.  One should not pass only
25168         negated qualifiers.  Fix markup and examples.
25169
25170         Revert
25171         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
25172         PR middle-end/37805
25173         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
25174         and -fhelp=separate.
25175
25176 2009-03-17  Jing Yu  <jingyu@google.com>
25177
25178         PR middle-end/39378
25179         * function.h (struct rtl_data): Move is_thunk from here...
25180         (struct function): ...to here.
25181         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
25182         * varasm.c (assemble_start_function): Change is_thunk from crtl to
25183         cfun.
25184         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
25185         cfun.
25186         (alpha_does_function_need_gp, alpha_start_function): Likewise.
25187         (alpha_output_function_end_prologue): Likewise.
25188         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
25189         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
25190         (rs6000_output_function_epilogue): Likewise.
25191         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
25192
25193 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
25194
25195         PR target/39482
25196         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
25197         from different units in a single alternative.
25198         (*truncdfsf_i387): Ditto.
25199         (*truncxfsf2_mixed): Ditto.
25200         (*truncxfdf2_mixed): Ditto.
25201
25202 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
25203
25204         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
25205         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
25206
25207         PR debug/39474
25208         * tree-ssa-live.c (remove_unused_locals): Don't remove local
25209         unused non-artificial variables when not optimizing.
25210
25211         PR debug/39471
25212         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
25213         DW_TAG_imported_module even if decl is IMPORTED_DECL with
25214         NAMESPACE_DECL in its DECL_INITIAL.
25215
25216         PR middle-end/39443
25217         * optabs.c (set_user_assembler_libfunc): New function.
25218         * expr.h (set_user_assembler_libfunc): New prototype.
25219         * c-common.c: Include libfuncs.h.
25220         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
25221         for memcmp, memset, memcpy, memmove and abort.
25222         * Makefile.in (c-common.o): Depend on libfuncs.h.
25223
25224         PR debug/39412
25225         * dwarf2out.c (gen_inlined_enumeration_type_die,
25226         gen_inlined_structure_type_die, gen_inlined_union_type_die,
25227         gen_tagged_type_instantiation_die): Removed.
25228         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
25229         do nothing.
25230
25231 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
25232
25233         PR testsuite/38526
25234         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
25235         its use.
25236         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
25237         (check-parallel-%): Ditto.
25238         (check-consistency): Ditto.
25239
25240 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
25241
25242         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
25243         local variable rhs by NULL_TREE.
25244
25245 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25246
25247         PR target/39477
25248         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
25249
25250 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25251
25252         PR target/39476
25253         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
25254
25255 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25256
25257         PR target/39473
25258         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
25259         for ms->sysv ABI calls only in 64bit mode.
25260
25261         * config/i386/i386.md (untyped_call): Support 32bit.
25262
25263 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
25264
25265         * doc/extend.texi: Replace x86_65 with x86_64.
25266
25267 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
25268
25269         PR tree-optimization/39455
25270         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
25271         mismatches for POINTER_TYPE_P (type).
25272         (number_of_iterations_le): Likewise.
25273
25274 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
25275
25276         * config/picochip/picochip.c: Removed profiling support.
25277         * config/picochip/picochip.md: Removed profiling instruction.
25278         * config/picochip/picochip.h: Removed profiling builtin.
25279
25280 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
25281
25282         * doc/install.texi (--with-host-libstdcxx): Document.
25283
25284 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
25285
25286         PR target/34299
25287         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
25288         generate a warning if the function name does not begin with
25289         "__vector" and the function has either the 'signal' or 'interrupt'
25290         attribute, from here to ...
25291         (avr_declare_function_name): ...here. New function.
25292         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
25293         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
25294
25295 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
25296
25297         PR bootstrap/39454
25298         * cse.c (fold_rtx): Don't modify original const_arg1 when
25299         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
25300         separate variable instead.
25301         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
25302         from out of range shift counts.
25303         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
25304
25305 2009-03-13  Catherine Moore  <clm@codesourcery.com>
25306
25307         * config/i386/x-mingw32 (host-mingw32.o): Replace
25308         diagnostic.h with $(DIAGNOSTIC_H).
25309
25310 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
25311
25312         PR target/39431
25313         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
25314         predicate.
25315         * config/i386/sync.md (sync_compare_and_swap<mode>,
25316         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
25317         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
25318         into a register.
25319         (sync_double_compare_and_swapdi_pic,
25320         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
25321         cmpxchg8b_pic_memory_operand instead of just memory_operand.
25322
25323 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
25324
25325         PR target/39445
25326         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
25327
25328 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
25329
25330         PR target/39327
25331         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
25332         (avx_addsubv4df3): Likewise.
25333         (*avx_addsubv4sf3): Likewise.
25334         (sse3_addsubv4sf3): Likewise.
25335
25336 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
25337
25338         PR target/38824
25339         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
25340
25341 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
25342
25343         PR debug/39432
25344         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
25345         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
25346         registers for allocnos created from user-defined variables.
25347
25348 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25349
25350         PR target/39181
25351         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
25352         of non-integer mode as well.
25353
25354 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
25355
25356         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
25357         for functions for which the parameter types are unknown.
25358
25359 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
25360
25361         PR target/39137
25362         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
25363         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
25364         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
25365         * config/i386/i386.c (ix86_local_alignment): For
25366         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
25367         long long variables on the stack to avoid dynamic realignment.
25368         Allow the first argument to be a decl rather than type.
25369         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
25370
25371 2009-03-11  Nick Clifton  <nickc@redhat.com>
25372
25373         PR target/5362
25374         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
25375         options.
25376         Add description to mno-lsim option.
25377         * config/mcore/mcore.h: Remove comment about deprecated m4align
25378         option.
25379         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
25380         * doc/invoke.texi: Add description of mno-lsim and
25381         mstack-increment options.
25382
25383         * config/fr30/fr30.opt: Document the -mno-lsim option.
25384         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
25385         and -mno-lsim options.
25386
25387 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25388
25389         * fold-const.c (fold_comparison): Only call fold_inf_compare
25390         if the mode supports infinities.
25391
25392 2009-03-11  Jason Merrill  <jason@redhat.com>
25393
25394         PR debug/39086
25395         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
25396         end already did.  Notice GIMPLE_CALL modifications of the result.
25397         Don't copy debug information from an ignored decl or a decl from
25398         another function.
25399
25400 2009-03-10  Richard Guenther  <rguenther@suse.de>
25401             Nathan Froyd  <froydnj@codesourcery.com>
25402
25403         PR middle-end/37850
25404         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
25405         (__divMODE3): Likewise.
25406
25407 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
25408
25409         PR tree-optimization/39394
25410         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
25411         DECL_SIZE_UNIT of variable length FIELD_DECLs.
25412
25413 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25414
25415         * recog.c (verfiy_changes): Disallow renaming of hard regs in
25416         inline asms for register asm ("") declarations.
25417
25418 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
25419
25420         * fold-const.c (fold_unary): Fix comment.
25421
25422 2009-03-07  Jan Hubicka  <jh@suse.cz>
25423
25424         PR target/39361
25425         * tree-inline.c (setup_one_parameter): Do replacement of const
25426         argument by constant in SSA form.
25427
25428 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25429
25430         PR middle-end/38028
25431         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
25432         determine alignment passed to assign_stack_local.
25433         (assign_parms_unsplit_complex): Likewise.
25434         * except.c (sjlj_build_landing_pads): Likewise.
25435
25436 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
25437
25438         PR middle-end/39360
25439         * tree-flow.h (add_referenced_var): Return bool instead of void.
25440         * tree-dfa.c (add_referenced_var): Return result of
25441         referenced_var_check_and_insert call.
25442         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
25443         of referenced_var_check_and_insert.
25444
25445         PR debug/39372
25446         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
25447         (gen_variable_die): Emit DW_AT_location on abstract static variable's
25448         DIE, don't emit it if abstract origin already has it.
25449         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
25450         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
25451
25452 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
25453
25454         * genpreds.c (needs_variable): Fix parentheses at variable name
25455         detection.
25456         (write_tm_constrs_h): Indent generated code.
25457
25458 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25459
25460         * doc/extend.texi (Function Attributes): Add documentation
25461         for isr attributes.
25462
25463 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
25464
25465         PR debug/39387
25466         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
25467         take locus from its DECL_SOURCE_LOCATION instead of input_location.
25468
25469 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
25470
25471         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
25472         the loop as bad.
25473
25474 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
25475
25476         PR debug/39379
25477         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
25478         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
25479
25480 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
25481
25482         * config/i386/i386.md (R8_REG, R9_REG): New constants.
25483         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
25484         constants instead of magic numbers.
25485         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
25486         (QI_REG_P): Ditto.
25487         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
25488         (x86_64_ms_abi_int_parameter_registers): Ditto.
25489         (x86_64_int_return_registers): Ditto.
25490         (ix86_maybe_switch_abi): Ditto.
25491         (ix86_expand_call): Ditto for clobbered_registers array.
25492         (ix86_hard_regno_mode_ok): Ditto.
25493         (x86_extended_QIreg_mentioned_p): Ditto.
25494
25495 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
25496
25497         PR tree-optimization/39349
25498         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
25499
25500         * combine.c (gen_lowpart_for_combine): Use omode when generating
25501         clobber.
25502
25503 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
25504
25505         PR rtl-optimization/39235
25506         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
25507
25508 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
25509
25510         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
25511
25512 2009-03-04  Richard Guenther  <rguenther@suse.de>
25513
25514         PR tree-optimization/39362
25515         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
25516         that occur in abnormal PHIs should be varying.
25517
25518 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
25519
25520         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
25521         Extend comments.
25522         (simple_iv):  Take loop as an argument instead of statement.
25523         * tree-scalar-evolution.h (simple_iv): Declaration changed.
25524         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
25525         to simple_iv.
25526         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
25527         Ditto.
25528         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
25529         * matrix-reorg.c (analyze_transpose): Ditto.
25530         * tree-data-ref.c (dr_analyze_innermost): Ditto.
25531         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
25532         * tree-predcom.c (ref_at_iteration): Ditto.
25533         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
25534
25535 2009-03-04  Richard Guenther  <rguenther@suse.de>
25536
25537         PR tree-optimization/39358
25538         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
25539         escaped_id and callused_id.
25540         (solve_graph): Likewise.
25541
25542 2009-03-04  Richard Guenther  <rguenther@suse.de>
25543
25544         PR tree-optimization/39339
25545         * tree-sra.c (try_instantiate_multiple_fields): Make it
25546         no longer ICE on the above.
25547
25548 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
25549
25550         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
25551         that fits within Pmode.
25552
25553 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
25554
25555         PR middle-end/10109
25556         * tm.texi (LIBCALL_VALUE): Update description.
25557
25558 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
25559
25560         PR middle-end/34443
25561         * doc/extend.texi (section): Update description.
25562
25563 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
25564
25565         PR middle-end/39345
25566         * tree-inline.c (remapped_type): New.
25567         (can_be_nonlocal): Call remapped_type instead of remap_type.
25568
25569 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
25570
25571         PR fortran/39354
25572         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
25573         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
25574
25575 2009-03-03  Richard Guenther  <rguenther@suse.de>
25576
25577         PR middle-end/39272
25578         * tree.c (tree_nonartificial_location): New function.
25579         * tree.h (tree_nonartificial_location): Declare.
25580         * builtins.c (expand_builtin_memory_chk): Provide location
25581         of the call location for artificial function pieces.
25582         (maybe_emit_chk_warning): Likewise.
25583         (maybe_emit_sprintf_chk_warning): Likewise.
25584         (maybe_emit_free_warning): Likewise.
25585         * expr.c (expand_expr_real_1): Likewise.
25586
25587 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
25588
25589         PR tree-optimization/39343
25590         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
25591         COMPONENT_REF t has ARRAY_TYPE.
25592
25593 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
25594
25595         PR middle-end/39335
25596         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
25597         when the type precision of the induction variable should be
25598         larger than the type precision of nit.
25599         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
25600         * graphite.c (graphite_loop_normal_form): Same.
25601         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
25602
25603 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
25604
25605         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
25606         (*call_1_rex64_ms_sysv): Use named constants instead of magic
25607         numbers to describe clobbered registers.
25608         (*call_value_0_rex64_ms_sysv): Ditto.
25609         * config/i386/mmx.md (mmx_emms): Ditto.
25610         (mmx_femms): Ditto.
25611
25612 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
25613
25614         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
25615         of ABI_64.
25616
25617 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25618
25619         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
25620         (spu_section_type_flags): New function.
25621
25622 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
25623
25624         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
25625         reg_class_contents of FLOAT_REGS into a temporary.
25626
25627 2009-03-02  Richard Guenther  <rguenther@suse.de>
25628             Ira Rosen  <irar@il.ibm.com>
25629
25630         PR tree-optimization/39318
25631         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
25632         information to the vectorized statement.
25633
25634 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
25635
25636         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
25637         variable.  Use defined names instead of magic constants for REX SSE
25638         registers.
25639
25640 2009-03-01  Richard Guenther  <rguenther@suse.de>
25641
25642         PR tree-optimization/39331
25643         * omp-low.c (lower_send_shared_vars): Do not receive new
25644         values for the reference of DECL_BY_REFERENCE parms or results.
25645
25646 2009-03-01  Jan Hubicka  <jh@suse.cz>
25647
25648         PR debug/39267
25649         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
25650         BLOCK_NONLOCALIZED_VAR): New macros.
25651         (tree_block): Add nonlocalized_vars.
25652         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
25653         gen_decl_die): Add origin argument.  Allow generation of die with
25654         origin at hand only.
25655         (gen_member_die, gen_type_die_with_usage, force_decl_die,
25656         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
25657         of gen_*.
25658         (gen_block_die): Fix checking for unused blocks.
25659         (process_scope_var): Break out from .... ; work with origins only.
25660         (decls_for_scope) ... here; process nonlocalized list.
25661         (dwarf2out_ignore_block): Look for nonlocalized vars.
25662         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
25663         vars.
25664         (dump_scope_block): Dump them.
25665         * tree-inline.c (remap_decls): Handle nonlocalized vars.
25666         (remap_block): Likewise.
25667         (can_be_nonlocal): New predicate.
25668         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
25669
25670 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25671
25672         * configure: Regenerate.
25673
25674 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25675
25676         * optc-gen.awk: No need to duplicate option flags twice.
25677         Reuse help texts for duplicate options which do not have any.
25678
25679         * gcc.c (display_help): Document --version.
25680
25681         * gcc.c (main): If print_help_list and verbose_flag, ensure
25682         driver output comes before subprocess output.
25683
25684         * optc-gen.awk: Assign all remaining fields to help string,
25685         space-separated, for multi-line help in *.opt.
25686
25687         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
25688         -Wno-pedantic-ms-format is for MinGW targets only.
25689
25690         * doc/options.texi (Option file format): Fix bad indentation,
25691         restoring dropped sentence.
25692
25693 2009-02-28  Jan Hubicka  <jh@suse.cz>
25694
25695         * tree-inline.c (tree_function_versioning): Output debug info.
25696
25697 2009-02-28  Jan Hubicka  <jh@suse.cz>
25698
25699         PR debug/39267
25700         * tree-inline.c (setup_one_parameter): Do not copy propagate
25701         arguments when not optimizing.
25702
25703 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
25704
25705         PR target/39327
25706         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
25707         (avx_addsubv4df3): Likewise.
25708         (*avx_addsubv4sf3): Likewise.
25709         (sse3_addsubv4sf3): Likewise.
25710         (*avx_addsubv2df3): Likewise.
25711         (sse3_addsubv2df3): Likewise.
25712         (avx_unpckhps256): Correct item selectors.
25713         (avx_unpcklps256): Likewise.
25714         (avx_unpckhpd256): Likewise.
25715         (avx_unpcklpd256): Likewise.
25716
25717 2009-02-28  Jan Hubicka  <jh@suse.cz>
25718
25719         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
25720         static vars.
25721         (copy_arguments_for_versioning): If var is declared don't declare it.
25722         (tree_function_versioning): First setup substitutions and then copy
25723         args.
25724
25725 2009-02-27  Jan Hubicka  <jh@suse.cz>
25726
25727         PR debug/39267
25728         * cgraph.h (varpool_output_debug_info): Remove.
25729         * cgraphunit.c (varpool_output_debug_info): Remove.
25730         * dwarf2out.c (deferred_locations_struct): New struct
25731         (deferred_locations): New type.
25732         (deferred_locations_list): New static var.
25733         (deffer_location): New function.
25734         (gen_variable_die): Use it.
25735         (decls_for_scope): Output info on local static vars.
25736         (dwarf2out_finish): Process deferred locations.
25737         * varpool.c (varpool_output_debug_info): Remove.
25738
25739 2009-02-27  Jan Hubicka  <jh@suse.cz>
25740
25741         PR debug/39267
25742         * tree.h (TREE_PROTECTED): Fix comment.
25743         (BLOCK_HANDLER_BLOCK): Remove.
25744         (struct tree_block): Remove handler_block add body_block.
25745         (inlined_function_outer_scope_p): New.
25746         (is_body_block): Remove.
25747         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
25748         * dwarf2out.c (is_inlined_entry_point): Remove.
25749         (add_high_low_attributes): Use inlined_function_outer_scope_p.
25750         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
25751         code.
25752         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
25753         * gimplify.c (gimplify_expr): Gimplify body blocks.
25754         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
25755         block with multiple subblocks.
25756         (dump_scope_block): Prettier output; dump more flags and info.
25757         (dump_scope_blocks): New.
25758         (remove_unused_locals): Use dump_scope_blocks.
25759         * tree-flow.h (dump_scope_blocks): Declare.
25760         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
25761         * stmt.c (is_body_block): Remove.
25762         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
25763         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
25764
25765 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
25766
25767         PR middle-end/39308
25768         * graphite.c (graphite_loop_normal_form): Do not call
25769         number_of_iterations_exit from a gcc_assert.
25770
25771 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25772
25773         * config/s390/s390.c (s390_swap_cmp): Look for conditional
25774         jumps if COND is NULL.
25775         (find_cond_jump): New function.
25776         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
25777         * config/s390/s390.md: Remove z10_cobra attribute value.
25778
25779 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
25780
25781         * config/alpha/alpha.h (alpha_expand_mov): Return false if
25782         force_const_mem returns NULL_RTX.
25783
25784 2009-02-26  Jan Hubicka  <jh@suse.cz>
25785
25786         PR debug/39267
25787         * cgraph.h (varpool_output_debug_info): Remove.
25788         * cgraphunit.c (varpool_output_debug_info): Remove.
25789         * dwarf2out.c (deferred_locations_struct): New struct
25790         (deferred_locations): New type.
25791         (deferred_locations_list): New static var.
25792         (deffer_location): New function.
25793         (gen_variable_die): Use it.
25794         (decls_for_scope): Output info on local static vars.
25795         (dwarf2out_finish): Process deferred locations.
25796         * varpool.c (varpool_output_debug_info): Remove.
25797
25798 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
25799
25800         PR rtl-optimization/39241
25801         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
25802         to subreg_offset_representable_p.
25803
25804 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
25805
25806         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
25807         execute function prototype.  Get f and nregs from max_reg_num
25808         and get_insns.  Remove the first backward pass as it's dead,
25809         guard the forward pass by flag_expensive_optimizations.
25810         (rest_of_handle_regmove): Delete.
25811         (pass_regmove): Replace it with regmove_optimize.
25812
25813 2009-02-25  Martin Jambor  <mjambor@suse.cz>
25814
25815         PR tree-optimization/39259
25816         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
25817         calls_alloca function flags.
25818         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
25819         calls are detected.
25820
25821 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
25822
25823         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
25824         flags_set_1_rtx, flags_set_1_set): Delete.
25825         (regmove_optimize): Do not call mark_flags_life_zones.
25826
25827 2009-02-24  Julian Brown  <julian@codesourcery.com>
25828
25829         PR target/35965
25830         * config/arm/arm.c (require_pic_register): Only set
25831         cfun->machine->pic_reg once per function.
25832
25833 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
25834
25835         * doc/invoke.texi (Link Options): Document an easier way to pass
25836         options that take arguments to the GNU linker using -Xlinker and -Wl.
25837
25838 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
25839
25840         PR target/33785
25841         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
25842
25843 2009-02-24  Richard Guenther  <rguenther@suse.de>
25844
25845         PR debug/39285
25846         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
25847
25848 2009-02-24  Richard Guenther  <rguenther@suse.de>
25849             Zdenek Dvorak  <ook@ucw.cz>
25850
25851         PR tree-optimization/39233
25852         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
25853         from converting them to a generic type.
25854
25855 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
25856
25857         PR tree-optimization/39260
25858         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
25859         contains a condition with a real type.
25860         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
25861
25862 2009-02-23  Jason Merrill  <jason@redhat.com>
25863
25864         PR c++/38880
25865         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
25866         narrowing_initializer_constant_valid_p.
25867         (narrowing_initializer_constant_valid_p): Don't return
25868         null_pointer_node for adding a pointer to itself.
25869
25870 2009-02-23  Jan Hubicka  <jh@suse.cz>
25871
25872         PR c/12245
25873         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
25874         resizing.
25875
25876 2009-02-23  Jan Hubicka  <jh@suse.cz>
25877
25878         PR tree-optimization/37709
25879         * tree.c (block_ultimate_origin): Move here from dwarf2out.
25880         * tree.h (block_ultimate_origin): Declare.
25881         * dwarf2out.c (block_ultimate_origin): Move to tree.c
25882         * tree-ssa-live.c (remove_unused_scope_block_p):
25883         Eliminate blocks containig no instructions nor live variables nor
25884         nested blocks.
25885         (dump_scope_block): New function.
25886         (remove_unused_locals): Enable removal of dead blocks by default;
25887         enable dumping at TDF_DETAILS.
25888
25889 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
25890
25891         * config/i386/i386.c (classify_argument): Don't allow COImode
25892         and OImode.
25893         (function_arg_advance_32): Don't allow OImode.
25894         (function_arg_32): Likewise.
25895         (function_value_32): Likewise.
25896         (return_in_memory_32): Likewise.
25897         (function_arg_64): Remove OImode comment.
25898
25899 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
25900
25901         PR target/39261
25902         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
25903         ix86_expand_vector_set for V4DImode in 64bit mode only.
25904         (ix86_expand_vector_init_one_var): Likewise.
25905
25906 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
25907
25908         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
25909
25910 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
25911
25912         PR bootstrap/39257
25913         * loop-iv.c: Revert last change.
25914         * emit-rtl.c: Likewise.
25915
25916 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
25917
25918         PR target/39256
25919         * config/i386/i386.c (type_natural_mode): Remove an extra
25920         space in the warning message.
25921         (function_value_32): Handle 32-byte vector modes.
25922         (return_in_memory_32): Likewise.
25923
25924 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
25925
25926         * loop-iv.c (truncate_value): New function.
25927         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
25928         of lowpart_subreg.
25929         (lowpart_subreg): Move to...
25930         * emit-rtl.c: ...here.
25931
25932 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
25933
25934         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
25935         accidental and undocumented change at revision 140860.
25936
25937 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
25938
25939         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
25940         take gimple_seq * arguments.
25941         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
25942         types_compatible_p langhook.
25943
25944 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
25945             Joseph Myers  <joseph@codesourcery.com>
25946
25947         * config/arm/arm.c (arm_builtin_va_list): New function.
25948         (arm_expand_builtin_va_start): Likewise.
25949         (arm_gimplify_va_arg_expr): Likewise.
25950         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
25951         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
25952         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
25953         (va_list_type): New variable.
25954         (arm_mangle_type): Mangle va_list_type appropriately.
25955
25956 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
25957
25958         PR middle-end/39157
25959         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
25960         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
25961         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
25962         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
25963         parameter to 1000 for -O1 by default.
25964         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
25965         parameter.
25966         * loop-invariant.c: Include params.h.
25967         (move_loop_invariants): Don't call move_single_loop_invariants on
25968         very large loops.
25969
25970 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
25971
25972         * calls.c (emit_library_call_value_1): Use slot_offset instead of
25973         offset when calculating bounds for indexing stack_usage_map.  Fixes
25974         a buffer overflow with certain target setups.
25975
25976 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
25977
25978         PR target/39240
25979         * calls.c (expand_call): Clear try_tail_call if caller and callee
25980         disagree in promotion of function return value.
25981
25982 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
25983
25984         PR target/39175
25985         * c-common.c (c_determine_visibility): If visibility changed and
25986         DECL_RTL has been already set, call make_decl_rtl to update symbol
25987         flags.
25988
25989 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
25990
25991         PR c++/39188
25992         * varasm.c (assemble_variable): Don't check DECL_NAME when
25993         globalizing a variable.
25994
25995 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
25996
25997         PR c/38483
25998         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
25999         expression before any __builtin_trap call.
26000         * c-typeck.c (build_function_call): Convert and check function
26001         arguments before generating a call to a trap.  Evaluate the
26002         function arguments before the trap.
26003
26004 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
26005
26006         PR target/39228
26007         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
26008         (UNSPEC_FXAM_MEM): New unspec.
26009         (fxam<mode>2_i387_with_temp): New insn and split pattern.
26010         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
26011         memory using fxam<mode>2_i387_with_temp to remove excess precision.
26012
26013 2009-02-19  Richard Guenther  <rguenther@suse.de>
26014
26015         PR tree-optimization/39207
26016         PR tree-optimization/39074
26017         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
26018         storedanything_tree): New.
26019         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
26020         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
26021         (build_succ_graph): Add edges from STOREDANYTHING to all
26022         non-direct nodes.
26023         (init_base_vars): Initialize STOREDANYTHING.
26024         (compute_points_to_sets): Free substitution info after
26025         building the succ graph.
26026         (ipa_pta_execute): Likewise.
26027
26028         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
26029         field.
26030         (do_ds_constraint): Do not add to special var or non-pointer
26031         field solutions.
26032         (type_could_have_pointers): Split out from ...
26033         (could_have_pointers): ... here.  For arrays use the element type.
26034         (create_variable_info_for): Initialize may_have_pointers.
26035         (new_var_info): Likewise.
26036         (handle_lhs_call): Make the HEAP variable unknown-sized.
26037         (intra_create_variable_infos): Use a type with pointers for
26038         PARM_NOALIAS, make it unknown-sized.
26039
26040 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
26041
26042         PR target/39224
26043         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
26044
26045 2009-02-18  Jason Merrill  <jason@redhat.com>
26046
26047         PR target/39179
26048         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
26049         value if DECL_EXTERNAL.
26050         * tree-sra.c (sra_walk_gimple_assign): Likewise.
26051         * target.h (gcc_target::binds_local_p): Clarify "module".
26052         * tree.h (TREE_PUBLIC): Clarify "module".
26053
26054 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
26055
26056         PR target/38891
26057         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
26058         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
26059
26060 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
26061
26062         PR target/39082
26063         * c.opt (Wabi): Support C and ObjC.
26064         (Wpsabi): New.
26065
26066         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
26067
26068         * config/i386/i386.c (classify_argument): Warn once about the ABI
26069         change when passing union with long double.
26070
26071         * doc/invoke.texi: Update -Wabi for warning psABI changes.
26072
26073 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
26074
26075         PR c/35447
26076         * c-parser.c (c_parser_compound_statement): Always enter and leave
26077         a scope.
26078
26079 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26080
26081         PR target/34587
26082         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
26083
26084 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
26085
26086         PR tree-optimization/36922
26087         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
26088         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
26089         Likewise.
26090
26091 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
26092
26093         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
26094         to 0 for EABI64.
26095
26096 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
26097
26098         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
26099
26100 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
26101
26102         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
26103         tree sharing.
26104
26105 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
26106             Richard Sandiford  <rdsandiford@googlemail.com>
26107
26108         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
26109         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
26110         (loongson_biadd): ...this.
26111
26112 2009-02-17  Richard Guenther  <rguenther@suse.de>
26113
26114         PR tree-optimization/39202
26115         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
26116         a var make sure to follow existing collapses.
26117
26118 2009-02-17  Richard Guenther  <rguenther@suse.de>
26119
26120         PR middle-end/39214
26121         * langhooks.c (lhd_print_error_function): Check for NULL block.
26122
26123 2009-02-17  Richard Guenther  <rguenther@suse.de>
26124
26125         PR tree-optimization/39204
26126         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
26127         of the PHI arg.
26128
26129 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
26130
26131         * config/soft-fp/double.h: Update from glibc CVS.
26132
26133 2009-02-17  Richard Guenther  <rguenther@suse.de>
26134
26135         PR tree-optimization/39207
26136         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
26137         strict-aliasing warnings for pointers pointing to NULL.
26138
26139 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
26140
26141         PR c/35446
26142         * c-parser.c (c_parser_braced_init): Call pop_init_level when
26143         skipping until next close brace.
26144
26145 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
26146
26147         PR target/37049
26148         * config/i386/i386.c (ix86_expand_push): Set memory alignment
26149         to function argument boundary.
26150
26151 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
26152
26153         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
26154         in the lea_add. Reload eventually constraints it properly.
26155         * config/picochip/constraints.md: Remove the target constraint
26156         "b", since it is not needed anymore.
26157
26158 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
26159
26160         * gthr-dce.h: Uglify function parameter and local variable names.
26161         * gthr-gnat.h: Likewise.
26162         * gthr-mipssde.h: Likewise.
26163         * gthr-nks.h: Likewise.
26164         * gthr-posix95.h: Likewise.
26165         * gthr-posix.h: Likewise.
26166         * gthr-rtems.h: Likewise.
26167         * gthr-single.h: Likewise.
26168         * gthr-solaris.h: Likewise.
26169         * gthr-tpf.h: Likewise.
26170         * gthr-vxworks.h: Likewise.
26171         * gthr-win32.h: Likewise.
26172
26173 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
26174
26175         PR target/39196
26176         * config/i386/i386.md: Restrict the new peephole2 to move
26177         between MMX/SSE registers.
26178
26179 2009-02-15  Richard Guenther  <rguenther@suse.de>
26180
26181         Revert
26182         2009-02-13  Richard Guenther  <rguenther@suse.de>
26183
26184         * configure.ac: Enable LFS.
26185         * configure: Re-generate.
26186         * config.in: Likewise.
26187
26188 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26189
26190         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
26191         spu_srqwbyte, spu_srqwbytebc): Define.
26192         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
26193         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
26194         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
26195         "shrqby_<mode>"): New insn-and-split patterns.
26196         * config/spu/spu.c (expand_builtin_args): Determine and return
26197         number of operands using spu_builtin_description data.
26198         (spu_expand_builtin_1): Use it.
26199
26200 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
26201
26202         PR target/38056
26203         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
26204         TARGET_CONST_GP.
26205
26206 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
26207
26208         PR target/39149
26209         * config/i386/i386.c (override_options): Correct warning
26210         messages for -malign-loops, -malign-jumps and -malign-functions.
26211
26212 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
26213
26214         PR target/39152
26215         * config/i386/i386.md: Restrict the new peephole2 to move
26216         between the general purpose registers.
26217
26218 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
26219
26220         PR target/39162
26221         * config/i386/i386.c (type_natural_mode): Add a new argument.
26222         Return the original mode and warn ABI change if vector size is 32byte.
26223         (function_arg_advance): Updated.
26224         (function_arg): Likewise.
26225         (ix86_function_value): Likewise.
26226         (ix86_return_in_memory): Likewise.
26227         (ix86_sol10_return_in_memory): Likewise.
26228         (ix86_gimplify_va_arg): Likewise.
26229         (function_arg_32): Don't warn ABX ABI change here.
26230         (function_arg_64): Likewise.
26231
26232 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
26233
26234         * loop-iv.c (implies_p): In the final case, test that operands 0
26235         of the two comparisons match.
26236
26237         * config/bfin/bfin.c (find_prev_insn_start): New function.
26238         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
26239         (find_next_insn_start): Move.
26240
26241 2009-02-13  Richard Guenther  <rguenther@suse.de>
26242
26243         * configure.ac: Enable LFS.
26244         * configure: Re-generate.
26245         * config.in: Likewise.
26246
26247 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
26248
26249         PR c/35444
26250         * c-parser.c (c_parser_parms_list_declarator): Discard pending
26251         sizes on syntax error after some arguments have been parsed.
26252
26253 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
26254
26255         * doc/invoke.texi (-fira): Remove.
26256
26257 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
26258
26259         * caller-save.c: Replace regclass.c with reginfo.c in comments.
26260         * recog.c: Likewise.
26261         * rtl.h: Likewise.
26262
26263 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
26264
26265         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
26266         (umul_ppmm): Likewise.
26267         (count_leading_zeros): Likewise.
26268         (count_trailing_zeros): Likewise.
26269         (UMUL_TIME): Likewise.
26270
26271 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
26272
26273         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
26274         soft-fp/t-softfp to tmake_file.
26275
26276         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
26277         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
26278         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
26279         IA64_BUILTIN_INFQ]: New.
26280         (ia64_init_builtins): Initialize __builtin_infq,
26281         __builtin_fabsq and __builtin_copysignq if not HPUX.
26282         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
26283         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
26284
26285         * config/ia64/lib1funcs.asm (__divtf3): Define only if
26286         SHARED is defined.
26287         (__fixtfti): Likewise.
26288         (__fixunstfti): Likewise.
26289         (__floattitf): Likewise.
26290
26291         * config/ia64/libgcc-glibc.ver: New.
26292         * config/ia64/t-fprules-softfp: Likewise.
26293         * config/ia64/sfp-machine.h: Likewise.
26294
26295         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
26296         (LIBGCC2_TF_CEXT): Likewise.
26297         (TF_SIZE): Likewise.
26298         (TARGET_INIT_LIBFUNCS): Likewise.
26299
26300         * config/ia64/t-glibc (SHLINB_MAPFILES):
26301         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
26302
26303 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
26304
26305         * config/i386/i386.c (construct_container): Rewrite processing
26306         BLKmode with X86_64_SSE_CLASS.
26307
26308 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
26309
26310         PR target/39152
26311         * config/i386/i386.md: Replace simplify_replace_rtx with
26312         replace_rtx in the new peephole2.
26313
26314 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
26315
26316         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
26317         loop unrolling do not happen at -O2.
26318
26319 2009-02-12  Michael Matz  <matz@suse.de>
26320
26321         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
26322
26323 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
26324
26325         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
26326         for -g3.
26327
26328 2009-02-12  Ben Elliston  <bje@au.ibm.com>
26329
26330         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
26331         patterns when updating the back chain.  Missed in the 2009-02-10
26332         change.
26333
26334 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
26335
26336         * doc/extend.texi (Decimal Floating Types): Update identifier of
26337         draft TR and list of missing support.
26338
26339 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
26340
26341         PR middle-end/39154
26342         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
26343         bit to variable length decl's flags, add it also to its
26344         pointer replacement variable.
26345
26346 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
26347             Jakub Jelinek  <jakub@redhat.com>
26348
26349         PR target/39118
26350         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
26351         (memory_blockage): New expander.
26352         (*memory_blockage): New insn pattern.
26353         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
26354         instead of general blockage at the end of function prologue when
26355         frame pointer is used to access red zone area.  Do not emit blockage
26356         when profiling, it is emitted in generic code.
26357         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
26358         function epilogue when frame pointer is used to access red zone area.
26359
26360 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
26361
26362         PR target/38824
26363         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
26364         by arithmetic with memory operands.
26365         * config/i386/predicates.md (commutative_operator): New.
26366
26367 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
26368
26369         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
26370         bulleted lists.
26371
26372 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
26373
26374         * alias.h (record_alias_subset): Declare.
26375         * alias.c (record_alias_subset): Make global.
26376
26377 2009-02-10  Nick Clifton  <nickc@redhat.com>
26378
26379         * tree-parloops.c: Change license to GPLv3.
26380         * ipa-struct-reorg.c: Change license to GPLv3.
26381         * ipa-struct-reorg.h: Change license to GPLv3.
26382
26383 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
26384
26385         PR c/39084
26386         * c-decl.c (start_struct): Return NULL on error.
26387
26388 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
26389
26390         PR middle-end/39124
26391         * cfgloopmanip.c (remove_path): Call remove_bbs after
26392         cancel_loop_tree, not before it.
26393
26394         PR target/39139
26395         * function.h (struct function): Add has_local_explicit_reg_vars bit.
26396         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
26397         VAR_DECLs were seen.
26398         * tree-ssa-live.c (remove_unused_locals): Recompute
26399         cfun->has_local_explicit_reg_vars.
26400         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
26401         copies or clearings if cfun->has_local_explicit_reg_vars.
26402
26403 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
26404
26405         PR target/39118
26406         * config/i386/i386.c (expand_prologue): Emit blockage at the end
26407         of function prologue when frame pointer is used to access
26408         red zone area.
26409
26410 2009-02-10  Richard Guenther  <rguenther@suse.de>
26411
26412         PR middle-end/39127
26413         * gimplify.c (gimple_regimplify_operands): Always look if
26414         we need to create a temporary.
26415
26416 2009-02-10  Richard Guenther  <rguenther@suse.de>
26417
26418         PR tree-optimization/39132
26419         * tree-loop-distribution.c (todo): New global var.
26420         (generate_memset_zero): Trigger TODO_rebuild_alias.
26421         (tree_loop_distribution): Return todo.
26422
26423 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
26424
26425         PR target/39119
26426         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
26427         (x86_64_reg_class_name): Removed.
26428         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
26429         first one isn't X86_64_SSE_CLASS or any other ones aren't
26430         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
26431         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
26432         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
26433         and 3 X86_64_SSEUP_CLASS.
26434         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
26435         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
26436
26437 2009-02-10  Ben Elliston  <bje@au.ibm.com>
26438
26439         * config/rs6000/rs6000.md (allocate_stack): Always use an update
26440         form instruction to update the stack back chain word, even if the
26441         user has disabled the generation of update instructions.
26442         (movdi_<mode>_update_stack): New.
26443         (movsi_update_stack): Likewise.
26444         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
26445         always use an update form instruction to update the stack back
26446         chain word.
26447
26448 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
26449
26450         PR middle-end/38953
26451         * graphite.c (if_region_set_false_region): After moving a region in
26452         the false branch of a condition, remove the empty dummy basic block.
26453         (gloog): Remove wrong fix for PR38953.
26454
26455 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26456
26457         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
26458         generation due to implicit sign extension.
26459
26460 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
26461
26462         PR middle-end/38981
26463         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
26464         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
26465
26466 2009-02-09  Richard Guenther  <rguenther@suse.de>
26467
26468         PR middle-end/35202
26469         * convert.c (convert_to_real): Disable (float)fn((double)x)
26470         to fnf(x) conversion if errno differences may occur and
26471         -fmath-errno is set.
26472
26473 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
26474
26475         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
26476         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
26477         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
26478
26479 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
26480
26481         PR c/35434
26482         * c-common.c (handle_alias_attribute): Disallow attribute for
26483         anything not a FUNCTION_DECL or VAR_DECL.
26484
26485 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
26486
26487         PR c/39035
26488         * real.c (do_compare): Special-case compare of zero against
26489         decimal float value.
26490
26491 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
26492
26493         PR c/36432
26494         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
26495         as indicating flexible array members unless the field itself is
26496         being declarared as the incomplete array.
26497
26498 2009-02-06  Jan Hubicka  <jh@suse.cz>
26499
26500         PR tree-optimization/38844
26501         * ipa-inline.c (try_inline): Stop inlining recursion when edge
26502         is already inlined.
26503
26504 2009-02-06  Richard Guenther  <rguenther@suse.de>
26505
26506         PR middle-end/38977
26507         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
26508         fork because we may expand it as __gcov_fork.
26509
26510 2009-02-06  Nick Clifton  <nickc@redhat.com>
26511
26512         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
26513
26514 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
26515
26516         PR tree-optimization/35659
26517         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
26518         vn_phi_eq): Shortcut if hashcode does not match.
26519         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
26520         NULL operands.
26521         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
26522         and avoid iterative_hash_expr.
26523         (FOR_EACH_VALUE_ID_IN_SET): New.
26524         (value_id_compare): Remove.
26525         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
26526         sort expressions by value id.
26527
26528 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
26529
26530         PR target/38991
26531         * config/sh/predicates.md (general_movsrc_operand): Don't check
26532         the subreg of system registers here.
26533
26534 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
26535
26536         PR c++/39106
26537         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
26538         on the copied decl.
26539
26540 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
26541
26542         PR rtl-optimization/39110
26543         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
26544         addresses, not aligned ones.
26545
26546 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
26547             Richard Guenther  <rguenther@suse.de>
26548
26549         PR tree-optimization/39100
26550         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
26551         comment says and add edges.
26552
26553 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
26554
26555         PR c/35435
26556         * c-common.c (handle_tls_model_attribute): Ignore attribute for
26557         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
26558
26559 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
26560
26561         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
26562         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
26563         register_bb_in_sese, new_sese, free_sese): Moved.
26564         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
26565         outermost_loop_in_scop, build_scop_iteration_domain,
26566         expand_scalar_variables_ssa_name, get_vdef_before_scop,
26567         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
26568         Use loop_in_sese_p instead of loop_in_scop_p.
26569         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
26570         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
26571         (scopdet_basic_block_info): Fix bug in scop detection.
26572         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
26573         eq_loop_to_cloog_loop): Remove.
26574         (nb_loops_around_loop_in_scop, nb_loop
26575         ref_nb_loops): Moved here...
26576         * graphite.h (ref_nb_loops): ... from here.
26577         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
26578         (loop_domain_dim, loop_iteration_vector_dim): Remove.
26579         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
26580
26581 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
26582             Hans-Peter Nilsson  <hp@axis.com>
26583
26584         PR rtl-optimization/37889
26585         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
26586         Move offset handling from PLUS to before the switch.  Use new
26587         arguments when considering SYMBOL_REFs too.
26588         (rtx_addr_can_trap_p): Pass dummy offset and size.
26589         (enum may_trap_p_flags): Remove.
26590         (may_trap_p_1): Pass size from MEM_SIZE.
26591
26592         PR rtl-optimization/38921
26593         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
26594         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
26595         * rtlanal.c (may_trap_after_code_motion_p): Delete.
26596         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
26597
26598 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
26599
26600         AVX Programming Reference (January, 2009)
26601         * config/i386/sse.md (*vpclmulqdq): New.
26602
26603 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
26604
26605         PR tree-optimization/38977
26606         PR gcov-profile/38292
26607         * calls.c (special_function_p): Disregard __builtin_ prefix.
26608
26609 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
26610
26611         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
26612         non-indexable addresses even before reload.
26613
26614 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
26615
26616         PR c/29129
26617         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
26618         as having variable size.  Do not give an error for unnamed
26619         parameters with [*] declarators.  Give a warning for type names
26620         with [*] declarators and mark them as variable size.
26621         * c-parser.c (c_parser_sizeof_expression): Do not give an error
26622         for sizeof applied to [*] type names.
26623
26624 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
26625
26626         PR C++/36607
26627         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
26628
26629 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
26630
26631         * gcc.c (process_command): Update copyright notice dates.
26632         * gcov.c (print_version): Likewise.
26633         * gcov-dump.c (print_version): Likewise.
26634         * mips-tfile.c (main): Likewise.
26635         * mips-tdump.c (main): Likewise.
26636
26637 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
26638
26639         PR c/35433
26640         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
26641         for composite type involving a zero-length array type.
26642
26643 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
26644
26645         PR target/35318
26646         * function.c (match_asm_constraints_1): Skip over
26647         initial optional % in the constraint.
26648
26649         PR inline-asm/39059
26650         * c-parser.c (c_parser_postfix_expression): If fixed point is not
26651         supported, don't accept FIXED_CSTs.
26652         * c-decl.c (finish_declspecs): Error if fixed point is not supported
26653         and _Sat is used without _Fract/_Accum.  Set specs->type to
26654         integer_type_node for cts_fract/cts_accum if fixed point is not
26655         supported.
26656
26657 2009-02-02  Catherine Moore  <clm@codesourcery.com>
26658
26659         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
26660
26661 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
26662
26663         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
26664         (ABI_HAS_64BIT_SYMBOLS): Use it.
26665         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
26666
26667 2009-02-02  Paul Brook  <paul@codesourcery.com>
26668
26669         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
26670
26671 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
26672
26673         PR inline-asm/39058
26674         * recog.h (asm_operand_ok): Add constraints argument.
26675         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
26676         recurse on matching constraint.
26677         (check_asm_operands): Pass constraints as 3rd argument to
26678         asm_operand_ok.  Don't look up matching constraint here.
26679         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
26680         to asm_operand_ok.
26681
26682 2009-02-02  Ben Elliston  <bje@au.ibm.com>
26683
26684         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
26685         TARGET_NARROW_VOLATILE_BITFIELD macro names.
26686
26687 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26688
26689         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
26690         information.  Remove some obsolete information.  Reorganize.
26691
26692         * config/pa/fptr.c: Revert license to GPL 2.
26693         * config/pa/milli64.S: Likewise.
26694
26695 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
26696
26697         PR target/38904
26698         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
26699         LIBRARY name in, instead of hard-coding it.
26700         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
26701         extra target make frag to tmake_files according to EH model.
26702         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
26703         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
26704         frags that define makefile variable EH_MODEL appropriately.
26705         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
26706         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
26707         to "-sjlj" according to type of EH configured.
26708         (LIBGCC_SONAME):  Concatenate it to shared library base name.
26709         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
26710         to "_sjlj" according to type of EH configured.
26711         (LIBGCC_SONAME):  Concatenate it to shared library base name.
26712         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
26713         (SHLIB_LINK):  Add missing semicolon to if-else construct.
26714         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
26715         string value of "pe_dll" command-line option.
26716         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
26717         (SHLIB_SONAME):  Use it when overriding t-cygming default.
26718         (SHLIB_IMPLIB):  Override t-cygming default.
26719         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
26720         string value of "pe_dll" command-line option.
26721
26722 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
26723
26724         PR target/38952
26725         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
26726         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
26727
26728 2009-01-31  Richard Guenther  <rguenther@suse.de>
26729
26730         PR tree-optimization/38937
26731         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
26732         computing the transitive closure.
26733
26734 2009-01-30  Richard Guenther  <rguenther@suse.de>
26735
26736         PR tree-optimization/39041
26737         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
26738         Propagate variable indices only if the types match for this stmt.
26739
26740 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
26741
26742         PR target/39013
26743         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
26744         inline but never defined.
26745
26746 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
26747
26748         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
26749         (*insv_h_di_reg_extimm): New insn.
26750         (*insv_l<mode>_reg_extimm): New insn.
26751
26752 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
26753
26754         * config/picochip/picochip.c (flag_conserve_stack): set
26755         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
26756         fconserve-stack. Reduce call-overhead used by inliner.
26757
26758 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
26759
26760         PR/38157
26761         * common.opt (flag_conserve_stack): Initialised to zero.
26762
26763 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
26764
26765         PR/39002
26766         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
26767         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
26768         method.
26769
26770 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
26771
26772         * ira-color.c (allocno_reload_assign): Update comments.
26773         * regmove.c (regmove_optimize): Likewise.
26774
26775         * ra.h: Removed.
26776
26777 2009-01-29  Robert Millan  <rmh@aybabtu.com>
26778
26779         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
26780         * config/i386/kopensolaris-gnu.h: New file.  Undefine
26781         `MD_UNWIND_SUPPORT'.
26782         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
26783
26784 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
26785
26786         PR tree-optimization/39007
26787         * tree-loop-distribution.c (generate_builtin): Use
26788         recompute_dominator to compute the immediate dominator of the
26789         basic block just after the loop.
26790
26791 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
26792
26793         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
26794         (ASM_OUTPUT_DWARF_PCREL): Define.
26795
26796 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
26797
26798         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
26799         * doc/passes.texi: Remove entries about regclass, local-alloc, and
26800         global.  Modify entries about regmove and IRA.
26801
26802         * ra-conflict.c: Remove the file.
26803
26804         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
26805
26806         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
26807         (pass_regclass_init): Rename to pass_reginfo_init.
26808
26809         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
26810
26811         * toplev.h (flag_ira): Remove.
26812
26813         * caller-save.c (setup_save_areas): Remove flag_ira.
26814
26815         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
26816
26817         * global.c: Remove the file.
26818
26819         * opts.c (decode_options): Remove flag_ira.
26820
26821         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
26822
26823         * regmove.c: Modify file description.
26824         (find_use_as_address, try_auto_increment): Define them only if
26825         AUTO_INC_DEC is defined.
26826         (replacement_quality, replace_in_call_usage, fixup_match_1,
26827         stable_and_no_regs_but_for_p): Remove.
26828         (reg_set_in_bb): Make it static.
26829         (regmove_optimize): Remove flag_ira and code which worked for
26830         !flag_ira.
26831
26832         * local-alloc.c: Remove the file.
26833
26834         * common.opt (fira): Remove.
26835
26836         * ira.c: Include except.h.
26837         (eliminable_regset): Move from global.c.
26838         (mark_elimination): Ditto.  Remove flag_ira.
26839         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
26840         equiv_mem_modified, validate_equiv_mem_from_store,
26841         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
26842         contains_replace_regs, memref_referenced_p, memref_used_between_p,
26843         no_equiv, recorded_label_ref): Move from local-alloc.c.
26844         (update_equiv_regs): Ditto.  Make it static.
26845         (print_insn_chain, print_insn_chains): Move it from global.c.
26846         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
26847         (build_insn_chain): Ditto.  Make it static.
26848         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
26849         Rename to init_live_subregs.
26850         (gate_ira): Remove flag_ira.
26851
26852         * regclass.c: Rename reginfo.c.  Change file description.
26853         (FORBIDDEN_INC_DEC_CLASSES): Remove.
26854         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
26855         (init_reg_sets_1): Remove code for evaluation of
26856         reg_class_superclasses and losing_caller_save_reg_set.
26857         (init_regs): Remove init_reg_autoinc.
26858         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
26859         ok_for_base_p_nonstrict): Remove.
26860         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
26861         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
26862         corresponding entries.
26863         (dump_regclass, record_operand_costs, scan_one_insn,
26864         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
26865         record_address_regs, auto_inc_dec_reg_p): Remove.
26866         (gt-regclass.h): Rename to gt-reginfo.h.
26867
26868         * rtl.h (dump_global_regs, retry_global_alloc,
26869         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
26870
26871         * Makefile.in (RA_H): Remove.
26872         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
26873         Rename regclass.o to reginfo.o.
26874         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
26875         gt-reginfo.h.
26876         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
26877         (GTFILES): Rename regclass.c to reginfo.c.
26878
26879         * passes.c (init_optimization_passes): Remove pass_local_alloc and
26880         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
26881
26882         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
26883         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
26884         Remove flag_ira.
26885         (finish_spills): Ditto.  Remove code for !flag_ira.
26886
26887 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
26888
26889         PR middle-end/35854
26890         * doc/invoke.texi (rtl debug options): Complete rewrite.
26891         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
26892         to auto_inc_dec".
26893         * mode-switching.c (pass_mode_switching): Rename pass from
26894         "mode-sw" to "mode_sw".
26895         * except.c (pass_convert_to_eh_ranges): Rename pass from
26896         "eh-ranges" to "eh_ranges".
26897         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
26898         to "subreg1".
26899
26900
26901 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
26902             Alexander Monakov  <amonakov@ispras.ru>
26903
26904         PR middle-end/38857
26905         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
26906         register.
26907         (move_exprs_to_boundary): Change return type and pass through
26908         should_move from move_op.  Relax assert.  Update usage ...
26909         (schedule_expr_on_boundary): ... here.  Use should_move instead of
26910         cant_move.
26911         (move_op_orig_expr_found): Indicate that insn was disconnected from
26912         stream.
26913         (code_motion_process_successors): Do not call after_merge_succs
26914         callback if original expression was not found when traversing any of
26915         the branches.
26916         (code_motion_path_driver): Change return type.  Update prototype.
26917         (move_op): Update comment.  Add a new parameter (should_move).  Update
26918         prototype.  Set *should_move based on indication provided by
26919         move_op_orig_expr_found.
26920
26921 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
26922
26923         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
26924         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
26925         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
26926         * config/rs6000/rs6000.c (rs6000_override_options): Default
26927         avoid-indexed-addresses on for Power6, off for everything else.
26928         (avoiding_indexed_address_p): New function.
26929         (rs6000_legitimize_address): Use it.
26930         (rs6000_legitimate_address): Likewise.
26931         * config/rs6000/rs6000.md (movXX_updateX): Likewise
26932
26933 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
26934
26935         PR tree-optimization/38997
26936         * tree-loop-distribution.c (generate_memset_zero): Use
26937         POINTER_PLUS_EXPR for a pointer addition.
26938
26939 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
26940
26941         * config/s390/s390.md (bswap<mode>2): New pattern added.
26942
26943 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
26944
26945         * config/s390/s390.md (*tls_load_31): Added type attribute.
26946
26947 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
26948
26949         * config/s390/s390.md: Fix a few comments.
26950
26951 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
26952
26953         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
26954         (*tm<mode>_full): Fixed z10prop attribute.
26955         (*tst<mode>_extimm): Fixed z10prop attribute.
26956         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
26957         (*tstqiCCT_cconly): Fixed z10prop attribute.
26958         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
26959         (*movsi_larl): Fixed z10prop attribute.
26960         (*movsi_zarch): Fixed z10prop attribute.
26961         (*movsi_eas): Fixed z10prop attribute.
26962         (*movhi): Fixed z10prop attribute.
26963         (*movqi): Fixed z10prop attribute.
26964         (*movstrictqi): Fixed z10prop attribute.
26965         (*mov<mode>): Fixed z10prop attribute.
26966         (*movcc): Fixed z10prop attribute.
26967         (*sethighpartdi_64): Fixed z10prop attribute.
26968         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
26969         (*negdi2_sign_cc): Fixed z10prop attribute.
26970         (*negdi2_sign): Fixed z10prop attribute.
26971         (*absdi2_sign_cc): Fixed z10prop attribute.
26972         (*absdi2_sign): Fixed z10prop attribute.
26973         (*negabsdi2_sign_cc): Fixed z10prop attribute.
26974         (*negabsdi2_sign): Fixed z10prop attribute.
26975         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
26976         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
26977         (doloop_si64): Fixed z10prop attribute.
26978         (doloop_si31): Fixed z10prop attribute.
26979         (doloop_long): Fixed z10prop attribute.
26980         (indirect_jump): Fixed z10prop attribute.
26981         (nop): Fixed z10prop attribute.
26982         (main_base_64): Fixed z10prop attribute.
26983         (reload_base_64): Fixed z10prop attribute.
26984
26985 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
26986
26987         PR rtl-optimization/38740
26988         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
26989         if !optimize.
26990         * config/mips/mips.c (mips_reorg): Likewise.
26991
26992 2009-01-28  Richard Guenther  <rguenther@suse.de>
26993
26994         PR tree-optimization/38926
26995         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
26996         with the correct value id to a value.
26997         (do_regular_insertion): Use the value number of edoubleprime
26998         for the value number of the expr.
26999
27000         Revert
27001         2008-08-21  Richard Guenther  <rguenther@suse.de>
27002
27003         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
27004         a PHI ask VN if it is already available.
27005         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
27006         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
27007
27008 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
27009
27010         PR middle-end/38934
27011         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
27012         set to varying whenever max has TREE_OVERFLOW set, similarly
27013         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
27014
27015 2009-01-28  Richard Guenther  <rguenther@suse.de>
27016
27017         PR middle-end/38908
27018         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
27019         uninitialized aggregate uses in call arguments.
27020
27021 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
27022
27023         PR tree-optimization/38984
27024         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
27025         the nothing_id variable if -fno-delete-null-pointer-checks.
27026
27027 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
27028
27029         PR target/38988
27030         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
27031         (set_got_offset_rex64): Ditto.
27032
27033 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
27034
27035         PR target/38941
27036         * doc/extend.texi: Improve local variable with asm reg.
27037
27038 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
27039
27040         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
27041         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
27042         was not supplied then set warn_packed_bitfield_compat to the
27043         default value of 1.
27044         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
27045         against 1.
27046
27047 2009-01-27  Richard Guenther  <rguenther@suse.de>
27048
27049         PR tree-optimization/38503
27050         * cfgexpand.c (expand_gimple_basic_block): Ignore
27051         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
27052         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
27053         variables that cannot have TBAA applied.
27054         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
27055         statements.
27056
27057 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
27058
27059         PR middle-end/38969
27060         * calls.c (initialize_argument_information): Do not wrap complex
27061         arguments in SAVE_EXPR.
27062
27063 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
27064
27065         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
27066         (INSTALL_LIBGCC): Revert typo commit.
27067
27068 2009-01-26  Richard Guenther  <rguenther@suse.de>
27069
27070         PR tree-optimization/38745
27071         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
27072         from special handling.
27073
27074 2009-01-26  Richard Guenther  <rguenther@suse.de>
27075
27076         PR tree-optimization/38745
27077         * tree-ssa.c (execute_update_addresses_taken): Do not include
27078         variables that cannot possibly be a register in not_reg_needs.
27079         Do not clear TREE_ADDRESSABLE on vars that may not become
27080         registers.
27081         * tree-ssa.c (update_alias_info_1): Include those in the set
27082         of addressable vars.
27083
27084 2009-01-26  Richard Guenther  <rguenther@suse.de>
27085
27086         PR middle-end/38851
27087         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
27088         * tree-ssa-dse.c: Include langhooks.h
27089         (execute_simple_dse): Remove stores with zero size.
27090
27091 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
27092
27093         PR c/38957
27094         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
27095         as PLUS_EXPR.
27096
27097 2009-01-24  Julian Brown  <julian@codesourcery.com>
27098
27099         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
27100         config/arm/linux-atomic.c.
27101         * config/arm/linux-atomic.c: New.
27102
27103 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
27104
27105         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
27106         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
27107         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
27108
27109 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
27110
27111         PR c/38938
27112         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
27113         properly.
27114
27115 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
27116
27117         PR tree-optimization/38953
27118         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
27119         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
27120         (gloog): Split the exit of the scop when the scop exit is a loop exit.
27121         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
27122         changed the CFG.
27123
27124 2009-01-24  Paul Brook  <paul@codesourcery.com>
27125
27126         * config/arm/neon.md (neon_type): Move to arm.md.
27127         (neon_mov<VSTRUCT>): Add neon_type attribute.
27128         * config/arm/arm.md (neon_type): Move to here.
27129         (conds): Add "unconditioal" and use as default for NEON insns.
27130
27131 2009-01-24  Ben Elliston  <bje@au.ibm.com>
27132
27133         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
27134         void *' warning from -Wc++-compat.
27135         * Makefile.in (dominance.o-warn): Remove.
27136
27137 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
27138
27139         PR tree-optimization/38932
27140         * fold-const.c (fold_unary_ignore_overflow): New.
27141         * tree.h (fold_unary_ignore_overflow): Declare.
27142         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
27143         * tree-ssa-sccvn.c (visit_reference_op_load,
27144         simplify_unary_expression): Likewise.
27145
27146 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
27147
27148         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
27149         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
27150         regardless of their type.
27151         * c-common.c (handle_packed_attribute): Don't ignore packed on
27152         bitfields.
27153         * c.opt (Wpacked-bitfield-compat): New warning option.
27154         * stor-layout.c (place_field): Warn if offset of a field changed.
27155         * doc/extend.texi (packed): Mention the ABI change.
27156         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
27157         (Warning Options): Add it to the list.
27158
27159 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
27160
27161         * c-opts.c (c_common_post_options): Fix a typo in comments.
27162
27163 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
27164
27165         PR middle-end/38615
27166         * gimplify.c (gimplify_init_constructor): Fix promotion of const
27167         variables to static.
27168         * doc/invoke.texi (-fmerge-all-constants): Update description.
27169
27170 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
27171
27172         PR target/38931
27173         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
27174         (*movdi_1_rex64): Use type "mmx" for alternative 5.
27175
27176 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
27177
27178         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
27179         a word boundary.
27180         (LOCAL_ALIGNMENT): Similarly.
27181
27182 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
27183             Joseph Myers  <joseph@codesourcery.com>
27184
27185         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
27186         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
27187         * config/arm/arm-tune.md: Regenerate.
27188         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
27189         -march=iwmmxt2.
27190
27191 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
27192
27193         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
27194         version number to five.
27195
27196 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
27197
27198         PR c++/38930
27199         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
27200         * c-common.c (set_underlying_type): Likewise.
27201         (is_typedef_decl ): Likewise
27202         * tree.h: Likewise
27203         (set_underlying_type): Likewise.
27204         (is_typedef_type): Likewise.
27205
27206 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
27207
27208         PR middle-end/38587
27209         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
27210         crossing setjmps.
27211
27212 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
27213
27214         PR bootstrap/37660
27215         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
27216         (LIBGCC_SPEC):  Don't define.
27217         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
27218
27219 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
27220
27221         PR rtl-optimization/38879
27222         * alias.c (base_alias_check): Unaligned access via AND address can
27223         alias all surrounding object types except those with sizes equal
27224         or wider than the size of unaligned access.
27225
27226 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
27227
27228         PR c++/26693
27229         * c-decl.c (clone_underlying_type): Move this ...
27230         * c-common.c (set_underlying_type): ... here.
27231         Also, make sure the function properly sets TYPE_STUB_DECL() on
27232         the newly created typedef variant type.
27233         (is_typedef_decl ): New entry point.
27234         * tree.h: Added a new member member_types_needing_access_check to
27235         struct tree_decl_non_common.
27236         (set_underlying_type): New entry point.
27237         (is_typedef_type): Likewise.
27238
27239 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
27240
27241         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
27242         Check whether two instructions have memory references that
27243         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
27244         are helper functions for traversing.
27245         * alias.h (insn_alias_sets_confilict_p): New prototypes.
27246         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
27247         not to draw dependency edge for instructions with non-conflicting
27248         alias sets.
27249
27250 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
27251
27252         PR other/38758
27253         * longlong.h: Update copyright years.  Use soft-fp license notice.
27254         Sync __clz_tab declaration with glibc.
27255
27256 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
27257
27258         PR target/30687
27259         * doc/extend.texi (syscall_linkage): New.
27260         (version_id): Modify.
27261
27262 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27263             Richard Guenther  <rguenther@suse.de>
27264
27265         PR tree-optimization/38747
27266         PR tree-optimization/38748
27267         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
27268         conversion if the base address is an indirect reference and the
27269         aliasing sets could cause issues.
27270
27271 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
27272
27273         * common.opt (fgraphite, fgraphite-identity): Add comment for
27274         explaining why these options are not documented.
27275
27276 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
27277
27278         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
27279         gimple_call_lhs is NULL.
27280
27281 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
27282
27283         PR target/38868
27284         * emit-rtl.c (adjust_address_1): Make sure memref is never
27285         overwritten.
27286
27287 2009-01-20  Ben Elliston  <bje@au.ibm.com>
27288
27289         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
27290         const qualifier from arg parameter. Remove unnecessary cast to char *.
27291         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
27292         const qualifier from arg 2.
27293
27294 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
27295
27296         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
27297
27298 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
27299
27300         PR c/38869
27301         * rtl.h (reinit_regs): New prototype.
27302         * regclass.c: Include ira.h.
27303         (reinit_regs): New.
27304         * Makefile.in (regclass.o): Add ira.h.
27305         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
27306
27307 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
27308
27309         PR target/38736
27310         * c-common.c (handle_aligned_attribute): Use
27311         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
27312         default alignment value.
27313
27314         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
27315
27316         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
27317         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
27318
27319         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
27320         __BIGGEST_ALIGNMENT__.
27321
27322         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
27323
27324 2009-01-18  Richard Guenther  <rguenther@suse.de>
27325
27326         PR tree-optimization/38819
27327         * tree-flow.h (operation_could_trap_helper_p): Declare.
27328         * tree-eh.c (operation_could_trap_helper_p): Export.
27329         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
27330         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
27331         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
27332         are about to insert a possibly trapping instruction and fail
27333         in this case.
27334
27335 2009-01-18  Andreas Schwab  <schwab@suse.de>
27336
27337         * doc/install.texi (Configuration): Remove obsolete paragraph
27338         about use of --with-gnu-ld with --with-gnu-as.
27339
27340 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
27341
27342         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
27343         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
27344         Follow spelling conventions.
27345
27346 2009-01-18  Ben Elliston  <bje@au.ibm.com>
27347
27348         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
27349         C++ warning about implicit conversion from void * to struct
27350         bitmap_head_def *.
27351         (bitmap_obstack_free): Likewise for bitmap_element *.
27352         * Makefile.in (bitmap.o-warn): Remove.
27353
27354 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
27355
27356         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
27357
27358 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
27359             Tobias Grosser  <tobi.grosser@amd.com>
27360
27361         * graphite.c (graphite_trans_scop_block): Do not block single
27362         nested loops.
27363
27364 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
27365
27366         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
27367         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
27368         test with assertion.
27369
27370 2009-01-16  Richard Guenther  <rguenther@suse.de>
27371
27372         PR tree-optimization/38835
27373         PR middle-end/36227
27374         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
27375         and INT + PTR -> (INT)(PTR p+ INT) folding.
27376         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
27377
27378 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
27379
27380         PR target/38554
27381         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
27382         the subreg from a lowpart subreg if it is also casting the value.
27383
27384 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
27385             Tobias Grosser  <tobi.grosser@amd.com>
27386
27387         * graphite.c (compare_prefix_loops): New.
27388         (build_scop_canonical_schedules): Rewritten.
27389         (graphite_transform_loops): Move build_scop_canonical_schedules
27390         after build_scop_iteration_domain.
27391
27392 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
27393             Tobias Grosser  <tobi.grosser@amd.com>
27394
27395         * graphite.c (add_conditions_to_domain): Add the loops to
27396         the dimension of the iteration domain.  Do copy the domain
27397         only when it exists.
27398         (build_scop_conditions_1): Do not call add_conditions_to_domain.
27399         (add_conditions_to_constraints): New.
27400         (can_generate_code_stmt, can_generate_code): Removed.
27401         (gloog): Do not call can_generate_code.
27402         (graphite_transform_loops): Call add_conditions_to_constraints
27403         after building the iteration domain.
27404
27405 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
27406
27407         PR tree-optimization/38789
27408         * tree-ssa-threadedge.c
27409         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
27410         __builtin_constant_p.
27411
27412 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
27413
27414         * dce.c (delete_unmarked_insns): Reversed the order that insns are
27415         examined before deleting them.
27416
27417 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
27418
27419         * function.c (aggregate_value_p): Correctly extract the function
27420         type from CALL_EXPR_FN lookup.
27421
27422 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
27423
27424         * config/picochip/picochip.c (picochip_override_options): Revert
27425         CFI asm flag disable commited previously.
27426
27427 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
27428             Tobias Grosser  <tobi.grosser@amd.com>
27429             Jan Sjodin  <jan.sjodin@amd.com>
27430
27431         * graphite.c (scan_tree_for_params): On substractions negate
27432         all the coefficients of the term.
27433         (clast_to_gcc_expression_red): New.  Handle reduction expressions
27434         of more than two operands.
27435         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
27436         (get_vdef_before_scop): Handle also the case of default definitions.
27437
27438 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
27439
27440         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
27441         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
27442         Also use them when walking CALL_INSN_FUNCTION_USAGE.
27443
27444 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
27445             Joey Ye  <joey.ye@intel.com>
27446
27447         PR middle-end/37843
27448         * cfgexpand.c (expand_stack_alignment): Don't update stack
27449         boundary nor check incoming stack boundary here.
27450         (gimple_expand_cfg): Update stack boundary and check incoming
27451         stack boundary here.
27452
27453 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
27454
27455         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
27456
27457 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
27458
27459         PR rtl-optimization/38245
27460         * calls.c (expand_call): Add stack arguments to
27461         CALL_INSN_FUNCTION_USAGE even for pure calls (when
27462         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
27463         in regs and partially in memory or BLKmode arguments.
27464         (emit_library_call_value_1): Add stack arguments to
27465         CALL_INSN_FUNCTION_USAGE even for pure calls (when
27466         ACCUMULATE_OUTGOING_ARGS).
27467         * dce.c: Include tm_p.h.
27468         (find_call_stack_args): New function.
27469         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
27470         argument.
27471         (mark_insn): Call find_call_stack_args for CALL_Ps.
27472         (prescan_insns_for_dce): Walk insns backwards in bb rather than
27473         forwards.  Allocate and free arg_stores bitmap if needed, pass it
27474         down to deletable_insn_p, don't mark stores set in arg_stores
27475         bitmap, clear the bitmap at the beginning of each bb.
27476         * Makefile.in (dce.o): Depend on $(TM_P_H).
27477
27478 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
27479
27480         PR target/22599
27481         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
27482         to make sure the insn is a conditional test (bug 22599).  Reformat a
27483         few long lines.
27484
27485 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
27486
27487         PR middle-end/38431
27488         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
27489         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
27490         (gloog): Do not call cleanup_tree_cfg.
27491         (graphite_transform_loops): Call cleanup_tree_cfg after all
27492         scops have been code generated.
27493
27494 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
27495         * doc/gty.texi (Invoking the garbage collector): Added new node
27496         and section documenting ggc_collect.
27497
27498 2009-01-14  Richard Guenther  <rguenther@suse.de>
27499
27500         PR tree-optimization/38826
27501         PR middle-end/38477
27502         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
27503         initialization notes only if we actually emitted a warning.
27504         (intra_create_variable_infos): Add constraints for a result decl
27505         that is passed by hidden reference.
27506         (build_pred_graph): Mark all related variables non-direct on
27507         address-taking.
27508
27509 2009-01-14  Nick Clifton  <nickc@redhat.com>
27510
27511         * ira-conflicts.c: Include addresses.h for the definition of
27512         base_reg_class.
27513         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
27514         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
27515
27516 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
27517
27518         PR target/38811
27519         * Makefile.in (ira-lives.o): Add except.h.
27520
27521         * ira-lives.c: Include except.h.
27522         (process_bb_node_lives): Process can_throw_internal.
27523
27524 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
27525
27526         PR rtl-optimization/38774
27527         * combine.c (simplify_set): When undoing cc_use change, don't do
27528         PUT_CODE on the newly created comparison, but instead put back the
27529         old comparison.
27530
27531 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
27532
27533         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
27534         values.  Remove duplicate arm8 entry.
27535
27536 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
27537
27538         PR tree-optimization/38786
27539         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
27540         the SSA_NAME case of expand_scalar_variables_expr.
27541         Set the type of an expression to the type of its assign statement.
27542         (expand_scalar_variables_expr): Also gather the scalar computation
27543         used to index the memory access.  Do not pass loop_p.
27544         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
27545         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
27546         the gimple_stmt_iterator where it inserts new code.
27547         Do not pass loop_p.
27548         (copy_bb_and_scalar_dependences): Do not pass loop_p.
27549         (translate_clast): Update call to copy_bb_and_scalar_dependences.
27550
27551 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
27552
27553         * graphite.h (debug_value): Removed.
27554         * graphite.c (debug_value): Removed.
27555
27556 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
27557
27558         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
27559         ldrd/strd with two 32-bit instructions.
27560
27561 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
27562
27563         * config/arm/arm.c (struct processors): Pass for speed down into
27564         cost helper functions.
27565         (const_ok_for_op): Handle COMPARE and inequality nodes.
27566         (arm_rtx_costs_1): Rewrite.
27567         (arm_size_rtx_costs): Update prototype.
27568         (arm_rtx_costs): Pass speed down to helper functions.
27569         (arm_slowmul_rtx_costs): Rework cost calculations.
27570         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
27571         (arm_9e_rtx_costs): Likewise.
27572
27573 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
27574
27575         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
27576         relocations of local symbols wider than UNITS_PER_WORD are not valid.
27577         (alpha_legitimize_address): Do not split local symbols wider than
27578         UNITS_PER_WORD into HIGH/LO_SUM parts.
27579
27580 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
27581
27582         PR bootstrap/38580
27583         * gcc.c (process_command): Replace call to execvp with calls
27584         to pex_one and exit.
27585
27586 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
27587
27588         PR target/29141
27589         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
27590         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
27591         variant for devices with 3-byte PC.
27592         (__tablejump_elpm__): New.
27593
27594 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
27595
27596         PR c/32041
27597         * c-parser.c (c_parser_postfix_expression): Allow `->' in
27598         offsetof member-designator, handle it as `[0].'.
27599
27600 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27601
27602         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
27603         function when not using named sections on targets with named sections
27604         if branch distance is less than 262132.
27605
27606 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
27607
27608         * combine.c (combine_instructions):  Recompute
27609         optimize_this_for_speed_p  for each BB in the main combine loop.
27610
27611 2009-01-12  Tomas Bily  <tbily@suse.cz>
27612
27613         PR middlend/38385
27614         * tree-loop-distribution.c (prop_phis): New function.
27615         (generate_builtin): Call prop_phis.
27616
27617 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
27618
27619         PR tree-optimization/38807
27620         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
27621         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
27622
27623 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
27624
27625         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
27626         subreg of op0 to the original op0.
27627
27628 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
27629
27630         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
27631
27632 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
27633
27634         PR debug/7055
27635         * mips-tfile.c (parse_def): Fix parsing of def strings
27636         starting with digits.
27637
27638 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
27639
27640         PR target/38695
27641         * config/arm/arm.c (arm_is_long_call_p): Don't call
27642         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
27643
27644 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
27645
27646         * regrename.c (regrename_optimize): Fix dumping.
27647         (find_oldest_value_reg): Preserve REG_POINTER.
27648         (copy_hardreg_forward_1): Likewise.
27649
27650 2009-01-09  Diego Novillo  <dnovillo@google.com>
27651
27652         * gimple.h (struct gimple_statement_base) <uid>: Document
27653         the restrictions on its use.
27654         (gimple_uid): Tidy.
27655         (gimple_set_uid): Tidy.
27656
27657 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
27658
27659         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
27660         zero guard even if align_bytes != 0 and count is smaller than
27661         size_needed.
27662
27663 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
27664
27665         PR rtl-optimization/38495
27666         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
27667         (add_range_and_copies_from_move_list): Print all added ranges.
27668         Add ranges to memory optimized destination.
27669
27670 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
27671
27672         PR target/38686
27673         PR target/38708
27674         * config/i386/i386.c (override_options): Reject
27675         -mstringop-strategy=rep_8byte with -m32.
27676         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
27677         to 1.  Do count comparison against epilogue_size_needed at compile
27678         time even when count_exp was constant forced into register.  For
27679         size_needed don't jump to epilogue, instead just avoid aligning
27680         and invoke the body algorithm.  If need_zero_guard, add zero guard
27681         even if count is non-zero, but smaller than size_needed + number of
27682         bytes that could be stored for alignment.
27683         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
27684         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
27685         but smaller than size_needed + number of bytes that could be stored
27686         for alignment.  Compare size_needed with epilogue_size_needed instead
27687         of desired_align - align, don't adjust size_needed, pass
27688         epilogue_size_needed to the epilogue expanders.
27689
27690         PR c/35742
27691         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
27692
27693 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27694
27695         * pa.c (last_address): Change to unsigned.
27696         (update_total_code_bytes): Change argument to unsigned.  Don't
27697         check if insn addresses are set.
27698         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
27699         addresses are not set.
27700         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
27701
27702 2009-01-09  Nick Clifton  <nickc@redhat.com>
27703
27704         * config/sh/symbian.c: Replace uses of DECL_INLINE with
27705         DECL_DECLARED_INLINE_P.
27706
27707 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
27708
27709         PR middle-end/38347
27710         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
27711         GET_MODE (op0) in operand_subword_force calls.
27712
27713         PR middle-end/38771
27714         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
27715         fold_convert arg0 operands to TREE_TYPE (op0) first.
27716
27717 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
27718
27719         * params.def (ira-max-conflict-table-size): Decrease default value
27720         to 1000.
27721
27722 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
27723
27724         PR tree-optimization/37031
27725         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
27726         on parameter_set.
27727         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
27728         allocate it using gc instead of heap, use VEC_quick_push instead of
27729         VEC_safe_push.
27730         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
27731         instead of heap, use VEC_quick_push instead of VEC_safe_push.
27732         * tree-data-ref.h (struct access_matrix): Change matrix to gc
27733         allocated vector from heap allocated.
27734         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
27735         * tree-loop-linear.c (linear_transform_loops): Allocate nest
27736         vector only after perfect_loop_nest_depth call.
27737
27738 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
27739             Jan Sjodin  <jan.sjodin@amd.com>
27740
27741         PR tree-optimization/38559
27742         * graphite.c (debug_value, copy_constraint,
27743         swap_constraint_variables, scale_constraint_variable, ): New.
27744         (get_lower_bound, get_upper_bound): Removed.
27745         (graphite_trans_bb_strip_mine): Clean up this code that works
27746         only for constant number of iterations.  Fully copy upper and
27747         lower bound constraints, not only the constant part of them.
27748         * graphite.h (debug_value): Declared.
27749
27750 2009-01-08  Ira Rosen  <irar@il.ibm.com>
27751
27752         PR tree-optimization/37194
27753         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
27754         Don't add the cost of cost model guard in prologue to scalar
27755         outside cost in case of known number of iterations.
27756
27757 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
27758             Alan Modra  <amodra@bigpond.net.au>
27759
27760         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
27761         non-word-aligned REG+CONST addressing.
27762
27763 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
27764
27765         PR target/38706
27766         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
27767         free_after_compilation when outputting a thunk.
27768         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
27769         Do not call free_after_compilation here.
27770
27771 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
27772
27773         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
27774         (ix86_valid_target_attribute_inner_p): Ditto.
27775
27776 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
27777
27778         PR tree-optimization/38492
27779         PR tree-optimization/38498
27780         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
27781         * tree-chrec.h (scev_is_linear_expression): Declared.
27782         * graphite.c (graphite_cannot_represent_loop_niter): New.
27783         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
27784         (graphite_loop_normal_form): Use gcc_assert.
27785         (scan_tree_for_params): Use CASE_CONVERT.
27786         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
27787         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
27788         Use gcc_assert.  Discard scops that contain unhandled cases.
27789         (build_scop_conditions): Return a boolean status for unhandled cases.
27790         (strip_mine_profitable_p): Print the loop number, not its depth.
27791         (is_interchange_valid): Pass the depth of the loop nest, don't
27792         recompute it wrongly.
27793         (graphite_trans_bb_block): Same.
27794         (graphite_trans_bb_block): Print tentative of loop blocking.
27795         (graphite_trans_scop_block): Do not print that the loop has been
27796         blocked.
27797         (graphite_transform_loops): Do not handle scops that contain condition
27798         scalar phi nodes.
27799
27800 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
27801
27802         AVX Programming Reference (December, 2008)
27803         * config/i386/avxintrin.h (_mm256_stream_si256): New.
27804         (_mm256_stream_pd): Likewise.
27805         (_mm256_stream_ps): Likewise.
27806
27807         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
27808         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
27809         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
27810         (bdesc_special_args): Add __builtin_ia32_movntdq256,
27811         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
27812         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
27813         (ix86_expand_special_args_builtin): Likewise.
27814
27815         * config/i386/sse.md (AVXMODEDI): New.
27816         (avx_movnt<mode>): Likewise.
27817         (avx_movnt<mode>): Likewise.
27818         (<sse>_movnt<mode>): Remove AVX support.
27819         (sse2_movntv2di): Likewise.
27820
27821 2009-01-07  Richard Guenther  <rguenther@suse.de>
27822
27823         PR middle-end/38751
27824         * fold-const.c (extract_muldiv): Remove obsolete comment.
27825         (fold_plusminus_mult_expr): Undo MINUS_EXPR
27826         to PLUS_EXPR canonicalization for the canonicalization.
27827
27828 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
27829
27830         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
27831         hosted cross-compilers generating less efficient code.
27832
27833 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
27834
27835         * function.h (rtl_data): Add a dbr_scheduled_p field.
27836         * reorg.c (dbr_schedule): Set it.
27837         (gate_handle_delay_slots): Check it.
27838         * config/mips/mips.c (mips_base_delayed_branch): Delete.
27839         (mips_reorg): Check flag_delayed_branch instead of
27840         mips_base_delayed_branch.
27841         (mips_override_options): Don't set mips_base_delayed_branch
27842         or flag_delayed_branch.
27843
27844 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
27845
27846         PR rtl-optimization/38426.
27847         * ira.c (ira): Set current_function_is_leaf earlier.
27848
27849 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
27850
27851         PR rtl-optimization/38722
27852         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
27853         too early, only set a flag and modify after last possible
27854         undo_all point.
27855
27856 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
27857
27858         PR c/34252
27859         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
27860         * real.c (decimal_single_format): Correct values of emin and emax.
27861         (decimal_double_format): Ditto.
27862         (decimal_quad_format): Ditto.
27863         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
27864         computation of DECnn_MIN and DECnn_MAX for corrected values of
27865         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
27866         __DECnn_MIN__, and adjust its computation for the corrected value
27867         of emin.
27868
27869 2009-01-06  Jan Hubicka  <jh@suse.cz>
27870
27871         PR target/38744
27872         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
27873
27874 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
27875
27876         * doc/contrib.texi (Contributors): Slightly adjust the end note.
27877         Add Robert Clark to the list of testers.
27878
27879 2009-01-06  Jan Hubicka  <jh@suse.cz>
27880             Kai Tietz  <kai.tietz@onevision.com>
27881
27882         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
27883         * config/i386/i386.c (ix86_expand_call): Add clobbers.
27884
27885 2009-01-06  Jan Hubicka  <jh@suse.cz>
27886             Kai Tietz  <kai.tietz@onevision.com>
27887
27888         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
27889         for w64 ABI.
27890         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
27891         (ix86_nsaved_regs): Count only general purpose regs.
27892         (ix86_nsaved_sseregs): New.
27893         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
27894         to 16 for w64; compute padding and size of sse reg save area.
27895         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
27896         general purpose regs.
27897         (ix86_emit_save_sse_regs_using_mov): New.
27898         (ix86_expand_prologue): Save SSE regs if needed.
27899         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
27900         (ix86_emit_restore_sse_regs_using_mov): New.
27901         (ix86_expand_epilogue): Save SSE regs if needed.
27902
27903 2009-01-06  Jan Hubicka  <jh@suse.cz>
27904             Kai Tietz  <kai.tietz@onevision.com>
27905
27906         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
27907         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
27908         functions when accumulate outgoing args is off.
27909
27910 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
27911
27912         PR bootstrap/38742
27913         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
27914         before using pseudos_have_intersected_live_ranges_p.
27915
27916         * ira-int.h (ira_assert): Always define.
27917
27918 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
27919
27920         AVX Programming Reference (December, 2008)
27921         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
27922         (_mm256_permute2_pd): Likewise.
27923         (_mm_permute2_ps): Likewise.
27924         (_mm256_permute2_ps): Likewise.
27925         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
27926         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
27927
27928         * config/i386/i386.c (ix86_builtins): Remove
27929         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
27930         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
27931         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
27932         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
27933         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
27934         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
27935         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
27936         __builtin_ia32_vpermil2ps256.
27937         (ix86_init_mmx_sse_builtins): Updated.
27938         (ix86_expand_args_builtin): Likewise.
27939
27940 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27941
27942         * pa.c (output_call): Relocate non-jump insns in the delay slot of
27943         long absolute calls when generating PA 2.0 code.
27944
27945 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
27946
27947         PR rtl-optimization/38583
27948         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
27949
27950         * params.def (ira-max-conflict-table-size): New.
27951
27952         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
27953
27954         * ira.h (ira_conflicts_p): New external definition.
27955
27956         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
27957         table.  Report this.  Return result of building.
27958         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
27959         building conflict table.
27960
27961         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
27962         (ira_color): Use ira_conflicts_p.
27963
27964         * global.c: Include ira.h.
27965         (pseudo_for_reload_consideration_p, build_insn_chain): Use
27966         ira_conflicts_p.
27967
27968         * Makefile.in (global.o): Add ira.h.
27969
27970         * ira-build.c (mark_all_loops_for_removal,
27971         propagate_some_info_from_allocno): New.
27972         (remove_unnecessary_allocnos): Call
27973         propagate_some_info_from_allocno.
27974         (remove_low_level_allocnos): New.
27975         (remove_unnecessary_regions): Add parameter.  Call
27976         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
27977         parameter to remove_unnecessary_regions.
27978         (ira_build): Remove all regions but root if the conflict table was
27979         not built.  Update conflict hard regs for allocnos crossing calls.
27980
27981         * ira.c (ira_conflicts_p): New global.
27982         (ira): Define and use ira_conflicts_p.
27983
27984         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
27985         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
27986         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
27987
27988 2009-01-06  Ben Elliston  <bje@au.ibm.com>
27989
27990         * gengtype-lex.l (YY_NO_INPUT): Define.
27991
27992 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27993
27994         PR c/34911
27995         * c-common.c (handle_vector_size_attribute): Also reject
27996         BOOLEAN_TYPE types.
27997
27998 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
27999
28000         PR tree-optimization/38492
28001         * graphite.c (rename_map_elt, debug_rename_elt,
28002         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
28003         rename_map_elt_info, eq_rename_map_elts,
28004         get_new_name_from_old_name, bb_in_sese_p): Moved around.
28005         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
28006         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
28007         (sese_build_livein_liveouts): New.
28008         (new_sese, free_sese): New.
28009         (new_scop): Call new_sese.
28010         (free_scop): Call free_sese.
28011         (rename_variables_from_edge, rename_phis_end_scop): Removed.
28012         (register_old_new_names): Renamed register_old_and_new_names.
28013         (register_scop_liveout_renames, add_loop_exit_phis,
28014         insert_loop_close_phis, struct igp,
28015         default_liveout_before_guard, add_guard_exit_phis,
28016         insert_guard_phis, copy_renames): New.
28017         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
28018         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
28019         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
28020         (scop_adjust_phis_for_liveouts): New.
28021         (gloog): Call scop_adjust_phis_for_liveouts.
28022
28023         * graphite.h (struct sese): Documented.  Added fields liveout,
28024         num_ver and livein.
28025         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
28026         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
28027         (struct scop): Added field liveout_renames.
28028         (SCOP_LIVEOUT_RENAMES): New.
28029
28030 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
28031
28032         PR tree-optimization/38510
28033         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
28034         (translate_clast): Call recompute_all_dominators before
28035         graphite_verify.
28036         (gloog): Call recompute_all_dominators before graphite_verify.
28037
28038 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
28039             Jan Sjodin  <jan.sjodin@amd.com>
28040
28041         PR tree-optimization/38500
28042         * graphite.c (create_sese_edges): Call fix_loop_structure after
28043         splitting blocks.
28044
28045 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
28046
28047         * config.gcc: Add m32r*-*-rtems*.
28048         * config/m32r/rtems.h: New file.
28049
28050 2009-01-05  Ben Elliston  <bje@au.ibm.com>
28051
28052         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
28053         (.po.pox): Likewise.
28054         (po/gcc.pot): Likewise.
28055
28056 2009-01-04  David S. Miller  <davem@davemloft.net>
28057
28058         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
28059         (STARTING_FRAME_OFFSET): Always set to zero.
28060
28061 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
28062
28063         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
28064         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
28065         fixed-point types, and vectors of the same.
28066
28067 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
28068
28069         * config/mips/sync.md (*mb_barrier): Rename to...
28070         (*memory_barrier): ...this.
28071
28072 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
28073
28074         * doc/extend.texi (Function Attributes): Move @cindex after @item
28075         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
28076         and put in alphabetical order. Fix 'target' name and put in order.
28077         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
28078         typos.
28079
28080 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
28081
28082         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
28083         (memory_barrier): Expand as unspec instead of unspec_volatile.
28084         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28085         (*memory_barrier): Define as unspec instead of unspec_volatile.
28086         Use (match_dup 0) as input operand.
28087
28088         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
28089         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
28090         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
28091         scratch register.  Remove operand 1.
28092         (*stbar): Define as unspec instead of unspec_volatile.
28093         Use (match_dup 0) as input operand, remove (const_int 8).
28094         (*membar): Define as unspec instead of unspec_volatile.
28095         Use (match_dup 0) as input operand, remove input operand 2.
28096
28097         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
28098         (memory_barrier): Expand as unspec instead of unspec_volatile.
28099         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28100         (*memory_barrier): Define as unspec instead of unspec_volatile.
28101         Use (match_dup 0) as input operand.
28102
28103         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
28104         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28105         Set volatile flag on operand 0.
28106         (*memory_barrier): New insn pattern.
28107
28108         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
28109         insn operands.
28110         (*memory_barrier): Use (match_dup 0) as input operand.
28111
28112         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
28113         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28114         Set volatile flag on operand 0.
28115         (*mb_internal): New insn pattern.
28116
28117         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
28118
28119 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
28120
28121         PR middle-end/38586
28122         * function.c (struct temp_slot): Move to the section of the file
28123         that deals with temp slots.  Remove field 'address'.
28124         (temp_slot_address_table): New hash table of address -> temp slot.
28125         (struct temp_slot_address_entry): New struct, items for the table.
28126         (temp_slot_address_compute_hash, temp_slot_address_hash,
28127         temp_slot_address_eq, insert_temp_slot_address): Support functions
28128         for the new table.
28129         (find_temp_slot_from_address): Rewrite to use the new hash table.
28130         (remove_unused_temp_slot_addresses): Remove addresses of temp
28131         slots that have been made available.
28132         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
28133         worker function for remove_unused_temp_slot_addresses.
28134         (assign_stack_temp_for_type): Don't clear the temp slot address list.
28135         Add the temp slot address to the address -> temp slot map.
28136         (update_temp_slot_address): Update via insert_temp_slot_address.
28137         (free_temp_slots): Call remove_unused_temp_slot_addresses.
28138         (pop_temp_slots): Likewise.
28139         (init_temp_slots): Allocate the address -> temp slot map, or empty
28140         the map if it is already allocated.
28141         (prepare_function_start): Initialize temp slot processing.
28142
28143 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
28144
28145         PR middle-end/38584
28146         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
28147         Calculate the size of all stack vars assuming no packing of stack
28148         vars will happen, replacing a quadratic algorithm with a linear one.
28149
28150 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
28151
28152         PR target/38707
28153         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
28154         can't be used.
28155
28156 2009-01-03  Diego Novillo  <dnovillo@google.com>
28157
28158         * doc/contrib.texi: Update contributions.
28159
28160 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
28161
28162         PR c++/38705
28163         * builtins.c (fold_builtin_memory_op): Give up if either operand
28164         is volatile.  Set srctype or desttype to non-qualified version
28165         of the other type.
28166
28167         PR c/38700
28168         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
28169         and FUNCTION_DECLs.
28170
28171 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
28172
28173         PR rtl-optimization/35805
28174         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
28175         problem if fast dce is able to remove any instructions.
28176         * dce.c (dce_process_block): Fix dump message.
28177
28178 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
28179
28180         PR 33649
28181         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
28182
28183 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
28184
28185         PR middle-end/38690
28186         * tree-flow.h (op_code_prio, op_prio): New prototypes.
28187         * tree-pretty-print.c (op_code_prio): New function.
28188         (op_prio): No longer static.  Use op_code_prio.
28189         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
28190         Use op_prio and op_code_prio to determine if () should be
28191         printed around operand(s) or not.
28192
28193         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
28194         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
28195         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
28196         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
28197         pp_character instead of pp_string for single letter printing.
28198
28199 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
28200
28201         * doc/extend.texi: Fix '#pragma GCC option' typo.
28202
28203 2009-01-02  Richard Guenther  <rguenther@suse.de>
28204
28205         * doc/install.texi (--enable-checking): Mention different
28206         default for stage1.
28207         (--enable-stage1-checking): Document.
28208
28209 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
28210
28211         PR middle-end/30142
28212         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
28213         case to be an error.
28214
28215 2009-01-02  Ben Elliston  <bje@au.ibm.com>
28216
28217         * config/fp-bit.h (pack_d): Constify argument.
28218         * config/fp-bit.c (makenan): Constify return type. Remove casts.
28219         (isnan): Constify argument.
28220         (isinf): Likewise.
28221         (iszero): Likewise.
28222         (pack_d): Likewise.
28223         (_fpadd_parts): Constify return type.
28224         (_fpmul_parts): Likewise.
28225         (_fpdiv_parts): Likewise.
28226
28227 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
28228
28229         PR c/36489
28230         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
28231         warn about overwriting initializer with side-effects or
28232         -Woverride-init if !IMPLICIT.
28233         (output_init_element): Likewise.  Pass IMPLICIT down to
28234         add_pending_init.
28235         (process_init_element): Add IMPLICIT argument.  Pass it down
28236         to output_init_element.
28237         (push_init_element, pop_init_level, set_designator): Adjust
28238         process_init_element callers.
28239         (set_nonincremental_init, set_nonincremental_init_from_string):
28240         Adjust add_pending_init callers.
28241         (output_pending_init_elements): Adjust output_init_element callers.
28242         * c-tree.h (process_init_element): Adjust prototype.
28243         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
28244         process_init_element callers.
28245
28246 \f
28247 Copyright (C) 2009 Free Software Foundation, Inc.
28248
28249 Copying and distribution of this file, with or without modification,
28250 are permitted in any medium without royalty provided the copyright
28251 notice and this notice are preserved.